@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

/* Todo Card Start */
.card-head {
  background: url("../assets/header-kartu.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.card-output {
  height: 300px;
  overflow: auto;
  scroll-behavior: smooth;
}
/* Todo Card end */

/* Footer Start */
.share_section .logo {
  width: 40px;
  height: 40px;
}
/* Footer End */

#check {
  display: none;
}

.checkbtn {
  display: none;
}

.satuan {
  opacity: 0.9;
}

ul li a:hover {
  box-shadow: 0 5px black;
  animation: all 0.3s ease-in-out;
}

ul li a:active {
  position: relative;
  box-shadow: none;
  top: 7px;
  animation: all 0.3s ease-in-out;
}

footer .share_section .icon a:hover {
  transform: scale(1.2);
}

header a img:hover {
  transform: scale(1.2);
}

@media (max-width: 640px) {
  #check {
    display: none;
  }

  .checkbtn {
    display: block;
    font-size: 2rem;
  }

  header {
    display: flex;
    justify-content: space-between;
    margin-right: -30px;
    margin-bottom: 80px;
  }

  #title-card-weather {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  #title-card-todo {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  #card-todo {
    width: 90%;
  }

  ul li a:hover {
    box-shadow: none;
  }

  #reset-todo:hover {
    transform: scale(1.1);
    animation: iRotate 2s infinite;
  }

  @keyframes iRotate {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  #add-todo:hover {
    transform: scale(1.2);
    color: #53a6d8;
  }
}

/* Media Query min-width 600px Start */
@media (max-width: 768px) {
  #check {
    display: none;
  }

  .checkbtn {
    display: block;
    font-size: 2rem;
  }

  ul {
    position: fixed;
    width: auto;
    border-radius: 0 10px 10px 0;
    height: 25vh;
    top: 90px;
    left: -100%;
    text-align: center;
    transition: all 0.5s ease-in-out;
    /* glass */
    background: #0908535e;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
  }

  ul li {
    line-height: 30px;
  }

  ul li a {
    display: block;
    margin-top: 2rem;
    font-size: 1.2rem;
  }

  a:hover,
  a.active {
    background: none;
    color: #0082e6;
  }
  #check:checked ~ ul {
    left: 0;
  }

  .checkbtn:active {
    transform: rotate(90deg);
    color: teal;
  }

  #weather-cards {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow: auto;
  }

  #reset-todo:hover {
    transform: scale(1.1);
    animation: iRotate 2s infinite;
  }

  @keyframes iRotate {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  #add-todo:hover {
    transform: scale(1.2);
    color: #53a6d8;
  }
}

@media (max-width: 1536px) {
  #weather-cards {
    display: flex;
    justify-items: left;
    flex-wrap: nowrap;
    overflow: auto;
  }
  #weather-cards .satuan {
    justify-content: flex-start;
  }

  #reset-todo:hover {
    transform: scale(1.1);
    animation: iRotate 0.5s infinite;
  }

  @keyframes iRotate {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  #add-todo:hover {
    transform: scale(1.2);
  }
}
