* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Ysabeau SC", sans-serif;
}
.main-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  background-color: white;
}
/* theme toggler */
.toggle-container {
  display: flex;
  justify-content: end;
  width: 100%;
}
#toggle {
  width: 3rem;
  height: 1.5rem;
  border-radius: 1rem;
  background-color: white;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
    rgba(0, 0, 0, 0.3) 0px 30px 60px -30px,
    rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
  cursor: pointer;
}
#toggle .indicator {
  height: 1.5rem;
  width: 1.5rem;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px inset,
    rgba(0, 0, 0, 0.3) 0px 30px 60px -30px,
    rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
  border-radius: 1rem;
  transform: scale(0.8);
  transition: 0.5s;
  position: relative;
  top: 0;
  left: 0;
  bottom: 0;
}

.data-container,
.search-container {
  width: 90%;
  padding: 1rem 2rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
    rgba(0, 0, 0, 0.3) 0px 30px 60px -30px,
    rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
}
.search-container {
  flex-direction: row;
  padding: 1rem;
}
#search-city-name {
  width: 90%;
  padding: 0.5rem;
  border: none;
  border-radius: 5px 0 0 5px;
  outline: none;
  background-color: rgb(240, 240, 240);
  text-align: center;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
    rgba(0, 0, 0, 0.3) 0px 30px 60px -30px,
    rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}
#search-btn {
  width: 10%;
  padding: 0.5rem;
  border: none;
  border-radius: 0 5px 5px 0;
  border-left: 1px solid rgb(145, 145, 145);
  font-weight: bold;
  background-color: rgb(197, 197, 197);
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
    rgba(0, 0, 0, 0.3) 0px 30px 60px -30px,
    rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}
button:hover {
  cursor: pointer;
}
.location-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.temperature-container,
.temperature-description-container,
.humidity-container,
.pressure-container,
.wind-speed-container,
.wind-direction-container,
.sunrise-container,
.sunset-container {
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.temperature-container {
  padding: 0 3rem;
}
#temperature {
  font-size: 3rem;
}
.temperature-description-container {
  padding: 0;
  font-size: 1.5rem;
  justify-content: center;
}
.info-container {
  margin: 1rem 0 0 0;
  padding: 0 2rem 1rem;
  width: 100%;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.personal-links a {
  text-decoration: none;
  color: black;
  display: none;
}

/* dark theme styling */
#toggle.active {
  background-color: rgba(104, 104, 104, 0.932);
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
  rgb(0, 0, 0) 0px 30px 60px -30px,
    rgba(2, 2, 3, 0.358) 0px -2px 6px 0px inset;
}
#toggle.active .indicator {
  left: 1.5rem;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
  rgb(0, 0, 0) 0px 30px 60px -30px inset,
  rgba(2, 2, 3, 0.358) 0px -2px 6px 0px inset;
}

#body.active .main-container{
  background-color: rgba(0, 0, 0, 0.768);
}
#body.active .search-container,
#body.active .data-container {
  background-color: rgba(42, 42, 42, 0.932);
  color: rgb(243, 243, 243);
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
    rgb(0, 0, 0) 0px 30px 60px -30px inset,
    rgba(2, 2, 3, 0.358) 0px -2px 6px 0px inset;
}
#body.active #search-city-name{
  color: rgba(243, 243, 243);
  background-color: rgba(79, 79, 79, 0.925);
}
#body.active #search-btn {
  color: rgba(243, 243, 243);
  background-color: rgba(79, 79, 79, 0.558);
}
#body.active .info-container,
#body.active #source-code {
  background-color: transparent;
  color: rgba(243, 243, 243);
}

/* responsiveness */
@media only screen and (min-width: 620px) {
  .data-container,
  .search-container {
    width: 75%;
  }
  .personal-links a {
    display: contents;
  }
}
@media only screen and (min-width: 700px) {
  .data-container,
  .search-container {
    width: 55%;
  }
}
@media only screen and (min-width: 990px) {
  .data-container,
  .search-container {
    width: 40%;
  }
  .info-container {
    flex-direction: row;
    justify-content: space-between;
  }
}
@media only screen and (min-width: 1120px) {
  .data-container,
  .search-container {
    width: 32%;
  }
}
