html,
body {
  margin: 0;
  padding: 0;

  font-family: "Roboto", sans-serif;
}

img {
  max-width: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

header h1 {
  font-size: clamp(3rem, 5vw, 4rem);
  text-align: center;
}

.searchBar {
  width: fit-content;
  height: 2rem;
  border: 1px solid;
  border-radius: 5px;

  display: flex;
  justify-content: flex-end;
  position: relative;
  margin-left: 2rem;
}

.searchCity {
  position: relative;
  width: 2rem;
  background-color: lightblue;
  border: none;
  border-radius: 5px;
  box-shadow: -2px 1px 5px;
  transition: 0.2s ease;
  cursor: pointer;

  height: 100%;
}

.searchCity:hover {
  background-color: rgb(28, 122, 153);
  color: wheat;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input {
  border: none;
  border-radius: 5px;
  text-align: center;

  height: 100%;

  font-size: clamp(1rem, 2vw, 1.3rem);
}

input:focus {
  outline: none;
}

.weatherCard {
  width: 90vw;
  max-width: 700px;
  height: fit-content;
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  border: 1px solid;
  border-radius: 10px;
  padding-bottom: 1rem;

  background-color: lightblue;
}

.weatherIcon {
  width: 10rem;
  height: 10rem;

  margin: 0 auto;
}

.currentWeatherContainer {
  height: 80%;
  /* position: relative; */

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;

  border-radius: 5px;

  /* background-color: lightblue; */
}

.currentTemperature {
  font-size: clamp(6rem, 25vw, 8rem);
  text-align: center;
  margin: 0;
}

.currentWind {
  margin-bottom: 3rem;
  font-size: clamp(1.5rem, 5vw, 3rem);
}

.localInfo {
  position: relative;
  margin: 3rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 1rem;
  font-size: clamp(1rem, 2vw, 1.3rem);
  text-align: center;
  padding-left: 0.3rem;
}

/* --------------------------------- Following days --------------------------------- */
.followingDays {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem;
  border-radius: 5px;
  padding: 1rem 0;
}

.plusDay {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 5px;

  font-size: clamp(0.6rem, 1.5vw, 0.8rem);
}

.dayMode {
  background-color: #e0f7fa;
  color: #004d40;
}

.nightMode {
  background-color: #263238;
  color: #e0f7fa;
}

/* --------------------------------- Breakpoints ------------------------------------ */

/* @media (min-width: 576px) {
  .weatherCard {
    max-width: 80%;
  }
} */

@media (min-width: 768px) {
  .followingDays {
    flex-direction: row;
  }
  .plusDay {
    flex-direction: column;
  }
}
/* @media (min-width: 400px) {
  .localInfo {
    margin-top: -5rem;
  }
}
@media (min-width: 400px) {
  .localInfo {
    margin-top: 10rem;
  }
} */
