/* Fundo*/
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #74ebd5, #445e76);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  color: #fff;
}

/* Caixa central */
.container {
  background: rgba(70, 100, 124, 0.45);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0px 8px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(6px);
}

/* Título */
h1 {
  margin-bottom: 20px;
  font-size: 26px;
  letter-spacing: 1px;
}

/* Input + botão */
form {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
}

input[type="text"] {
  padding: 12px;
  border: none;
  border-radius: 10px;
  outline: none;
  width: 65%;
  font-size: 16px;
}

input[type="submit"] {
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
  background: #fff;
  color: #2193b0;
  transition: all 0.3s ease;
}

input[type="submit"]:hover {
  background: #f1f1f1;
  transform: scale(1.05);
}

/* Resultado */
#weather-data {
  margin-top: 15px;
  font-size: 18px;
  animation: fadeIn 0.6s ease-in-out;
}

.temperature {
  font-size: 32px;
  font-weight: bold;
  margin: 10px 0;
  text-shadow: 0px 2px 5px rgba(0,0,0,0.3);
}

.description {
  font-size: 20px;
  text-transform: capitalize;
  margin-bottom: 10px;
}

.details {
  font-size: 15px;
  line-height: 1.6;
}

/* Ícone do clima */
.icon img {
  width: 100px;
  margin-top: 10px;
  filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.3));
}

/* Animação suave */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* título fora da caixa */
.header-text {
  position: absolute;
  top: 30px;
  text-align: center;
  width: 100%;
  color: #fff;
  text-shadow: 0px 2px 5px rgba(0,0,0,0.4);
}

.header-text h2 {
  font-size: 24px;
  margin-bottom: 5px;
}

.header-text p {
  font-size: 16px;
  opacity: 0.9;
}

/* footer */
footer {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: #fff;
  opacity: 0.8;
}
