:root {
  --primary: #b6895b;
  --bg: #eaeaea;
  --bg1: #28c76f;
  --secondary: #000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}

body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: #000;
  background-image: radial-gradient(circle farthest-corner at 10% 20%, rgb(248, 248, 248) 0.1%, rgba(239, 249, 251, 0.63) 90.1%);
}

/* Popup Iklan Star */
.popup-screen {
  z-index: 999999;
  position: fixed;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  top: 0;
  width: 100%;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  transition: 0.5s ease;
  transition-property: visibility;
}

.popup-screen.active {
  visibility: visible;
}

.popup-box {
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  max-width: 350px;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 10px;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 5px 25px rgb(0 0 0 / 20%);
  transform: scala(0);
  transition: 0.5s ease;
  transition-property: transform;
  box-shadow: 1px 1px 5px rgba(1, 1, 3, 0.8);
  z-index: 1;
}

.popup-screen.active .popup-box {
  transform: scala(1);
}

.popup-box img {
  position: absolute;
  aspect-ratio: 1;
  top: -75px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 100%;
  width: 130px; /* Atur lebar gambar */
  height: auto;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 1px 1px 5px rgba(1, 1, 3, 0.8);
  transition: transform 0.5s;
  margin-top: -5px;
}

.popup-box i {
  margin-top: 15px;
  z-index: 999;
}

.popup-box h2 {
  font-size: 2.1em;
  font-weight: 800;
  margin-top: 50px;
  margin-bottom: -10px;
  text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
}

.popup-box h4 {
  font-size: 1.2em;
  font-weight: 500;
  line-height: 40px;
  margin-bottom: 15px;
}

.popup-box span {
  color: var(--bg1);
}

.popup-box p {
  font-size: 1.2em;
  margin-bottom: 15px;

}

.popup-box .btn {
  color: #fff;
  background: var(--bg1);
  font-size: 1.2em;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  padding: 7px 27px;
  border-radius: 10px;
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
  z-index: 999999;
  margin-bottom: 20px;
}

.btn:hover {
  background-color: var(--bg1);
  color: #000;
}

.close-btn {
  position: absolute;
  font-size: 2em;
  top: 0;
  right: 0;
  margin: 20px;
  cursor: pointer;
  opacity: 0.5;
  transition: 0.3s ease;
  transition-property: opacity;
  display: flex;
  background: radial-gradient(circle 887px at -13.8% 18.3%, rgba(8, 208, 115, 1) 0%, rgba(0, 0, 0, 1) 90%);
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
  z-index: 999;
}

.close-btn {
  transition: transform 0.5s ease-in-out;
}

.close-btn:hover {
  background-color: var(--primary);
  color: #000;
  z-index: 999;
}

.close-btn:hover {
  transform: rotate(90deg);
}
/* Popup Iklan End */

/* responsive */
@media (min-width: 1200px) {
  .popup-box p,
  .popup-box h4 {
    font-size: 100%;
  }

  @media (min-width: 1200px) {
    .popup-box h2 {
      font-size: 150%;
    }
  }
}

@media (min-width: 768px) {
  .popup-box img {
    width: 15%;
    height: auto;
    left: 10px; /* atur nilai left sesuai kebutuhan */
    transform: none;
    top: 10px;
  }

  .popup-box img {
    width: 15%;
    height: auto;
    left: 10px; /* atur nilai left sesuai kebutuhan */
    transform: none;
    top: 10px;
  }

  .popup-box {
    max-width: 350px;
    min-height: 400px;
  }
}

@media (max-width: 767px) {
  .popup-box img {
    left: 50%;
    transform: translateX(-50%);
    transition: 0.5s;
  }
}
