/* GERAIS */

*{
    padding: 0;
    margin: 0;
    font-family: 'Ubuntu', sans-serif;
}

body{
    background: linear-gradient(180deg, #594cee 0%, #8dd0f5 100%);
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

#title {
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 2px 2px 0px rgb(255, 0, 230), -2px -2px 0px blue;
}

.hide {
    display: none;
}

.container {
    background-color: #000000dd;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    padding: 2rem;
    color: #fdfdfd;
    border-radius: 1rem;
}

/* Formulario */

.form h3 {
    margin-bottom: 1.2rem;
    text-align: center;
    
}

.form-input-container {
    display: flex;
}

.form input {
    background: #2d2d2d;
    color: #fff;
    padding: .8rem;
    border: none;
    flex: 1;
    border-radius: 4px;
}

.form input::placeholder{
    color: #fff;
}

.form button {
    padding: .8rem;
    min-width: 50px;
    margin-left: 8px;
    background-color: #131313;
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all ease .2s;
}

.form button:hover{
    background-color: green;
    border: 1px solid white;
}

/* Clima */

#error {
    max-width: 400px;
}

#weather-data, #error {
    border-top: 1px solid #fff;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    text-align: center;
}

#weather-data h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: .6rem;
}

#weather-data h2 i {
    font-size: 1rem;
}

#weather-data span {
    margin: .6rem;
}

#country {
    height: 24px;
}

#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 #fff;
    padding: .6rem;
    margin: .6rem;
}

.loader {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: 
    radial-gradient(farthest-side,#ffffff 94%,#0000) top/8px 8px no-repeat,
    conic-gradient(#0000 30%,#ffffff);
    -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 8px),#000 0);
    animation: l13 1s infinite linear;
}
@keyframes l13{ 
    100%{transform: rotate(1turn)}
}

#loader-container{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1.6em;
}