@import url("https://use.typekit.net/hnp0ckc.css");

*{
    font-family: "poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    outline: none;
}

body{
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #2E4F6E;
}

.container{
    position: relative;
    width: 400px;
    height: 105px;
    background-color: #fff;
    padding: 28px 32px;
    overflow: hidden;
    border-radius: 20px;
    font-family: 'Roboto', sans-serif;
    transition: 0.6s ease-out;
}

.pesquisar{
    width: 100%;
    height: min-content;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pesquisar input{
    color: #2E4F6E;
    width: 80%;
    font-size: 20px;
    font-weight: 500;
    padding-left: 32px;
}

.pesquisar input::placeholder{
    font-size: 20px;
    color: #2E4F6E;
}

.pesquisar button{
    cursor: pointer;
    width: 50px;
    height: 50px;
    color: #2E4F6E;
    border-radius: 50%;
    background-color: #f6f6f6;
    font-size: 22px;
    font-weight: 550;
    transition: 0.3s ease;
}

.pesquisar button:hover{
    color: #fff;
    background-color: #2E4F6E;
}

.pesquisar i{
    position: absolute;
    color: #2E4F6E;
    font-size: 26px;
    transform: translate(0, -12%)
}

.clima{
    text-align: center;
}

.clima img{
    width: 60%;
    margin-top: 30px;
}

.clima .temperatura{
    position: relative;
    color: #2E4F6E;
    font-size: 4rem;
    font-weight: 800;
    margin-top: 30px;
    margin-left: -16px;
}

.clima .temperatura span{
    position: absolute;
    margin-left: 4px;
    font-size: 1.5rem;
}

.clima .descricao{
    color: #2E4F6E;
    font-size: 22px;
    font-weight: 500;
    text-transform: capitalize;
}

.clima-detalhes{
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.clima-detalhes .umidade, .clima-detalhes .vento{
    display: flex;
    align-items: center;
    width: 50%;
    height: 100px;
}

.clima-detalhes .umidade{
    padding-left: 20px;
    justify-content: flex-start;
}

.clima-detalhes .vento{
    padding-right: 20px;
    justify-content: flex-end;
}

.clima-detalhes i{
    color: #2E4F6E;
    font-size: 22px;
    margin-right: 8px;
    
}

.clima-detalhes span{
    color: #2E4F6E;
    font-size: 22px;
    font-weight: 500;
}

.clima-detalhes p{
    color: #2E4F6E;
    font-size: 14px;
    font-weight: 500;
}

.invalido{
    width: 100%;
    text-align: center;
    margin-top: 50px;
    scale: 0;
    opacity: 0;
    display:  none;
}


.invalido img{
    width: 70%;
}

.invalido p{
    color: #2E4F6E;
    font-size: 22px;
    font-weight: 500;
    margin-top: 12px;
}

.clima, .clima-detalhes{
    scale: 0;
    opacity: 0;
}

.fadeIn{
    animation: 0.5s fadeIn forwards;
    animation-delay: 0.5s;
}

footer{
    color: #b2b2b2;
    position: fixed;
    bottom: 0;
    font-size: 14px;
}

footer a{
    color: white;
    text-decoration: none;
    font-size: 600;
}

@keyframes fadeIn{
    to{
        scale: 1;
        opacity: 1;
    }
}


/* Tablets (até 768px) */
@media (max-width: 768px) {
  .container {
    width: 90%;
    padding: 20px;
  }

  .pesquisar input {
    font-size: 16px;
  }

  .pesquisar button {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .clima img {
    width: 40%;
    margin-top: 20px;
  }

  .clima .temperatura {
    font-size: 3rem;
  }

  .clima-detalhes {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .clima-detalhes .umidade,
  .clima-detalhes .vento {
    justify-content: center;
    padding: 0;
    width: 100%;
  }
}

/* Celulares (até 480px) */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .container {
    width: 100%;
    padding: 15px;
  }

  .pesquisar input {
    font-size: 14px;
    padding-left: 28px;
  }

  .pesquisar button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .clima img {
    width: 70%;
    margin-top: 20px;
  }

  .clima .temperatura {
    font-size: 2.5rem;
  }

  .clima .descricao {
    font-size: 18px;
  }

    .clima-detalhes {
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }

  .clima-detalhes .umidade,
  .clima-detalhes .vento {
    justify-content: center;
    width: 100%;
  }

  footer {
    font-size: 12px;
    text-align: center;
  }
}
