/*!*********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./styles/WelcomePopup.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************/
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 10000;
  overflow-y: auto;
  padding-top: 12vh; 
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.popup-overlay.closing {
  animation: fadeOut 0.5s ease-out forwards;
}

.popup-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  min-height: 100%;
}

.popup-container {
  position: relative;
  width: 400px;
  max-width: 100%;
  opacity: 0;
  animation: slideUp 0.6s ease-out 0.1s forwards;
}

.popup-container.closing {
  animation: slideDown 0.5s ease-in forwards;
}

.popup-content {
  position: relative;
  width: 100%;
  background-color: white;
}

.popup-image {
  display: block;
  width: 100%;
  height: auto;
  border: none;
  box-shadow: none;
}

.popup-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 60px;
  height: 60px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate(50%, -50%); /* Memposisikan tombol lebih keluar dari popup */
  padding: 0;
}

.close-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: #ffff;
  border-radius: 50%;
  color: rgba(136, 136, 136, 0.619);
  font-size: 30px;
  font-weight: bold;
  border: 2px solid rgba(136, 136, 136, 0.619);
  z-index: 10001;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  line-height: 0; /* Membantu memposisikan teks di tengah */
  padding-bottom: 7px; /* Penyesuaian halus untuk posisi vertikal */
}

/* Animasi */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Untuk perangkat mobile */
@media (max-width: 768px) {
  .popup-close {
    width: 50px;
    height: 50px;
    transform: translate(44%, 155%); /* Sedikit penyesuaian untuk mobile */
  }

  .close-icon {
    width: 35px;
    height: 35px;
    font-size: 25px;
    padding-bottom: 0;
  }

  .popup-container {
    padding-top: 100px;
    width: 95%;
    max-width: 95%;
  }

  .popup-overlay {
    padding-top: 2vh;
  }
}
/* Untuk perangkat mobile */

@media (max-width: 480px) {
  .popup-container {
    width: 75%;
    max-width: 75%;
  }
}

