body {
    background: linear-gradient(135deg, #f0f0f0, #b9b9b9);
    min-height: 100vh;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.search-box {
    margin-bottom: 10px;
    display: flex;

}

.search-box input {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 14px;
    width: 130px;
    background: #9b9b9b4b;
    box-shadow: 0 4px 16px rgba(167, 143, 231, 0.12);
    color: #fff;
    height: 15px;
    margin-top: 10px;
}

#btnMapa {
  background: transparent;
  border: none;
  cursor: pointer;
  height: 40px;
  width: 38px;
  display: flex;
  margin-top: 6px;
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.text-box {
    background: #9b9b9b75;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(167, 143, 231, 0.12);
    padding: 32px 36px;
    min-width: 320px;
    max-width: 400px;
    margin: 0 auto;
}

.text-box>div {
    margin-bottom: 12px;
}

.text-box>div:last-child {
    margin-bottom: 0;
}

#cidade {
    font-size: 1.5em;
    font-weight: bold;
    color: #000000;
}

#iconeClima {
    width: 48px;
    height: 48px;
    vertical-align: middle;
}

#temperatura {
    font-size: 2.5em;
    color: #222;
    font-weight: bold;
    margin-left: 8px;
}

.text-box span[style*="font-size: 1.2em"] {
    font-size: 1.2em;
    color: #141414;
    margin-left: 4px;
}

#sensacao,
#descricao {
    font-size: 1.1em;
    color: #222;
}

.text-box .info-row {
    display: flex;
    gap: 32px;
    font-size: 1em;
    color: #222;
    margin-top: 10px;
}

@media (max-width: 500px) {
    .text-box {
        padding: 18px 8px;
        min-width: 0;
        max-width: 98vw;
    }

    .text-box .info-row {
        flex-direction: column;
        gap: 8px;
    }
}

.sol-animado {
    width: 60px;
    height: 60px;
    background: #FFD700;
    border-radius: 50%;
    margin: 0 auto 12px auto;
    box-shadow: 0 0 24px 8px #FFD70088;
    position: relative;
    animation: girarSol 2s linear infinite;
}

@keyframes girarSol {
    0% {
        box-shadow: 0 0 24px 8px #FFD70088;
    }

    50% {
        box-shadow: 0 0 32px 16px #FFD700cc;
    }

    100% {
        box-shadow: 0 0 24px 8px #FFD70088;
    }
}

/* Nuvem animada */
.nuvem-animada {
    width: 70px;
    height: 40px;
    background: #ccc;
    border-radius: 50px 50px 40px 40px / 40px 40px 30px 30px;
    position: relative;
    margin: 0 auto 12px auto;
    animation: moverNuvem 3s linear infinite;
}

.nuvem-animada::before,
.nuvem-animada::after {
    content: '';
    position: absolute;
    background: #ccc;
    border-radius: 50%;
}

.nuvem-animada::before {
    width: 36px;
    height: 36px;
    left: -18px;
    top: -10px;
}

.nuvem-animada::after {
    width: 28px;
    height: 28px;
    left: 48px;
    top: -6px;
}

@keyframes moverNuvem {
    0% {
        left: 0;
    }

    50% {
        left: 10px;
    }

    100% {
        left: 0;
    }
}
.chuva-animada {
    width: 70px;
    height: 40px;
    background: #ccc;
    border-radius: 50px 50px 40px 40px / 40px 40px 30px 30px;
    position: relative;
    margin: 0 auto 12px auto;
}

.chuva-animada::before,
.chuva-animada::after {
    content: '';
    position: absolute;
    background: #ccc;
    border-radius: 50%;
}

.chuva-animada::before {
    width: 36px;
    height: 36px;
    left: -18px;
    top: -10px;
}

.chuva-animada::after {
    width: 28px;
    height: 28px;
    left: 48px;
    top: -6px;
}

.chuva-animada .gota {
    position: absolute;
    width: 6px;
    height: 12px;
    background: #2196f3;
    border-radius: 50%;
    left: 18px;
    top: 32px;
    animation: cairGota 1s infinite;
}

.chuva-animada .gota2 {
    left: 32px;
    animation-delay: 0.5s;
}

@keyframes cairGota {
    0% {
        opacity: 0;
        top: 32px;
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        top: 44px;
    }
}

.lua-animada {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 20px 20px, #fff 60%, #d1d1d1 100%);
    border-radius: 50%;
    box-shadow: 0 0 30px 10px #fff8;
    margin: 0 auto;
}
.nevoa-animada {
  position: relative;
  width: 100px;
  height: 30px;
  margin: 0 auto;
}

.nevoa-animada::before,
.nevoa-animada::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, rgba(200,200,200,0.3) 0%, rgba(200,200,200,0.8) 50%, rgba(200,200,200,0.3) 100%);
  border-radius: 4px;
  animation: moveNevoa 3s linear infinite;
}

.nevoa-animada::after {
  top: 70%;
  animation-delay: 1.5s;
}

@keyframes moveNevoa {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
#mapModal {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
  position: absolute;
  top: 242px; 
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

#mapModal.active {
  opacity: 1;
  visibility: visible;
}

#map {
  width: 500px;
  height: 400px;
  border: 2px solid #ccc;
  border-radius: 16px;
}