* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #5c6bc0 0%, #3949ab 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, #e8eaf6 0%, #c5cae9 100%);
    border-left: 5px solid #3949ab;
    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: #1a237e;
    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;
}

/* Flag Section */
.flag-section {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.flag-container {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 3px solid #1976d2;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.flag-svg {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
}

/* Flag wave animation */
.flag-wave {
    animation: wave 3s ease-in-out infinite;
    transform-origin: 280px 280px;
}

@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(2deg);
    }
    75% {
        transform: rotate(-2deg);
    }
}

/* Sector symbol pulse */
.sector-symbol {
    animation: sector-pulse 2s ease-in-out infinite;
}

@keyframes sector-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Bird animation */
.bird {
    animation: bird-fly 4s ease-in-out infinite;
}

.bird-1 {
    animation-delay: 0s;
}

.bird-2 {
    animation-delay: 2s;
}

@keyframes bird-fly {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(30px, -15px);
    }
    50% {
        transform: translate(60px, -5px);
    }
    75% {
        transform: translate(30px, 10px);
    }
}

/* 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, #fff9c4 0%, #fff59d 100%);
    border-radius: 10px;
    border-left: 5px solid #f57f17;
}

.question-text {
    font-size: 18px;
    color: #555;
    text-align: center;
    margin-bottom: 25px;
}

/* Input Container */
.input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 25px 0;
    padding: 30px;
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    border-radius: 15px;
    border: 3px solid #5c6bc0;
}

.input-label {
    font-size: 22px;
    font-weight: bold;
    color: #3949ab;
}

.answer-input {
    width: 200px;
    padding: 15px 20px;
    font-size: 20px;
    border: 3px solid #7986cb;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.answer-input:focus {
    outline: none;
    border-color: #3949ab;
    box-shadow: 0 0 15px rgba(57, 73, 171, 0.3);
}

.unit {
    font-size: 22px;
    font-weight: bold;
    color: #3949ab;
}

.check-btn {
    background: #5c6bc0;
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.check-btn:hover {
    background: #3949ab;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(92, 107, 192, 0.4);
}

.check-btn:active {
    transform: translateY(0);
}

/* 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: #ff9800;
    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: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

.reset-btn:active {
    transform: translateY(0);
}

/* Thumbs Up Animation */
.thumbs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

.thumbs-container.active {
    display: block;
}

.thumb-emoji {
    position: absolute;
    font-size: 70px;
    animation: thumbs-rise 2s ease-out forwards;
    opacity: 0;
}

.thumb-emoji:nth-child(1) { left: 10%; animation-delay: 0s; }
.thumb-emoji:nth-child(2) { left: 20%; animation-delay: 0.1s; }
.thumb-emoji:nth-child(3) { left: 30%; animation-delay: 0.2s; }
.thumb-emoji:nth-child(4) { left: 40%; animation-delay: 0.3s; }
.thumb-emoji:nth-child(5) { left: 50%; animation-delay: 0.4s; }
.thumb-emoji:nth-child(6) { left: 60%; animation-delay: 0.5s; }
.thumb-emoji:nth-child(7) { left: 70%; animation-delay: 0.6s; }
.thumb-emoji:nth-child(8) { left: 80%; animation-delay: 0.7s; }
.thumb-emoji:nth-child(9) { left: 90%; animation-delay: 0.8s; }
.thumb-emoji:nth-child(10) { left: 15%; animation-delay: 0.9s; }

@keyframes thumbs-rise {
    0% {
        bottom: -100px;
        opacity: 0;
        transform: rotate(0deg) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: rotate(15deg) scale(1.2);
    }
    100% {
        bottom: 110%;
        opacity: 0;
        transform: rotate(-15deg) scale(0.8);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .info-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 26px;
    }

    .flag-svg {
        max-width: 450px;
    }

    .question-label {
        font-size: 18px;
    }

    .input-container {
        padding: 20px;
    }

    .answer-input {
        width: 150px;
        font-size: 18px;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 22px;
    }

    .story-text {
        font-size: 16px;
    }

    .flag-svg {
        max-width: 350px;
    }

    .question-label {
        font-size: 16px;
    }

    .input-container {
        flex-direction: column;
        gap: 10px;
    }

    .answer-input {
        width: 100%;
    }

    .feedback {
        font-size: 18px;
    }
}
