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

body {
  background-color: white;
  color: white;
  font-family: Roboto;
  font-weight: 300;
  display: flex;
  justify-content: center;
}

header {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 10px 0;
  justify-content: center;
}


.search-bar-container {
  display: flex;
  flex-grow: 1;
  width: 100%;
  gap: 10px;
}

.search-bar {
  flex-grow: 1;
  width: 250px;
  height: 35px;
  border: none;
  border-radius: 28px;
  padding: 5px 0 5px 10px;
  font-size: 16px;
  background-color: #f6f6f6;
  transition: box-shadow 0.25s;
  color: #7b7979;
}

.search-bar:focus-within {
  outline: none;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.65);
}

.search-bar::placeholder {
  color: rgba(24, 15, 86, 0.25);
}

.search-btn {
  background: url(./assets/search.svg) center/contain no-repeat;
  border: none;
  width: 30px;
  height: 30px;
  filter: invert(1);
}

.screen {
  background-color: lavender;
  width: 100vw;
  max-width: 660px;
  height: 100vh;
  max-height: 932px;
}

.current-weather-background {
  display: flex;
  flex-direction: column;
  background-image: linear-gradient(to right, #8589FF, #E8E9FF);
  clip-path: ellipse(100% 100% at top);
  width: 100%;
  height: 50%;
  transition: 300ms;
}

.current-weather-background.full {
  height: 100%;
  transition: 300ms;
  clip-path: none;
  justify-content: space-evenly;
}

.current-weather-background.night {
  background-image: linear-gradient(to right, #060965, #575a95);
}

.search-icon {
  margin: 15px;
  width: 30px;
  background: none;
  filter: invert(1);
}

.current-weather-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.weather-icon-container {
  width: 50%;
  max-height: 100px;
  max-width: 160px;
}

.weather-icon-container img {
  width: 100%;
  height: 100%;
}

.current-weather-top {
  display: flex;
  gap: 5%;
  justify-content: center;
}

.local-sun-info {
  display: flex;
  gap: 20px;
}

.button-container {
  position: fixed;
  top: 43%;
  right: 2%;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-right: 10px;
}

.button-container.full {
  align-items: flex-end;
  bottom: 5%;
}

.toggle-forecast-btn {
  width: 60px;
  height: 60px;
  border: none;
  padding: 20px;
  background-color: #757AFF;
  color: white;
  border-radius: 50%;
  box-shadow: 0px 2px 10px rgba(0, 24, 164, 0.15);
}

.arrow {
  width: 100%;
  height: 100%;
  /* change color from black to white */
  filter: invert(1);
  transform: rotate(180deg);
  transition: 300ms;
}

.arrow.down {
  transform: rotate(0deg);
  transition: 300ms;
}

/* Paragraphs */
.celcius {
  font-size: 30px;
}

.big-paragraph {
  font-size: 90px;
}

.medium-paragraph {
  font-size: 25px;
  padding-bottom: 10px;
}

.small-paragraph {
  font-size: 18px;
}

/* Forecast */

.forecast-container {
  background-color: lavender;
  color: black;
  display: none;
  margin-top: 20px;
  padding: 0 30px;
}

.forecast-container.show {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.forecast-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.forecast-icon {
  width: 35px;
  height: 35px;
}

/* error messages */
.error-message {
  position: absolute;
  display: none;
  color: red;
  font-size: 14px;
  margin-top: 10px;
}

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

@media (min-width: 400px) {
  /* Paragraphs */

  .search-bar {
    height: 45px;
  }

  .button-container {
    position: sticky;
    top: 10%;
    right: 10%;
  }

  button {
    width: 75px;
    height: 75px;
  }

  .current-weather-background {
    justify-content: space-evenly;
  }

  .celcius {
    font-size: 34px;
  }

  .big-paragraph {
    font-size: 110px;
  }

  .medium-paragraph {
    font-size: 34px;
  }

  .small-paragraph {
    font-size: 22px;
  }
}