* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 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: #fff3e0;
    border-left: 5px solid #ff9800;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.story-box p {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 10px;
}

.story-box p:last-child {
    margin-bottom: 0;
}

.story-box .question {
    color: #d84315;
    font-weight: bold;
    font-size: 18px;
    margin-top: 15px;
}

.visual-container {
    display: flex;
    gap: 30px;
    justify-content: space-around;
    align-items: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

/* Thermometer Styles */
.thermometer-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.thermometer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.thermometer-bulb {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    z-index: 2;
}

.thermometer-tube {
    width: 30px;
    height: 300px;
    background: rgba(200, 200, 200, 0.3);
    border: 3px solid #999;
    border-radius: 15px;
    position: relative;
    margin-top: -15px;
    overflow: hidden;
}

.mercury {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, #ff6b6b 0%, #ff8787 100%);
    border-radius: 15px 15px 0 0;
    transition: height 1s ease;
}

.temperature-scale {
    position: absolute;
    left: 50px;
    top: 60px;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.scale-mark {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

.scale-mark.highlight {
    color: #ff6b6b;
    font-size: 16px;
}

.scale-mark span {
    white-space: nowrap;
}

/* Number Line Visual */
.number-line-visual {
    flex: 1;
    min-width: 280px;
}

.number-line-visual h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
}

.number-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #f5f5f5;
    padding: 30px;
    border-radius: 15px;
    border: 3px dashed #ddd;
}

.number-point {
    background: white;
    border: 3px solid #4caf50;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #4caf50;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.number-point.end {
    border-color: #2196f3;
    color: #2196f3;
    font-size: 32px;
}

.number-point small {
    font-size: 12px;
    font-weight: normal;
}

.arrow {
    position: relative;
    display: flex;
    align-items: center;
}

.arrow-line {
    width: 60px;
    height: 4px;
    background: #ff9800;
}

.arrow-head {
    font-size: 32px;
    color: #ff9800;
    line-height: 1;
    margin-left: -5px;
}

.arrow-label {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff9800;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

/* Choices */
.choices-container {
    margin: 30px 0;
}

.choices-container h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
}

.choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.choice-btn {
    background: white;
    border: 3px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.choice-btn:hover:not(:disabled) {
    border-color: #4facfe;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.3);
}

.choice-letter {
    background: #f0f0f0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    color: #666;
}

.choice-text {
    font-weight: bold;
    color: #333;
}

.choice-btn.correct {
    background: #4caf50;
    border-color: #45a049;
    color: white;
    animation: correct 0.5s ease;
}

.choice-btn.correct .choice-letter {
    background: white;
    color: #4caf50;
}

.choice-btn.correct .choice-text {
    color: white;
}

.choice-btn.incorrect {
    background: #f44336;
    border-color: #da190b;
    animation: shake 0.5s ease;
}

.choice-btn.revealed {
    background: #ff9800;
    border-color: #f57c00;
    color: white;
}

.choice-btn.revealed .choice-letter {
    background: white;
    color: #ff9800;
}

.choice-btn.revealed .choice-text {
    color: white;
}

.choice-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

@keyframes correct {
    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); }
}

.button-container {
    display: flex;
    justify-content: center;
    margin: 30px 0 20px 0;
}

.reset-btn {
    background: #4facfe;
    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: #3d96e8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.feedback {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    min-height: 30px;
    margin: 20px 0;
}

.feedback.success {
    color: #4caf50;
}

.feedback.error {
    color: #f44336;
}

.feedback.warning {
    color: #ff9800;
}

.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;
}

/* Balloons */
.balloons-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.balloon {
    position: absolute;
    bottom: -150px;
    font-size: 60px;
    animation: rise 4s ease-in forwards;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

@keyframes rise {
    0% {
        bottom: -150px;
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
    100% {
        bottom: 110vh;
        opacity: 0;
        transform: translateX(var(--drift, 0px)) rotate(var(--rotate, 0deg));
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 26px;
    }

    .visual-container {
        flex-direction: column;
        gap: 30px;
    }

    .choices {
        grid-template-columns: 1fr;
    }

    .thermometer-tube {
        height: 250px;
    }

    .temperature-scale {
        gap: 30px;
    }

    .number-line {
        padding: 20px 15px;
    }

    .number-point {
        width: 70px;
        height: 70px;
        font-size: 16px;
    }

    .arrow-line {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .story-box {
        padding: 15px;
    }

    .choice-btn {
        padding: 15px;
        font-size: 16px;
    }

    .choice-letter {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
