@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  color: #e9e9e9;
}
/* color variables */
:root {
  --separator: rgba(252, 252, 252, 0.26);
  --second-color: linear-gradient(
    45deg,
    rgb(35, 110, 250) 33%,
    rgb(85, 133, 223) 100%
  );
  --alert: #cc3300;
  --success: #339900;
}
body {
  background-repeat: no-repeat;
  background-attachment: fixed;
}
/* snow */
canvas, #canvas {
  position: absolute;
  z-index: -1;
}
/* END */

/* clouds */
.clouds {
  position: relative;
  display: none;
}

.clouds img {
  width: 300px;
  height: auto;
  position: fixed;

}
#cloud1{
  animation: cloud1 55s infinite;
}
@keyframes cloud1 {
  0%{
  right: -130vw;
  }
  100%{
   right: 130vw;
  }
}
#cloud2{
  animation: cloud2 40s infinite ;
  /* animation-delay: 2s; */
}
@keyframes cloud2 {
  0%{
    transform: translateX(-130vw);

  }
  100%{
   transform: translateX(-130vw) translateY(-20px);
  }
}
#cloud3{
  animation: cloud3 17s infinite;
  transform: rotate(180deg);
}
@keyframes cloud3 {
  0%{
  right: -130vw;

  }
  100%{
   right: 130vw;
  }
}
#cloud4{
  animation: cloud4 27s infinite linear;
  /* animation-delay: 2s; */
}
@keyframes cloud4 {
  0%{
    transform: translateX(130vw);

  }
  100%{
   transform: translateX(-130vw) translateY(-10px);
  }
}
#cloud5{
  animation: cloud5 15s infinite linear;
  /* animation-delay: 5s; */
}
@keyframes cloud5 {
  0%{
    transform: translateX(130vw);

  }
  100%{
   transform: translateX(-130vw) translateY(30px);
  }
}
#cloud6{
  animation: cloud6 45s infinite;
}
@keyframes cloud6 {
  0%{
  transform: translateX(130vw);
    
  }
  100%{
   transform: translateX(-130vw) translateY(-30px) ;
  }
}
/* END */

/* banners */
.banner {
  position: fixed;
  z-index: 3;
  color: white;
  top: -12vh;
  font-size: 2rem;
  transition: 0.3s;
  min-width: 40%;
  width: 100%;
  height: 8vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 10px !important;
}
.banner span {
  font-family: "Inconsolata", monospace;
}
.alert {
  left: -10px;
  z-index: 999;
  background: var(--alert);
  width: calc(100% + 20px);
}
.success {
  background: var(--success);
}
.shake-horizontal {
  -webkit-animation: shake-horizontal 0.8s
    cubic-bezier(0.455, 0.03, 0.515, 0.955) both;
  animation: shake-horizontal 0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955) both;
  animation-delay: 0.4s;
}
#information {
  width: 100%;
  height: 5vh;
  border-top: 2px solid var(--separator);
  color: hsl(209, 100%, 10%);
  bottom: 0;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#information a,
#information span {
  color: hsl(209, 100%, 10%);
  text-decoration: none;
  font-family: "Inconsolata", monospace;
  padding: 0 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
#information a svg {
  margin: 0 4px;
}
#information a:hover {
  transform: scale(1.1);
  font-weight: bold;
}

/* ----------------------------------------------
 * Generated by Animista on 2021-9-23 23:57:2
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation shake-horizontal
 * ----------------------------------------
 */
@-webkit-keyframes shake-horizontal {
  0%,
  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70% {
    -webkit-transform: translateX(-10px);
    transform: translateX(-10px);
  }
  20%,
  40%,
  60% {
    -webkit-transform: translateX(10px);
    transform: translateX(10px);
  }
  80% {
    -webkit-transform: translateX(8px);
    transform: translateX(8px);
  }
  90% {
    -webkit-transform: translateX(-8px);
    transform: translateX(-8px);
  }
}
@keyframes shake-horizontal {
  0%,
  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70% {
    -webkit-transform: translateX(-10px);
    transform: translateX(-10px);
  }
  20%,
  40%,
  60% {
    -webkit-transform: translateX(10px);
    transform: translateX(10px);
  }
  80% {
    -webkit-transform: translateX(8px);
    transform: translateX(8px);
  }
  90% {
    -webkit-transform: translateX(-8px);
    transform: translateX(-8px);
  }
}

/* END */

/* menu */
.menu {
  width: 100%;
  min-height: 35vh;
  height: auto;
  background: var(--second-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  justify-content: space-around;
  position: fixed;
  z-index: 3;
  left: -100%;
  transition: 0.25s;
}
.menu-bottom {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.menu-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--second-color);
  position: fixed;
  bottom: 3vh;
  right: 3vh;
  z-index: 999;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.location-actions {
  width: 50%;
  min-height: 15vh;
  display: flex;
  flex: 1;
  justify-content: space-between;
  flex-direction: column;
  align-items: flex-start;
}
.last-search {
  width: 50%;
  flex: 1;
  height: auto;
  display: flex;
  min-height: 15vh;
  position: relative;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}
.last-search span img {
  width: 15px;

  transform: translateY(3.2px);
}
#icon {
  height: 30px;
  width: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}
.menu-button #icon span {
  width: 30px;
  height: 1.6px;
  background: white;
}
.menu-active {
  left: 0;
  transition: 0.25s all ease-in-out;
}
/* END */

/* menu button */
#layer1,
#layer2,
#layer3 {
  transition: transform 0.25s ease-in-out;
}
.layer1-active {
  transform: rotate(45deg) translate(5px, 5px);
  transition: 0.25s all ease-in-out;
}
.layer2-active {
  opacity: 0;
  transition: 0.25s all ease-in-out;
}
.layer3-active {
  transform: rotate(-45deg);
  transition: 0.25s all ease-in-out;
}
/* END */

/* location and cords */
.place-container {
  position: absolute;
  top: 0;
  right: 0;
  padding: 20px 20px 0 0;
  font-size: 11px;
}
/* END */

/* Time and location data */
.cords-and-time {
  width: auto;
  min-height: 14vh;
}
/* END */

/* Time and date */
.time-and-date {
  position: absolute;
  left: 0;
  top: 0;
  padding: 20px 0 0 20px;
  font-size: 18px;
}
/* END */

/* Whole site */
.current-info {
  display: flex;
  flex-direction: column;
  height: auto;
}
/* END */

/* Today weather */
.today {
  width: auto;
  min-height: 27vh;
  padding: 20px 20px 0 20px;
}
#today-day {
  font-size: 34px;
  text-align: right;
  position: relative;
  left: 0;
  top: 0;
}
#today-day::after {
  content: "";
  width: 100px;
  background: var(--separator);
  height: 0.5px;
  position: absolute;
  bottom: 0;
  right: 0;
}
#today-w-icon {
  position: absolute;
  right: 0;
  padding-right: 3px;
  width: 150px;
  height: 150px;
}
.today-temp {
  font-size: 38px;
  top: 0 !important;
}
.today-temp-first {
  position: relative;
}
.today-temp-first::before {
  content: "";
  width: 90px;
  background: var(--separator);
  height: 0.5px;
  position: absolute;
  bottom: 0;
}
/* END */

/* today weather details */
.others {
  width: auto;
  margin-top: 4vh;
  min-height: 40vh;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-areas:
    "feelsLike pressure humidity"
    "windSpeed sunrise sunrise"
    "dewPoint sunset sunset";
  gap: 20px;
  padding: 30px 20px 20px 20px;
  position: relative;
}
#details {
  font-weight: bold;
  position: absolute;
  top: -10px;
  padding-left: 20px;
}
#details::before {
  content: "";
  transform: translateY(7px);
  width: 90vw;
  background: var(--separator);
  height: 0.5px;
  position: absolute;
  bottom: 5px;
}
#humidity {
  grid-area: humidity;
}
#pressure {
  grid-area: pressure;
}
#wind-speed {
  grid-area: windSpeed;
  white-space: nowrap;
}
#dew-point {
  grid-area: dewPoint;
}
#feels-like {
  grid-area: feelsLike;
}
#sunrise {
  grid-area: sunrise;
}
#sunrise div img,
#sunset div img {
  transform: scale(0.7);
}
#sunset {
  grid-area: sunset;
}
#sunrise,
#sunset {
  width: auto;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  position: relative;
}
#sunrise img,
#sunset img {
  width: 60px;
  height: 60px;
}
.sun-time {
  font-size: 24px;
}
.sun-time-first::after,
.sun-time-second::after {
  content: "AM";
  width: 20px;
  height: 20px;
  font-size: 10px;
  position: absolute;
  margin-left: 2.6px;
}
.sun-time-second::after {
  content: "PM";
}
/* END */

/* future forecast element ( 7 on site) */
.weather-item {
  min-width: 80px;
  min-height: 80px;
  border-radius: 10px;
  background: #fafafa2c;
  box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
  font-size: 14px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.weather-item img {
  width: 22px;
  height: auto;
}
.weather-item p {
  color: #fafafa;
}
.weather-forecast-item {
  width: auto;
  min-height: 200px;
  height: auto;
  position: relative;
  margin: 20px;
  margin-top: 0;
  padding: 20px;
  border-radius: 10px;
  background: hsla(0, 0%, 98%, 0.171);
  box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.day {
  font-size: 34px;
  position: absolute;
  left: 20px;
  top: 10px;
}
.temp {
  font-size: 38px;
  position: relative;
  top: 40px;
}
#temp-with-separator::before {
  content: "";
  width: 90px;
  background: var(--separator);
  height: 0.5px;
  position: absolute;
  bottom: 0;
}
#forecast-heading {
  padding: 20px;
  padding-top: 0;
  position: relative;
}
#forecast-heading::after {
  content: "";
  width: 90vw;
  background: var(--separator);
  height: 0.5px;
  position: absolute;
  left: 2.5vh;
  bottom: 2.5vh;
}
.weather-forecast-item img {
  position: absolute;
  right: 0;
  top: 10%;
  width: 150px;
}
.forecast-temperature {
  width: 50%;
  height: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}
/* END */

/* search menu */
#location {
  font-size: 16px;
  border: none;
  background: transparent;
  width: calc(100vw - 40px);
  height: 5vh;
  padding: 20px;
  padding-left: 1px;
  border-bottom: 1px solid #e9e9e9;
}
::-webkit-input-placeholder {
  color: #e9e9e9;
}
#submit,
#current-location {
  cursor: pointer;
  border: 1px solid #e9e9e9;
  background: transparent;
  text-align: center;
  width: 150px;
  padding: 0 20px;
  height: 30px;
  border-radius: 11px;
  color: #e9e9e9;
}

#submit:hover,
#current-location:hover {
  transition: 0.25s;
  color: rgb(119, 69, 122);
  background: #e9e9e9;
}
/* END */

/* Detailes description for future forecast item */
.future-forecast-description {
  position: absolute;
  left: 0;
  top: 0;
  min-height: 30vh;
  width: 100%;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  background: red;
  justify-content: space-evenly;
  transition: 0.25s;
}
.future-forecast-description-item {
  text-align: center;
  width: calc((100%-20px) / 3);
  min-height: 100px;
  margin: 0 5px;
  border-radius: 10px;
  background: #fafafa2c;
  box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}
.future-forecast-description-item img {
  position: relative;
  width: 22px;
  height: auto;
}
.description-active {
  left: 120%;
  transition: 5s;
}
.card-active {
  transform: translateX(-120%);
  transition: 5s;
}
#LAST {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-evenly;
}
.future-forecast-no-description {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.weather-description-item {
  position: absolute;
  bottom: 3vh;
  right: 0;
  width: 150px;
  text-align: center;
}
/* END */
@media (max-height:680px) {
  .banner {
    top: -14.5vh;
  }
}