/* Simon Game Styles */
#simon-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
    width: 100%;
    padding: 20px;
    padding-top: 100px;
    /* Clear header */
    padding-bottom: 20px;
    box-sizing: border-box;
    gap: 3vmin;
    min-height: 0;
    overflow-y: auto;
}

#simon-stage.hidden {
    display: none !important;
}

.simon-instruction {
    background: white;
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 1.5rem;
    font-weight: 900;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--primary-color);
    text-align: center;
    max-width: 90%;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.simon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 90vmin;
    height: 90vmin;
    max-width: 400px;
    max-height: 400px;
    background: #333;
    padding: 20px;
    border-radius: 50%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 8px solid #222;
    position: relative;
}

/* Optional Center piece */
.simon-grid::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25%;
    height: 25%;
    background: #222;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.simon-btn {
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Adjust corner radius for that Simon look */
#simon-btn-0 {
    border-top-left-radius: 200px;
}

#simon-btn-1 {
    border-top-right-radius: 200px;
}

#simon-btn-2 {
    border-bottom-left-radius: 200px;
}

#simon-btn-3 {
    border-bottom-right-radius: 200px;
}

.simon-btn:active,
.simon-btn.active {
    filter: brightness(1.5);
    transform: scale(0.98);
    box-shadow: 0 0 40px currentColor;
    z-index: 2;
}

.simon-btn.disabled {
    cursor: default;
}

@keyframes simonPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
    }
}

#simon-start-btn {
    font-size: 2rem;
    padding: 15px 40px;
    border-radius: 50px;
    background: #4CAF50;
    color: white;
    border: none;
    box-shadow: 0 10px 0 #2E7D32;
    cursor: pointer;
    font-family: inherit;
    font-weight: 900;
    transition: transform 0.1s;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#simon-start-btn:active {
    transform: translateY(5px);
    box-shadow: 0 5px 0 #2E7D32;
}

@media (min-width: 768px) {
    #simon-stage {
        padding-top: 120px;
        gap: 40px;
    }
}