@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing:border-box;
}
body{
    font-family:'Poppins',sans-serif;
    font-weight: 500;
    height: 100vh;
    overflow: hidden;
    background-repeat: no-repeat; 
    background-image: url('https://source.unsplash.com/1600x900/?weather');
    background-size: cover;
    background-color: grey;
}
.container{
    padding: 20px 70px;
    color: rgb(243, 241, 241);
}
.current-info{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.date-container{
    font-weight: bold;
}
.date-container .time{
    font-size: 70px;
    font-weight: bold;
    

}
.date-container #am-pm{
    font-size: 50px;
    margin-left: 5px;
    font-weight: bold;
}
.date-container .data{
    font-size:30px;
    font-weight: bold;
}
.place-container{
    text-align: end;
}
.place-container .time-zone{
    font-size: 30px;
    font-weight: bold;
}
.place-container .country{
    font-size: 10px;
    font-weight: bold;
}
.current-info .others{
    display: flex;
    flex-direction: column;
    background: rgba(24,24,27,0.6);
    padding: 20px;
    border-radius: 10px;
    margin: 10px 0;
    border: 1px solid #eee;

}
.current-info .others .weather-item{
    display: flex;
    justify-content: space-between;
}
.future-forecast{
    background: rgba(6, 6, 7, 0.555);
    padding: 25px;
    position: fixed;
    display: flex;
    bottom: 0;
    color: white;
    width: 100%;
    align-items: center;
    justify-content: center;
    overflow-x:scroll;
    border:none;
    
}
.future-forecast .today{
    display:flex;
    align-items: center;
    justify-content: center;
}
.future-forecast .today .day{
    padding: 5px 15px;
    background: #3c3c44;
    border-radius: 50px;
    text-align: center;
}
.future-forecast .today .temp{
    font-size: 18px;
    padding-top: 15px;

}
.future-forecast .weather-forecast{
    display: flex;
}
.card{
    display: flex;
    position: relative;
    max-width:auto;
    height: 250px;
    width: 4px;
    min-width: 250px;
    padding: 1.5rem;
    border-radius: 30px;
    box-shadow: 3px 3px 50px rgba(0, 0, 0, 0.7), -3px -3px 50px rgba(0, 0, 0, 0.7);
    transition: .2s;
    background: rgba(73, 80, 80, 0.459);
    margin: 1em;
    align-items:center;
    color: white;
}
.card:hover{
    transform: translateY(-1rem);
}
.weather-forecast-item:hover{
    transform: translateY(-1rem);
}
.weather-forecast-item:hover~.weather-forecast-item{
    transform:translateX(10px);
}
.weather-forecast-item:not(:first-child){
    margin-left:-20px;
}
.weather-forecast-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    border: none;
    border-radius: 30px;
    padding: 1.5rem;
    position: relative;
    box-shadow:  0.5rem  0 0.5rem #000;
    transition: .2s;
    background: rgba(28, 29, 29, 0.459);
    font-weight:bold;
    
}
.weather-forecast .weather-forecast-item .day{
    padding: 5px 15px;
    background: #3C3c44;
    border-radius: 50px;
    text-align: center;
}
.weather-forecast .weather-forecast-item .temp{
    font-weight: bold;
}


@media only screen and (max-width: 840px){
    
    .weather-forecast-item{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: auto;
        border: 5px;
        border-radius: 30px;
        padding: 1.5rem;
        position: relative;
        box-shadow: 0.5rem 0 -0.5rem  rgba(97, 92, 92, 0.411);
        transition: .2s;
        background: rgba(28, 29, 29, 0.459);
        touch-action:pinch-zoom;
        
    }

.future-forecast{
    justify-content: start;
    align-items: none;
    overflow-x: scroll;
}
.future-forecast .today .temp{
    font-size: 23px;
}
.date-container .item{
    font-size: 50px;
}
.date-container #am-pm{
    font-size: 20px;
}
.date-container .date{
    font-size: 20px;
}
.place-container{
    text-align: end;
    margin-top: 15px;
}
.place-container .time-zone{
    font-size: 20px;
}
.current-info .others{
    padding: 12px;
}
.current-info .others .weather-items{
    font-size: 14px;
}
}
@media only screen and (max-width: 1000px){
    .future-forecast{
        justify-content: start;
        align-items: none;
        overflow-x: scroll;
    }
}