:root {
  --bg_main: #0a1f44;
  --text_light: #fff;
  --text_med: #53627c;
  --text_dark: #1e2432;
  --red: #ff1e42;
  --darkred: #c3112d;
  --orange: #ff8c00;
  --background: linear-gradient(135deg, #C14400, #E88E2E);
}


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

}

body {
  font: 1rem/1.3 "Roboto", sans-serif;
  background: var(--background);
  padding: 50px;
}


h1 {
  text-align: center;
  font-size: 50px;
}

h2 {
  text-align: center;
  font-size: 20px;
}

#inputContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  position: relative;
}

#weatherContainer {
  max-width: 600px;
  margin: 40px auto;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#city {
  width: 250px;
  height: 40px;
  padding: 0 15px;
  margin-right: 10px;
  outline: none;
  border: 2px solid var(--text_light);
  transition: border-color 0.3s ease;
}

#city:focus {
  border-color: var(--orange);
  outline: none;
}

#getWeather {
  height: 40px;
  width: 120px;
  background: linear-gradient(135deg, var(--darkred), var(--red));
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#getWeather:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#weather {
  font-size: 48px;
  font-weight: bold;
}


nav>ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  gap: 20px;
  justify-content: center;
  cursor: pointer;
  color: var(--text_light);
  margin-bottom: 10px;
}


#locationDisplay {
  display: flex;
  margin-bottom: 10px;
}

#description,
#locationDisplay {
  font-size: 20px;
}

#showDateAndTime {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
}

#displayWeather {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

#upcoming {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  align-items: center;

}

#wind,
#pressure,
#humidity {
  font-size: 12px;
  display: flex;
  align-items: center;
}

.error-message {
  color: red;
  font-size: 0.9em;
  margin-top: 8px;
  display: none;
  text-align: left;
}

.error-message.show {
  display: block;
}

@media (max-width: 768px) {
  body {
    padding: 20px;
  }

  #weatherContainer {
    padding: 20px 10px;
  }

  #weather {
    font-size: 36px;
  }

  #city {
    width: 100%;
  }

  #getWeather {
    width: 100%;
    margin-top: 10px;
  }
}

#rise,
#set,
#high,
#low {
  font-size: 12px;
}