/* Background styling */
body {
    background: linear-gradient(135deg, #c3e6ff, #e2f3ff);
    /* Light sky gradient */
    color: #333;
    overflow-x: hidden;
}
.weather-parameters > span{
    color: whitesmoke;
    font-size: 1.1rem !important;
    
     
}
.weather-parameters > img{
    margin-left: 1.1em;
}
.weekly-forcast,
.background,
.sidebar,
.container,
.btn,
.bg-secondary,
.current-weather {
    border-radius: 25px;
}
.container {
    background: rgba(255, 255, 255, 0.4);
    /* Slightly opaque white */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Soft shadow */
    border-radius: 25px;
    padding: 2rem;
}

/* Map Height */
#map {
    height: 20vw;
}

/* Text and Forecast Styles */
.data,
.min-temp,
.week-forecast {
    /* font-size: 1.2rem; */
    font-weight: 600;
    color: #ffffff;
    /* Darker text color */
    letter-spacing: 1.2px;
}

/* Round and glass-effect elements */
.background,
.current-weather,
.map,
.forecast-animation {
    background: rgba(255, 255, 255, 0.2);
    /* Soft white glass effect */
    /* backdrop-filter: blur(8px); */
    /* Glass blur effect */
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    padding: 1rem;
}

/* Shrink effect on hover */
.background:hover,
.current-weather:hover,
.map:hover,
.forecast-animation:hover , .forecast-data{
    transform: scale(0.98);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Header text */
h1 {
    color: #2b5d8a;
    /* Dark blue color */
    letter-spacing: 10px;
    font-weight: bold;
}

/* Sidebar */
.sidebar {
    background-color: rgba(43, 93, 138, 0.15);
    /* Muted blue for glass effect */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Weather Parameters */
.weather-parameters img {
    filter: drop-shadow(1px 1px 4px rgba(0, 0, 0, 0.2));
}

/* Search Button */
#search-button {
    background: rgba(43, 93, 138, 0.3);
    /* Soft blue */
    color: #333;
    border: none;
    transition: transform 0.2s ease, background-color 0.4s ease;
}

#search-button:hover {
    transform: scale(0.96);
    background: rgba(43, 93, 138, 0.5);
}

/* Current Weather Section */
.current-weather {
    background: linear-gradient(135deg, #6ab0f3, #357ab7);
    /* Gradient blue */
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}
 .forecast-data{
    background: linear-gradient(135deg, #2c679e, #357ab7);
    border-radius: 25px;
    padding: 1.4rem 3px;
    margin: 0;
 }
/* Map Section */
.map {
    background-color: rgba(255, 255, 255, 0.25);
}

/* Weekly Forecast Section */
.weekly-forcast{
    background: linear-gradient(135deg, #6ab0f3, #357ab7);
    /* Softer blue tint */
    color: #333;
    
}

/* Weather Icons and Hover Effects */
.nav-icons,
.log-out {
    background: rgba(255, 255, 255, 0.2);
    color: #2b5d8a;
    padding: 0.4rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.nav-icons:hover,
.log-out:hover {
    transform: scale(0.92);
    background: rgba(43, 93, 138, 0.3);
    /* Darker blue on hover */
}

.weather-updates .weather-parameters {
    color: #2c3e50;
    /* Darker text */
    padding: 0.4rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {

    .current-weather,
    .map,
    .weekly-forcast {
        margin-bottom: 1rem;
    }
}
@media (max-width: 406px) {

   h1{
    font-size: 1rem !important;
   }
}

/* General styling */
body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    60% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Header */
h1 {
    animation: fadeIn 1s ease-in-out;
}

/* Sidebar animations */
.sidebar {
    animation: slideInLeft 1s ease-in-out;
}

.sidebar img {
    opacity: 0;
    animation: fadeIn 0.6s ease-in-out forwards;
    animation-delay: 0.5s;
}

.sidebar img:hover {
    animation: pulse 0.5s infinite alternate;
}

/* Search bar */
#search-container {
    animation: fadeIn 1s ease-in-out;
    animation-delay: 0.5s;
}

#search-bar {
    transition: box-shadow 0.3s ease;
    background-color: transparent;
}

#search-bar:focus {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

/* Current Weather section */
.current-weather {
    animation: popIn 1s ease-in-out;
    animation-delay: 0.5s;
}

.current-weather img {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 1s;
}

.current-temperature {
    font-size: 3rem;
    transition: color 0.5s ease;
}

.current-temperature:hover {
    color: #007bff;
}

/* Weather parameters icons */
.weather-parameters {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 1.5s;
}

.weather-parameters img {
    transition: transform 0.3s ease;
}

.weather-parameters img:hover {
    transform: scale(1.1);
}

/* Map */
.map {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 1s;
    transition: box-shadow 0.3s ease;
}

.map:hover {
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
}

/* Weekly Forecast */
.forecast-animation {
    animation: slideInRight 1s ease-in-out;
    animation-delay: 0.5s;
}

.forecast-data {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 1s;
    transition: transform 0.3s ease, color 0.3s ease;
}

.forecast-data:hover {
    transform: scale(1.05);
    color: #007bff;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .forecast-data {
        animation: fadeIn 1.2s ease-in-out forwards;
        animation-delay: 0.6s;
    }
}