:root{
  --fontColor: white;
  --fontColorForecast: black;
  --buttonColor: green;
  --buttonColorHover: lightgreen;
  --backgroundColor: rgb(212, 212, 215);
  --boxShadowColor: rgba(0, 0, 0, 0.3);
}

body{
  font-family: 'Roboto', sans-serif;
}

#weatherApp{
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 400px;
  background-color: var(--backgroundColor);
  position: relative;
  height: 800px;
  overflow: hidden; 
  box-shadow: 5px 8px 20px var(--boxShadowColor);
}

.featureImage{
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(img/clear.jpg);
  background-size: contain;
  background-position: bottom;
  background-repeat: no-repeat;
  opacity: 0.8;
  height: 800px;
  width: 800px;
  border-radius: 50%;
  position: absolute;
  bottom: 355px;
  right: 50%;
  transform: translate(50%);
}

.nav {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 0px;
}

.search {
  display: flex;
  flex-direction: row;
  border: 1px solid rgba(255, 255, 255, 0.363);
  opacity: 0.99;
}

.search-bar {
  margin: auto;
  border: none;
  padding: 2px 10px;
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  width: 100%;
  max-width: 600px;
  height: 30px;
  font-size: 17px;
  opacity: 0.99;
}

.search-bar:focus {
  outline: none;
}

.search-button {
  border: none;
  color: var(fontColor);
  background-color: transparent;
  cursor: pointer;
  opacity: 0.99;
}

.search-button:hover {
  opacity: 0.7;
}

.search-icon,
.x-icon {
  height: 30px;
  width: 30px;
  padding: 20px 10px 20px 20px;
}

svg {
  color: var(--fontColor);
}

.current-location{
  width: 24px;
  height: 24px;
  border: none;
  padding: 10px;
}

#currentWeather {
  color: var(--fontColor);
  opacity: 0.99;
  text-align: left;
  margin-left: 30px;
}

.currentTemperature{
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding-top: 10px;
}

.degrees{
  margin-top: 10px;
  margin-left: 15px;

  font-size: 30px;
  font-weight: 300;
  color: var(--fontColor);
}

.tempNumber{
  font-size: 120px;
  font-weight: 400;
  color: var(--fontColor)
}
.units{
    font-size: 36px;
}

.cityFont{
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--fontColor);
  margin-top: -10px;
}

.cityTimeDesc > p {
  margin-top: -15px;
  font-weight: 300;
}

.weatherDescription{
  color: var(--fontColor);
  text-transform: capitalize;
}

.weatherDescriptionIcon{
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  margin-right: 30px;
  margin-top: -10px;
  gap: 1px;
  color: var(--fontColor);
  opacity: 0.99;
  font-weight: 300;
}

.weatherIcon{
  transform: translate(0px, -2px)
}

.sunRiseSet{
  display: flex;
  justify-content: center;
  margin-right: 30px;
  gap: 20px;
  font-weight: 300;
}

.currentTime{
  color: var(--fontColor);
  border-radius: 0 0 20% 20%;
}

#weatherForecast {
  padding: 80px 40px;
  color: var(--fontColorForecast);
  margin: auto 0;
  font-weight: 300;
}

#weatherForecast div {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

hr{
  width: 15px;
  border-color: transparent;
  border-right-color: rgba(255, 255, 255, 0.7);
  border-right-width: 50px;
  position: absolute;
  opacity: 0.5;
  bottom: 100%;
  transform-origin: 100% 50%;
  animation-name: rain;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.fadeOut {
  animation: 2s fadeout
}

@keyframes rain {
  from {
   transform: rotate(95deg) translateX(0);
  }
  to {
   transform: rotate(95deg) translateX(calc(800px));
  }
 }

 @keyframes fadeout { to {opacity: 0;} }

.hidden {
  display: none;
  transition: transform 1s ease 0s;
}