/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #87CEEB 0%, #FFB6C1 50%, #FFA07A 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    /* Prevent zoom on double-tap for better mobile experience */
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Countdown Section */
.countdown-section {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.title {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.1rem;
    color: #34495e;
    font-weight: 400;
    margin-top: 10px;
    opacity: 0.9;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: 600;
    color: #e74c3c;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.countdown-number:hover {
    transform: scale(1.05);
}

.countdown-label {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 500;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scene Layout */
.scene {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

/* Sky Zone */
.sky-zone {
    height: 35vh;
    position: relative;
    background: linear-gradient(to bottom, #87CEEB 0%, #FFB6C1 30%, #FFE4E1 60%, #90EE90 100%);
    overflow: hidden;
}

/* Sky to Meadow Transition */
.sky-zone::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent 0%, rgba(144, 238, 144, 0.3) 50%, rgba(144, 238, 144, 0.8) 100%);
    pointer-events: none;
}

/* Atmospheric Particles */
.sky-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 200px 200px;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

.clouds {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    opacity: 0.7;
    filter: blur(1px);
}

.cloud-1 {
    width: 80px;
    height: 40px;
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.cloud-2 {
    width: 60px;
    height: 30px;
    top: 40%;
    right: 15%;
    animation: float 8s ease-in-out infinite reverse;
}

.cloud-3 {
    width: 100px;
    height: 50px;
    top: 60%;
    left: 50%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-10px) translateX(10px); }
}

/* Paulchen the Flying Dragon */
.paulchen {
    position: absolute;
    width: 140px;
    height: 105px;
    top: 20%;
    left: 10%;
    z-index: 15;
    cursor: pointer;
    animation: paulchenFly 12s ease-in-out infinite;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
    /* Ensure proper touch handling */
    touch-action: manipulation;
}

.paulchen:hover {
    transform: scale(1.1);
    filter: drop-shadow(4px 8px 12px rgba(0, 0, 0, 0.4));
}

.paulchen-body {
    position: absolute;
    width: 105px;
    height: 70px;
    background: linear-gradient(135deg, #228B22 0%, #32CD32 50%, #228B22 100%);
    border-radius: 42px 42px 35px 35px;
    top: 17px;
    left: 17px;
    box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.3), inset -2px -2px 4px rgba(0, 0, 0, 0.2);
}

.paulchen-head {
    position: absolute;
    width: 70px;
    height: 50px;
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    border-radius: 35px 35px 28px 28px;
    top: 8px;
    left: 80px;
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.3), inset -1px -1px 3px rgba(0, 0, 0, 0.2);
}

.paulchen-eye {
    position: absolute;
    width: 11px;
    height: 14px;
    background: #FFFFFF;
    border-radius: 50%;
    top: 14px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.paulchen-eye::after {
    content: '';
    width: 6px;
    height: 7px;
    background: #000000;
    border-radius: 50%;
    position: absolute;
}

.eye-left {
    left: 14px;
}

.eye-right {
    right: 14px;
}

/* Paulchen Ears */
.paulchen-ear {
    position: absolute;
    width: 8px;
    height: 12px;
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    border-radius: 8px 8px 0 0;
    top: -2px;
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.3), inset -1px -1px 2px rgba(0, 0, 0, 0.2);
}

.ear-left {
    left: 8px;
    transform: rotate(-15deg);
}

.ear-right {
    right: 8px;
    transform: rotate(15deg);
}

.paulchen-nostril {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #C0392B;
    border-radius: 50%;
    top: 30px;
}

.nostril-left {
    left: 24px;
}

.nostril-right {
    right: 24px;
}

.paulchen-mouth {
    position: absolute;
    width: 30px;
    height: 8px;
    top: 38px;
    left: 50%;
    transform: translateX(-50%);
}

.paulchen-mouth::before {
    content: '';
    position: absolute;
    width: 28px;
    height: 5px;
    border: 2px solid #000000;
    border-top: none;
    border-radius: 0 0 10px 10px;
    top: 0;
    left: 0;
}

.paulchen-wing {
    position: absolute;
    width: 45px;
    height: 28px;
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    border-radius: 28px 8px 8px 28px;
    top: 25px;
    animation: wingFlap 0.8s ease-in-out infinite;
}

.wing-left {
    left: 5px;
    transform-origin: right center;
    animation-delay: 0s;
}

.wing-right {
    right: 5px;
    transform-origin: left center;
    animation-delay: 0.4s;
}

.paulchen-tail {
    position: absolute;
    width: 35px;
    height: 14px;
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    border-radius: 14px 7px 7px 14px;
    top: 45px;
    left: -5px;
    transform-origin: left center;
    animation: tailWag 2s ease-in-out infinite;
    z-index: -1;
}

/* Paulchen Paws */
.paulchen-paw {
    position: absolute;
    width: 12px;
    height: 8px;
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    border-radius: 8px 8px 4px 4px;
    bottom: 12px;
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.3), inset -1px -1px 2px rgba(0, 0, 0, 0.2);
}

.paw-left {
    left: 35px;
}

.paw-right {
    right: 35px;
}

@keyframes paulchenFly {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
    }
    25% { 
        transform: translate(150px, -20px) rotate(5deg); 
    }
    50% { 
        transform: translate(300px, 0px) rotate(0deg); 
    }
    75% { 
        transform: translate(150px, 20px) rotate(-5deg); 
    }
}

@keyframes wingFlap {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(60deg); }
}

@keyframes tailWag {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

/* Meadow Zone */
.meadow-zone {
    height: 65vh;
    position: relative;
    background: linear-gradient(to bottom, #90EE90 0%, #32CD32 40%, #228B22 70%, #006400 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    overflow: hidden;
}

/* Atmospheric Elements */
.meadow-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255, 182, 193, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.windmills {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.windmill {
    position: absolute;
    width: 55px;
    height: 82px;
    background: linear-gradient(to bottom, #8B4513 0%, #A0522D 100%);
    border-radius: 7px 7px 0 0;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2; /* Between tulips - behind lower tulips, in front of higher tulips */
}

/* Windmill Roof */
.windmill-roof {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 19px;
    background: linear-gradient(to bottom, #654321 0%, #8B4513 100%);
    border-radius: 30px 30px 0 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Windmill Door */
.windmill::after {
    content: '';
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 25px;
    background: linear-gradient(to bottom, #654321 0%, #8B4513 100%);
    border-radius: 3px 3px 0 0;
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.2), inset -1px -1px 2px rgba(0, 0, 0, 0.3);
}

/* Windmill Window */
.windmill::before {
    content: '';
    position: absolute;
    top: 27px;
    left: 50%;
    transform: translateX(-50%);
    width: 11px;
    height: 11px;
    background: linear-gradient(135deg, #87CEEB 0%, #B0E0E6 100%);
    border-radius: 50%;
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4), inset -1px -1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid #654321;
}

/* Windmill Rotor */
.windmill-rotor {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 16px;
    background: linear-gradient(to bottom, #CD853F 0%, #DEB887 100%);
    border-radius: 8px;
    animation: rotate 4s linear infinite;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.windmill-1 {
    left: 15%;
    bottom: 20%;
}

.windmill-2 {
    right: 20%;
    bottom: 30%;
}

@keyframes rotate {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}



/* Netherlands Tulip Field */
.tulip-field {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tulip {
    position: absolute;
    width: 20px;
    height: 35px;
    animation: tulipSway 4s ease-in-out infinite;
}

/* Tulip Flower (main petals) */
.tulip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 18px;
    background: 
        linear-gradient(to bottom, #FF69B4 0%, #FF1493 60%, #DC143C 100%),
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    border-radius: 0 0 10px 10px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

/* Tulip Petal Details (highlights) */
.tulip::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 18px;
    background: 
        radial-gradient(ellipse at 25% 15%, rgba(255, 255, 255, 0.5) 0%, transparent 40%),
        radial-gradient(ellipse at 75% 25%, rgba(255, 255, 255, 0.3) 0%, transparent 45%),
        linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.2) 30%, rgba(255, 255, 255, 0.1) 60%, transparent 100%);
    border-radius: 0 0 10px 10px;
    pointer-events: none;
}

/* Tulip Stem */
.tulip {
    background: linear-gradient(to bottom, #228B22 0%, #32CD32 50%, #228B22 100%);
    width: 3px;
    height: 35px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Individual Tulip Positioning - Scattered Distribution with Depth */
.tulip-1 {
    left: 8%;
    bottom: 35%;
    animation-delay: 0s;
    z-index: 1; /* Behind windmills (higher up) */
}

.tulip-2 {
    left: 12%;
    bottom: 22%;
    animation-delay: 0.8s;
    z-index: 3; /* In front of windmills (lower down) */
}

.tulip-3 {
    left: 25%;
    bottom: 38%;
    animation-delay: 1.6s;
    z-index: 1; /* Behind windmills (higher up) */
}

.tulip-4 {
    left: 32%;
    bottom: 18%;
    animation-delay: 0.4s;
    z-index: 3; /* In front of windmills (lower down) */
}

.tulip-5 {
    left: 40%;
    bottom: 42%;
    animation-delay: 1.2s;
    z-index: 1; /* Behind windmills (higher up) */
}

.tulip-6 {
    left: 47%;
    bottom: 24%;
    animation-delay: 0.6s;
    z-index: 3; /* In front of windmills (lower down) */
}

.tulip-7 {
    left: 54%;
    bottom: 36%;
    animation-delay: 1.4s;
    z-index: 1; /* Behind windmills (higher up) */
}

.tulip-8 {
    left: 61%;
    bottom: 20%;
    animation-delay: 0.2s;
    z-index: 3; /* In front of windmills (lower down) */
}

.tulip-9 {
    left: 68%;
    bottom: 40%;
    animation-delay: 1.0s;
    z-index: 1; /* Behind windmills (higher up) */
}

.tulip-10 {
    left: 75%;
    bottom: 26%;
    animation-delay: 0.8s;
    z-index: 3; /* In front of windmills (lower down) */
}

.tulip-11 {
    left: 82%;
    bottom: 34%;
    animation-delay: 1.6s;
    z-index: 1; /* Behind windmills (higher up) */
}

.tulip-12 {
    left: 88%;
    bottom: 28%;
    animation-delay: 0.4s;
    z-index: 3; /* In front of windmills (lower down) */
}

/* Color Variations */
.tulip-2::before,
.tulip-5::before,
.tulip-8::before,
.tulip-11::before {
    background: 
        linear-gradient(to bottom, #FFD700 0%, #FFA500 60%, #FF8C00 100%),
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
}

.tulip-3::before,
.tulip-6::before,
.tulip-9::before,
.tulip-12::before {
    background: 
        linear-gradient(to bottom, #FF69B4 0%, #FF1493 60%, #DC143C 100%),
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
}

.tulip-4::before,
.tulip-7::before,
.tulip-10::before {
    background: 
        linear-gradient(to bottom, #FF1493 0%, #DC143C 60%, #B22222 100%),
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
}

@keyframes tulipSway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(3deg); }
}

/* Additional Dutch Landscape Elements */
.grass-patches {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.grass-patch {
    position: absolute;
    width: 20px;
    height: 15px;
    background: linear-gradient(to bottom, #228B22 0%, #32CD32 100%);
    border-radius: 10px 10px 0 0;
    opacity: 0.8;
}

.grass-patch-1 {
    left: 10%;
    bottom: 10%;
    animation: grassSway 4s ease-in-out infinite;
}

.grass-patch-2 {
    left: 35%;
    bottom: 15%;
    animation: grassSway 4s ease-in-out infinite 1s;
}

.grass-patch-3 {
    right: 25%;
    bottom: 12%;
    animation: grassSway 4s ease-in-out infinite 2s;
}

.grass-patch-4 {
    right: 10%;
    bottom: 8%;
    animation: grassSway 4s ease-in-out infinite 3s;
}

.grass-patch-5 {
    left: 70%;
    bottom: 18%;
    animation: grassSway 4s ease-in-out infinite 1.5s;
}

@keyframes sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
}

@keyframes grassSway {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(3deg) scale(1.1); }
}

/* Castle */
.castle {
    position: absolute;
    left: 20%;
    bottom: 45%;
    width: 280px;
    height: 330px;
    z-index: 5;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    /* Ensure proper touch handling */
    touch-action: manipulation;
}

.castle:hover {
    transform: scale(1.05);
    filter: drop-shadow(4px 8px 12px rgba(0, 0, 0, 0.3));
}

.castle-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
}







/* Interactive Elements */
.interactive-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    /* Prevent text selection and improve touch handling */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.speech-bubble {
    position: absolute;
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 200px;
    pointer-events: none;
    z-index: 20;
    display: none; /* Hide by default until properly positioned */
}

.bubble-content {
    font-size: 0.9rem;
    color: #2c3e50;
    text-align: center;
    line-height: 1.4;
}

.bubble-tail {
    position: absolute;
    top: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}



/* Mobile Optimizations - Moved to responsive.css */
