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

body {
    height: 100vh;
    background: linear-gradient(rgb(26,227,255), rgb(17,98,255));
    background-size: 100% 100%;
    font-family: sans-serif;
    color: black;
    display: grid;
    grid-template-columns: 0.5fr 0.5fr;
    grid-template-rows: 0.1fr 0.9fr;
    grid-gap: 1em 2em;
    grid-template-areas:
        "search-box search-box"
        "current forecast";
}

#map {
    position: absolute;
    z-index: -1;
    height: 100vh;
    width: 100vw;
}

.search-box {
    grid-area: search-box;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2em;
}

.current {
    grid-area: current;
    display: flex;
    justify-content: flex-end;
}

.current-section {
    background-color: rgba(255,255,255,0.5);
    box-shadow: 0.5em 0.5em 1em rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    border-radius: 2em;
    border-top: 0.1em solid rgba(255,255,255,0.5);
    border-left: 0.1em solid rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 27.1em;
    height: 40em;
}

.date {
    font-size: 1.2rem;
    margin-bottom: 0.4em;
}

.current-weather-condition {
    font-size: 2.5rem;
    margin-bottom: 0.4em; 
}

.current-location-name {
    font-size: 1.2rem;
    margin-bottom: 1.5em;
}

.current-temperature {
    font-size: 6rem;
    margin-bottom: 0.05em;
}

#current-icon {
    margin-bottom: 2em;
}

.current-temperature-feels-like {
    font-size: 2rem;
    margin-bottom: 0.8em;
}

.current-temperature-maxmin {
    font-size: 1.7rem;
}

.forecast {
    grid-area: forecast;
    display: flex;
}

.forecast-section {
    width: 27.1em;
    height: 40em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.forecast-section div {
    width: 27.1em;
    height: 6em;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: rgba(255,255,255,0.5);
    box-shadow: 0.5em 0.5em 1em rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    border-radius: 1.25em;
    border-top: 0.1em solid rgba(255,255,255,0.5);
    border-left: 0.1em solid rgba(255,255,255,0.5);
}

.forecast-day, .forecast-maxmin {
    padding: 2.5rem 1.8rem 2.5rem 2rem;
}

.forecast-day {
    font-size: 1.2rem;
    font-weight: bold;
}

.forecast canvas {
    padding: 1rem 2rem 1rem 2rem;
}

.forecast-maxmin {
    font-size: 1.2rem;
}

@media screen and (max-width: 950px) {
    body {
        position: relative;
        height: auto;
        background: linear-gradient(rgb(26,227,255), rgb(17,98,255));
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 0.1fr 0.4fr 0.4fr;
        grid-gap: 1.5em 1em;
        grid-template-areas:
            "search-box"
            "current"
            "forecast";
    }

    #map {
        height: 100%;
        width: 100%;
    }

    .current {
        justify-content: center;
    }

    .forecast {
        justify-content: center;
    }

    .forecast-section {
        height: 35em;
        margin-bottom: 1.5em;
    }
}

@media screen and (max-height: 750px) {
    body {
        height: auto;
    }
}

@media screen and (max-width: 420px) {
    .current-section {
        width: 20em;
        height: 40em;
    }

    .current-weather-condition {
        font-size: 1.8rem;
    }

    .forecast-section {
        width: 20em;
    }

    .forecast-section div {
        width: 20em;
    }

    .forecast-day, .forecast-maxmin {
        padding-top: 2.5rem 0.8rem 2.5rem 0.8rem;
    }

    .forecast canvas {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
}