@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
*{
    margin: 0;
    padding: 0;
    outline: none;
}

body{
    font-family: "Roboto", sans-serif;
}

img{
    width: 60px;
}

.container{
    width: 100%;
    height: 100vh;
    display: flex;
}

/* Primer contenedor */

.first-container{
    background-color: #f4f4f4;
    width: 370px;
    height: auto;
    text-align: center;
}

.title{
    padding: 20px;
    margin-top: 50px;
    font-size: 42px;
    font-weight: 800;
    color: rgb(88, 142, 212);
}

.subtitle{
    padding: 10px;
    font-size: 24px;
    font-weight: 400;
    font-style: italic;
}

.search-container{
    margin: 20px auto;
    width: 290px;
    display: flex;
    border-radius: 10px;
    border: 1px solid black;
    height: 55px;
    
}

.search-container select{
    border-radius: 10px;
    border-radius: 10px 0 0 10px;
    border: none;
    background-color: #f4f4f4;
    padding: 5px;
    font-size: 14;
    font-weight: 700;
}

.search-container input{
    width: 100%;
    border-radius: 0 10px 10px 0;
    border: none;
    padding-left: 5px;
    font-size: 17px;
    background-color: #f4f4f4;
}

.first-container button {
    font-size: 18px;
    padding: 15px 25px;
    border-radius: 5px;
    border: none;
    background-color: rgb(37, 123, 235);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

/* Segundo contenedor */

.second-container{
    background: url(img/bg3.jpg) no-repeat center center fixed;
    background-size: cover;
    height: auto;
    width: auto;
    flex: 2;
}

.weather-container{
    background-color: #f4f4f4;
    width: 450px;
    border-radius: 25px;
    margin: 50px auto;
    padding: 5px;
}

.first-section{
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100px;
    margin: 0 10px;
    padding: 10px ;
    border-bottom: 1px solid black;
    
}

.container-name-date{
    display: flex;
    flex-direction: column;
    margin: 20px;  
    width: 100%;
    
}

.container-name-date #name-city{
    font-size: 28px;
    font-weight: 800;
}

.container-name-date #date-city{
    font-size: 16px;
    font-weight: 600;
    color: #5c5c5c;
}

.first-section #temp-city {
    font-size: 72px;
    font-weight: 400;
}

.second-section{
    margin: 0 10px;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid black;
    padding: 10px;
}

.flex-container{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.container-info{
    padding: 5px;
    display: flex;
    width: 150px;
}

.container-stats{
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 5px;
}

.container-stats .name-data {
    font-size: 18px;
    font-weight: 800;
}

.container-stats .data{
    font-size: 15px;
    font-weight: 400;
    color: #5c5c5c;
}

.third-section{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    margin: 0 10px;
}

.container-days{
    background-color: rgb(37, 123, 235);
    width: 95px;
    height: 190px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    margin: 5px;
}

.container-days .day, .max-temp{
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

@media (max-width: 900px) {
    .container{
        display: block;
    }

    .first-container{
        width: 100%;
        height: auto;
        padding-top: 5px;
    }

    .first-container button{
        margin-bottom: 30px;
    }

    .second-container{
        width: 100%;
        height: auto;
    }

    .weather-container{
        width: 100%;
        height: 100%;
        background-color: #ffffff;
        margin: 0;
        padding: 0;
        border: 1px solid gray;
        border-radius: 0;
    }
}