@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.container-dialog {
  max-width: 345px; /* Diperlebar agar cukup untuk 2 kolom */
  height: 100%;
  margin: auto;
  background: #ffffff;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 4px rgb(0 0 0 / 26%);
  border: solid 2px #000;
  overflow: hidden;
}

/*Dialog Styles - START*/
dialog {
  text-align: center;
  color: #d3da10;
  padding: 1rem 1rem;
  margin: 5px;
  padding-top: 2rem;
  border-radius: 15px;
  border: solid 3px #280f56;
  box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.1);
  -webkit-animation: fadeIn 1s ease both;
  animation: fadeIn 1s ease both;
  box-shadow: -5px 5px 2px #00000040, 0 0px 1px #000000;
}
dialog .x {
  filter: grayscale(1);
  border: none;
  background: none;
  position: absolute;
  top: 15px;
  color: #fff;
  right: 10px;
  font-weight: 600;
  transition: ease filter, transform 0.3s;
  cursor: pointer;
  transform-origin: center;
}
dialog .x:hover {
  filter: grayscale(0);
  transform: scale(1.1);
}
dialog h5 {
  font-weight: 600;
  font-size: 1.1rem;
}
dialog p {
  color: #ffffff;
  background: #000000a8;
  border: solid 3px #20015a;
  border-radius: 5px;
  padding: 10px;
  text-align: center;
  word-wrap:break-word;
  font-size: 0.7rem;
}
dialog p a:visited {
  color: rgb(var(--vs-primary));
}

button.primary {
  font-size: 0.8rem;
  color: #fff !important;
  background: #230756;
  width: 50%;
  margin-block: 8px;
  padding-block: 3px;
  border-radius: 4px;
  transition: background-color 0.1s ease;
  box-sizing: border-box;
  transition: all 0.25s ease;
  border: 0;
}

button.primary:hover {
  font-size: 0.8rem;
  color: #00ff01 !important;
  background: #000000;
  width: 50%;
  margin-block: 8px;
  padding-block: 3px;
  border-radius: 4px;
  transition: background-color 0.1s ease;
  box-sizing: border-box;
  transition: all 0.25s ease;
  border: 0;
  cursor: pointer;
  position: relative;
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/*Dialog Styles - END*/




/* Layer Gradient Berjalan (Background yang berputar) */
.container-dialog::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Warna gradient border - sesuaikan warna di sini */
    background: conic-gradient(
        #acf000, 
        #f9fb0000 30%
    );
    animation: rotate-border 2s linear infinite;
    z-index: -1;
    overflow: hidden;
}

/* Layer Penutup Tengah (Agar gradient hanya muncul di pinggir) */
.container-dialog::after {
    content: '';
    position: absolute;
    inset: 3px; /* Ketebalan border */
    border: solid 3px #252f66;
    background: #070a1d; /* Harus sama dengan background tombol */
    border-radius: 8px;
    z-index: -1;
    transition: 0.3s;
}

/* Animasi Putaran */
@keyframes rotate-border {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}