body {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    min-height: 100vh;
    color: #fff;
}

.game-board-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 15px;
}

.memory-card {
    aspect-ratio: 1;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.card-inner.is-flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 2rem;
}

.card-front {
    background: linear-gradient(135deg, #ff9966, #ff5e62);
    transform: rotateY(180deg);
    box-shadow: 0 4px 15px rgba(255, 94, 98, 0.2);
}
.card-front img {
    border-radius: 15px;
    width: 100%;
    height: 100%;

}

.card-back {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.game-info-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
}

.game-logo {
    text-align: center;
    margin-bottom: 30px;
}

.game-logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #ff9966, #ff5e62);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.info-section {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
}

.info-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.5rem;
    font-weight: 600;
}

.info-value i {
    margin-right: 10px;
    color: #ff9966;
}

#stars-container i {
    color: #ffd700;
    margin: 0 2px;
}

.controls {
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #ff9966, #ff5e62);
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ff5e62, #ff9966);
}

@media (max-width: 991.98px) {
    .game-info-card {
        margin-top: 20px;
    }

    .grid-container {
        gap: 10px;
    }

    .card-front,
    .card-back {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .game-board-container {
        padding: 10px;
    }

    .grid-container {
        gap: 5px;
    }

    .card-front,
    .card-back {
        font-size: 1rem;
    }

    .game-logo h1 {
        font-size: 2rem;
    }
}
