/* Retro CD-ROM Game Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    background: linear-gradient(135deg, #87CEEB, #98FB98);
    overflow: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="8" fill="%23FFD700" stroke="%23000" stroke-width="2"/><circle cx="12" cy="14" r="2" fill="%23000"/><circle cx="20" cy="14" r="2" fill="%23000"/><path d="M 12 20 Q 16 24 20 20" stroke="%23000" stroke-width="2" fill="none"/></svg>'), auto;
}

/* CD-ROM Loading Screen */
.cd-rom-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, #4169E1, #000080);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeOut 0.5s ease 3s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.cd-spinning {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #C0C0C0, #808080);
    border-radius: 50%;
    border: 3px solid #333;
    position: relative;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.cd-spinning::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-bar {
    width: 300px;
    height: 20px;
    background: #222;
    border: 2px solid #fff;
    border-radius: 10px;
    margin-top: 20px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #00FF00, #32CD32);
    animation: load 3s ease forwards;
}

@keyframes load {
    from { width: 0%; }
    to { width: 100%; }
}

.cd-rom-loader h2 {
    color: white;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-size: 1.5rem;
}

/* Classroom Scene */
.classroom-scene {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.5s ease 3.5s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.classroom-bg {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(to bottom, #F0E68C 0%, #DEB887 100%);
}

/* Clickable Elements */
.clickable {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="10" fill="%23FFD700" stroke="%23FF0000" stroke-width="3"/><text x="16" y="20" text-anchor="middle" fill="%23000" font-size="12" font-weight="bold">!</text></svg>'), pointer !important;
    transition: all 0.3s;
}

.clickable:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
    animation: wiggle 0.5s ease infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-2deg) scale(1.05); }
    50% { transform: rotate(2deg) scale(1.05); }
}

/* Ceiling */
.ceiling {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #8B7355;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.fluorescent-light {
    width: 200px;
    height: 30px;
    background: linear-gradient(90deg, #FFF, #F0F0F0, #FFF);
    border: 2px solid #666;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: flicker 10s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    95% { opacity: 0.8; }
    96% { opacity: 1; }
}

/* Back Wall */
.back-wall {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 400px;
    background: linear-gradient(180deg, #D2B48C, #DEB887);
    border-bottom: 10px solid #8B4513;
}

/* Blackboard */
.blackboard {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 250px;
    background: linear-gradient(135deg, #2F4F2F, #1C3A1C);
    border: 15px solid #8B4513;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.chalk-writing {
    color: white;
    font-family: 'Comic Sans MS', cursive;
    font-size: 1.5rem;
    text-align: center;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.3);
}

.chalk-drawing {
    font-size: 3rem;
    display: block;
    margin-top: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.chalk-dust {
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

/* World Map */
.world-map {
    position: absolute;
    top: 50px;
    left: 30px;
    width: 150px;
    height: 100px;
    background: linear-gradient(135deg, #E6E6FA, #B0C4DE);
    border: 3px solid #4682B4;
    border-radius: 5px;
    overflow: hidden;
}

.map-pins {
    position: relative;
    width: 100%;
    height: 100%;
}

.pin {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FF0000;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    animation: pulse 2s infinite;
}

.pin1 { top: 30%; left: 20%; }
.pin2 { top: 50%; left: 60%; }
.pin3 { top: 40%; left: 80%; }

@keyframes pulse {
    0%, 100% { transform: rotate(-45deg) scale(1); }
    50% { transform: rotate(-45deg) scale(1.2); }
}

/* Posters */
.poster {
    position: absolute;
    background: white;
    border: 3px solid #333;
    padding: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.poster-1 {
    top: 50px;
    right: 30px;
    width: 120px;
    height: 150px;
}

.poster-2 {
    top: 50px;
    right: 180px;
    width: 100px;
    height: 130px;
}

.poster img {
    width: 100%;
    height: 70%;
    object-fit: cover;
}

.poster p {
    text-align: center;
    font-weight: bold;
    margin-top: 5px;
    font-size: 0.8rem;
}

.size-chart {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70%;
    gap: 10px;
}

/* Clock */
.wall-clock {
    position: absolute;
    top: 200px;
    right: 100px;
    width: 80px;
    height: 80px;
    background: white;
    border: 5px solid #8B4513;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.clock-hand {
    position: absolute;
    background: #333;
    transform-origin: bottom center;
}

.hour {
    width: 3px;
    height: 20px;
    animation: rotateHour 120s linear infinite;
}

.minute {
    width: 2px;
    height: 30px;
    animation: rotateMinute 10s linear infinite;
}

@keyframes rotateHour {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateMinute {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Teacher's Desk */
.teachers-desk {
    position: absolute;
    bottom: 200px;
    left: 50px;
    width: 300px;
    height: 150px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    border: 3px solid #654321;
    border-radius: 5px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Old Computer */
.old-computer {
    position: relative;
    width: 80px;
    height: 70px;
}

.monitor-screen {
    width: 80px;
    height: 60px;
    background: #000;
    border: 5px solid #C0C0C0;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.screen-content {
    color: #00FF00;
    font-size: 0.5rem;
    text-align: center;
    font-family: 'Courier New', monospace;
    animation: matrixScroll 5s linear infinite;
}

@keyframes matrixScroll {
    from { transform: translateY(100%); }
    to { transform: translateY(-100%); }
}

.computer-base {
    width: 60px;
    height: 10px;
    background: #C0C0C0;
    margin: 0 auto;
}

/* Microscope */
.microscope {
    position: relative;
    width: 40px;
    height: 60px;
}

.microscope-eyepiece {
    width: 20px;
    height: 30px;
    background: #333;
    border-radius: 50% 50% 0 0;
    margin: 0 auto;
}

.microscope-base {
    width: 40px;
    height: 20px;
    background: #666;
    border-radius: 5px;
    margin-top: 5px;
}

/* Book Stack */
.book-stack {
    display: flex;
    flex-direction: column;
}

.book {
    padding: 5px;
    margin: 2px 0;
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
    border-radius: 2px;
}

.book1 { background: #8B0000; color: white; }
.book2 { background: #006400; color: white; }
.book3 { background: #00008B; color: white; }

/* Apple */
.apple {
    font-size: 2rem;
    animation: appleBounce 3s ease-in-out infinite;
}

@keyframes appleBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(10deg); }
}

/* Terrarium */
.terrarium {
    position: absolute;
    bottom: 150px;
    right: 100px;
    width: 200px;
    height: 150px;
}

.glass-box {
    width: 100%;
    height: 130px;
    background: linear-gradient(135deg, rgba(173,216,230,0.3), rgba(144,238,144,0.3));
    border: 3px solid #4682B4;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.glass-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.terrarium-spider {
    position: absolute;
    bottom: 20px;
    left: 50%;
    font-size: 1.5rem;
    animation: spiderCrawl 10s infinite;
}

@keyframes spiderCrawl {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-30px); }
    50% { transform: translateX(30px); }
    75% { transform: translateX(-20px); }
}

.terrarium-plant {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 1.5rem;
}

.terrarium-rock {
    position: absolute;
    bottom: 10px;
    left: 20px;
    font-size: 1.2rem;
}

.terrarium-label {
    background: white;
    padding: 5px 10px;
    border: 2px solid #333;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 5px;
}

/* Window */
.classroom-window {
    position: absolute;
    top: 100px;
    right: 400px;
    width: 180px;
    height: 200px;
}

.window-frame {
    width: 100%;
    height: 170px;
    background: #87CEEB;
    border: 10px solid #8B4513;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
    position: relative;
}

.window-view {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #87CEEB 0%, #98FB98 100%);
    position: relative;
}

.cloud {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
}

.cloud1 {
    width: 40px;
    height: 20px;
    top: 20px;
    left: 20px;
    animation: cloudFloat 20s infinite;
}

.cloud2 {
    width: 50px;
    height: 25px;
    top: 40px;
    right: 20px;
    animation: cloudFloat 25s infinite reverse;
}

@keyframes cloudFloat {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}

.tree {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 60px solid #228B22;
}

.windowsill {
    width: 100%;
    height: 30px;
    background: #8B4513;
    border-top: 3px solid #654321;
    display: flex;
    justify-content: center;
    align-items: center;
}

.potted-plant {
    font-size: 1.5rem;
}

/* Student Desks */
.student-area {
    position: absolute;
    bottom: 50px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    gap: 30px;
}

.student-desk {
    width: 100px;
    height: 80px;
    background: linear-gradient(135deg, #DEB887, #D2B48C);
    border: 3px solid #8B7355;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.notebook {
    width: 60px;
    height: 40px;
    background: linear-gradient(180deg, #FFF, #F0F0F0);
    border: 2px solid #333;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.notebook-spiral {
    position: absolute;
    left: -5px;
    top: 0;
    bottom: 0;
    width: 5px;
    background: repeating-linear-gradient(180deg, #666 0px, #666 3px, transparent 3px, transparent 6px);
}

.notebook-text {
    font-size: 0.7rem;
    font-weight: bold;
    color: #00008B;
}

.pencil {
    font-size: 1.2rem;
    margin-top: 5px;
}

.magnifying-glass {
    font-size: 2rem;
    animation: magnifyMove 3s ease-in-out infinite;
}

@keyframes magnifyMove {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

.crayon-box {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.calculator {
    width: 50px;
    height: 60px;
    background: #333;
    border: 2px solid #666;
    border-radius: 5px;
    padding: 5px;
}

.calc-screen {
    background: #90EE90;
    color: #000;
    padding: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    text-align: right;
    margin-bottom: 5px;
}

/* Floor Items */
.classroom-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(180deg, #8B7355, #A0522D);
}

.backpack {
    position: absolute;
    bottom: 10px;
    left: 100px;
    font-size: 2.5rem;
}

.globe {
    position: absolute;
    bottom: 10px;
    right: 300px;
}

.globe-sphere {
    font-size: 3rem;
    animation: globeSpin 20s linear infinite;
}

@keyframes globeSpin {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

.classroom-rug {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 40px;
    background: repeating-linear-gradient(90deg, #8B0000 0px, #8B0000 20px, #006400 20px, #006400 40px);
    border-radius: 50%;
    opacity: 0.8;
}

.hidden-spider {
    opacity: 0;
    transition: opacity 0.5s;
}

.hidden-spider:hover {
    opacity: 1;
}

/* Bookshelf */
.bookshelf {
    position: absolute;
    top: 100px;
    left: 50px;
    width: 150px;
    height: 200px;
    background: #8B4513;
    border: 3px solid #654321;
    padding: 10px;
}

.shelf {
    background: #A0522D;
    height: 80px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-bottom: 3px solid #654321;
}

.spine {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background: linear-gradient(180deg, #8B0000, #A52A2A);
    color: white;
    padding: 5px;
    font-size: 0.7rem;
    height: 70px;
}

.jar {
    width: 40px;
    height: 60px;
    background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(200,200,200,0.5));
    border: 2px solid #666;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trophy {
    font-size: 2rem;
}

/* Door */
.classroom-door {
    position: absolute;
    top: 150px;
    left: 250px;
    width: 100px;
    height: 200px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    border: 5px solid #654321;
    border-radius: 5px;
    position: relative;
}

.door-window {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background: linear-gradient(135deg, rgba(135,206,235,0.5), rgba(176,196,222,0.5));
    border: 3px solid #654321;
}

.door-handle {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, #FFD700, #B8860B);
    border-radius: 50%;
    border: 2px solid #654321;
}

.door-sign {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 5px;
    border: 2px solid #333;
    font-size: 0.7rem;
    text-align: center;
    font-weight: bold;
}

/* Ceiling Fan */
.ceiling-fan {
    position: absolute;
    top: 30px;
    left: 60%;
    width: 100px;
    height: 100px;
}

.fan-blades {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #333, #666, #333, #666);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: fanSpin 2s linear infinite;
}

@keyframes fanSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Easter Eggs */
.easter-egg {
    position: absolute;
}

.outlet {
    bottom: 100px;
    left: 20px;
    font-size: 1.5rem;
}

.trash-can {
    bottom: 10px;
    right: 50px;
    font-size: 2rem;
}

.light-switch {
    top: 200px;
    left: 20px;
    font-size: 1.5rem;
}

/* UI Overlay */
.ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 100;
}

.ui-overlay > * {
    pointer-events: auto;
}

/* Hint Bubble */
.hint-bubble {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: floatHint 3s ease-in-out infinite;
}

@keyframes floatHint {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Progress Tracker */
.progress-tracker {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 3px solid #333;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.discoveries {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    width: 30px;
    height: 30px;
    background: #FFD700;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

/* Helper Character */
.helper-character {
    position: fixed;
    bottom: 20px;
    left: 20px;
    animation: helperFloat 5s ease-in-out infinite;
}

@keyframes helperFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.helper-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.speech-bubble {
    background: white;
    padding: 15px;
    border-radius: 20px;
    border: 3px solid #333;
    max-width: 200px;
    position: relative;
    animation: bubblePulse 2s ease-in-out infinite;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #333;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

@keyframes bubblePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Sound Toggle */
.sound-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4169E1, #1E90FF);
    border: 3px solid #333;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.sound-toggle:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #1E90FF, #00BFFF);
}

/* Site Navigation */
.site-navigation {
    position: fixed;
    top: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-link {
    padding: 10px 20px;
    background: white;
    color: #333;
    text-decoration: none;
    border: 3px solid #333;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s;
    text-align: center;
}

.nav-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.nav-link.wild {
    background: linear-gradient(135deg, #FF00FF, #00FFFF);
    color: white;
}

.nav-link.teacher {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
}

/* Modal */
.content-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    animation: modalFadeIn 0.3s ease;
}

.content-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #FFF, #F0F0F0);
    border: 5px solid #333;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: #FF0000;
    color: white;
    border: 3px solid #333;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    transform: rotate(90deg);
    background: #CC0000;
}

.modal-header {
    background: linear-gradient(135deg, #4169E1, #1E90FF);
    color: white;
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid #333;
}

.modal-body {
    padding: 30px;
    min-height: 300px;
}

.modal-footer {
    background: #F0F0F0;
    padding: 20px;
    text-align: center;
    border-top: 3px solid #333;
}

.modal-btn {
    padding: 10px 30px;
    background: linear-gradient(135deg, #32CD32, #228B22);
    color: white;
    border: 3px solid #333;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Content Specific Styles */
.fact-carousel {
    position: relative;
    height: 200px;
    margin: 20px 0;
}

.fact-slide-cdrom {
    display: none;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.fact-slide-cdrom.active {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.video-thumbnail {
    background: linear-gradient(135deg, #333, #666);
    border: 3px solid #333;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.video-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.play-button {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Quiz Game */
.quiz-game {
    text-align: center;
}

.quiz-question-cdrom {
    background: linear-gradient(135deg, #E6E6FA, #D8BFD8);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.quiz-answers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.answer-btn {
    padding: 15px;
    background: linear-gradient(135deg, #87CEEB, #4682B4);
    color: white;
    border: 3px solid #333;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.answer-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #4682B4, #1E90FF);
}

.answer-btn.correct {
    background: linear-gradient(135deg, #32CD32, #228B22);
    animation: correctPulse 0.5s;
}

.answer-btn.wrong {
    background: linear-gradient(135deg, #FF6347, #DC143C);
    animation: wrongShake 0.5s;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.quiz-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-top: 20px;
}

/* Virtual Pet */
.virtual-pet-container {
    text-align: center;
    background: linear-gradient(135deg, #F0E68C, #DEB887);
    padding: 30px;
    border-radius: 20px;
    border: 3px solid #333;
}

.pet-spider {
    font-size: 5rem;
    animation: petBounce 2s ease-in-out infinite;
}

@keyframes petBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(-5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(5deg); }
}

.pet-stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    font-size: 1.1rem;
}

.pet-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pet-actions button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: 3px solid #333;
    border-radius: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.pet-actions button:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #FFA500, #FF8C00);
}

.pet-message {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    font-weight: bold;
    color: #333;
}

/* Gallery */
.gallery-viewer {
    text-align: center;
}

.gallery-main {
    margin: 20px 0;
}

.gallery-main img {
    max-width: 100%;
    max-height: 400px;
    border: 5px solid #333;
    border-radius: 10px;
    transition: transform 0.3s;
}

.gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.gallery-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid #333;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-thumbnails img:hover {
    transform: scale(1.1);
    border-color: #FFD700;
}

.zoom-controls {
    margin-top: 20px;
}

.zoom-controls button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #4169E1, #1E90FF);
    color: white;
    border: 3px solid #333;
    border-radius: 10px;
    font-size: 1.2rem;
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.zoom-controls button:hover {
    transform: scale(1.05);
}

/* Hunt Game */
.hunt-game {
    position: relative;
}

.hunt-scene {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #98FB98, #90EE90);
    border: 3px solid #333;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.hunt-spider {
    position: absolute;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    animation: spiderHide 3s ease-in-out infinite;
}

@keyframes spiderHide {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

.hunt-spider:hover {
    transform: scale(1.5);
}

.hunt-spider.found {
    animation: spiderFound 0.5s ease;
    pointer-events: none;
}

@keyframes spiderFound {
    0% { transform: scale(1); }
    50% { transform: scale(2) rotate(360deg); }
    100% { transform: scale(0); opacity: 0; }
}

.hunt-score {
    margin-top: 20px;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .classroom-bg {
        transform: scale(0.8);
        transform-origin: top left;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-answers {
        grid-template-columns: 1fr;
    }
}