* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #42a5f5 0%, #1976d2 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: 1000px;
    width: 100%;
    position: relative;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 25px;
    font-size: 32px;
}

/* Story Box */
.story-box {
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
    border-left: 5px solid #0288d1;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.story-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.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: #01579b;
    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: 18px;
    text-align: center;
}

/* Sprinkler Section */
.sprinkler-section {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.sprinkler-container {
    background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%);
    border: 3px solid #689f38;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sprinkler-svg {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
}

.sprinkler-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Water sector animation */
.water-sector {
    animation: water-pulse 2s ease-in-out infinite;
}

@keyframes water-pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.9;
    }
}

/* Spray arcs animation */
.spray-arc-1 {
    animation: spray-1 3s ease-in-out infinite;
}

.spray-arc-2 {
    animation: spray-2 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

.spray-arc-3 {
    animation: spray-3 3s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes spray-1 {
    0%, 100% {
        opacity: 0.2;
        stroke-width: 15;
    }
    50% {
        opacity: 0.6;
        stroke-width: 20;
    }
}

@keyframes spray-2 {
    0%, 100% {
        opacity: 0.15;
        stroke-width: 12;
    }
    50% {
        opacity: 0.5;
        stroke-width: 16;
    }
}

@keyframes spray-3 {
    0%, 100% {
        opacity: 0.1;
        stroke-width: 10;
    }
    50% {
        opacity: 0.4;
        stroke-width: 14;
    }
}

/* Sprinkler head rotation */
.sprinkler-head {
    animation: rotate-sprinkler 4s linear infinite;
    transform-origin: 300px 300px;
}

@keyframes rotate-sprinkler {
    0% {
        transform: rotate(-60deg);
    }
    50% {
        transform: rotate(60deg);
    }
    100% {
        transform: rotate(-60deg);
    }
}

/* Water droplets animation */
.droplet {
    animation: droplet-fall 2s ease-in infinite;
}

.droplet-1 { animation-delay: 0s; }
.droplet-2 { animation-delay: 0.3s; }
.droplet-3 { animation-delay: 0.6s; }
.droplet-4 { animation-delay: 0.9s; }
.droplet-5 { animation-delay: 1.2s; }
.droplet-6 { animation-delay: 1.5s; }

@keyframes droplet-fall {
    0% {
        transform: translateY(-20px) scale(1);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(40px) scale(0.5);
        opacity: 0;
    }
}

/* Butterfly animation */
.butterfly {
    animation: butterfly-flutter 3s ease-in-out infinite;
}

@keyframes butterfly-flutter {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(15px, -10px) rotate(10deg);
    }
    50% {
        transform: translate(30px, 0px) rotate(-5deg);
    }
    75% {
        transform: translate(15px, 10px) rotate(5deg);
    }
}

/* Info Section */
.info-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 3px solid #1976d2;
    border-radius: 15px;
    padding: 20px;
}

.info-label {
    font-size: 18px;
    font-weight: bold;
    color: #0d47a1;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1976d2;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    font-size: 16px;
    color: #333;
}

.value {
    color: #d84315;
    font-weight: bold;
    font-size: 18px;
}

.formula-text {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #1565c0;
    font-weight: bold;
}

/* Question Section */
.question-section {
    margin: 30px 0;
}

.question-label {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-radius: 10px;
    border-left: 5px solid #9c27b0;
}

.question-text {
    font-size: 18px;
    color: #555;
    text-align: center;
    margin-bottom: 25px;
}

/* Choices Container */
.choices-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.choice-card {
    background: white;
    border: 3px solid #0288d1;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 80px;
}

.choice-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(2, 136, 209, 0.3);
    border-color: #01579b;
}

.choice-label {
    background: #0288d1;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.choice-content {
    font-size: 22px;
    color: #333;
    font-weight: bold;
    flex-grow: 1;
    text-align: center;
}

.choice-card.correct {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    border-color: #4caf50;
    animation: correct-pulse 0.6s ease;
}

.choice-card.correct .choice-label {
    background: #4caf50;
}

.choice-card.shake {
    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-top: 20px;
    padding: 15px;
    border-radius: 10px;
}

.feedback.success {
    color: #4caf50;
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
}

.feedback.error {
    color: #f44336;
    background: linear-gradient(135deg, #ffcdd2 0%, #ef9a9a 100%);
}

/* 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);
}

/* Clapping Animation */
.clapping-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

.clapping-container.active {
    display: block;
}

.clap-emoji {
    position: absolute;
    font-size: 60px;
    animation: clapping 1.5s ease-out forwards;
    opacity: 0;
}

.clap-emoji:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.clap-emoji:nth-child(2) { top: 30%; left: 25%; animation-delay: 0.1s; }
.clap-emoji:nth-child(3) { top: 40%; left: 35%; animation-delay: 0.2s; }
.clap-emoji:nth-child(4) { top: 50%; left: 45%; animation-delay: 0.3s; }
.clap-emoji:nth-child(5) { top: 60%; left: 55%; animation-delay: 0.4s; }
.clap-emoji:nth-child(6) { top: 25%; right: 15%; animation-delay: 0.5s; }
.clap-emoji:nth-child(7) { top: 35%; right: 25%; animation-delay: 0.6s; }
.clap-emoji:nth-child(8) { top: 45%; right: 35%; animation-delay: 0.7s; }
.clap-emoji:nth-child(9) { top: 55%; right: 45%; animation-delay: 0.8s; }
.clap-emoji:nth-child(10) { top: 65%; right: 55%; animation-delay: 0.9s; }

@keyframes clapping {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(15deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) rotate(-15deg);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .info-section {
        grid-template-columns: 1fr;
    }

    .choices-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 26px;
    }

    .sprinkler-svg {
        max-width: 450px;
    }

    .question-label {
        font-size: 18px;
    }

    .choice-content {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 22px;
    }

    .story-text {
        font-size: 16px;
    }

    .sprinkler-svg {
        max-width: 350px;
    }

    .question-label {
        font-size: 16px;
    }

    .choice-content {
        font-size: 18px;
    }

    .feedback {
        font-size: 18px;
    }
}
