* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

.cloud-background {
    position: fixed;
    inset: -8%;
    z-index: -2;
    background-image: url('../Images/Clouds.gif');
    background-size: 116% auto;
    background-position: center;
    background-color: #555;
    transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

    .cloud-background::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.05) 60%, rgba(0,0,0,0.55) 100% );
    }

.weather-panel {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5vh 6vw;
}

.panel-location {
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.panel-current {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 6vh;
}

.current-emoji {
    font-size: 5em;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
    display: inline-block;
    animation: float-cloud 7s ease-in-out infinite;
}

.current-temp {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(6em, 14vw, 11em);
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 4px 24px rgba(0,0,0,0.45);
}

.current-details {
    margin-left: auto;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    min-width: 220px;
    padding: 24px 28px;
    background-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    text-align: left;
    font-size: 1.05em;
    line-height: 1.4;
    transition: background-color 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.8s ease;
}

    .current-details:hover {
        background-color: rgba(255, 255, 255, 0.18);
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    }

    .current-details div {
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .current-details div:last-child {
            text-transform: capitalize;
            font-size: 0.9em;
            opacity: 0.85;
            padding-top: 14px;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
        }

.panel-forecast {
    display: flex;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    padding: 20px 10px;
}

.forecast-item {
    flex: 1;
    text-align: center;
    padding: 4px 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: default;
    transition: background-color 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.8s ease;
}

    .forecast-item:last-child {
        border-right: none;
    }

    .forecast-item:hover {
        background-color: rgba(255, 255, 255, 0.14);
        transform: translateY(-6px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    }

.forecast-time {
    font-size: 0.8em;
    opacity: 0.75;
    margin-bottom: 10px;
    transition: opacity 0.8s ease;
}

.forecast-item:hover .forecast-time {
    opacity: 1;
}

.forecast-emoji {
    font-size: 1.6em;
    margin-bottom: 10px;
    display: inline-block;
    animation: float-cloud 6s ease-in-out infinite;
    transition: transform 0.8s ease;


}

.forecast-item:hover .forecast-emoji {
    transform: scale(1.15) translateY(-3px);
}

.forecast-temp {
    font-size: 1em;
    font-weight: 600;
    transition: transform 0.8s ease;
}

.forecast-item:hover .forecast-temp {
    transform: scale(1.05);
}

@keyframes float-cloud {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }
}

@media (max-width: 640px) {
    .panel-current {
        flex-wrap: wrap;
    }

    .current-details {
        margin-left: 0;
        text-align: left;
    }

    .panel-forecast {
        overflow-x: auto;
    }

    .forecast-item {
        flex: 0 0 auto;
        min-width: 70px;
    }
}
