@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Licorice&family=Nanum+Myeongjo&family=Playwrite+DE+Grund+Guides&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Great+Vibes&family=Licorice&family=Nanum+Myeongjo&family=Playwrite+DE+Grund+Guides&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Great+Vibes&family=Licorice&family=Nanum+Myeongjo&family=Nosifer&family=Playwrite+DE+Grund+Guides&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Fredericka+the+Great&family=Great+Vibes&family=Licorice&family=Nanum+Myeongjo&family=Nosifer&family=Playwrite+DE+Grund+Guides&display=swap');
body {
    margin: 0;
    padding: 0;
    font-family: "Great Vibes", cursive ;   /*"Great Vibes", cursive... "Licorice", cursive....*/
    font-weight: 500;
    font-size: 1.8em;
    font-style: normal;
    background: #0f1117;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    overflow-x: hidden;
    
}
/* .licorice-regular {
  font-family: "Licorice", cursive;
  font-weight: 400;
  font-style: normal;
} */


/* Make the page fill the viewport */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Main content area grows to push footer down */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== Splash Screen (No change needed here as it already uses Poppins) ===== */
#splash-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #0f1117;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.splash-logo {
    font-family: 'Poppins', cursive;
    font-weight: 700;
    font-size: 2.8rem;
    white-space: nowrap;
    overflow: hidden;
    width: auto; 
    background: linear-gradient(90deg, #00bfa6, #00e6ff, #aaff00, #00bfa6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300%;
    border-right: 3px solid #00ffc3;
    animation: textFlow 5s linear infinite; 
}

@keyframes textFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes glowPulse {
    from { text-shadow: 0 0 10px #00ffc3, 0 0 20px #00bfa6; border-right-color: #00ffc3; }
    to { text-shadow: 0 0 25px #aaff00, 0 0 45px #00e6ff; border-right-color: transparent; }
}


/* ===== HEADER & LOGO STYLES (No change needed here as it already uses Poppins) ===== */
.site-header {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem 2rem;
    margin-top: 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 0 6px #00bfa6);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px #00ffc3);
}

.site-title {
    /* Kept Poppins here for visual consistency with the logo */
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: #00ffc3;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 255, 195, 0.6);
    margin: 0; 
}

.site-title:hover {
    color: #00bfa6;
}

/* ===== Topics Grid & Button Styles ===== */
.topics-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem; 
    width: 90%;
    max-width: 1000px;
    padding: 1rem;
    margin-bottom: 3rem;
    transition: all 0.3s;
}

button {
    background: #1e1e1e;
    border: 1px solid #00bfa6;
    color: #e0e0e0;
    padding: 1.2rem;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 191, 166, 0.4);
    position: relative;
    overflow: hidden;
    animation: neonPulse 3s infinite ease-in-out;
}

/* Active Button Hover State */
button:hover:not([data-disabled="true"]) {
    background: #00bfa6;
    color: #0f1117;
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 0 20px rgba(0, 255, 217, 0.9);
}

/* Neon Pulse Animation for buttons */
@keyframes neonPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 191, 166, 0.4), 0 0 20px rgba(0, 191, 166, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 255, 217, 0.7), 0 0 45px rgba(0, 255, 217, 0.4);
    }
}

/* === DISABLED BUTTON STYLES === */
button[data-disabled="true"] {
    background: #22252a; /* Slightly darker/greyed background */
    border-color: #444;
    color: #6c757d; /* Greyed out text */
    cursor: not-allowed !important; /* Critical for desktop hover feedback */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    animation: none; /* Turn off the neon pulse */
    opacity: 0.7;
}

/* Ensure disabled buttons have no hover/transform effects */
button[data-disabled="true"]:hover {
    background: #22252a; 
    color: #6c757d;
    transform: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}


/* ===== Footer and Responsive (Retained) ===== */
footer {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid #222;
    font-size: 0.9rem;
    color: #777;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    background: #0f1117;
    color: #00ffc3;
    font-size: 1rem;
    width: 100%;
    border-top: 1px solid #1f1f1f;
    font-family: "Comic Neue", cursive;
    font-weight: 400;
}
.site-title{
    font-family: "Comic Neue", cursive;
    font-weight: 400;
}
@media (max-width: 768px) {
    .topics-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .site-header {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .topics-container {
        grid-template-columns: 1fr;
    }
    .site-title {
        font-size: 1.4rem;
    }
    .splash-logo {
        font-size: 2rem;
    }
    button {
        font-size: 0.9rem;
        padding: 1rem;
    }
}

/*GOOGLE FONTS*/
/* ========================================================= */
/* --- FONT OVERRIDE FOR MODAL: Ensures default font is used --- */
/* ========================================================= */
 #custom-modal * {
    font-family: "Comic Neue", cursive;
} 
.splash-logo{
     font-family: "Fredericka the Great", serif;
}

main, header, footer {
    transition: opacity 0.5s ease-out;
}

.hidden-splash{
    opacity: 0 !important;
    visibility: hidden !important;
}
.show-content{
    display: block !important;
    opacity: 1 !important;
}