html{
    font-size: 100%;
}

*, ::before, ::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
    letter-spacing: 1px;
}

.container{
    display: flex;
    flex-direction: column;
    height: 100vh;
}

h1{
    text-align: center;
    background-color: #fff;
    font-weight: normal;
    font-size: 2.5rem;
    line-height: clamp(80px, 12vh, 250px);
}

h1 span{
    font-weight: bold;
    letter-spacing: 2px;
}

.loader{
    text-align: center;
    font-size: 1.5rem; 
}

ul{
    background-color: #fff;
    display: flex;
    list-style: none;
    align-items: center;
}

li{
    text-align: center;
    width: 100%;
    padding: clamp(5px, 2vw, 20px) 0;
}

li:not(:nth-child(1n + 5)){
    border-right: solid 1px #AAA;
}

li:nth-child(1n + 6){
    display: none;
}

.error-box--active{
    position: absolute;
    top: 20vh;
    left:25vw;
    width: 50vw;
    padding: 20px;
    color: #842029;
    background-color: #f8d7da ;
    text-align: center;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 2px 2px 3px rgba(132, 32, 41, 0.5);
}

.current-weather{
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(45deg, #73b5ef, #c5d8e8);
    text-shadow: 1px 1px 2px #fff;
}

.current-weather--night{
    background: linear-gradient(0deg, #233255, #061638);
    color: #fff;
    text-shadow: 1px 1px 2px #000;    
}

.current-weather--rain{
    background: linear-gradient(45deg, #8d8d8d, #f1f1f1);   
}

.current-weather_lite{
   display: flex;
   justify-content: space-evenly;
   align-items: center;
   flex: 1;
}

.current-weather_lite img{
    object-fit: contain;
    height: 100%;
    max-width: 50%;
    transform: scale(1.4);
}

.current-weather_temp{
    font-size: 5rem;
    font-weight: bold;
}

.current-weather_txt{
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.8rem;
}

.current-weather_weekday{
    text-transform: uppercase;
    font-weight: bold;
    font-size: 2.5rem;
    letter-spacing: 2px;
    padding: 0.9rem 0;
}

.current-weather_description{
    padding: 1rem 0;
}

.current-weather_description::first-letter{
    text-transform: uppercase;
}

.current-weather_description::first-line{
    font-weight: bold;
}

.hourly-weather{
    position: relative;
}

.hourly-weather::after{
    content: "";
    background: linear-gradient(45deg, #c5d8e8,#73b5ef, #c5d8e8);
    
    width: 96%;    
    height: 4px;
    position: absolute;
    bottom: -2px;
    left:2%;
    border-radius: 2px;
}

footer{
    background-color: #fff;
    text-align: center;
    padding: 0.5rem;
    color: #333;
    font-size: 0.9rem;
}

footer a{
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover{
    text-decoration: underline;
}

.night{
    background-color: #061638;
    color: #fff;
}

@media screen and (min-width: 768px){
    html{
        font-size: 110%;
    }

    .current-weather{
        flex-direction: row;
        justify-content: space-evenly
    }

    .current-weather_lite{
        flex-direction: column;
        flex: initial;
    }

    .current-weather_lite img{
        object-fit: contain;
        height: 100%;
        max-width: 50%;
        transform: scale(1.8);
    }
     
    .current-weather_temp{
        font-size: 5rem;
        font-weight: bold;    
    } 

    li:nth-child(1n + 6){
        display: initial;
    }

    li:not(:last-child){
        border-right: solid 1px #AAA;
    }

    li img{
        transform: scale(1.4);
    }
}

@media screen and (min-width: 1300px){
    html{
        font-size: 125%;
    }
}

@media screen and (min-width: 1920px){
    html{
        font-size: 150%;
    }
}

@media screen and (min-width: 2560px){
    html{
        font-size: 200%;
    }

    li{
        line-height: 2rem;
    }

    li img{
        transform: scale(2);
    }
}

@media screen and (min-width: 3840px){
    html{
        font-size: 300%;
    }

    li{
        line-height: 2.5rem;
    }

    li img{
        transform: scale(3);
    }
}

@media screen and (max-height: 700px){
   .container{
        height: auto;
   }

   .current-weather_lite img{
        min-height: 8rem;
    }
}