@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;400;700&display=swap');

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

body{
    background: #f3f6fa;;
    background-repeat: no-repeat;
    background-size:cover;
    overflow:hidden;
    height: 100vh;
    font-family: 'Poppins', sans-serif;
}
.head{
    text-align: center;
}
.container{
    padding: 20px 70px;
    color:#fff;
}
.search-box{
    background: rgba(24,24,27,0.8);
    padding: 35px;
    border-radius: 10px;
    border: 1px solid #eee;
    
    
}
.search-box h1 {
    color: white;
    line-height: 2;
  }
  
  h1.temp {
    margin: 0;
    margin-bottom: 0.4em;
  }
  
  .flex {
    display: flex;
    align-items: center;
  }
  
  .description {
    text-transform: capitalize;
    margin-left: 8px;
  }
  
  .search-box input,
  .search-box button {
    display: block;
    width: 80%;
    margin: 0 auto;
    padding: 10px;
    margin-bottom: 5px;
    outline: none;
    border: none;
  }
  
  .search-box input {
    background-color: rgba(0, 0, 0, 0.5);
    border-bottom: solid 2px white;
    border-radius: 10px 0 10px 0;
    text-align: center;
    font-size: 14px;
    color: white;
  }
  
  .search-box input:focus {
    color: white;
    font-size: 15px;
  }
  
  .search-box input::placeholder {
    color: rgba(255, 255, 255.5);
  }
  
  .search-box button {
    background-color: #db6400;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .search-box button:hover {
    background-color: #b05102;
  }
  
  .search-box.error {
    color: white;
    font-size: 14px;
  }

.current-info{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.date-container{
    font-weight: 100;
}
.date-container .time{
    font-size: 70px;
    background: gray;
    justify-content: center;
    display: flex;
    box-shadow: 0 7px 5px #888888;
    
}

.date-container #am-pm{
    font-size: 30px;
    margin-left: 20px;
}

.date-container .date{
    display: flex;
    background: gray;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 7px 5px #888888;
    
}

.place-container{
    text-align: end;
}

.place-container .time-zone{
    font-size: 30px;
    font-weight: 100;
    background: gray;
    display: grid;
    box-shadow: 0 7px 5px #888888;
    
    
}

.place-container .country{
    font-size: 12px;
    font-weight: 700;
}

.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;
}

.future-forecast{
    
    padding: 25px;
    position: fixed;
    bottom: 0;
    display: flex;
    color:white;
    width: 100%;
    align-items: center;
    justify-content: center;
    overflow-y: hidden;
}

.future-forecast .weather-forecast{
    display: flex;
}

.weather-forecast .weather-forecast-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    border-radius: 10px;
    background-color:rgb(143 171 229 / 98%);;
    padding: 15px;
    color: black;
    box-shadow: 0 7px 5px #888888;
}
.w-icon{
    filter: brightness(80%);
}
.weather-forecast .weather-forecast-item .day{
    padding: 5px 15px;
   
    color:white;
    border-radius: 50px;
    text-align: center;
}

.weather-forecast .weather-forecast-item .temp{
    font-weight: 400;
    font-size: 12px;
    
}
.weather-forecast .weather-forecast-item .humid{
    font-weight: 400;
    font-size: 12px;
    
}
.weather-forecast .weather-forecast-item .wcondition{
    font-weight: 400;
    font-size: 12px;
}


@media only screen and  (max-width:730px){
    
    .container{
        padding: 20px;
    }
    
    .future-forecast{
        justify-content: start;
        align-items: none;
        overflow-y: scroll;
    }

    .future-forecast .today .temp{
        font-size: 16px;
    }

    .date-container .time{
        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-item{
        font-size: 14px;
    }

}

@media only screen and (max-width: 1400px){
    .future-forecast{
        justify-content: start;
        align-items: none;
        overflow-x: scroll;
    }
}
