* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
    position: relative;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 25px;
    font-size: 32px;
}

.story-box {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
    border-left: 5px solid #f39c12;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.research-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.scientist-icon {
    font-size: 50px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.header-text strong {
    color: #d35400;
    font-size: 20px;
    display: block;
}

.header-text p {
    color: #666;
    font-size: 14px;
    margin-top: 3px;
}

.story-text {
    color: #333;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 15px;
}

.story-text strong {
    color: #e67e22;
    font-size: 18px;
    font-family: 'Courier New', monospace;
}

.question {
    color: #333;
    line-height: 1.8;
    font-size: 17px;
    font-weight: 500;
    text-align: center;
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

/* Solar Panel Section */
.solar-section {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    padding: 40px;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.solar-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.panel-frame {
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
}

.panel-cells {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    height: 100%;
}

.cell {
    background: linear-gradient(135deg, #1e3799 0%, #0c2461 100%);
    border-radius: 5px;
    position: relative;
    animation: cell-glow 3s ease-in-out infinite;
}

@keyframes cell-glow {
    0%, 100% { 
        box-shadow: inset 0 0 10px rgba(33, 150, 243, 0.5);
    }
    50% { 
        box-shadow: inset 0 0 20px rgba(33, 150, 243, 0.8);
    }
}

.cell:nth-child(1) { animation-delay: 0s; }
.cell:nth-child(2) { animation-delay: 0.2s; }
.cell:nth-child(3) { animation-delay: 0.4s; }
.cell:nth-child(4) { animation-delay: 0.6s; }
.cell:nth-child(5) { animation-delay: 0.8s; }
.cell:nth-child(6) { animation-delay: 1s; }
.cell:nth-child(7) { animation-delay: 1.2s; }
.cell:nth-child(8) { animation-delay: 1.4s; }
.cell:nth-child(9) { animation-delay: 1.6s; }

.film-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 10px;
    pointer-events: none;
}

.film-shine {
    position: absolute;
    top: 20px;
    left: 30px;
    width: 80px;
    height: 120px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    transform: rotate(-20deg);
    animation: shine-move 4s ease-in-out infinite;
}

@keyframes shine-move {
    0%, 100% { transform: rotate(-20deg) translateX(0); }
    50% { transform: rotate(-20deg) translateX(20px); }
}

.sun-rays {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.ray {
    font-size: 50px;
    animation: ray-pulse 2s ease-in-out infinite;
}

.ray-1 { animation-delay: 0s; }
.ray-2 { animation-delay: 0.3s; }
.ray-3 { animation-delay: 0.6s; }

@keyframes ray-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Measurement Card */
.measurement-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 30px auto;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(238, 90, 111, 0.4);
    text-align: center;
    color: white;
}

.card-icon {
    font-size: 45px;
    margin-bottom: 10px;
}

.measurement-label {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.measurement-value {
    font-size: 36px;
    font-weight: bold;
    margin: 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Courier New', monospace;
}

.measurement-note {
    font-size: 16px;
    opacity: 0.9;
    font-style: italic;
}

/* Choices Section */
.choices-section {
    margin: 40px 0;
}

.choices-section h3 {
    color: #333;
    text-align: center;
    margin-bottom: 25px;
    font-size: 20px;
}

.choices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.choice-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8edf2 100%);
    border: 3px solid #bdbdbd;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.choice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
    border-color: #f39c12;
}

.choice-label {
    position: absolute;
    top: 10px;
    left: 15px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.choice-content {
    text-align: center;
    margin-top: 15px;
}

.choice-text {
    color: #333;
    font-size: 26px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.choice-card.correct {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border-color: #2e7d32;
    animation: correct-pulse 0.6s ease;
}

.choice-card.correct .choice-text,
.choice-card.correct .choice-label {
    color: white;
}

.choice-card.incorrect {
    animation: shake 0.5s ease;
}

@keyframes correct-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.choice-card.disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* Feedback */
.feedback {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    min-height: 30px;
    margin: 20px 0;
}

.feedback.success {
    color: #4caf50;
}

.feedback.error {
    color: #f44336;
}

/* Reset Button */
.reset-btn {
    display: block;
    margin: 20px auto;
    background: #4caf50;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: #388e3c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.reset-btn:active {
    transform: translateY(0);
}

/* Info Box */
.info-box {
    background: #e8f5e9;
    border-left: 5px solid #4caf50;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.info-box h3 {
    color: #2e7d32;
    margin-bottom: 10px;
    font-size: 18px;
}

.info-box p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* Thumbs Up Animation */
.thumbs-up-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

.thumbs-up-animation.active {
    display: block;
}

.thumb-emoji {
    position: absolute;
    font-size: 80px;
    animation: thumbsUp 1.5s ease-out forwards;
    opacity: 0;
}

.thumb-emoji:nth-child(1) {
    left: 15%;
    top: 25%;
    animation-delay: 0s;
}

.thumb-emoji:nth-child(2) {
    left: 45%;
    top: 15%;
    animation-delay: 0.2s;
}

.thumb-emoji:nth-child(3) {
    left: 75%;
    top: 30%;
    animation-delay: 0.4s;
}

.thumb-emoji:nth-child(4) {
    left: 30%;
    top: 55%;
    animation-delay: 0.6s;
}

.thumb-emoji:nth-child(5) {
    left: 65%;
    top: 60%;
    animation-delay: 0.8s;
}

.thumb-emoji:nth-child(6) {
    left: 85%;
    top: 45%;
    animation-delay: 1s;
}

.thumb-emoji:nth-child(7) {
    left: 20%;
    top: 75%;
    animation-delay: 1.2s;
}

.thumb-emoji:nth-child(8) {
    left: 55%;
    top: 80%;
    animation-delay: 1.4s;
}

@keyframes thumbsUp {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(0) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: scale(1.3) translateY(-30px) rotate(10deg);
    }
    40% {
        transform: scale(1) translateY(-50px) rotate(-5deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(-120px) rotate(15deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 26px;
    }

    .choices-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .solar-section {
        padding: 25px;
    }

    .panel-frame {
        transform: scale(0.85);
    }

    .measurement-value {
        font-size: 28px;
    }

    .choice-text {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .story-box {
        padding: 15px;
    }

    .story-text,
    .question {
        font-size: 14px;
    }

    .panel-frame {
        transform: scale(0.7);
    }

    .sun-rays {
        gap: 15px;
    }

    .ray {
        font-size: 35px;
    }

    .choice-text {
        font-size: 20px;
    }
}
