* {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
a {
  text-decoration: none;
  color: #f1faee;
}

.search-main {
  /* display: none; */
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.background {
  z-index: -1;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("https://source.unsplash.com/1600x900/?landscape");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
}
#weather-icon {
  width: 200px;
  height: 200px;
  margin: 0 1rem;
}
#main-head {
  display: inline;
  font-size: 5rem;
  margin: 0 1rem;
  color: #f1faee;
}
#form {
  display: flex;
  justify-content: center;
  align-items: center;
}
#main-searchbar {
  border: none;
  background: rgb(255, 255, 255, 0.9);
  height: 2rem;
  width: 20rem;
  border-radius: 10px;
  margin: 0 1rem;
  padding-left: 1em;
}
#main-searchbar:focus {
  outline-width: 0;
}
#search-button {
  background: transparent;
  border: none;
  height: 2rem;
  width: 5rem;
  border-radius: 10px;
  margin: 0 0rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
#go-button-icon {
  cursor: pointer;
  fill: ivory;
}

/*stage -weather preview start here*/
nav {
  /* height: 8vh; */
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  display: grid;
  background: rgba(107, 107, 107, 0.377);
  backdrop-filter: blur(7px);
  grid-template-columns: 1fr 2fr;
}
nav div {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
nav div:first-child {
  justify-content: flex-start;
  padding-left: 5rem;
}
nav div:last-child {
  justify-content: flex-end;
  padding-right: 5rem;
}

#nav-form {
  display: flex;
  align-items: center;
  transform: translateY(150%);
}
.searchpop {
  animation: searchpopanim 400ms cubic-bezier(0.21, 1.56, 0.95, 1.19) forwards;
}
@keyframes searchpopanim {
  0% {
    opacity: 0;
    transform: translateY(150%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
#nav-searchbar {
  background: white;
  border: none;
  height: 2rem;
  width: 20rem;
  border-radius: 10px;
  padding-left: 1em;
}

#nav-searchbar:focus {
  outline: none;
}
#nav-search-button {
  background: transparent;
  border: none;
  height: 2rem;
  width: 3rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#nav-search-button svg {
  cursor: pointer;
  fill: antiquewhite;
}
#nav-logo {
  width: 50px;
  height: 50px;
}
#nav-head {
  margin: 0 2rem;
  font-size: 2rem;
  font-weight: normal;
  color: #f1faee;
}

/*main display start here*/

main {
  display: none;
  top: 52%;
  left: 50%;
  position: absolute;
  width: 85vw;
  height: 80vh;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.671);
  backdrop-filter: blur(5px);
  text-align: center;
  border-radius: 5px;
}
#location-head {
  font-weight: normal;
  font-size: 3rem;
  font-family: "Nunito", sans-serif;
  display: inline;
}
#refreshsvg {
  position: absolute;
  left: 1rem;
  top: 1rem;
  cursor: pointer;
}

#datehead {
  font-weight: lighter;
  font-size: 2rem;
  display: inline;
  position: absolute;
  right: 1rem;
  top: 0rem;
}
/*footer*/
footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 4vh;
  background-color: #001219ec;
  text-align: center;
  color: #f1faee;
  font-family: "Roboto", sans-serif;
  padding-top: 2px;
}
footer span {
  margin: 0 0.5rem;
}
footer span:first-child {
  position: absolute;
  left: 0;
}
footer span:first-child svg {
  margin: 0 0.1rem;
  position: relative;
  top: 4px;
}
/*weather data display*/

.weather-main {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  height: 90%;
  /* background-color: wheat; */
  text-align: initial;
}
#weather-img {
  position: absolute;
  width: 20rem;
  height: 20rem;
  top: 0rem;
  right: 0rem;
}

#crrconditions {
  font-size: 6rem;
  font-weight: lighter;
  position: relative;
  font-family: "Zen Kaku Gothic New", sans-serif;
}
#crrconditions span {
  font-size: 5rem;
  position: relative;
  left: 1rem;
}

.icon {
  width: 2rem;
  height: 2rem;
  margin-right: 10px;
}
.info {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  max-width: 15rem;
  font-size: 1.5rem;
  width: fit-content;
  font-family: "Inconsolata", monospace;
  margin: 0.5rem 0rem;
}
.info:nth-child(6) {
  margin-top: 2rem;
}
.info:nth-child(7) {
  max-width: 20rem;
}
.sundiv {
  position: absolute;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 0rem;
}
.sundiv .info{
  font-size: 1.3rem;
}
.sundiv .info .icon {
  position: relative;
  bottom: 2px;
}
.sundiv .info:nth-child(2) {
  max-width: 20rem;
}
.windiv {
  position: absolute;
  right: 0;
  bottom: 15%;
  display: flex;
  flex-direction: row;
  width: 20rem;
  justify-content: space-between;
  flex-wrap: wrap;
}
.windiv .info {
  display: flex;
  width: max-content;
  max-width: 20rem;
}

/* Elements classes  */

.loadercome {
  animation: loadcome 300ms forwards linear;
}
@keyframes loadcome {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.loadergo {
  animation: loadgo 300ms forwards linear;
}
@keyframes loadgo {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.mainfadeout {
  animation: mainfadeout 500ms linear forwards;
}
@keyframes mainfadeout {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}

.mainfadein {
  animation: fadein 500ms ease forwards;
}
@keyframes fadein {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.search-fadein {
  animation: fadein 250ms forwards ease-in;
}
@keyframes fadein {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.search-fadeof {
  animation: fadeof 500ms ease-out forwards;
}
@keyframes fadeof {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.searcherror {
  animation: redshadow 1s linear;
}
@keyframes redshadow {
  0% {
    box-shadow: 0px 0px 2px #ffba08;
  }
  60% {
    box-shadow: 0px 0px 8px 2px #e85d04;
  }
  100% {
    box-shadow: 0px 0px 0px #ffba08;
  }
}
.imagein{
  animation: imagein 1s ease-in   forwards ;
}
@keyframes imagein {
  0%{
    opacity: 0;
    transform: translateX(50px);
  }
  100%{
    opacity: 1;
    transform: translateX(0px);
  }
}