*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    height: 100dvh;
    font-family: Helvetica, sans-serif;
    font-size: 13px;
    background-color: #343D4B;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* #80BDCF,#5465D4 */
.weatherapp-container{
    width: 700px;
    display: flex;
    flex-direction: row;
    max-width: 700px;
    min-height: 400px;
    background-color: #222832;
    border-radius: 30px;
    overflow: hidden;
}
#weather{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40%;
    max-height: 400px;
    min-height: 350px;
    padding: 30px;
    background: linear-gradient(to bottom right, #30BDDF,#9165D4 );
    border-radius: 30px;
    & p{
        margin-bottom: 7px;
        font-size: smaller;
    }
    #current-day, #weather-logo, #temperature, #weather-condition{
        font-size: 2em;
        color: white;
        margin-bottom: 2px;
    }
}
#weather-details{
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    gap: 20px;
    & #weather-data div{
        margin-bottom: 7px;
        display: flex;
        gap: 20px;
        justify-content: space-between;
        & p{
            text-align: right;
        }
    }
}
#forecast{
    padding: 7px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: .8em;
    text-align: center;
    background-color: #343D4B;
    border-radius: 10px;
    & .forecast-data{
        width: 22%;
        min-height: 20%;
        padding: 4px;
        background-color: #222832;
        border-radius: 8px;
        
        & *{
            overflow: hidden;
            margin-bottom: 3.5px;
        }
        & .forecast-weather-icon{
            width: 40px;
        }
    }
}
#weather-location{
    text-align: center;
    & input[type="text"]{
        margin-bottom: 15px;
        padding: 5px 7px;
        border: #5465D4 2px solid;
        border-radius: 7px;
        font-size: 1.1em;
        transition: border-color .3s;
        outline: none;
    }
    & input[type="text"]:focus{
        border-color: #80BDCF;
    }
    & button{
        padding: 5px 7px;
        border: none;
        border-radius: 5px;
        background: linear-gradient(to right,  #30BDDF,#9165D4 );
        font-weight: bold;
        color: #fff;
        transition: opacity 0.3s;
    }
    & button:hover{
        cursor: pointer;
        opacity: 0.9;
    }
}
@media screen and (max-width:600px){
    .weatherapp-container{
        height: 100%;
        border-radius: 0px;
        flex-direction: column;
        & #weather,#weather-details{
            width: 100%;
            height: 50%;
        }
        & #weather{
            border-top-left-radius: 0px;
            border-top-right-radius: 0px;
        }
        & #weather-location{
            margin-top: 10px;
        }
    }
}