@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;
  transition: background 0.3s ease-in, color 0.1s ease-out;
}
.light-theme {
  --bg: #d9e4f5;
  --img: linear-gradient(320deg, #85a3ce 0%, #f5dadf 74%);
  --color: #000;
}

.dark-theme {
  /* --bg: #272727; */
  --bg: #000;
  --img: linear-gradient(180deg, #2c3e50 10%, #000 74%);
  --color: #fff;
}

body {
  background: black !important;
  overflow-x: hidden;
}
.hidden {
  display: none;
}
.spin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.loader {
  color: var(--color);
  font-size: 90px;
  text-indent: -9999em;
  overflow: hidden;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  margin: 72px auto;
  position: relative;
  -webkit-transform: translateZ(0) scale(0.5);
  -ms-transform: translateZ(0) scale(0.5);
  transform: translateZ(0) scale(0.5);
  -webkit-animation: load6 2.3s infinite ease, round 2.3s infinite ease;
  animation: load6 2.3s infinite ease, round 2.3s infinite ease;
}
@-webkit-keyframes load6 {
  0% {
    box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
      0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }
  5%,
  95% {
    box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
      0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }
  10%,
  59% {
    box-shadow: 0 -0.83em 0 -0.4em, -0.087em -0.825em 0 -0.42em,
      -0.173em -0.812em 0 -0.44em, -0.256em -0.789em 0 -0.46em,
      -0.297em -0.775em 0 -0.477em;
  }
  20% {
    box-shadow: 0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em,
      -0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em,
      -0.749em -0.34em 0 -0.477em;
  }
  38% {
    box-shadow: 0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em,
      -0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em, -0.82em -0.09em 0 -0.477em;
  }
  100% {
    box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
      0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }
}
@keyframes load6 {
  0% {
    box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
      0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }
  5%,
  95% {
    box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
      0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }
  10%,
  59% {
    box-shadow: 0 -0.83em 0 -0.4em, -0.087em -0.825em 0 -0.42em,
      -0.173em -0.812em 0 -0.44em, -0.256em -0.789em 0 -0.46em,
      -0.297em -0.775em 0 -0.477em;
  }
  20% {
    box-shadow: 0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em,
      -0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em,
      -0.749em -0.34em 0 -0.477em;
  }
  38% {
    box-shadow: 0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em,
      -0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em, -0.82em -0.09em 0 -0.477em;
  }
  100% {
    box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
      0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
  }
}
@-webkit-keyframes round {
  0% {
    -webkit-transform: rotate(0deg) scale(0.5);
    transform: rotate(0deg) scale(0.5);
  }
  100% {
    -webkit-transform: rotate(360deg) scale(0.5);
    transform: rotate(360deg) scale(0.5);
  }
}
@keyframes round {
  0% {
    -webkit-transform: rotate(0deg) scale(0.5);
    transform: rotate(0deg) scale(0.5);
  }
  100% {
    -webkit-transform: rotate(360deg) scale(0.5);
    transform: rotate(360deg) scale(0.5);
  }
}
#nav i {
  position: absolute;
  top: 0;
  z-index: -1;
  background: #fff;
  border-radius: 50%;
  animation: animate linear infinite;
}
@keyframes animate {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  10%,
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(130px);
  }
}
.ml10 {
  position: relative;
  font-weight: 900;
  font-size: 1em;
}

.ml10 .text-wrapper {
  position: relative;
  display: inline-block;
  padding-top: 0.2em;
  padding-right: 0.05em;
  padding-bottom: 0.1em;
  overflow: hidden;
}

.ml10 .letter {
  display: inline-block;
  line-height: 1em;
  transform-origin: 0 0;
}
section#nav {
  background: #000;
  color: #ffffff;
  max-height: 100vh;
  position: fixed;
  top: 0px;
  width: 200px;
  transition: 0.4s;
}
#nav ul {
  display: flex;
  margin-top: 100px;
  flex-direction: column;
}
#nav ul li {
  margin: 20px;
  cursor: pointer;
}
#nav ul li a {
  text-decoration: none;
  color: white;
  transition: 0.4s;
}
#nav ul li a:hover {
  border-bottom: 1px solid white;
}

#popup button {
  display: none;
  border: none;
  background: #333;
  color: #fff;
  padding: 10px 30px;
  border-radius: 5px;
  font-size: 17px;
  cursor: pointer;
  font-family: "Saira Semi Condensed", sans-serif;
}
#popup .popup-flex {
  margin: 30px;
}
#popup .popup-container {
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  transform: scale(1.3);
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(21, 17, 17, 0.61);
  display: flex;
  align-items: center;
}
#popup .popup-content {
  position: relative;
  background-color: var(--bg);
  margin: auto;
  padding: 20px;
  width: 300px;
  height: 80px;
  display: flex;
  justify-content: center;
  flex-direction: row-reverse;
  align-items: center;
  border-radius: 10px;
}
#popup .popup-content p {
  font-size: 17px;
  color: var(--color);
  padding: 10px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* vertical-align: middle; */
  line-height: 20px;
}
#popup .popup-content span {
  color: rgb(122, 122, 122);
  float: right;
  font-size: 28px;
  position: absolute;
  top: 0px;
  right: 10px;
  font-weight: bold;
}
#popup .popup-content span:hover,
#popup .popup-content span:focus {
  color: rgb(145, 145, 145);
  text-decoration: none;
  cursor: pointer;
}
#popup .show {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}
#popup .more-articles {
  margin: 30px 30px 50px;
  font-size: 20px;
}
#popup .more-articles a {
  margin: 0 10px;
  text-decoration: underline;
}

/* main section  */
section#main {
  position: relative;
  background: var(--bg);
  color: var(--color);
  background-image: var(--img);
  min-height: 100vh;
  width: 100vw;
  border-top-left-radius: 30px;
  top: 0;
  left: 0;
  -webkit-transition: all 0.2s linear 0s;
  transition: all 0.2s linear 0s;
}
.active {
  top: 60px !important;
  left: 200px !important;
}

#main nav {
  display: flex;
  padding: 25px;
}
#main .toggler {
  font-size: 24px;
  cursor: pointer;
}
#main nav h2 {
  font-weight: 900;
  text-transform: uppercase;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-bottom: 2px solid var(--color);
}
#main nav #time {
  position: absolute;
  right: 3vw;
  top: 32px;
  font-size: 20px;
}
#main nav #time sub {
  font-size: 10px;
  position: absolute;
  bottom: 5px;
}

#main main .input {
  position: absolute;
  right: 0px;
  margin: 10px 20px;
}
#main .inputValue {
  position: relative;
  width: 200px;
  padding: 8px;
  margin: 0px;
  background-color: rgb(219, 212, 212);
  border: 0;
  border-radius: 5px;
}
#main input:valid {
  border: 0;
  outline: 0;
}
#main main .button {
  /* position: absolute; */
  outline: none;
  background: black;
  color: white;
  margin: 5px;
  padding: 8px;
  border: 0;
  border-radius: 5px;
}
#main #forecast {
  margin-top: 80px;
}
#main #forecast h1 {
  position: absolute;
  margin-top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 36;
  font-weight: 900;
}
#main #forecast img {
  height: 40px;
  vertical-align: middle;
  margin-top: -10px;
}
#main #forecast sup i {
  margin-right: 6px;
  margin-top: -10px;
  font-size: 13px;
}
#main #forecast sub {
  font-weight: 500;
  font-size: 15px;
  margin-top: 10px;
}
table {
  border-collapse: separate;
  border-spacing: 0 2em;
  margin-top: 20px;
}
table tr td,
table tr th {
  color: var(--color);
}
@media (max-width: 768px) {
  #main .inputValue {
    width: 150px;
    padding: 5px;
    margin: 0px;
  }
  #main main .button {
    padding: 6.5px;
    font-size: 14px;
    margin: 0;
  }
  #main nav #time {
    right: 4vw;
  }
}

@media (max-width: 500px) {
  .active {
    left: 160px !important;
  }
  #main nav #time {
    right: 8vw;
  }
}
@media (max-width: 400px) {
  #main nav #time {
    font-size: 18px;
    right: 6.3vw;
  }
  #main nav #time sub {
    font-size: 9px;
    margin-left: 2px;
  }
}
@media (max-width: 360px) {
  #main nav #time {
    font-size: 18px;
    right: 5.9vw;
  }
}