* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #fff;
}

header {
  text-align: center;
  padding: 2rem 1rem;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1rem;
}

.search-section,
#weather-result {
  background: rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  margin: 0.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
}

input[type="text"] {
  width: 100%;
  padding: 0.7rem;
  border-radius: 6px;
  border: none;
  margin-bottom: 1rem;
}

button {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  opacity: 0.9;
}

.error {
  margin-top: 0.75rem;
  color: #ffd6d6;
  min-height: 1.2em;
}

.hidden {
  display: none;
}

.weather-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.temp-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.temp-block img {
  width: 80px;
  height: 80px;
}

#temperature {
  font-size: 2rem;
  font-weight: bold;
}

.details-block p {
  margin: 0.25rem 0;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  main {
    flex-direction: column;
    align-items: stretch;
  }

  .search-section,
  #weather-result {
    margin: 0.5rem auto;
  }
}
