:root {
    --midnight: #0F172A;  
    --midnight-light: #1E293B;  
    --cream: #FDFBF7;  
    --accent: #F59E0B;  
    --text-dark: #334155;  
}

body {
    font-family: 'Fredoka One', 'Comic Sans MS', sans-serif;
    background-color: var(--midnight);
    color: var(--cream);
    margin: 0; padding: 0;
}

.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

header { background: var(--midnight-light); padding: 20px 0; text-align: center; border-bottom: 4px solid var(--accent); box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
header h1 { margin: 0; font-size: 2.8em; color: var(--cream); text-shadow: 2px 2px 4px rgba(0,0,0,0.5); letter-spacing: 2px; }


.banner-970 { width: 970px; height: 250px; background: rgba(255,255,255,0.05); margin: 20px auto; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.3); border: 2px dashed rgba(255,255,255,0.2); border-radius: 10px; }
.banner-300 { width: 300px; height: 250px; background: rgba(255,255,255,0.05); margin: 0 auto; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.3); border: 2px dashed rgba(255,255,255,0.2); border-radius: 10px; }


.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 25px; }
.card { background: var(--cream); border-radius: 15px; overflow: hidden; box-shadow: 0 8px 0 var(--midnight-light); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); text-align: center; text-decoration: none; color: var(--text-dark); display: flex; flex-direction: column; cursor: pointer; transform: translateY(0); }
.card:hover { transform: translateY(-8px); box-shadow: 0 16px 20px rgba(0,0,0,0.6); }


.card .thumb-img { 
    width: 100%; 
    aspect-ratio: 1 / 1; 
    object-fit: cover; 
    border-bottom: 3px solid var(--accent); 
    display: block;
}

.card .title-img {
    width: 100%;
    height: 50px;  
    object-fit: contain;
    background-color: var(--cream);
    display: block;
} 


.activity-layout { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 40px; }
.activity-main { flex: 1; min-width: 0; }
.activity-sidebar { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }


.module-area { background: var(--midnight-light); border-radius: 15px; padding: 15px; text-align: center; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 2px solid rgba(255,255,255,0.05); min-height: 600px; }
.splash-screen { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, var(--midnight-light), var(--midnight)); border-radius: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 10; gap: 20px; }

.btn-start { background: var(--accent); color: var(--midnight); border: none; padding: 20px 60px; font-size: 2.8em; border-radius: 50px; cursor: pointer; font-weight: bold; box-shadow: 0 8px 0 #D97706, 0 15px 20px rgba(0,0,0,0.4); transition: all 0.2s; font-family: inherit; text-transform: uppercase; letter-spacing: 2px; }
.btn-start:hover { filter: brightness(1.1); }
.btn-start:active { transform: translateY(8px); box-shadow: 0 0 0 #D97706; }


.btn-expand {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--midnight);
    color: var(--cream);
    border: 2px solid var(--accent);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    z-index: 20;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.btn-expand:hover {
    background: var(--accent);
    color: var(--midnight);
    transform: translateY(-2px);
}

.section-title { color: var(--cream); border-bottom: 3px dashed rgba(255,255,255,0.2); padding-bottom: 10px; margin-top: 40px; font-size: 2em; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }

footer { background: var(--midnight-light); color: var(--cream); text-align: center; padding: 30px; margin-top: 60px; border-top: 4px solid var(--accent); }


@media (max-width: 900px) {
    .activity-layout { flex-direction: column; }
    .activity-sidebar { width: 100%; align-items: center; }
} 


.main-nav { margin-top: 20px; }
.main-nav ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.main-nav a { 
    color: var(--cream); 
    text-decoration: none; 
    font-size: 1.1em; 
    padding: 10px 20px; 
    border-radius: 25px; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    background: rgba(255,255,255,0.05); 
    border: 2px solid transparent; 
    font-weight: bold;
}
.main-nav a:hover { 
    background: var(--accent); 
    color: var(--midnight); 
    border-color: var(--accent); 
    transform: translateY(-4px); 
    box-shadow: 0 6px 12px rgba(0,0,0,0.3); 
}


.footer-nav { margin-bottom: 20px; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: var(--accent); text-decoration: none; font-size: 1em; transition: color 0.2s; opacity: 0.8; }
.footer-nav a:hover { color: var(--cream); opacity: 1; text-decoration: underline dashed; text-underline-offset: 4px; }


html {
    scrollbar-width: auto; 
    scrollbar-color: var(--accent) var(--midnight-light); 
}

::-webkit-scrollbar {
    width: 16px; 
}

::-webkit-scrollbar-track {
    background: var(--midnight-light); 
    border-left: 2px solid var(--midnight); 
}

::-webkit-scrollbar-thumb {
    background-color: var(--accent); 
    border-radius: 10px;    
    border: 4px solid var(--midnight-light); 
}

::-webkit-scrollbar-thumb:hover {
    background-color: #D97706; 
    cursor: pointer;
}


:fullscreen #module-area {
    background: var(--midnight); 
    padding: 0;
    border: none;
    border-radius: 0;
}

:fullscreen #interactive-object {
    height: 100vh !important;
    border-radius: 0 !important;
}


:-webkit-full-screen #module-area { background: var(--midnight); padding: 0; border: none; border-radius: 0; }
:-webkit-full-screen #interactive-object { height: 100vh !important; border-radius: 0 !important; }