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

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #121212;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* pattern */
.background-wrapper {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Grid pattern and radial glow */
.background {
  position: absolute;
  inset: 0;
  z-index: 0;

  background-color: #020617;
  background-image: linear-gradient(
      to right,
      rgba(71, 85, 105, 0.3) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(71, 85, 105, 0.3) 1px, transparent 1px),
    radial-gradient(
      circle at 50% 50%,
      rgba(139, 92, 246, 0.15) 0%,
      transparent 70%
    );
  background-size: 32px 32px, 32px 32px, 100% 100%;
}

.container {
  position: relative;
  z-index: 1;
  background-color: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  width: 450px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  background: rgba(30, 30, 30, 0.2);
  backdrop-filter: blur(1px);
}

h1 {
  color: #c1c1c1;
  margin-bottom: 20px;
  font-size: 24px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.input-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

input[type="text"] {
  width: 70%;
  padding: 10px;
  background-color: #1d1e36;
  border: none;
  border-radius: 5px;
  color: #fff;
  outline: none;
  font-size: medium;
}

button {
  width: 25%;
  padding: 10px;
  background-color: #1d1e36;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: medium;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: rgba(0, 0, 135, 0.5);
  transform: scale(1.05);
}

#weather-info {
  margin-top: 20px;
}

#temperature,
#description {
  font-size: xx-large;
  display: inline-block;
  margin-bottom: 20px;
}
#description {
  opacity: 0.8;
}
#feels-like,
#humidity,
#wind-speed,
#sun {
  line-height: 2;
}
.label {
  color: #aabad1;
  opacity: 0.8;
  font-weight: 550;
}

.wrapper-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.wrapper-card .row {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.wrapper-card p {
  border: 1px solid rgb(0, 0, 135);
  padding: 8px 10px;
  border-radius: 5px;
  min-width: 100px;
  text-align: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.wrapper-card p:hover {
  background-color: rgba(0, 123, 255, 0.057);
  transform: scale(1.05);
}

#observed-at {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-style: italic;
  font-weight: 120;
  font-size: small;
  color: #919191;
  opacity: 0.9;
  margin-top: 20px;
}

.hidden {
  display: none;
}

#error-message {
  color: #ff5722;
  margin-top: 20px;
}
