/* Geral */
*{
    padding: 0;
    margin: 0;
    font-family: "Ubuntu", sans-serif;
}

body {
    background: linear-gradient(180deg, rgba(89,76,238,1) 0%, #1e802b 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-position: center;
    background-size: cover;
}

.hide {
    display: none;
}

.container {
    background-color: #2faa77;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    padding: 2rem;
    color: aliceblue;
    border-radius: 1rem;
}

/* Form */

.form h3{
    margin-bottom: 1rem;
}

.form-input-container {
    display: flex;
}

.form input {
    padding: .8rem;
    border: none;
    flex: 1;
    border-radius: 4px;
}

.form button {
    padding: 0.8rem;
    min-width: 50px;
    margin-left: 8px;
    background-color: #8dd0f5;
    color: aliceblue;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Clima */ 
#weather-data, #error-message, #loader {
    border-top: 1px solid white;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    text-align: center;
}

#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: 50px;
}

#description {
    font-weight: bold;
    text-transform: capitalize;
}

#description-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.6rem 0;
}

#details-container{
    display: flex;
    justify-content: center;
    align-items: center;
}

#details-container #umidity {
    border-right: 1px solid white;
    margin: 0.6rem;
    padding: 0.6rem;
}

/* Loader */
#loader i {
    animation: rotate 1.5s linear infinite;
  }
  
  @keyframes rotate {
    to {
      transform: rotate(360deg);
    }
  }