/* Game button styles */
.game-button {
    padding: 1.5rem;
    text-align: center;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    min-height: 120px;
    touch-action: manipulation;
}

/* For smaller screens */
@media (max-width: 640px) {
    .game-button {
        padding: 1rem;
        min-height: 100px;
    }
    
    .game-button h2 {
        font-size: 1.25rem;
    }
    
    .game-button p {
        font-size: 0.875rem;
    }
}

/* Memory Game CSS */
.memory-card {
    position: relative;
    height: 100px;
    cursor: pointer;
}

.memory-card .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.memory-card .card-front,
.memory-card .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    transition: opacity 0.3s ease;
}

.memory-card .card-front {
    background-color: #fcd34d;
    opacity: 1;
}

.memory-card .card-back {
    background-color: white;
    opacity: 0;
}

.memory-card.flipped .card-front {
    opacity: 0;
}

.memory-card.flipped .card-back {
    opacity: 1;
}

.memory-card.matched {
    background-color: #d1fae5 !important;
    cursor: default;
}

.memory-card.matched .card-back {
    opacity: 1;
}

.memory-card.matched .card-front {
    opacity: 0;
}

/* Animations for matched cards */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.matched {
    animation: pulse 0.5s ease-in-out;
}

/* Victory celebration animation */
@keyframes celebrate {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.celebrate {
    animation: celebrate 0.5s ease-out;
}
