@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Ubuntu",sans-serif;
}
body{
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image:url("https://cdn.vectorstock.com/i/500p/11/27/sky-or-heaven-nature-background-sunset-sunrise-vector-29251127.jpg");
    background-size: cover;
    background-repeat: no-repeat;
}
.container{
    height: 70vh;
    background-color: rgb(242, 242, 242, 0.4);
    border-radius: 15px;
    box-shadow: 0px 5px 10px rgb(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    padding:2rem;
    backdrop-filter: blur(10px);
}
.hide{
    display: none;
}
.form h3{
    margin-bottom: 1rem;
}
.form-input-container{
    display: flex;
}
.form input{
    padding: 0.8rem;
    border:none;
    flex:1;
    border-radius: 4px;
    box-shadow: 0px 2px 3px rgb(0, 0, 0, 0.1);

}

.form button{
    padding: 0.8rem;
    min-width:50px;
    margin-left: 8px;
    background-color: #32adf0;
    box-shadow: 0px 2px 3px rgb(0, 0, 0, 0.1);
    color:#fff;
    border:none;
    border-radius:4px;
    cursor:pointer;
}
/*Clima */
#weather-data{
    border-top:1px solid #fff;
    box-shadow: 0px -2px 0px rgb(0, 0, 0, 0.1);
    margin-top:1.5rem;
    padding-top: 1.5rem;
    text-align:center;
    min-height: 2rem;
    max-height: 2rem;
}

#weather-data h2{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.6rem;
}
#weather-data h2 i{
    font-size:1rem;
}
#weather-data span{
    margin:0.6rem;
}
#country{
    height:15px;
}
#description-container{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.6rem 0;
    font-size: 1.3em;
    min-height: 5em;
    max-height: 5em;
}
#description-container img{
    max-width: 4em;
}
#details-container{
    display: flex;
    justify-content:center;
    align-items: center;
    gap: 1rem;

}
#description{
    text-transform: capitalize;
}
#details-container #humidity{
    border-right:1px solid #fff;
    box-shadow: 1px 0px 0px rgb(0, 0, 0, 0.1);
    margin: 0.6rem;
    padding: 0.6rem;
}

#temperature span{
    font-size: 1.2em;
}

/* mobile pequeno */
@media (max-width: 360px) {

  .container {
    width: 95%;
    padding: 1.2rem;
  }

  .form h3 {
    font-size: 1rem;
    text-align: center;
  }

  .form-input-container {
    flex-direction: column;
  }

  .form button {
    width: 100%;
    margin: 0.6rem 0 0 0;
  }

  #temperature span {
    font-size: 1.4rem;
  }

  #description-container {
    flex-direction: column;
    font-size: 1rem;
  }

  #details-container {
    flex-direction: column;
    gap: 0.4rem;
  }

  #details-container #humidity {
    border: none;
    box-shadow: none;
  }
}

/* mobile médio */
@media (max-width: 480px) {

  body {
    padding: 1rem;
  }

  .container {
    width: 90%;
    padding: 1.5rem;
  }

  .form h3 {
    font-size: 1.1rem;
    text-align: center;
  }

  .form-input-container {
    flex-direction: column;
  }

  .form button {
    width: 100%;
    margin: 0.6rem 0 0 0;
  }

  #weather-data h2 {
    font-size: 1.2rem;
  }

  #temperature span {
    font-size: 1.6rem;
  }

  #description-container {
    flex-direction: column;
    font-size: 1.1rem;
  }

  #details-container {
    flex-direction: column;
    gap: 0.6rem;
  }

  #details-container #humidity {
    border: none;
    box-shadow: none;
  }
}

/* mobile grande */
@media (max-width: 768px) {

  .container {
    width: 80%;
    max-width: 500px;
  }

  .form h3 {
    font-size: 1.2rem;
  }

  #temperature span {
    font-size: 1.7rem;
  }

  #description-container {
    font-size: 1.2rem;
  }
}


/**https://api.openweathermap.org/data/2.5/weather?q=São%20Paulo&appid=97cf9eb6889fe2fb5856eb7c24120f39&units=metric&lang=pt_br
