
body {
    background-color: #000000;
    color: #ffffff;
    /* font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; */
    /* font-size: 14px; */
    /* line-height: 1.42857143; */
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-weight: normal;
  font-family: 'Roboto', sans-serif;
}


/* --------------------------------  Global  ------------------------------------ */

header {
  width: 90%;
}


h1 {
  font-size: 3.5em;
  font-weight: 600;
  text-align: center;
  margin: 0;
  padding: 20px;
}


ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  margin: 20px;
  padding: 0;
}

.container {
  margin: 0 auto;
  /* padding: 0 15px; */
  max-width: 1300px;
  width: 100%;
}

.main_app {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.form__row img {
  width: 60px;
  filter: invert(100%) sepia(0%) saturate(7471%) hue-rotate(88deg) brightness(100%) contrast(106%);
}

.reset__button {
  width: 30px;
  filter: invert(100%) sepia(0%) saturate(7471%) hue-rotate(88deg) brightness(100%) contrast(106%);
  margin-left: 10px;
}

#reset__button {
  font-size: 1.2em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cities__list {
  /* display: flex; */
  /* justify-content: center; */
  /* align-items: center; */
  margin-top: 20px;
  display: grid;
  /* grid-gap: 32px 20px; */
  grid-template-columns: repeat(3, 1fr);
}

figure {
  color: black;
  text-align: center;
  font-size: 2.5em;
  font-weight: 500;
}

/* --------------------------------  weather  ------------------------------------ */

.weather {
  margin-top: 30px;
  border: 1px solid #ffffff;
  width: 300px;
  height: 400px;
  border-radius: 10px;
  box-shadow: 5px 5px 10px #888888;
  background-color: #3b3b4f;
}

.icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: #ffffff;
  height: 260px;
  border-radius: 10px 10px 0 0;
  padding-bottom: 20px;
  padding-top: 20px;
}

.icon img {
  width: 120px;
  height: 170px;
}

.description {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* font-size: 1.5em; */
  /* padding-top: 0; */
  align-items: center;
  /* padding: 20px; */
}

#weather__icon__text {
  font-size: 2.3em;
  padding-top: 12px;
  margin: 0;
    color: black;
  }

  .city-name sup {
    font-size: 0.5em;
  }

  .city-name sup {
    padding: 0.2em 0.6em;
    border-radius: 30px;
    color: white;
    background: orange;
  }

  .city-name {
    font-size: 1.5em;
    margin: 0;
    /* padding: 0; */
  }

  /* ------------------------------------------ Search form ------------------------------------------ */

  #city {
    width: 100%;
    border-bottom: 2px solid #ffffff;
    font-size: 2em;
    padding-bottom: 10px;
  }

  .form__row {
    display: flex;
    justify-content: center;
    align-items: center;
  margin-top: 20px;
}

button,
input {
  border: none;
  background: none;
  outline: none;
  color: inherit;
}

/* ------------------------------------------ Description ------------------------------------------ */


#temperature {
  font-size: 4em;
  margin: 0;
  font-weight: 600;
}



/* ------------------------------------------ Responsive ------------------------------------------ */


@media screen and (max-width: 1100px) {
  header {
    width: 80%;
  }

  h1 {
    font-size: 2em;
  }

  .cities__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .weather {
    width: 220px;
    height: 270px;
  }

  .icon {
    height: 170px;
    padding: 0;
  }

  .icon img {
    /* width: 80px; */
    height: 100px;
    margin-bottom: 10px;
  }

  #weather__icon__text {
    font-size: 2.5em;
  }

  .city-name {
    font-size: 1.2em;
  }

  #temperature {
    font-size: 2.2em;
  }

  .description {
    font-size: 1em;
  }

  figure {
    font-size: 1.8em;
  }

}

@media screen and (max-width: 760px) {
  h1 {
    font-size: 2.5em;
  }
  #city {
    font-size: 1.5em;
  }

  .cities__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .form__row img {
    width: 40px;
  }

  .reset__button {
    width: 20px;
  }

  #reset__button {
    font-size: 1.3em;
    margin-top: 10px;
  }
}


@media screen and (max-width: 500px) {
  header {
    width: 90%;
  }

  h1 {
    font-size: 2em;
  }

  li {
    margin: 10px;
  }

  .cities__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .weather {
    width: 150px;
    height: 230px;
  }

  .icon {
    height: 130px;
    padding: 0;
  }

  .icon img {
    /* width: 80px; */
    height: 65px;
    margin-bottom: 10px;
  }

  #weather__icon__text {
    font-size: 1.5em;
  }

  .city-name {
    font-size: 1em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #temperature {
    font-size: 1.89em;
  }

  .description {
    font-size: 1em;
  }

  figure {
    font-size: 1.119em;
  }
}
