* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    transition: background 2s ease;
}

#app {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Settings Button - Fixed Position */
.settings-btn-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 900;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.icon-btn {
    background: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.icon-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Main View */
#mainView {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Clock Container */
.clock-container {
    background: transparent;
    border-radius: 0;
    padding: 40px;
    box-shadow: none;
    margin: 0;
    animation: fadeIn 0.8s ease;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.clock-display {
    flex: 1 1 auto;
    min-width: 300px;
}

.clock-type-toggle {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.toggle-btn {
    padding: 12px 30px;
    border: 3px solid #667eea;
    background: white;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    color: #667eea;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: scale(1.05);
}

.toggle-btn:hover:not(.active) {
    background: #f0f0f0;
    transform: scale(1.05);
}

/* Digital Clock */
#digitalClock {
    text-align: center;
}

.time-display {
    font-size: 8em;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 10px;
    margin-bottom: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.date-display {
    font-size: 2em;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Analog Clock */
#analogClock {
    display: flex;
    justify-content: center;
    align-items: center;
}

.analog-clock-svg {
    width: 500px;
    height: 500px;
    filter: drop-shadow(5px 5px 12px rgba(0, 0, 0, 0.3));
}

/* Upcoming Events */
.upcoming-events {
    background: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    animation: fadeIn 1s ease;
}

.upcoming-events h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 2em;
    text-align: center;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-events {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

.event-card {
    background: linear-gradient(135deg, #FFE5EC, #FFF0F5);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.event-info {
    flex: 1;
}

.event-time {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.event-name {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 3px;
}

.event-type {
    font-size: 0.9em;
    color: #666;
}

.event-actions {
    display: flex;
    gap: 10px;
}

.event-action-btn {
    background: white;
    border: 2px solid #667eea;
    border-radius: 10px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.event-action-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

/* Add Event Button */
.add-event-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border: none;
    border-radius: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.add-event-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 0;
    width: 100%;
    max-width: 600px;
    max-height: 100vh;
    overflow: hidden;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.settings-modal-content {
    max-height: 100vh;
    height: 100vh;
    width: 50%;
}

.settings-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 1px;
    background: #f0f0f0;
    padding: 4px 4px 0 4px;
    border-bottom: 2px solid #ddd;
    flex-shrink: 0;
    overflow-x: auto;
}

.settings-tab {
    flex: 1;
    min-width: 0;
    padding: 12px 6px;
    background: transparent;
    border: none;
    border-radius: 8px 8px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-tab:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.settings-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.settings-tab-content {
    display: none;
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.settings-tab-content.active {
    display: block;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    transition: transform 0.3s;
}

.close-btn:hover {
    transform: scale(1.2) rotate(90deg);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #667eea;
    font-size: 1.1em;
}

.input-field {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.event-specific-fields.hidden {
    display: none;
}

/* Recurrence Options */
.recurrence-options.hidden {
    display: none;
}

.recurrence-options {
    margin-top: 10px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.days-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.days-selector label {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.days-selector label:hover {
    background: #f0f0f0;
}

.days-selector input[type="checkbox"] {
    cursor: pointer;
}

.days-selector input[type="checkbox"]:checked + span {
    font-weight: bold;
}

.interval-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.interval-inputs label {
    font-weight: bold;
    color: #667eea;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 15px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Event Overlay */
.event-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.event-overlay.hidden {
    display: none;
}

.event-overlay-content {
    background: white;
    border-radius: 30px;
    padding: 40px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    position: relative;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.7);
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.close-overlay-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b6b;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.close-overlay-btn:hover {
    transform: scale(1.1) rotate(90deg);
    background: #ff5252;
}

.announcement-content {
    text-align: center;
    padding: 20px;
}

.announcement-content h2 {
    color: #667eea;
    font-size: 3em;
    margin-bottom: 20px;
}

.announcement-content p {
    font-size: 2em;
    color: #333;
    line-height: 1.5;
}

.picture-content {
    text-align: center;
}

.picture-content h2 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.picture-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.audio-content {
    text-align: center;
    padding: 20px;
}

.audio-content h2 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.audio-content audio {
    width: 100%;
    margin-top: 20px;
}

/* Slider */
.slider {
    width: calc(100% - 60px);
    height: 10px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

#ttsRateValue, #ttsPitchValue {
    display: inline-block;
    min-width: 40px;
    font-weight: bold;
    color: #667eea;
}

/* Events List in Settings */
.events-list-settings {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 10px;
}

.events-list-settings .event-card {
    margin-bottom: 10px;
    font-size: 0.9em;
}

.events-list-settings .event-time {
    font-size: 1.2em;
}

.events-list-settings .event-name {
    font-size: 1em;
}

/* Time Color Configuration */
.time-color-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.time-color-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.time-color-row input[type="time"] {
    flex: 1;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.time-color-row input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
}

.time-color-row button {
    padding: 8px 12px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.time-color-row button:hover {
    background: #ff5252;
}

.color-preview {
    width: 100%;
    height: 30px;
    border-radius: 8px;
    margin-top: 5px;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .settings-btn-fixed {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .settings-modal-content {
        width: 100%;
    }

    .modal {
        justify-content: center;
        align-items: center;
    }

    .settings-tab {
        padding: 10px 4px;
        font-size: 10px;
    }

    .time-display {
        font-size: 4em;
        letter-spacing: 5px;
    }

    .date-display {
        font-size: 1.3em;
    }

    .clock-container {
        padding: 20px;
    }

    .analog-clock-svg {
        width: 300px;
        height: 300px;
    }

    .modal-content {
        width: 100%;
    }

    .announcement-content h2 {
        font-size: 2em;
    }

    .announcement-content p {
        font-size: 1.5em;
    }
}

@media (min-width: 1200px) {
    .time-display {
        font-size: 10em;
    }

    .date-display {
        font-size: 2.5em;
    }

    .analog-clock-svg {
        width: 600px;
        height: 600px;
    }
}

/* Animated Backgrounds */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    transition: opacity 2s ease;
}

/* Day Background */
.day-background {
    background: linear-gradient(180deg, #87CEEB 0%, #B0E0E6 50%, #98FB98 100%);
}

.day-sun {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #FFD700 0%, #FFA500 70%, transparent 100%);
    border-radius: 50%;
    top: 10%;
    right: 15%;
    box-shadow: 0 0 60px #FFD700, 0 0 100px #FFA500;
    animation: sunPulse 4s ease-in-out infinite, sunMove 60s linear infinite;
}

@keyframes sunPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.9; }
}

@keyframes sunMove {
    0% { top: 8%; right: 12%; }
    25% { top: 12%; right: 18%; }
    50% { top: 10%; right: 20%; }
    75% { top: 8%; right: 16%; }
    100% { top: 10%; right: 15%; }
}

.sun-rays {
    position: absolute;
    width: 180px;
    height: 180px;
    top: 50%;
    left: 50%;
    margin-top: -90px;
    margin-left: -90px;
    animation: raysSpin 20s linear infinite;
}

.sun-rays::before,
.sun-rays::after {
    content: '';
    position: absolute;
    background: rgba(255, 215, 0, 0.3);
}

.sun-rays::before {
    width: 4px;
    height: 180px;
    left: 88px;
    top: 0;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.sun-rays::after {
    width: 180px;
    height: 4px;
    top: 88px;
    left: 0;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

@keyframes raysSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Clouds - Fluffier and more detailed */
.day-cloud {
    position: absolute;
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F5 50%, #EBEBEB 100%);
    border-radius: 50%;
    opacity: 0.95;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 -10px 20px rgba(0, 0, 0, 0.05),
        inset 0 10px 20px rgba(255, 255, 255, 0.8);
}

.day-cloud::before,
.day-cloud::after {
    content: '';
    position: absolute;
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F5 50%, #EBEBEB 100%);
    border-radius: 50%;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 -6px 12px rgba(0, 0, 0, 0.04),
        inset 0 6px 12px rgba(255, 255, 255, 0.6);
}

.day-cloud-1 {
    width: 100px;
    height: 50px;
    top: 12%;
    left: -120px;
    animation: cloudFloat1 50s linear infinite;
}

.day-cloud-1::before {
    width: 65px;
    height: 65px;
    top: -32px;
    left: 12px;
}

.day-cloud-1::after {
    width: 75px;
    height: 75px;
    top: -38px;
    left: 38px;
}

.day-cloud-2 {
    width: 130px;
    height: 60px;
    top: 22%;
    left: -180px;
    animation: cloudFloat2 65s linear infinite;
    animation-delay: -25s;
}

.day-cloud-2::before {
    width: 80px;
    height: 80px;
    top: -40px;
    left: 18px;
}

.day-cloud-2::after {
    width: 90px;
    height: 90px;
    top: -45px;
    left: 50px;
}

.day-cloud-3 {
    width: 80px;
    height: 40px;
    top: 8%;
    left: -100px;
    animation: cloudFloat3 40s linear infinite;
    animation-delay: -12s;
}

.day-cloud-3::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.day-cloud-3::after {
    width: 58px;
    height: 58px;
    top: -29px;
    left: 28px;
}

.day-cloud-4 {
    width: 110px;
    height: 55px;
    top: 30%;
    left: -140px;
    animation: cloudFloat4 55s linear infinite;
    animation-delay: -35s;
}

.day-cloud-4::before {
    width: 70px;
    height: 70px;
    top: -35px;
    left: 15px;
}

.day-cloud-4::after {
    width: 82px;
    height: 82px;
    top: -41px;
    left: 42px;
}

@keyframes cloudFloat1 {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(25vw) translateY(-8px); }
    50% { transform: translateX(50vw) translateY(5px); }
    75% { transform: translateX(75vw) translateY(-3px); }
    100% { transform: translateX(calc(100vw + 200px)) translateY(0); }
}

@keyframes cloudFloat2 {
    0% { transform: translateX(0) translateY(0); }
    33% { transform: translateX(30vw) translateY(10px); }
    66% { transform: translateX(60vw) translateY(-6px); }
    100% { transform: translateX(calc(100vw + 250px)) translateY(0); }
}

@keyframes cloudFloat3 {
    0% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(45vw) translateY(-12px); }
    100% { transform: translateX(calc(100vw + 150px)) translateY(0); }
}

@keyframes cloudFloat4 {
    0% { transform: translateX(0) translateY(0); }
    20% { transform: translateX(20vw) translateY(6px); }
    40% { transform: translateX(40vw) translateY(-4px); }
    60% { transform: translateX(65vw) translateY(8px); }
    80% { transform: translateX(85vw) translateY(-5px); }
    100% { transform: translateX(calc(100vw + 220px)) translateY(0); }
}

/* Birds - Animated with flapping wings */
.day-bird {
    position: absolute;
    width: 40px;
    height: 30px;
    animation: birdFly 25s linear infinite;
}

.day-bird-body {
    position: absolute;
    width: 20px;
    height: 12px;
    background: var(--bird-color, #4A90D9);
    border-radius: 50% 50% 40% 40%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.day-bird-head {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--bird-color, #4A90D9);
    border-radius: 50%;
    top: 2px;
    right: 0;
}

.day-bird-eye {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    top: 2px;
    right: 2px;
}

.day-bird-beak {
    position: absolute;
    width: 0;
    height: 0;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-left: 6px solid #FFA500;
    top: 4px;
    right: -4px;
}

.day-bird-wing {
    position: absolute;
    width: 22px;
    height: 10px;
    background: var(--bird-color, #4A90D9);
    border-radius: 50% 50% 20% 20%;
    top: 6px;
    left: 5px;
    transform-origin: 0% 50%;
    animation: flapWings 0.3s ease-in-out infinite alternate;
}

.day-bird-tail {
    position: absolute;
    width: 8px;
    height: 6px;
    background: var(--bird-color, #4A90D9);
    border-radius: 30% 0% 0% 30%;
    top: 10px;
    left: -4px;
}

@keyframes flapWings {
    0% { transform: rotate(-30deg) scaleY(0.6); }
    100% { transform: rotate(30deg) scaleY(1); }
}

.day-bird-1 {
    top: 20%;
    left: -50px;
    animation-delay: 0s;
    --bird-color: #4A90D9;
    animation-duration: 28s;
}

.day-bird-2 {
    top: 32%;
    left: -50px;
    animation-delay: -10s;
    --bird-color: #E76F51;
    animation-duration: 24s;
}

.day-bird-3 {
    top: 15%;
    left: -50px;
    animation-delay: -18s;
    --bird-color: #F4A261;
    animation-duration: 30s;
}

.day-bird-4 {
    top: 38%;
    left: -50px;
    animation-delay: -6s;
    --bird-color: #2A9D8F;
    animation-duration: 26s;
}

.day-bird-5 {
    top: 25%;
    left: -50px;
    animation-delay: -22s;
    --bird-color: #9B5DE5;
    animation-duration: 32s;
}

/* Reverse birds - flying right to left */
.day-bird-reverse {
    right: -50px;
    left: auto;
}

.day-bird-reverse .day-bird-body {
    transform: translate(-50%, -50%) scaleX(-1);
}

.day-bird-6 {
    top: 18%;
    animation-delay: -5s;
    --bird-color: #E76F51;
    animation-duration: 28s;
}

.day-bird-7 {
    top: 35%;
    animation-delay: -15s;
    --bird-color: #F4A261;
    animation-duration: 30s;
}

.day-bird-8 {
    top: 12%;
    animation-delay: -25s;
    --bird-color: #2A9D8F;
    animation-duration: 26s;
}

.day-bird-reverse {
    animation-name: birdFlyReverse;
}

@keyframes birdFly {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    20% { transform: translateX(20vw) translateY(-20px) rotate(-3deg); }
    40% { transform: translateX(40vw) translateY(15px) rotate(2deg); }
    60% { transform: translateX(60vw) translateY(-10px) rotate(-1deg); }
    80% { transform: translateX(85vw) translateY(5px) rotate(1deg); }
    100% { transform: translateX(110vw) translateY(0) rotate(0deg); }
}

@keyframes birdFlyReverse {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    20% { transform: translateX(-20vw) translateY(-15px) rotate(3deg); }
    40% { transform: translateX(-40vw) translateY(12px) rotate(-2deg); }
    60% { transform: translateX(-60vw) translateY(-8px) rotate(1deg); }
    80% { transform: translateX(-85vw) translateY(6px) rotate(-1deg); }
    100% { transform: translateX(-110vw) translateY(0) rotate(0deg); }
}

.day-grass {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(180deg, #90EE90 0%, #228B22 100%);
    z-index: 1;
}

.day-flower {
    position: absolute;
    bottom: 10px;
    font-size: 30px;
    animation: flowerSway 3s ease-in-out infinite;
}

.day-flower-1 { left: 10%; animation-delay: 0s; }
.day-flower-2 { left: 25%; animation-delay: 0.5s; }
.day-flower-3 { left: 45%; animation-delay: 1s; }
.day-flower-4 { left: 65%; animation-delay: 1.5s; }
.day-flower-5 { left: 85%; animation-delay: 2s; }

@keyframes flowerSway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* Trees - Multi-layered pine trees */
.day-tree {
    position: absolute;
    bottom: 60px;
    z-index: 2;
}

.day-tree::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 70px;
    background: linear-gradient(90deg, #5D4037 0%, #8B4513 30%, #A0522D 70%, #5D4037 100%);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px 2px 4px 4px;
    box-shadow: inset -4px 0 10px rgba(0, 0, 0, 0.5);
}

.day-tree .pine-foliage {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.day-tree .pine-foliage-top {
    bottom: 120px;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 60px solid var(--pine-dark, #1a5a1a);
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.2));
}

.day-tree .pine-foliage-middle {
    bottom: 90px;
    width: 0;
    height: 0;
    border-left: 56px solid transparent;
    border-right: 56px solid transparent;
    border-bottom: 56px solid var(--pine-mid, #228B22);
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.2));
}

.day-tree .pine-foliage-bottom {
    bottom: 60px;
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 50px solid var(--pine-light, #2E8B57);
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.2));
}

.day-tree-1 {
    left: 10%;
    animation: treeSway1 4s ease-in-out infinite;
    --pine-dark: #1a6b1a;
    --pine-mid: #228B22;
    --pine-light: #2E8B57;
}

.day-tree-2 {
    left: 25%;
    animation: treeSway2 5s ease-in-out infinite;
    animation-delay: 1s;
    --pine-dark: #1a7a1a;
    --pine-mid: #32CD32;
    --pine-light: #3CB371;
}

.day-tree-2::before {
    height: 90px;
}

.day-tree-2 .pine-foliage-top {
    border-left-width: 48px;
    border-right-width: 48px;
    border-bottom-width: 70px;
}

.day-tree-2 .pine-foliage-middle {
    border-left-width: 64px;
    border-right-width: 64px;
    border-bottom-width: 64px;
}

.day-tree-2 .pine-foliage-bottom {
    border-left-width: 80px;
    border-right-width: 80px;
    border-bottom-width: 56px;
}

.day-tree-3 {
    left: 40%;
    animation: treeSway1 4.5s ease-in-out infinite;
    animation-delay: 2s;
    --pine-dark: #145214;
    --pine-mid: #1a6b1a;
    --pine-light: #228B22;
}

.day-tree-4 {
    left: 55%;
    animation: treeSway2 4.2s ease-in-out infinite;
    animation-delay: 0.5s;
    --pine-dark: #1a5a1a;
    --pine-mid: #228B22;
    --pine-light: #2E8B57;
}

.day-tree-5 {
    left: 70%;
    animation: treeSway1 4.8s ease-in-out infinite;
    animation-delay: 1.5s;
    --pine-dark: #1a7a1a;
    --pine-mid: #32CD32;
    --pine-light: #3CB371;
}

.day-tree-5::before {
    height: 84px;
}

.day-tree-5 .pine-foliage-top {
    border-left-width: 44px;
    border-right-width: 44px;
    border-bottom-width: 64px;
}

.day-tree-5 .pine-foliage-middle {
    border-left-width: 60px;
    border-right-width: 60px;
    border-bottom-width: 60px;
}

.day-tree-5 .pine-foliage-bottom {
    border-left-width: 76px;
    border-right-width: 76px;
    border-bottom-width: 52px;
}

.day-tree-6 {
    left: 85%;
    animation: treeSway2 4.3s ease-in-out infinite;
    animation-delay: 0.8s;
    --pine-dark: #145214;
    --pine-mid: #228B22;
    --pine-light: #32CD32;
}

.day-tree-7 {
    left: 100%;
    animation: treeSway1 4.6s ease-in-out infinite;
    animation-delay: 1.2s;
    --pine-dark: #1a5a1a;
    --pine-mid: #2E8B57;
    --pine-light: #3CB371;
}

.day-tree-7::before {
    height: 100px;
}

.day-tree-7 .pine-foliage-top {
    border-left-width: 52px;
    border-right-width: 52px;
    border-bottom-width: 76px;
}

.day-tree-7 .pine-foliage-middle {
    border-left-width: 68px;
    border-right-width: 68px;
    border-bottom-width: 68px;
}

.day-tree-7 .pine-foliage-bottom {
    border-left-width: 84px;
    border-right-width: 84px;
    border-bottom-width: 60px;
}

@keyframes treeSway1 {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(1deg); }
}

@keyframes treeSway2 {
    0%, 100% { transform: rotate(-0.5deg); }
    50% { transform: rotate(0.5deg); }
}

/* Leafy Trees - Multi-cluster deciduous trees */
.day-leafy-tree {
    position: absolute;
    bottom: 60px;
    z-index: 2;
}

.day-leafy-tree::before {
    content: '';
    position: absolute;
    width: 28px;
    height: 60px;
    background: linear-gradient(90deg, #4a3728 0%, #654321 40%, #8B4513 60%, #4a3728 100%);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: inset -3px 0 8px rgba(0, 0, 0, 0.5);
}

.day-leafy-tree .leafy-cluster {
    position: absolute;
    border-radius: 50%;
    box-shadow: inset -4px -4px 12px rgba(0, 0, 0, 0.3), 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.day-leafy-tree .leafy-cluster-1 {
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(ellipse at 30% 30%, var(--leaf-light-1, #90EE90) 0%, var(--leaf-mid-1, #228B22) 40%, var(--leaf-dark-1, #145214) 100%);
}

.day-leafy-tree .leafy-cluster-2 {
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 76px;
    height: 76px;
    background: radial-gradient(ellipse at 25% 35%, var(--leaf-light-2, #98FB98) 0%, var(--leaf-mid-2, #32CD32) 45%, var(--leaf-dark-2, #1a6b1a) 100%);
}

.day-leafy-tree .leafy-cluster-3 {
    bottom: 44px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    background: radial-gradient(ellipse at 20% 30%, var(--leaf-light-3, #7CFC00) 0%, var(--leaf-mid-3, #3CB371) 50%, var(--leaf-dark-3, #228B22) 100%);
}

.day-leafy-tree-1 {
    left: 5%;
    animation: treeSway1 3.8s ease-in-out infinite;
    --leaf-light-1: #90EE90;
    --leaf-mid-1: #32CD32;
    --leaf-dark-1: #1a7a1a;
    --leaf-light-2: #98FB98;
    --leaf-mid-2: #90EE90;
    --leaf-dark-2: #32CD32;
    --leaf-light-3: #7CFC00;
    --leaf-mid-3: #32CD32;
    --leaf-dark-3: #228B22;
}

.day-leafy-tree-2 {
    left: 20%;
    animation: treeSway2 4.5s ease-in-out infinite;
    animation-delay: 0.7s;
    --leaf-light-1: #7CFC00;
    --leaf-mid-1: #3CB371;
    --leaf-dark-1: #228B22;
    --leaf-light-2: #90EE90;
    --leaf-mid-2: #32CD32;
    --leaf-dark-2: #228B22;
    --leaf-light-3: #98FB98;
    --leaf-mid-3: #90EE90;
    --leaf-dark-3: #2E8B57;
}

.day-leafy-tree-2::before {
    height: 76px;
}

.day-leafy-tree-2 .leafy-cluster-1 {
    width: 120px;
    height: 116px;
    bottom: 110px;
}

.day-leafy-tree-2 .leafy-cluster-2 {
    width: 90px;
    height: 90px;
    bottom: 76px;
}

.day-leafy-tree-2 .leafy-cluster-3 {
    width: 64px;
    height: 64px;
    bottom: 48px;
}

.day-leafy-tree-3 {
    left: 33%;
    animation: treeSway1 4.2s ease-in-out infinite;
    animation-delay: 1.5s;
    --leaf-light-1: #98FB98;
    --leaf-mid-1: #90EE90;
    --leaf-dark-1: #32CD32;
    --leaf-light-2: #7CFC00;
    --leaf-mid-2: #3CB371;
    --leaf-dark-2: #2E8B57;
    --leaf-light-3: #90EE90;
    --leaf-mid-3: #32CD32;
    --leaf-dark-3: #228B22;
}

.day-leafy-tree-3 .leafy-cluster-1 {
    width: 90px;
    height: 90px;
}

.day-leafy-tree-3 .leafy-cluster-2 {
    width: 68px;
    height: 68px;
}

.day-leafy-tree-3 .leafy-cluster-3 {
    width: 48px;
    height: 48px;
}

/* Car - Cute cartoon car driving across */
.day-car {
    position: absolute;
    bottom: 70px;
    left: -150px;
    animation: carDrive 35s linear infinite;
    z-index: 20;
}

.day-car-1 {
    animation-delay: 0s;
}

.day-car-2 {
    animation-delay: -12s;
    animation-duration: 42s;
}

.day-car-3 {
    animation-delay: -24s;
    animation-duration: 28s;
}

.day-car-4 {
    animation-delay: -8s;
    animation-duration: 38s;
}

.day-car-5 {
    animation-delay: -20s;
    animation-duration: 45s;
}

/* Reverse direction cars (right to left) */
.day-car-reverse {
    right: -150px;
    left: auto;
    animation-name: carDriveReverse;
}

.day-car-reverse .car-body {
    transform: scaleX(-1);
}

.day-car-reverse .car-headlight {
    right: -3px;
    left: auto;
    width: 8px;
    height: 8px;
}

.day-car-reverse .car-taillight {
    left: -2px;
    right: auto;
}

.day-car-reverse .car-headlight-beam {
    display: block;
    right: -150px;
    left: auto;
    background: linear-gradient(270deg,
        rgba(255, 255, 200, 0.4) 0%,
        rgba(255, 255, 200, 0.15) 60%,
        transparent 100%
    );
    clip-path: polygon(0% 23%, 100% 0%, 100% 100%, 0% 77%);
    filter: blur(5px);
}

.day-car-reverse .car-taillight-cone {
    display: block;
    width: 60px;
    height: 14px;
    right: -60px;
    left: auto;
    top: 10px;
    background: linear-gradient(90deg,
        rgba(255, 68, 68, 0.7) 0%,
        rgba(255, 68, 68, 0.2) 60%,
        transparent 100%
    );
    clip-path: polygon(100% 29%, 0% 0%, 0% 100%, 100% 71%);
    opacity: 0.8;
    filter: blur(3px);
}

@keyframes carDriveReverse {
    0% { transform: translateX(0) translateY(0); }
    20% { transform: translateX(-20vw) translateY(2px); }
    40% { transform: translateX(-40vw) translateY(-1px); }
    60% { transform: translateX(-60vw) translateY(1px); }
    80% { transform: translateX(-80vw) translateY(-2px); }
    100% { transform: translateX(calc(-100vw - 200px)) translateY(0); }
}

.day-car .car-body {
    position: relative;
    width: 80px;
    height: 30px;
    background: linear-gradient(180deg, #FF6B6B 0%, #EE5A5A 100%);
    border-radius: 10px 10px 5px 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.day-car .car-top {
    position: absolute;
    width: 45px;
    height: 20px;
    background: linear-gradient(180deg, #FF6B6B 0%, #EE5A5A 100%);
    border-radius: 8px 8px 0 0;
    top: -18px;
    left: 15px;
}

.day-car .car-window {
    position: absolute;
    width: 16px;
    height: 12px;
    background: linear-gradient(180deg, #87CEEB 0%, #B0E0E6 100%);
    border-radius: 4px 4px 0 0;
    top: -14px;
}

.day-car .car-window-left {
    left: 18px;
}

.day-car .car-window-right {
    left: 38px;
}

.day-car .car-wheel {
    position: absolute;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #333 0%, #555 50%, #333 100%);
    border-radius: 50%;
    bottom: -8px;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5);
}

.day-car .car-wheel::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #888;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.day-car .car-wheel-front {
    left: 10px;
}

.day-car .car-wheel-back {
    right: 10px;
}

.day-car .car-headlight {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #FFD700;
    border-radius: 50%;
    right: -2px;
    top: 16px;
    box-shadow: 0 0 8px #FFD700;
}

.day-car .car-headlight-beam {
    display: none;
}

.day-car .car-taillight {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #FF4444;
    border-radius: 50%;
    left: -2px;
    top: 16px;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.8);
}

.day-car .car-taillight-cone {
    display: none;
}

@keyframes carDrive {
    0% { transform: translateX(0) translateY(0); }
    20% { transform: translateX(20vw) translateY(2px); }
    40% { transform: translateX(40vw) translateY(-1px); }
    60% { transform: translateX(60vw) translateY(1px); }
    80% { transform: translateX(80vw) translateY(-2px); }
    100% { transform: translateX(calc(100vw + 200px)) translateY(0); }
}

@keyframes headlightBlink {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.3; }
}

/* Road - Gray road with dashed center line */
.day-road {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(180deg, #696969 0%, #505050 50%, #696969 100%);
    border-top: 2px solid #808080;
    border-bottom: 2px solid #404040;
    overflow: hidden;
    z-index: 10;
}

.road-dashes {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    transform: translateY(-50%);
    background: repeating-linear-gradient(
        90deg,
        #FFD700 0px,
        #FFD700 40px,
        transparent 40px,
        transparent 80px
    );
    border-radius: 2px;
    opacity: 0.9;
    box-shadow: 0 0 4px rgba(255, 215, 0, 0.5);
}

/* Night Background */
.night-background {
    background: linear-gradient(180deg, #0a0a1a 0%, #1a1a3e 50%, #2a2a4e 100%);
}

.night-moon {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, #FFFACD 0%, #F0E68C 50%, #DAA520 100%);
    border-radius: 50%;
    top: 10%;
    right: 15%;
    box-shadow: 0 0 40px rgba(255, 250, 205, 0.5), 0 0 80px rgba(255, 250, 205, 0.3);
    animation: moonGlow 5s ease-in-out infinite;
}

@keyframes moonGlow {
    0%, 100% { box-shadow: 0 0 40px rgba(255, 250, 205, 0.5), 0 0 80px rgba(255, 250, 205, 0.3); }
    50% { box-shadow: 0 0 60px rgba(255, 250, 205, 0.7), 0 0 100px rgba(255, 250, 205, 0.4); }
}

/* Night Planets - More prominent planets for the night sky */
.night-planet {
    position: absolute;
    border-radius: 50%;
    animation: nightPlanetFloat 150s linear infinite;
}

.night-planet-1 {
    width: 45px;
    height: 45px;
    background: radial-gradient(circle at 30% 30%, #F5DEB3 0%, #DEB887 40%, #D2B48C 70%, #BC9B6A 100%);
    top: 18%;
    left: 25%;
    box-shadow: 0 0 25px rgba(222, 184, 135, 0.6), inset -8px -8px 15px rgba(0, 0, 0, 0.3);
}

.night-planet-1 .planet-rings {
    position: absolute;
    width: 70px;
    height: 70px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(75deg);
    border: 4px solid rgba(210, 180, 140, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(210, 180, 140, 0.4);
}

.night-planet-1 .planet-rings::before {
    content: '';
    position: absolute;
    width: 58px;
    height: 58px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(189, 158, 118, 0.5);
    border-radius: 50%;
}

.night-planet-2 {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 30% 30%, #CD853F 0%, #A0522D 50%, #8B4513 100%);
    top: 28%;
    left: 15%;
    animation-delay: -50s;
    box-shadow: 0 0 20px rgba(160, 82, 45, 0.5), inset -5px -5px 12px rgba(0, 0, 0, 0.4);
}

.night-planet-3 {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #87CEEB 0%, #4682B4 50%, #2F5F8F 100%);
    top: 12%;
    left: 8%;
    animation-delay: -80s;
    box-shadow: 0 0 15px rgba(70, 130, 180, 0.5), inset -4px -4px 8px rgba(0, 0, 0, 0.3);
}

@keyframes nightPlanetFloat {
    0% { transform: translate(0, 0); }
    20% { transform: translate(15px, -10px); }
    40% { transform: translate(25px, 5px); }
    60% { transform: translate(10px, -15px); }
    80% { transform: translate(-15px, 8px); }
    100% { transform: translate(0, 0); }
}

.moon-crater {
    position: absolute;
    background: rgba(218, 165, 32, 0.3);
    border-radius: 50%;
}

.moon-crater-1 {
    width: 20px;
    height: 20px;
    top: 20%;
    left: 30%;
}

.moon-crater-2 {
    width: 15px;
    height: 15px;
    top: 50%;
    left: 55%;
}

.moon-crater-3 {
    width: 10px;
    height: 10px;
    top: 65%;
    left: 35%;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: shoot 8s linear infinite;
    opacity: 0;
}

.shooting-star::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8) 0%, transparent 100%);
    transform-origin: right;
    right: 0;
    top: 0;
}

.shooting-star-1 {
    top: 15%;
    right: 30%;
    animation-delay: 0s;
}

.shooting-star-2 {
    top: 25%;
    right: 50%;
    animation-delay: 4s;
}

.shooting-star-3 {
    top: 10%;
    right: 40%;
    animation-delay: 6s;
}

@keyframes shoot {
    0% { opacity: 0; transform: translate(0, 0) rotate(-45deg); }
    5% { opacity: 1; }
    20% { opacity: 0; transform: translate(-200px, 200px) rotate(-45deg); }
    100% { opacity: 0; transform: translate(-200px, 200px) rotate(-45deg); }
}

.night-cloud {
    position: absolute;
    background: rgba(50, 50, 80, 0.6);
    border-radius: 50%;
    filter: blur(2px);
}

.night-cloud::before,
.night-cloud::after {
    content: '';
    position: absolute;
    background: rgba(50, 50, 80, 0.6);
    border-radius: 50%;
    filter: blur(2px);
}

.night-cloud-1 {
    width: 100px;
    height: 40px;
    top: 40%;
    left: -120px;
    animation: nightCloudFloat1 80s linear infinite;
}

.night-cloud-1::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 15px;
}

.night-cloud-1::after {
    width: 70px;
    height: 70px;
    top: -35px;
    left: 40px;
}

.night-cloud-2 {
    width: 80px;
    height: 35px;
    top: 50%;
    left: -100px;
    animation: nightCloudFloat2 90s linear infinite;
    animation-delay: -30s;
}

.night-cloud-2::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.night-cloud-2::after {
    width: 55px;
    height: 55px;
    top: -28px;
    left: 30px;
}

.night-cloud-3 {
    width: 90px;
    height: 38px;
    top: 25%;
    left: -110px;
    animation: nightCloudFloat3 70s linear infinite;
    animation-delay: -15s;
}

.night-cloud-3::before {
    width: 55px;
    height: 55px;
    top: -28px;
    left: 12px;
}

.night-cloud-3::after {
    width: 62px;
    height: 62px;
    top: -31px;
    left: 35px;
}

.night-cloud-4 {
    width: 70px;
    height: 32px;
    top: 35%;
    left: -90px;
    animation: nightCloudFloat4 85s linear infinite;
    animation-delay: -45s;
}

.night-cloud-4::before {
    width: 45px;
    height: 45px;
    top: -22px;
    left: 10px;
}

.night-cloud-4::after {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 25px;
}

.night-cloud-5 {
    width: 120px;
    height: 45px;
    top: 18%;
    left: -150px;
    animation: nightCloudFloat5 95s linear infinite;
    animation-delay: -60s;
}

.night-cloud-5::before {
    width: 70px;
    height: 70px;
    top: -35px;
    left: 20px;
}

.night-cloud-5::after {
    width: 80px;
    height: 80px;
    top: -40px;
    left: 50px;
}

@keyframes nightCloudFloat1 {
    from { transform: translateX(0); }
    to { transform: translateX(calc(100vw + 250px)); }
}

@keyframes nightCloudFloat2 {
    from { transform: translateX(0); }
    to { transform: translateX(calc(100vw + 200px)); }
}

@keyframes nightCloudFloat3 {
    0% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(50vw) translateY(-10px); }
    100% { transform: translateX(calc(100vw + 220px)) translateY(0); }
}

@keyframes nightCloudFloat4 {
    from { transform: translateX(0); }
    to { transform: translateX(calc(100vw + 180px)); }
}

@keyframes nightCloudFloat5 {
    0% { transform: translateX(0) translateY(0); }
    33% { transform: translateX(30vw) translateY(8px); }
    66% { transform: translateX(60vw) translateY(-5px); }
    100% { transform: translateX(calc(100vw + 280px)) translateY(0); }
}

.night-grass {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(180deg, #1a3a1a 0%, #0a1a0a 100%);
    z-index: 1;
}

.firefly {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ADFF2F;
    border-radius: 50%;
    box-shadow: 0 0 10px #ADFF2F, 0 0 20px #ADFF2F;
    animation: fireflyFloat 10s ease-in-out infinite;
}

.firefly-1 {
    bottom: 20%;
    left: 20%;
    animation-delay: 0s;
}

.firefly-2 {
    bottom: 30%;
    left: 40%;
    animation-delay: 2s;
}

.firefly-3 {
    bottom: 25%;
    left: 60%;
    animation-delay: 4s;
}

.firefly-4 {
    bottom: 35%;
    left: 75%;
    animation-delay: 6s;
}

.firefly-5 {
    bottom: 15%;
    left: 50%;
    animation-delay: 8s;
}

@keyframes fireflyFloat {
    0%, 100% { transform: translate(0, 0); opacity: 0.3; }
    25% { transform: translate(20px, -30px); opacity: 1; }
    50% { transform: translate(-10px, -50px); opacity: 0.5; }
    75% { transform: translate(30px, -20px); opacity: 1; }
}

/* Night Trees - Silhouette trees with multi-layered foliage */
.night-tree {
    position: absolute;
    bottom: 60px;
    z-index: 2;
}

.night-tree::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 70px;
    background: linear-gradient(90deg, #2a2a2a 0%, #1a1a2a 50%, #0f0f1f 100%);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px 2px 4px 4px;
    box-shadow: inset -4px 0 10px rgba(0, 0, 0, 0.6);
}

.night-tree .pine-foliage {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.night-tree .pine-foliage-top {
    bottom: 120px;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 60px solid var(--pine-dark, #0a0a1a);
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

.night-tree .pine-foliage-middle {
    bottom: 90px;
    width: 0;
    height: 0;
    border-left: 56px solid transparent;
    border-right: 56px solid transparent;
    border-bottom: 56px solid var(--pine-mid, #1a1a2a);
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

.night-tree .pine-foliage-bottom {
    bottom: 60px;
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 50px solid var(--pine-light, #2a2a3a);
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

.night-tree-1 {
    left: 10%;
    animation: treeSway1 4s ease-in-out infinite;
    --pine-dark: #0a0a1a;
    --pine-mid: #1a1a2a;
    --pine-light: #2a2a3a;
}

.night-tree-2 {
    left: 25%;
    animation: treeSway2 5s ease-in-out infinite;
    animation-delay: 1s;
    --pine-dark: #050505;
    --pine-mid: #1a1a2a;
    --pine-light: #2a2a3a;
}

.night-tree-2::before {
    height: 90px;
}

.night-tree-2 .pine-foliage-top {
    border-left-width: 48px;
    border-right-width: 48px;
    border-bottom-width: 70px;
}

.night-tree-2 .pine-foliage-middle {
    border-left-width: 64px;
    border-right-width: 64px;
    border-bottom-width: 64px;
}

.night-tree-2 .pine-foliage-bottom {
    border-left-width: 80px;
    border-right-width: 80px;
    border-bottom-width: 56px;
}

.night-tree-3 {
    left: 40%;
    animation: treeSway1 4.5s ease-in-out infinite;
    animation-delay: 2s;
    --pine-dark: #080808;
    --pine-mid: #151515;
    --pine-light: #1a1a2a;
}

.night-tree-4 {
    left: 55%;
    animation: treeSway2 4.2s ease-in-out infinite;
    animation-delay: 0.5s;
    --pine-dark: #0a0a1a;
    --pine-mid: #1a1a2a;
    --pine-light: #2a2a3a;
}

.night-tree-5 {
    left: 70%;
    animation: treeSway1 4.8s ease-in-out infinite;
    animation-delay: 1.5s;
    --pine-dark: #050505;
    --pine-mid: #1a1a2a;
    --pine-light: #2a2a3a;
}

.night-tree-5::before {
    height: 84px;
}

.night-tree-5 .pine-foliage-top {
    border-left-width: 44px;
    border-right-width: 44px;
    border-bottom-width: 64px;
}

.night-tree-5 .pine-foliage-middle {
    border-left-width: 60px;
    border-right-width: 60px;
    border-bottom-width: 60px;
}

.night-tree-5 .pine-foliage-bottom {
    border-left-width: 76px;
    border-right-width: 76px;
    border-bottom-width: 52px;
}

.night-tree-6 {
    left: 85%;
    animation: treeSway2 4.3s ease-in-out infinite;
    animation-delay: 0.8s;
    --pine-dark: #080808;
    --pine-mid: #1a1a2a;
    --pine-light: #252535;
}

.night-tree-7 {
    left: 100%;
    animation: treeSway1 4.6s ease-in-out infinite;
    animation-delay: 1.2s;
    --pine-dark: #0a0a1a;
    --pine-mid: #2a2a3a;
    --pine-light: #3a3a4a;
}

.night-tree-7::before {
    height: 100px;
}

.night-tree-7 .pine-foliage-top {
    border-left-width: 52px;
    border-right-width: 52px;
    border-bottom-width: 76px;
}

.night-tree-7 .pine-foliage-middle {
    border-left-width: 68px;
    border-right-width: 68px;
    border-bottom-width: 68px;
}

.night-tree-7 .pine-foliage-bottom {
    border-left-width: 84px;
    border-right-width: 84px;
    border-bottom-width: 60px;
}

/* Night Leafy Trees - Multi-cluster silhouette deciduous trees */
.night-leafy-tree {
    position: absolute;
    bottom: 60px;
    z-index: 2;
}

.night-leafy-tree::before {
    content: '';
    position: absolute;
    width: 28px;
    height: 60px;
    background: linear-gradient(90deg, #2a2a2a 0%, #1a1a2a 50%, #0f0f1f 100%);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: inset -3px 0 8px rgba(0, 0, 0, 0.6);
}

.night-leafy-tree .leafy-cluster {
    position: absolute;
    border-radius: 50%;
    box-shadow: inset -4px -4px 12px rgba(0, 0, 0, 0.4), 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.night-leafy-tree .leafy-cluster-1 {
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(ellipse at 30% 30%, var(--leaf-light-1, #3a3a3a) 0%, var(--leaf-mid-1, #1a1a2a) 40%, var(--leaf-dark-1, #050505) 100%);
}

.night-leafy-tree .leafy-cluster-2 {
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 76px;
    height: 76px;
    background: radial-gradient(ellipse at 25% 35%, var(--leaf-light-2, #3a3a3a) 0%, var(--leaf-mid-2, #1a1a2a) 45%, var(--leaf-dark-2, #0a0a1a) 100%);
}

.night-leafy-tree .leafy-cluster-3 {
    bottom: 44px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    background: radial-gradient(ellipse at 20% 30%, var(--leaf-light-3, #2a2a3a) 0%, var(--leaf-mid-3, #1a1a2a) 50%, var(--leaf-dark-3, #050505) 100%);
}

.night-leafy-tree-1 {
    left: 5%;
    animation: treeSway1 3.8s ease-in-out infinite;
    --leaf-light-1: #3a3a3a;
    --leaf-mid-1: #1a1a2a;
    --leaf-dark-1: #050505;
    --leaf-light-2: #3a3a3a;
    --leaf-mid-2: #252535;
    --leaf-dark-2: #0a0a1a;
    --leaf-light-3: #2a2a3a;
    --leaf-mid-3: #1a1a2a;
    --leaf-dark-3: #080808;
}

.night-leafy-tree-2 {
    left: 20%;
    animation: treeSway2 4.5s ease-in-out infinite;
    animation-delay: 0.7s;
    --leaf-light-1: #4a4a4a;
    --leaf-mid-1: #2a2a3a;
    --leaf-dark-1: #0a0a1a;
    --leaf-light-2: #3a3a3a;
    --leaf-mid-2: #1a1a2a;
    --leaf-dark-2: #050505;
    --leaf-light-3: #3a3a3a;
    --leaf-mid-3: #252535;
    --leaf-dark-3: #0a0a1a;
}

.night-leafy-tree-2::before {
    height: 76px;
}

.night-leafy-tree-2 .leafy-cluster-1 {
    width: 120px;
    height: 116px;
    bottom: 110px;
}

.night-leafy-tree-2 .leafy-cluster-2 {
    width: 90px;
    height: 90px;
    bottom: 76px;
}

.night-leafy-tree-2 .leafy-cluster-3 {
    width: 64px;
    height: 64px;
    bottom: 48px;
}

.night-leafy-tree-3 {
    left: 33%;
    animation: treeSway1 4.2s ease-in-out infinite;
    animation-delay: 1.5s;
    --leaf-light-1: #3a3a3a;
    --leaf-mid-1: #252535;
    --leaf-dark-1: #0a0a1a;
    --leaf-light-2: #4a4a4a;
    --leaf-mid-2: #2a2a3a;
    --leaf-dark-2: #0a0a1a;
    --leaf-light-3: #3a3a3a;
    --leaf-mid-3: #1a1a2a;
    --leaf-dark-3: #050505;
}

.night-leafy-tree-3 .leafy-cluster-1 {
    width: 90px;
    height: 90px;
}

.night-leafy-tree-3 .leafy-cluster-2 {
    width: 68px;
    height: 68px;
}

.night-leafy-tree-3 .leafy-cluster-3 {
    width: 48px;
    height: 48px;
}

/* Night Road - Darker road */
.night-road {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 50%, #3a3a3a 100%);
    border-top: 2px solid #4a4a4a;
    border-bottom: 2px solid #1a1a1a;
    overflow: hidden;
    z-index: 10;
}

.night-road .road-dashes {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    transform: translateY(-50%);
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 200, 0.6) 0px,
        rgba(255, 255, 200, 0.6) 40px,
        transparent 40px,
        transparent 80px
    );
    border-radius: 2px;
    opacity: 0.9;
    box-shadow: 0 0 8px rgba(255, 255, 200, 0.4);
}

/* Night Car - Darker car with bright headlights */
.night-car {
    position: absolute;
    bottom: 70px;
    left: -150px;
    animation: carDrive 35s linear infinite;
    z-index: 20;
}

.night-car-1 {
    animation-delay: 0s;
}

.night-car-2 {
    animation-delay: -12s;
    animation-duration: 42s;
}

.night-car-3 {
    animation-delay: -24s;
    animation-duration: 28s;
}

.night-car-4 {
    animation-delay: -8s;
    animation-duration: 38s;
}

.night-car-5 {
    animation-delay: -20s;
    animation-duration: 45s;
}

/* Reverse direction night cars (right to left) */
.night-car-reverse {
    right: -150px;
    left: auto;
    animation-name: carDriveReverse;
}

.night-car-reverse .car-body {
    transform: scaleX(-1);
}

.night-car-reverse .car-headlight {
    right: -4px;
    left: auto;
    width: 8px;
    height: 8px;
}

.night-car-reverse .car-taillight {
    left: -3px;
    right: auto;
}

.night-car-reverse .car-headlight-beam {
    right: -150px;
    left: auto;
    background: linear-gradient(270deg,
        rgba(255, 255, 200, 0.8) 0%,
        rgba(255, 255, 200, 0.3) 60%,
        transparent 100%
    );
    clip-path: polygon(0% 23%, 100% 0%, 100% 100%, 0% 77%);
}

.night-car-reverse .car-taillight-cone {
    display: block;
    width: 60px;
    height: 14px;
    right: -60px;
    left: auto;
    top: 10px;
    background: linear-gradient(90deg,
        rgba(255, 51, 51, 0.7) 0%,
        rgba(255, 51, 51, 0.2) 60%,
        transparent 100%
    );
    clip-path: polygon(100% 29%, 0% 0%, 0% 100%, 100% 71%);
    opacity: 0.8;
    filter: blur(3px);
}

.night-car .car-body {
    position: relative;
    width: 80px;
    height: 30px;
    background: linear-gradient(180deg, #8B0000 0%, #6B0000 100%);
    border-radius: 10px 10px 5px 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.night-car .car-top {
    position: absolute;
    width: 45px;
    height: 20px;
    background: linear-gradient(180deg, #8B0000 0%, #6B0000 100%);
    border-radius: 8px 8px 0 0;
    top: -18px;
    left: 15px;
}

.night-car .car-window {
    position: absolute;
    width: 16px;
    height: 12px;
    background: linear-gradient(180deg, #1a1a3e 0%, #2a2a4e 100%);
    border-radius: 4px 4px 0 0;
    top: -14px;
}

.night-car .car-window-left {
    left: 18px;
}

.night-car .car-window-right {
    left: 38px;
}

.night-car .car-wheel {
    position: absolute;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 50%, #1a1a1a 100%);
    border-radius: 50%;
    bottom: -8px;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.8);
}

.night-car .car-wheel::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #444;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.night-car .car-wheel-front {
    left: 10px;
}

.night-car .car-wheel-back {
    right: 10px;
}

.night-car .car-headlight {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #FFFF99;
    border-radius: 50%;
    right: -3px;
    top: 15px;
    box-shadow: 0 0 15px #FFFF99, 0 0 30px rgba(255, 255, 153, 0.8);
}

.night-car .car-headlight-beam {
    position: absolute;
    width: 150px;
    height: 22px;
    right: -150px;
    top: 7px;
    background: linear-gradient(90deg,
        rgba(255, 255, 200, 0.8) 0%,
        rgba(255, 255, 200, 0.3) 60%,
        transparent 100%
    );
    clip-path: polygon(0% 23%, 100% 0%, 100% 100%, 0% 77%);
    opacity: 0.9;
    filter: blur(5px);
}

.night-car .car-taillight {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #FF3333;
    border-radius: 50%;
    left: -3px;
    top: 15px;
    box-shadow: 0 0 15px rgba(255, 51, 51, 1), 0 0 30px rgba(255, 51, 51, 0.6);
    animation: taillightGlow 2s ease-in-out infinite;
}

.night-car .car-taillight-cone {
    position: absolute;
    width: 60px;
    height: 14px;
    left: -60px;
    top: 10px;
    background: linear-gradient(270deg,
        rgba(255, 51, 51, 0.7) 0%,
        rgba(255, 51, 51, 0.2) 60%,
        transparent 100%
    );
    clip-path: polygon(100% 29%, 0% 0%, 0% 100%, 100% 71%);
    opacity: 0.8;
    filter: blur(3px);
}

@keyframes taillightGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 51, 51, 1), 0 0 30px rgba(255, 51, 51, 0.6); }
    50% { box-shadow: 0 0 20px rgba(255, 51, 51, 1), 0 0 40px rgba(255, 51, 51, 0.8); }
}

/* Car Style Variations */
/* Sedan - slightly longer, sleeker */
[data-car-style="sedan"] .car-body {
    width: 90px;
    height: 28px;
    border-radius: 12px 12px 4px 4px;
}

[data-car-style="sedan"] .car-top {
    width: 50px;
    height: 18px;
    border-radius: 10px 10px 0 0;
    top: -16px;
    left: 18px;
}

[data-car-style="sedan"] .car-window {
    width: 18px;
    height: 11px;
    top: -13px;
}

[data-car-style="sedan"] .car-window-left {
    left: 20px;
}

[data-car-style="sedan"] .car-window-right {
    left: 42px;
}

[data-car-style="sedan"] .car-wheel {
    width: 16px;
    height: 16px;
}

[data-car-style="sedan"] .car-wheel-front {
    left: 12px;
}

[data-car-style="sedan"] .car-wheel-back {
    right: 12px;
}

/* Truck - boxier, taller */
[data-car-style="truck"] .car-body {
    width: 85px;
    height: 35px;
    border-radius: 6px 6px 4px 4px;
}

[data-car-style="truck"] .car-top {
    width: 55px;
    height: 25px;
    border-radius: 4px 4px 0 0;
    top: -23px;
    left: 8px;
}

[data-car-style="truck"] .car-window {
    width: 20px;
    height: 14px;
    top: -18px;
}

[data-car-style="truck"] .car-window-left {
    left: 12px;
}

[data-car-style="truck"] .car-window-right {
    left: 38px;
}

[data-car-style="truck"] .car-wheel {
    width: 20px;
    height: 20px;
}

[data-car-style="truck"] .car-wheel-front {
    left: 8px;
}

[data-car-style="truck"] .car-wheel-back {
    right: 8px;
}

/* Hatchback - compact, sporty */
[data-car-style="hatchback"] .car-body {
    width: 75px;
    height: 28px;
    border-radius: 8px 8px 12px 12px;
}

[data-car-style="hatchback"] .car-top {
    width: 40px;
    height: 22px;
    border-radius: 6px 12px 0 0;
    top: -20px;
    left: 20px;
}

[data-car-style="hatchback"] .car-window {
    width: 14px;
    height: 10px;
    border-radius: 2px;
    top: -14px;
}

[data-car-style="hatchback"] .car-window-left {
    left: 22px;
}

[data-car-style="hatchback"] .car-window-right {
    left: 40px;
}

[data-car-style="hatchback"] .car-wheel {
    width: 17px;
    height: 17px;
}

[data-car-style="hatchback"] .car-wheel-front {
    left: 10px;
}

[data-car-style="hatchback"] .car-wheel-back {
    right: 10px;
}
