* {
  padding: 0;
  margin: 0;
}
body {
  background-color: black;
  text-align: center;
  font-family: "Poppins", sans-serif;
}
h1,
h2,
h3,
h4 {
  font-family: "Roboto Slab", system-ui;
}
p,
span,
a {
  font-weight: 700;
  font-family: "Nunito Sans", sans-serif;
}
h1 {
  font-size: 3.8rem;
}
h2 {
  font-size: 2.6rem;
}
h3 {
  font-size: 1.6rem;
  font-weight: 400;
}
button {
  background-color: transparent;
  user-select: none;
  outline: none;
  border: none;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
img {
  width: 100%;
  height: 100%;
}

/* . */
.card {
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  margin: auto;
  max-width: 800px;
  height: 100vh;
  background-color: #c2d5e6;
}
.card::before {
  z-index: 0;
  width: 100px;
  height: 100px;
  top: -2%;
  right: -2%;
  border-radius: 50%;
  position: absolute;
  content: "";
  background-color: #c2d5e6;
  transition: all 400ms ease 300ms;
}
.card::after {
  z-index: 1;
  width: 3px;
  height: 3px;
  top: 40px;
  right: 50px;
  border-radius: 50%;
  position: absolute;
  content: "";
  background-color: #6161821a;
  transition: all 400ms ease;
}
.card.zzz::before {
  top: -70%;
  right: -70%;
  width: 2500px;
  height: 2500px;
  background-color: #1e1e29;
}
.card.zzz::after {
  top: -70%;
  right: -70%;
  width: 2500px;
  height: 2500px;
}
.containers {
  top: 0;
  height: 100%;
  position: relative;
  z-index: 2;
  padding: 60px 0 30px;
  transition: visibility 300ms ease;
}
.box:not(:first-child) {
  visibility: hidden;
}
.aa {
  left: 0%;
  position: relative;
  width: 100%;
  transition: left 500ms ease;
}
.aa.close-main {
  left: -100%;
}
.bb {
  left: 100%;
  transform: translateY(-100%);
  transition: left 500ms ease;
}
.bb.open-info {
  left: 0;
  width: 100%;
}

/* .  */
.btnn {
  z-index: 5;
  position: absolute;
}
.aaa {
  top: 20px;
  left: 30px;
}
.aaa span {
  display: block;
  width: 100%;
  height: 100%;
  color: #272737;
  font-size: 1.8rem;
  transition: color 300ms ease 300ms;
}
.zzz .aaa span {
  color: #c2d5e6;
}

/* .  */
.bbb {
  z-index: 5;
  color: transparent;
  top: 20px;
  right: 30px;
  width: 40px;
  height: 40px;
}

.ckk .ccb {
  transform: rotate(360deg);
}
.ccb {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: rotate(0deg);
  transition: transform 750ms ease, box-shadow 200ms ease;
}
.zzz .ccb:hover {
  box-shadow: 0px 0px 30px -10px #fffffff9;
}
.ccb:hover {
  box-shadow: 0px 0px 30px -10px #00000073;
}
.ccb:active {
  box-shadow: 0px 0px 0px 0px transparent;
}
.ckk .kkx {
  transform: scale(2, 2);
}
.kkx {
  border-radius: 50%;
  width: 80%;
  height: 80%;
  position: relative;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 700ms ease;
}
.tc {
  z-index: 3;
  position: absolute;
  height: 12%;
  border-radius: 40%;
  width: 10%;
  background-color: #272737;
}
.ddx {
  position: relative;
  background-color: #272737;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  border-color: transparent;
  outline: none;
  transition: background 500ms ease;
}
.ckk .ddx {
  background-color: #c2d5e6;
}
.ckk .moon {
  opacity: 1;
  background-color: #272737;
  bottom: 27%;
  left: 37%;
}
.moon {
  opacity: 0;
  border-radius: 50%;
  bottom: 130%;
  left: 130%;
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: #c2d5e6;
  transition: bottom 500ms ease, left 500ms ease, background 500ms ease,
    opacity 200ms ease 400ms;
}

.s1 {
  top: 0%;
}
.s3 {
  right: 3%;
}
.s7 {
  left: 3%;
}
.s5 {
  bottom: 0%;
}
.s2,
.s8 {
  top: 12%;
}
.s2,
.s4 {
  right: 12%;
}
.s8,
.s6 {
  left: 12%;
}
.s4,
.s6 {
  bottom: 12%;
}

.s3,
.s7 {
  transform: rotate(90deg);
}
.s2,
.s6 {
  transform: rotate(45deg);
}
.s4,
.s8 {
  transform: rotate(-45deg);
}

/* .  */

.weather-main {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.zzz .search-box {
  background-color: #272737;
  border-color: #c2d5e6;
  color: #c2d5e6;
}
.search-box {
  border: 1px solid #272737;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: #c2d5e6;
  border-radius: 20px;
  padding: 0px 20px;
  width: 50%;
  color: #272737;
  transition: border 200ms ease 250ms, background 200ms ease 250ms,
    color 200ms ease 250ms, width 200ms ease 30ms;
}
.search-box:hover {
  width: 52%;
}
.search-box:focus-within {
  width: 60%;
}
.zzz .search-box input {
  background-color: #272737;
}
.search-box input {
  color: inherit;
  background-color: #c2d5e6;
  padding: 5px;
  height: 33px;
  width: 80%;
  user-select: none;
  border: none;
  outline: none;

  transition: background 200ms ease 250ms;
}
.search-box input::placeholder {
  opacity: 0.6;
  color: #272737;
}
.zzz .search-box input::placeholder {
  color: #c2d5e6;
  transition: background 200ms ease 250ms;
}
.nnn {
  color: #272737;
  font-size: 1rem;
  transition: color 200ms ease 250ms;
}
.zzz .yuy .nnn {
  color: #272737;
}
.yuy .nnn {
  color: #c2d5e6;
}
.ggf {
  padding: 5px;
  background-color: transparent;
  border-radius: 16px;
  transition: background 300ms ease 250ms;
}
.yuy {
  animation: headShake 1s ease-in-out infinite;
  background-color: #272737;
}
.zzz .yuy {
  background-color: #c2d5e6;
}
.zzz .nnn {
  color: #c2d5e6;
}
.zzz .City-name {
  color: #c2d5e6;
}
.City-name {
  text-transform: capitalize;
  color: #272737;
  transition: color 300ms ease 300ms;
}
.City-name h2 {
  font-weight: 400;
}
.City-name p {
  font-size: 1.3em;
  margin-top: 5px;
  display: block;
}
.city-weather-2 {
  font-size: 0.9em !important;
}
.weather-icon span {
  display: block;
  margin: 0px auto;
  height: 150px;
  width: 150px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.weather-icon span img {
  transform: scale(1.3, 1.3);
}

.weather-brief::before,
.weather-brief::after {
  position: absolute;
  content: "";
  background-color: #262636;
  border-radius: 16px;
  transition: background 300ms ease 520ms;
}
.zzz .weather-brief::before,
.zzz .weather-brief::after {
  background-color: #c2d5e6;
}
.weather-brief::before {
  height: 2px;
  width: 20%;
  top: -11%;
  left: 38%;
}
.weather-brief::after {
  height: 40px;
  width: 2px;
  bottom: 3%;
  left: 47%;
}
.temp {
  width: 100%;
  position: relative;
}
.temp h1 {
  font-family: "Nunito Sans", sans-serif;
  color: #272737;
  font-weight: 500;
  transition: color 300ms ease 450ms;
}
.zzz .temp h1 {
  color: #c2d5e6;
}

.weather-brief {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 50%;
}
.zzz .weather-brief span {
  border-color: #c2d5e6;
}
.weather-brief span {
  border: 1px solid transparent;
  border-radius: 16px;
  display: block;
  background-color: #272737;
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  transition: border 300ms 500ms;
}
.weather-brief h3,
.weather-brief p {
  color: inherit;
}
.wind,
.temp-2 {
  color: #272737;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: color 300ms ease 500ms;
}
.zzz .wind,
.zzz .temp-2 {
  color: #c2d5e6;
}

/* ==== loader ===== */
.loader {
  z-index: 10;
  position: absolute;
  background-color: transparent;
  width: 100%;
  height: 84%;
  top: 18%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.zzz .spinner {
  border-color: #c2d5e6;
  border-bottom-color: transparent;
}
.spinner {
  visibility: hidden;
  opacity: 0;
  margin-top: -20%;
  width: 0px;
  height: 0px;
  border: 0px solid #272737;
  border-radius: 50%;
  border-bottom-color: transparent;
  transition: border-color 400ms ease 300ms, visibility 400ms ease;
  animation: kkk 1s linear infinite;
}
.spinner.ggg {
  opacity: 1;
  visibility: visible;
  width: 40px;
  height: 40px;
  border-width: 8px;
}
.zzz #loaderTxt {
  color: #c2d5e6;
}
#loaderTxt {
  margin-top: -20%;
  width: 60%;
  color: #272737;
  text-transform: capitalize;
  font-weight: 200;
  transition: color 300ms ease 300ms;
}
#loaderTxt.mmm {
  visibility: hidden;
  width: 0px;
}

#default {
  z-index: 7;
  visibility: visible;
  position: absolute;
  top: 26%;
  left: 0%;
  transform: scale(0, 0);
  transition: transform 300ms ease;
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
}
#default.lll {
  visibility: visible;
  transform: scale(1, 1);
}
#default span {
  width: 200px;
  height: 200px;
  display: block;
}
#default span img {
  width: 100%;
  height: 100%;
}
#default p {
  font-weight: 300;
  color: #262636;
  margin-top: -30px;
  transition: color 300ms ease 300ms;
}
.zzz #default p {
  color: #c2d5e6;
}

@keyframes kkk {
  0% {
    transform: rotate(0turn);
  }
  100% {
    transform: rotate(1turn);
  }
}

/* ===== fonts ======= */
@font-face {
  font-family: "icomoon";
  src: url("./fonts/icomoon.eot?eqfndt");
  src: url("./fonts/icomoon.eot?eqfndt#iefix") format("embedded-opentype"),
    url("./fonts/icomoon.ttf?eqfndt") format("truetype"),
    url("./fonts/icomoon.woff?eqfndt") format("woff"),
    url("./fonts/icomoon.svg?eqfndt#icomoon") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[class^="icon-"],
[class*=" icon-"] {
  font-family: "icomoon" !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-search:before {
  content: "\e986";
}
.icon-info:before {
  content: "\ea0c";
}

.btnn {
  visibility: visible;
  transform: scale(1, 1);
  transition: visibility 200ms ease 200ms, transform 200ms ease 200ms;
}
.open {
  visibility: hidden;
  transform: scale(0, 0);
}

#close {
  border-radius: 50%;
  width: 30px;
  height: 30px;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  top: 20px;
  left: 30px;
  transition: opacity 300ms ease;
}
#close.uil {
  opacity: 1;
}

.close-btn {
  overflow: hidden;
  width: 80%;
  height: 80%;
  background-color: transparent;
  position: relative;
  display: block;
}
.zzz .close-btn::before,
.zzz .close-btn::after {
  background-color: #c2d5e6;
}
.close-btn::before,
.close-btn::after {
  bottom: 0px;
  position: absolute;
  content: "";
  background-color: #272737;
  height: 10%;
  width: 100%;
  border-radius: 40%;
  transition: bottom 300ms ease 500ms, right 300ms ease 500ms,
    background 300ms ease 200ms;
}
.uil .close-btn::before {
  right: 0%;
  bottom: 44%;
}
.close-btn::before {
  right: -44%;
  bottom: 0%;
  transform: rotate(45deg);
}
.close-btn::after {
  left: 0%;
  bottom: 44%;
  transform: rotate(-45deg);
}

.weather-info {
  box-sizing: border-box;
  width: 70%;
  height: 80vh;
  margin: 0px auto;
  display: grid;
  grid-template-columns: auto auto;
  grid-row: auto;
  column-gap: 4%;
}

.column-1,
.column-2 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.inn {
  box-sizing: border-box;
  border: 1px solid #272737;
  border-radius: 20px;
  padding: 10px 20%;
  margin: 0 0 10px 0;
  width: 90%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  text-align: center;
  color: #272737;
}
.zzz .inn {
  border-color: #c2d5e6;
  color: #c2d5e6;
}
.a1111 {
  transition: color 300ms ease 200ms, border-color 300ms ease 200ms;
}
.b2222 {
  transition: color 300ms ease 250ms, border-color 300ms ease 250ms;
}
.c3333 {
  transition: color 300ms ease 300ms, border-color 300ms ease 300ms;
}
.d4444 {
  transition: color 300ms ease 350ms, border-color 300ms ease 350ms;
}
.inn h3 {
  color: inherit;
  font-weight: 600;
  text-transform: capitalize;
}

.inn p {
  color: inherit;
  font-weight: 200;
  text-transform: capitalize;
}
.inn span {
  width: 100px;
  height: 100px;
  display: block;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.inn span img {
  width: 100%;
  height: 100%;
  transform: scale(1.3, 1.3);
}

@media screen and (max-width: 530px) {
  .weather-info {
    width: 80%;
    margin: 30px auto 0;
  }
  .bbb {
    width: 30px;
    height: 30px;
  }
  .inn {
    padding: 10px 10%;
  }
  .weather-icon span {
    width: 120px;
    height: 120px;
  }
  .weather-brief {
    width: 70%;
  }
  .card.zzz::after,
  .card.zzz::before {
    width: 2000px;
    height: 2000px;
  }
}

@media screen and (max-width: 320px) {
  h1 {
    font-size: 3.4rem;
  }
  h3 {
    font-size: 1.2rem;
  }
  .inn {
    padding: 5%;
  }
  .inn span {
    height: 80px;
    width: 80px;
  }
}
@media screen and (max-height: 690px) {
  .inn {
    padding: 5%;
  }
  .inn span {
    height: 80px;
    width: 80px;
  }
}
@media screen and (max-height: 600px) {
  .weather-info {
    margin: 10px auto 0;
  }
  .inn span {
    height: 60px;
    width: 60px;
  }
  .weather-icon span {
    width: 100px;
    height: 100px;
  }
}
@media screen and (max-height: 500px) {
  h1 {
    font-size: 3.4rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.2rem;
  }
  .weather-icon span {
    width: 80px;
    height: 80px;
  }

  .card.zzz::after,
  .card.zzz::before {
    width: 1800px;
    height: 1800px;
  }
}

@keyframes headShake {
  0% {
    transform: translateX(0);
  }

  6.5% {
    transform: translateX(-5px) rotateY(-9deg);
  }

  18.5% {
    transform: translateX(4px) rotateY(7deg);
  }

  31.5% {
    transform: translateX(-2px) rotateY(-5deg);
  }

  43.5% {
    transform: translateX(1px) rotateY(3deg);
  }

  50% {
    transform: translateX(0);
  }
}
