:root {
  --clr-grey-5: hsl(210, 22%, 49%);
  --clr-grey-6: hsl(209, 23%, 60%);
  --clr-grey-7: hsl(211, 27%, 70%);
  --clr-grey-8: hsl(210, 31%, 80%);
  --clr-grey-9: hsl(212, 33%, 89%);
  --clr-grey-10: hsl(210, 36%, 96%);
  --clr-white: #fff;
}
*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
a {
  text-decoration: none;
  /* font-size: 0.9rem; */
}
h3,
h4 {
  font-weight: 500;
}
button:hover {
  cursor: pointer;
}
p {
  font-weight: 200;
}
main {
  background-image: url(./img/weatherboltbg.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  padding: 0rem 0.6rem 1rem 0.6rem;
  min-height: 100vh;
  /* position: relative; */
}
@media screen and (min-width: 1312px) {
  main {
    padding: 1em 5em;
  }
}
html {
  font-size: 1.1rem;
  color: var(--clr-grey-10);
  font-family: "Noto Sans Display", sans-serif;
}
.header-logo {
  display: flex;
  align-items: center;
  padding: 1rem 0 1rem 0;
}
.header-logo > i {
  margin-right: 0.4rem;
}
.header-logo a {
  color: var(--clr-grey-10);
  font-weight: 600;
  font-size: 1.4rem;
}
.fas.fa-sun {
  font-size: 1.8rem;
  color: rgb(245, 149, 66);
}
.city-input {
  position: relative;
}
.city-input input {
  width: 100%;
  color: var(--clr-grey-10);
  padding: 1em 0.7em;
  border: none;
  background-color: rgba(0, 0, 0, 0.2);
}
.city-input input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.city-input input:focus {
  background-color: rgba(255, 255, 255, 0.2);
  outline: none;
}
.search-items {
  position: absolute;
  max-height: 10rem;
  overflow: scroll;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}
.search-item {
  display: block;
  background-color: rgba(0, 0, 0, 0.4);
  color: var(--clr-grey-10);
  font-weight: 400;
  font-size: 0.8rem;
  padding: 0.3em 0.5em;
  text-transform: capitalize;
}
.search-item:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
.error-handle {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 0.8rem;
  padding: 0.3em 0.5em;
  width: 100%;
  display: block;
}
.get-location-btn {
  width: 100%;
  display: block;
  background-color: rgb(212, 105, 12);
  margin: 2em 0 0.5em 0;
  text-transform: capitalize;
  padding: 0.9em 0.5em;
  border: none;
  color: var(--clr-grey-10);
  text-align: center;
}
.get-location-btn:hover {
  background-color: rgb(245, 149, 66);
}
@media screen and (min-width: 726px) {
  .hero-left {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .city-input {
    flex-basis: 45%;
    padding: 0;
  }
  .get-location-btn {
    flex-basis: 45%;
    margin: 0;
  }
}
@media screen and (min-width: 1160px) {
  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1em 0.5em;
  }
  .header-logo {
    flex: 0 1 33%;
    padding: 0;
  }
  .hero-left {
    flex-basis: 67%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.weather-section {
  margin: 2em 0 0 0;
}
.weather-img {
  height: 3rem;
}
.weather-section img {
  display: block;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.weather-section h3 {
  margin: 0.5em 0 0.5em 0;
  margin-bottom: 0.3em;
}
.weather-section h4 {
  margin: 0.5em 0 0.5em 0;
  font-size: 0.8rem;
  font-weight: 600;
}
.city-card {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.2);
  position: relative;
  padding: 0.5em 0.5em;
}
.city-card-con {
  margin-bottom: 0.5rem;
}
.country-name {
  font-size: 0.65rem;
}
.city-name {
  font-size: 0.85rem;
}
.city-texts {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.city-link {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
}
.btn-container {
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
}
.btn-container button {
  background-color: transparent;
  color: var(--clr-grey-10);
  border: none;
  margin: 0.2rem 0.5em;
}
.fas.fa-bookmark.favorite {
  color: rgb(245, 149, 66);
}
@media screen and (min-width: 601px) {
  .weather-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .weather-section-con {
    display: flex;
    flex-flow: wrap;
  }

  .city-card-con {
    margin-bottom: 0.6rem;
    display: flex;
    flex-direction: column;
    flex-basis: 45%;
    margin-right: 1.3rem;
  }
  .city-card {
    width: 100%;
    height: 100%;
  }
}
@media screen and (min-width: 795px) {
  .city-card-con {
    flex: 0 1 30%;
  }
}
@media screen and (min-width: 968px) {
  .city-card-con {
    flex: 0 1 22%;
  }
}
@media screen and (min-width: 1200px) {
  .city-card-con {
    flex: 0 1 18%;
  }
}
.no-cities {
  margin: auto;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  height: 25rem;
  width: 80%;
}
.no-cities p {
  text-transform: capitalize;
  margin-top: 1rem;
}
.no-cities-img {
  height: 15rem;
}
.no-cities img {
  display: block;
}

/* City details */
.report-header {
  display: flex;
  width: 100%;
}
.report-header button {
  display: block;
  width: 6%;
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--clr-grey-10);
  border: none;
}
.report-header h4 {
  width: 94%;
}
.report-section,
.notes-section {
  margin-top: 1.5rem;
  background-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.report-section h4,
.notes-section h4 {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 0.5em;
  font-size: 0.8rem;
}

.report-details {
  padding: 1em 0.5em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}
.report-city {
  font-size: 0.9rem;
}
.report-country {
  font-size: 0.8rem;
}
.report-img {
  height: 3.5rem;
}
.report-img img {
  height: 100%;
  background-color: var(--clr-grey-10);
  border-radius: 6px;
}
.report-item {
  display: flex;
  justify-content: space-between;
  padding: 0 0.5em;
  font-size: 0.7rem;
  text-transform: capitalize;
  padding: 0.3em 0.5em;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.report-title {
  font-weight: 300;
}
.report-response {
  font-weight: 600;
  text-align: end;
}
.notes-section {
  padding: 0.5em;
}
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5em;
  color: var(--clr-grey-10);
  font-family: "Noto Sans Display", sans-serif;
}
textarea::placeholder {
  font-family: "Noto Sans Display", sans-serif;
  color: rgba(255, 255, 255, 0.7);
}
textarea:focus {
  outline: none;
}
.note-border {
  display: block;
  height: 1px;
  width: 100;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  margin: 0.5em 0;
}
.note-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.add-note {
  padding: 0.5em 2em;
  background-color: rgb(212, 105, 12);
  border: none;
  color: var(--clr-grey-10);
}
.add-note:hover {
  background-color: rgb(245, 149, 66);
}
.note-items {
  width: 100%;
  padding: 0.5em 0;
  margin-top: 1rem;
}
.note-item {
  width: 100%;
  margin-bottom: 0.5em;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2em;
}
.note-text {
  flex-basis: 90%;
  font-size: 0.8rem;
}
.note-btns {
  flex-basis: 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.note-btns button {
  color: rgb(212, 105, 12);
  background-color: transparent;
  border: none;
  padding: 0.2em;
  font-size: 0.8rem;
}
.note-btns .fas:hover {
  color: rgb(245, 149, 66);
}
@media screen and (min-width: 737px) {
  .report-note-cont {
    display: flex;
    justify-content: space-between;
  }
  .report-section,
  .notes-section {
    flex: 0 1 45%;
  }
}
@media screen and (min-width: 618px) {
  main {
    padding: 1em 2em;
  }
}
/* javascript functionality */
.hidden {
  display: none;
}
.loader-cont {
  margin: auto;
  height: 6rem;
  width: 6rem;
}
.loader-cont img {
  display: block;
  height: 100%;
  width: 100%;
}
.geolocation-error {
  position: absolute;
  top: 0;
  font-size: 0.9rem;
  background-color: rgb(245, 149, 66);
  text-align: center;
  margin: auto;
  width: 100%;
  padding: 0.2em 0;
}
