* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  background-color: whitesmoke;
  color: #333;
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;
}

.weather-app {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow:
    rgba(0, 0, 0, 0.3) 0px 19px 38px,
    rgba(0, 0, 0, 0.22) 0px 15px 12px;
  max-width: 480px;
  width: 100%;

  display: flex;
  flex-direction: column;
  gap: 20px;
}

#search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#search-form label {
  width: 100%;
}

#city-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

#search-form button {
  padding: 10px;
  background-color: #ddd;
  color: #333;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: 0.3s;
}

#search-form button:hover {
  background-color: #333;
  color: #ddd;
}

#weather-result {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  margin-top: 10px;
}

#weather-result img {
  width: 80px;
  /* height: 80px; */
  align-self: center;
}

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

#temperature {
  font-size: 40px;
  font-weight: 700;
}

#weather-result {
  display: none;
}

.loader {
  width: 15px;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: l5 1s infinite linear alternate;
  align-self: center;
  display: none;
}
@keyframes l5 {
    0%  {box-shadow: 20px 0 #000, -20px 0 #0002;background: #000 }
    33% {box-shadow: 20px 0 #000, -20px 0 #0002;background: #0002}
    66% {box-shadow: 20px 0 #0002,-20px 0 #000; background: #0002}
    100%{box-shadow: 20px 0 #0002,-20px 0 #000; background: #000 }
}