@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;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  display: none;
}
/* END SCROLLBAR */

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;
  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{
    margin: 10vh 0 30vh;
    position: relative;
}

.wrapper-test{
    display: flex;
    align-items: center;
    flex-direction: column;
    opacity: 1;
    transition: opacity .5s ease-in-out;
    position: relative;
}   

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

.soal-keberapa{
    background-color: #000;
    color: #fff;
    padding: 1rem;
    font-weight: 600;
}

.wrapper-soals-lg{
  width: 700px;
  height: 500px;
  display: flex;
  justify-content: start;
  align-items: center;
  flex-direction: row;
  position: relative;
  background-color: #fff;
  overflow: hidden;
  animation: scaleIn 0.5s ease-in-out forwards;
  animation-delay: .5s;
}

.wrapper-soals{
  display: flex;
  width: auto;
  height: auto;
  flex-direction: row;
}

.wrapper-soal{
  width: 700px;
  height: 550px;
  position: relative;
  padding: 10px;
  transition: .5s;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.soal h1{
    font-size: 1.5em;
}

.jawab{
  margin-top: 1rem;
}

.container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #eee;
  border-radius: 50%;
  transition: all .2s ease-in-out;

}

.container:hover input ~ .checkmark {
  background-color: #ccc;
}

.container input:checked ~ .checkmark {
  background-color: #2196F3;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.container input:checked ~ .checkmark:after {
  display: block;
}

.container .checkmark:after {
 	top: 6px;
	left: 6px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: white;
}

.check-logo{
  margin-left: 1rem;
  opacity: 0;
  transition: .5s opacity ease-in-out;
}

.check-logo.active{
  opacity: 1;
}

.wrapper-btn{
    display: flex;
    gap: 5rem;
}

.wrapper-btn button{
    background-color: #000;
    color: #fff;
    padding: 1rem;
    font-weight: 600;
    border: none;
}

#btn-lanjut{
  background-color: rgba(0, 0, 0, 0.3);
}

#btn-lanjut.active{
  background-color: #000;
}

.jawaban{
  opacity: 0;
  font-weight: 600;
  margin-top: 2rem;
  transition: all .2s ease-in-out;
  color: #1D9333;
}

.jawaban.blom-Jawab{
  opacity: 1;
  color: black;
}

.jawaban.benar{
  opacity: 1;
  color: #1D9333;
}

.jawaban.salah{
  opacity: 1;
  color: #FF0000;
}

#btn-submit {
  border-right: 1px solid #000;
}

#btn-lanjut {
  border-right: 1px solid #000;
}

#btn-selesai {
  border-right: 1px solid #000;
}

.mulai-tes, .mulai-tes-lanjut {
  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;
}

.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, .lanjut-btn:hover.active .block {
  transform: translateX(0);
}

.mulai-tes:hover, .lanjut-btn:hover.active {
  color: #000;
  font-weight: 500;
}

.lanjut-btn:hover .block{
  transform: translateX(100%);
}

.lanjut-btn:hover{
  color: #fff;
}

.hasil{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hasil-buruk-banget, .hasil-buruk, .hasil-lumayan, .hasil-bagus, .hasil-bagus-banget{
  opacity: 0;
  z-index: -1;
  position: absolute;
  top: 50%; right: 50%;
  transform: translate(50%,-50%);
  transition: opacity .5s ease-in-out;
}

.hasil-buruk-banget.active, .hasil-buruk.active, .hasil-lumayan.active, .hasil-bagus.active, .hasil-bagus-banget.active{
  top: 0; right: 0;
  transform: translate(0,0);
  opacity: 1;
  position: relative;
  z-index: 1;
}

.hasil h1{
  color: #615D5D;
  text-align: center;
}

.hasil p{
  width: 500px;
  text-align:center;
  font-size: 1.2em;
}

.hasil .img{
  margin: 2rem 0;
}

.wrapper-btn-hasil{
  margin-top: 3rem;
}

#btn-selesai{
  display: none;
}

/* END MAIN */

/* 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) {
    /* NAVBAR */
  .body{
    overflow-x: hidden;
  }

    .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-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;
      }
    
      .close-logo.active {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
        width: fit-content;
        height: fit-content;
      }
    
      .navbar-text {
        display: none;
      }

      .navbar-text-mobile{
        display: flex;
      }
    
      .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 */    

    .wrapper-soals-lg{
      width: 100%;
    }

    .wrapper-soal{
      width: 100vw;
      flex-direction: column;
      padding: 0;
      height: fit-content;
      margin-top: 3rem;
    }

    .wrapper-btn{
      margin-top: 3rem;
    }

  .img-soal img{
    width: 190px;
    height: 190px;
  }

  .hasil{
    padding: 0 1rem;
  }

  .hasil .img img{
    width: 100px;
    height: 100px;
  }

  .hasil p{
    width:fit-content;
    text-align:center;
    font-size: .9em;
  }

    /* END MAIN */

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

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