/* Existing styles for headers and buttons */

/* Header styling */
h1 {
    margin-top: 0;
    margin-bottom: 30px;
    margin-left: 620px;
    font-size: 28px;
    color: #333; /* Dark color for header */
}

/* Styling the dropdown list */
#yearSelect {
    padding: 8px 16px;
    font-size: 16px;
    margin: 10px 0 20px 0;
    border: 2px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

#yearSelect:hover {
    border-color: #007BFF;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

#yearSelect:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

/* Styling for the buttons */
button {
    padding: 10px 20px;
    font-size: 18px;
    margin: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

button:active {
    background-color: #00408d;
    transform: translateY(0);
}

button:disabled {
    background-color: #b0d4f1;
    cursor: not-allowed;
}

/* Snowflakes container */
#snowContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999; /* Makes sure snow is on top of other elements */
    overflow: hidden;
}

/* Snowflakes style */
.snowflake {
    position: absolute;
    color: rgb(225, 216, 216);
    font-size: 24px;
    user-select: none;
    pointer-events: none;
    opacity: 0.9;
    animation: fall linear 1s forwards;

}

/* Animation for snowflakes falling */
@keyframes fall {
    0% {
        transform: translateY(-100px);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}
/* Heat Wave effect */
#heatWave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997; /* Ensures it's below snowflakes and SVG */
    opacity: 0;  /* Initially hidden */
    background: rgba(255, 94, 77, 0.2); /* A reddish-orange tint */
}

/* Shimmer effect for heat */
@keyframes shimmer {
    0% {
        opacity: 0.3;
        transform: scale(1) skewX(0deg);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05) skewX(15deg);
    }
    100% {
        opacity: 0;
        transform: scale(1) skewX(0deg);
    }
}

/* Sunlight effect */
#sunlightEffect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997; /* Ensures it's below snowflakes and SVG */
    opacity: 0;  /* Initially hidden */
    background: rgba(255, 223, 0, 0.3); /* Bright yellow tint */
}

/* Glow effect for sunlight */
@keyframes glow {
    0% {
        opacity: 1;
        box-shadow: 0 0 50px 40px rgba(255, 223, 0, 0.4);
    }
    100% {
        opacity: 0;
        box-shadow: 0 0 0px 0px rgba(255, 223, 0, 0); /* Remove glow */
    }
}

/* Cloud effect container */
#cloudEffect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;  /* Ensures it doesn't block interaction with other elements */
    z-index: 9998; /* Layer above snowflakes but below other content */
    opacity: 1;  /* Always visible */
}

/* Cloud styling */
.cloud {
    position: absolute;
    background-color: rgba(169, 169, 169, 0.5); /* Light grey color */
    border-radius: 50%; /* Rounded corners for clouds */
    opacity: 0.5;  /* Initial opacity */
}

/* Cloud effect animation */
@keyframes moveCloud {
    0% {
        transform: translateX(-100vw); /* Start from the left off-screen */
    }
    100% {
        transform: translateX(100vw); /* Move to the right off-screen */
    }
}

/* Cloud fade animation */
@keyframes fadeCloud {
    0% {
        opacity: 0.3; /* Start with low opacity */
    }
    50% {
        opacity: 1; /* Full opacity at the middle */
    }
    100% {
        opacity: 0.3; /* Fade back to low opacity */
    }
}

/* Add class with animation for cloud */
.animateCloudEffect {
    animation: moveCloud 5s linear forwards, fadeCloud 10s ease-in-out infinite;
}


/* Add class with animation for sunlight */
.animateSunlightEffect {
    animation: glow 3s forwards; /* 3-second animation duration */
}

/* Add class with animation for the effects */
.animateHeatWave {
    animation: shimmer 3s forwards;
}

.animateSunlightEffect {
    animation: glow 6s forwards;
}
/* Fog effect container */


/* Rain container */
#rainContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;  /* Makes sure it doesn't block interaction with other elements */
    z-index: 9998; /* Layer above snowflakes but below other content */
}

/* Raindrop styling */
.raindrop {
    position: absolute;
    top: -10px; /* Start above the viewport */
    background-color: rgba(0, 0, 255, 0.7); /* Blue color for raindrop */
    border-radius: 50%;
    opacity:1;
    animation: fall 2s linear forwards;
}

/* Animation for raindrops falling */
@keyframes fall {
    0% {
        transform: translateY(0);  /* Start at the top */
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh);  /* Fall to the bottom of the screen */
        opacity: 0.2;
    }
}
/* Tooltip styling */


/* Optional: Adjust the font size for the tooltip's title */
#tooltip b {
    font-size: 20px; /* Larger font size for the bold part (month/year) */
}



/* Center and style the SVG (adjust to fit container width) */
svg {
    margin: auto;
    display: block;
    border: 2px solid #ddd; /* Optional border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Ensure SVG scales based on container size */
    max-height: 100%; /* Ensure SVG scales based on container size */
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 9999; /* Ensure the SVG stays above the effects */
}
