@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

::-webkit-scrollbar {
  display: none;
}

body {
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  max-width: 100%;
  padding: 2rem 3rem 0 3rem;
  margin: 0 auto;
  transition: all .5s ease-in-out;
  border-bottom: solid 1px rgba(0, 0, 0, 0.2);
  padding: 1rem 3rem;
}

.navbar.sticky{
  background-color: white;
  color: black;
}

.logo {
  cursor: pointer;
}

.logo img:nth-child(2) {
  display: none;
}

.navbar-text {
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-right: 4rem;
}

.navbar-text li {
  list-style: none;
  float: left;
  margin: 0 2rem;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  transition: color .5s ease-in-out;
  cursor: pointer;
}

.navbar-text li.sticky {
    color: black;
}

.dropdown {
    float: left;
    overflow: hidden;
}

.dropdown .dropbtn {
    cursor: pointer;
    font-size: 16px;
    border: none;
    outline: none;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
    transition: color ease-in-out .5s;
}

.dropbtn.sticky{
    color:#000
}

.dropbtn {
  display: flex;
  align-items: center;
}

.arrow-down {
  transition: all .5s ease-in-out;
  margin-left: 1rem;
  height: 15px;
  width: 15px;
}

.arrow-down.sticky{
  filter: invert(0);
}

.arrow-down.active {
  transform: rotate(180deg);
}

.dropdown-content {
  visibility: collapse;
  transform: translateY(25%);
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  transition: all 0.2s ease-in-out;
  opacity: 0.2;
  border-radius: 0.2rem;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown-content.active {
  transform: translateY(0);
  display: block;
  visibility: visible;
  opacity: 1;
}

.navbar-right {
  display: flex;
  align-items: center;
  position: relative;
}

.hamburger-logo {
  cursor: pointer;
  opacity: 0;
  display: none;
  margin-left: 1rem;
  transition: ease-in-out transform 0.2s;
  transform: scale(1);
}

.hamburger-logo.active {
  transform: scale(0);
  opacity: 0;
  padding: 1rem 1rem 0 0;
}

.search-logo {
  display: none;
}

.search-logo img {
  width: 20px;
  height: 20px;
  transition: all .5s ease-in-out;
}

.search-logo img.sticky{
  filter: invert(0);
}

.close-logo {
  cursor: pointer;
  opacity: 0;
  width: 0;
  height: 0;
  transform: scale(0);
  transition: transform 0.2s ease-in-out;
}

.navbar-text-mobile {
  display: none;
  height: 100vh;
  width: 100vw;
  background-color: #000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
  z-index: -1;
  position: absolute;
  transform: translateY(-150%);
  transition: transform 0.8s ease-in-out;
}

/* END HEADER */

/* MAIN */
main{
    padding: 25vh 0;
    height: 100vh;  
    position: relative;
    overflow-x: hidden;
}

.main-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.test-rabun{
  position: relative;
  z-index: 1;
}

.test-rabun h1, .test-selesai h1, .hasil-bagus h2{
  color: #615D5D;
  font-size: 2.25em;
  text-align: center;
}

.test-character{
  margin: 1rem 0;
  height: 82px;
  letter-spacing: 1rem;
  transition: all .2s ease-in-out;
}

.test-character h2{
  font-size: 1.875em;
  text-align: center;
}

.test-rabun p{
  font-size: .68em;
  margin: 1rem 0;
}

.wrapper-btn-hasil{
  display: flex;
}


.test-rabun button, .wrapper-btn-hasil button{
  background-color: black;
  color: white;
}

.wrapper-btn-test-selesai {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.wrapper-btn-test-selesai button{
  width: fit-content;
  margin: .5rem;
}

.test-rabun button, .wrapper-btn-test-selesai button, .wrapper-btn-hasil button{
  border: none;
}

.wrapper-btn-hasil {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.wrapper-btn-hasil button{
  width: 171px;
  margin: 0 1rem;
}

.form{
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: -1;
}

.form input:nth-child(3){
  position: absolute;
  opacity: 0;
}

.form .error-input, .form .error-input-mobile{
  width: 181px;
  height: 44px;
  position: absolute;
  right: 0;
  top: 0;
  transform: translate(75%, -100%);
  opacity: 0;
}

.form .error-input-mobile{
  transform: translate(-37%, 100%);
}

.form .error-input.active{
  transition: opacity .5s ease-in-out;
  opacity: 1;
}

.test-selesai{
    opacity: 0;
    z-index: -1;
    position: absolute;
    top: 50%; right: 50%;
    transform: translate(50%,-50%);
}

.test-selesai img{
  width: 204px;
  height: 204px;
}

.test-selesai p{
  font-size: 1.25em;
  margin: 2rem;
}

.wrapper-btn-test-selesai button a, .wrapper-btn-hasil button a{
  text-decoration: none;
}

.mulai-tes:hover > a{
  color: black;
}

.test-selesai.active{
    transition: opacity .5s ease-in-out;
    opacity: 1;
    position: relative;
    z-index: 1;
}

.test-rabun.active{
    opacity: 0;
    position: absolute;
    top: 50%; right: 50%;
    transform: translate(50%,-50%);
}

.hasil{
  width: 100%;
}

.hasil p{
  font-size: 1.25em;
  font-style: italic;
}

.hasil p:nth-child(5){
  font-weight: 600;
  color: #000;
  font-style: normal;
  margin: 2rem 0;
}

.hasil img{
  margin: 1rem 0;
}

.hasil h2{
  font-size: 2.25em;
}

.hasil h1{  
  line-height: 1.5;
  font-size: 2em;
  text-align: center;
}

.hasil-lumayan, .hasil-buruk, .hasil-bagus{
  opacity: 0;
  z-index: -1;
  position: absolute;
  top: 50%; right: 50%;
  transform: translate(50%,-60%);
}

.hasil-bagus h1{
  color: #1D9333;
}

.hasil-lumayan h1{
  color: #C76810;
}

.hasil-buruk h1{
  color: #EC0707;
}

.hasil-lumayan.active, .hasil-bagus.active , .hasil-buruk.active{
  transition: opacity .5s ease-in-out;
  opacity: 1;
  position: relative;
  z-index: 1;
}

main .list-circle{
    display: flex;
    margin: 1rem 0 0rem 0;
}

main .list-circle li{
    width: 1.56rem;
    height: 1.56rem;
    border-radius: 50%;
    background-color: #E2E2E2;
    list-style: none;
    margin: 0 .5rem;
    transition: background-color .5s ease-in-out;
}

main .list-circle li.active{
    background-color: #939393;
}

main .wrapper-input-check{
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

main .wrapper-input-check input{
  height: 50px;
  width: 256px;
  font-size: 1.875em;
  font-weight: 600;
  text-align: center;
  outline: none;
  transition: all 0.2s ease-in-out;
}

main .wrapper-input-check img{
    opacity: 0;
    position: absolute;
    right: 0;
    transform: translateX(120%);
}

main .wrapper-input-check img.active{
  transition: all 0.5s ease-in-out;
    opacity: 1;
}

.btn-lanjut{
  margin: 0 auto;
}

/* END MAIN */

/* instruction */
.instruction-bg {
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
  overflow: hidden;
  padding: 100px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  /* transform: scale(0); */
  animation: fadeIn 0.5s ease-in-out forwards;
}

.instruction-container {
  width: 700px;
  height: 550px;
  display: flex;
  justify-content: start;
  align-items: center;
  flex-direction: row;
  position: relative;
  background-color: #fff;
  overflow: hidden;
  transform: scale(0);
  animation: scaleIn 0.5s ease-in-out forwards;
  animation-delay: .5s;
}

.instruction-container .container {
  display: flex;
  width: auto;
  height: auto;
  flex-direction: row;
}

.container .instruction {
  width: 700px;
  height: 550px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 10px;
  transition: .5s;
}

.container .skip {
  width: auto;
  position: absolute;
  top: 0;
  right: 0;
  padding: 30px;
  margin-right: 10px;
  height: auto;
  background-color: transparent;
  display: flex;
  flex-direction: row;
  justify-content: end;
  align-items: center;
  opacity: .4;
  z-index: 1;
}

.skip p {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.skip img {
  width: 30px;
  height: 20px;
  filter: invert(100%);
  transition: .5s;
}

.skip:hover img {
  padding-left: 10px;
}

.content-p {
  max-width: 450px;
  margin: 40px 0;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
}

.content .btn {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  width: 100%;
  height: auto;
}

.btn .button {
  cursor: pointer;
  margin: 0 10px;
}

#mulai-tes {
  position: relative;
  line-height: 1;
  width: auto;
  height: 40px;
  padding: 5px 20px;
  background-color: #000;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  cursor: pointer;
  transition: 0.5s;
  z-index: 1;
  border-right: 1px solid #000;
}

#mulai-tes > p {
  font-size: 18px;
  font-style: normal;
}

#mulai-tes .block {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #fff;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  border-left: 1px solid #000;
  transition: 0.5s;
  transform: translateX(100%);
  z-index: -1;
  transition: 0.5s;
}

#mulai-tes:hover .block {
  transform: translateX(0);
}

#mulai-tes:hover {
  color: #000;
  font-weight: 500;
}
/* end instruction */

/* footer */

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 200px;
    background-color: #fff;
    color: #000;
    border-top: 2px solid #000;
  }
  
  .footer-text {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
  }
  
  .footer-text > img {
    margin-bottom: 20px;
  }
  
  .footer-text > p {
    font-weight: 400;
  }
  
  /* end footer */

@media (max-width: 768px) {
  /* responsive instruction */
  .instruction-bg {
    padding: 50px 20px;
    height: 100%;
  }
  
  .instruction-container {
    width: 100%;
    height: 100%;
  }

  .container .instruction {
    padding: 0;
    width: 92.5vw;
    height: 100%;
  }

  .content-p {
    padding: 0 10px;
    padding-right: 25px;
    width: 100%;
    margin: 40px auto;
    font-size: 14px;
  }

  .instruction .content{
    width: 100%;
  }
  /* end responsive instruction */

    /* NAVBAR */
    .navbar {
        padding: 0;
        z-index: 999;
      }
    
      .navbar.sticky {
        padding: 0;
        z-index: 1;
      }
    
      .logo {
        padding: 1rem 0 0 1rem;
      }
    
      .logo img:nth-child(2).active {
        display: initial;
      }
    
      .logo img:nth-child(1).active {
        display: none;
      }

      .navbar-text-mobile {
        display: flex;
      }
    
      .navbar-right {
        padding: 1rem 1rem 0 0;
      }
    
      .search-logo {
        opacity: 1;
        transform: scale(1);
        transition: all 0.2s ease-in-out;
      }
    
      .search-logo.active {
        position: absolute;
        opacity: 1;
        transform: scale(0);
      }
    
      .hamburger-logo {
        opacity: 1;
        display: initial;
      }
    
      .close-logo.active {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
        width: fit-content;
        height: fit-content;
      }
    
      .navbar-text {
        display: none;
      }
    
      .navbar-text-mobile.active {
        transform: translateY(0);
        opacity: 1;
      }
    
      .navbar-text-mobile li {
        list-style: none;
        margin: 0.5rem;
      }
    
      .navbar-text-mobile li a {
        color: white;
        text-decoration: none;
      }
    
    /* END NAVBAR */

/* MAIN */
  main{
    width: 100%;
  }

  main .list-circle li{
    width: 1rem;
    height: 1rem;
  }

  .test-character{
    margin: .5rem;
    display: flex;
    align-items: center;
    height: 50px;
    letter-spacing: .5rem;
  }

  .test-character h2{
    font-size: 1.5em;
  }

  main .wrapper-input-check input{
    height: 40px;
    width: 220px;
    font-size: 1.25em;
    position: relative;
    z-index: 2;
  }

  main .wrapper-input-check img{
    transform: translateX(20%);
}

  .form .error-input{
    width: 181px;
    height: 44px;
  }

  .form .error-input.active{
    opacity: 0;
    display: none;
  }

  .form .error-input-mobile.active{
    transition: opacity .5s ease-in-out;
    opacity: 1;
    transform: translate(-37%, 100%);
    z-index: 1000;
  }

  .test-rabun{
    opacity: 1;
    z-index: 1;
  }

  .test-rabun h1{
    font-size: 1.5em;
  }

  .test-selesai{
    opacity: 0;
    z-index: -1;
    width: 100%;
  }

  .test-selesai img, .hasil img{
    width: 121px;
    height: 121px;
    margin-top: 1rem;
  }

  .test-selesai p{
    font-size: 0.9em;
    margin: 2rem 0;
    text-align: center;
    width: 100%;
  }

  .hasil-bagus{
    opacity: 0;
    z-index: -1;
  }

  .hasil-lumayan{
    opacity: 0;
    z-index: -1;
  }

  .hasil-buruk{
    opacity: 0;
    z-index: -1;
  }

  .hasil p{
    font-size: .9em;
    font-style: italic;
  }
  
  .hasil h2{
    font-size: 1.5em;
  }

  .hasil img{
    margin: 1rem 0;
  }

  .hasil h1{
    font-size: 1em;
    text-align: center;
  }

  .wrapper-btn-hasil button{
    width: fit-content;
  }
  

/* END MAIN */

#mulai-tes{
  height: 30px;
  padding: 5px 20px;
}

#mulai-tes > p {
  font-size: 10px;
  font-style: normal;
}

/* FOOTER  */
  footer {
    height: 100px;
  }

  .footer-text > img {
    margin-bottom: 5px;
    width: 80px;
  }
/* END FOOTER */
}

@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  80% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* create scaleOut animation */
@keyframes scaleOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  80% {
    opacity: 1;
    transform: scale(1);
  }
  80% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 0;
    transform: scale(0);
  }
}

@keyframes fadeIn {
  0%{
    background-color: rgba(0, 0, 0, 0);
  }
  100% {
    background-color: rgba(0, 0, 0, 0.5);
  }
}

/* create fade out animation */
@keyframes fadeOut {
  0%{
    background-color: rgba(0, 0, 0, 0.5);
  }
  90% {
    background-color: rgba(0, 0, 0, 0);
    transform: scale(1);
  }
  100% {
    background-color: rgba(0, 0, 0, 0);
    transform: scale(0);
  }
}