
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Thai:wght@400;600&display=swap');

:root {
    --thai-font: 'Noto Serif Thai', serif;
}
body {
    font-family: 'Montserrat', sans-serif;
    transition: opacity 0.3s ease;
    opacity: 1;
}
.font-cinzel {
    font-family: 'Cinzel Decorative', cursive;
}
.font-noto-thai,
html[lang="th"] body,
[data-lang="th"] {
    font-family: var(--thai-font);
}
.start-btn {
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.start-btn:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}
.profile-container {
    max-width: 900px;
    margin: 0 auto;
}

.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}
/* Language flags */
.language-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 8px;
}
/* Mobile language selector */
@media (max-width: 1024px) {
    .language-selector {
        display: none;
    }
}
/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #8b5cf6, #ec4899);
    border-radius: 4px;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
.float {
    animation: float 4s ease-in-out infinite;
}
.read-more-btn,
.back-to-games,
.back-btn,
.download-btn {
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
}
.read-more-btn:hover,
.back-to-games:hover,
.back-btn:hover {
    text-shadow: 0 0 8px rgba(216, 180, 254, 0.7);
}
.read-more-btn.active i {
    transform: rotate(180deg);
}

.hidden-details.show {
    max-height: 1000px;
    opacity: 1;
}

.hidden-details {
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(192, 132, 252, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(192, 132, 252, 0.6);
    }
}
.read-more-btn:hover,
.back-to-games:hover {
    animation: glow-pulse 2s infinite;
}

video {
    width: 100%;
    max-height: 80vh;
    outline: none;
    transition: transform 0.3s ease;
}
video:hover {
    transform: scale(1.01);
}
.achievement-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#gradeModal {
    transition: opacity 0.3s ease;
}

.grade-image {
    transition: transform 0.2s ease;
}

.grade-image:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}
.achievement-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.25);
}
.glow {
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.7));
}

/* Page transitions */
.page-enter-active,
.page-leave-active {
    transition: opacity 0.5s;
}

.page-enter,
.page-leave-to {
    opacity: 0;
}