* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background-image: url("/img/backgrounds/default.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

/* Classe aplicada durante a troca de background para efeito de fade */
body.is-changing {
  opacity: 0;
}

.container {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: 450px;
  padding: 20px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

h1 {
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
  font-size: 40px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.city-input {
  border: none;
  outline: none;
  border-radius: 20px;
  padding: 10px;
  background-color: #7c7c7c2b;
  color: #fff;
  font-size: 20px;
  width: calc(100%-100px);
  margin-right: 10px;
}

.button-icon {
  padding: 10px;
  border: none;
  background-color: #7c7c7c2b;
  border-radius: 50%;
  margin-left: 10px;
  float: right;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: 0.4s;
}

.button-icon:hover {
  background-color: #7c7c7c;
  transform: scale(1.2);
}
.img-button {
  width: 30px;
  height: 30px;
}

h2 {
  padding-top: 20px;
}

.city-name {
  font-size: 28px;
  color: #fff;
}

.temperature {
  color: #fff;
  font-size: 30px;
  margin-top: 10px;
}

.humidity {
  color: #fff;
}

.ai-button {
  border-radius: 10px;
  width: 100%;
  margin-top: 20px;
  padding: 12px 10px;
  font-size: 16px;
  color: #fff;
  background-color: rgb(138, 45, 226);
  border: none;
  cursor: pointer;
}

.ai-button:hover {
  background-color: rgb(77, 11, 138);
  transform: scale(0.98);
}
.ai-button:active {
  transform: scale(0.98);
  opacity: 0.8;
}

.ai-response {
  color: #fff;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.5;
}
