
body {
  margin: 0;
  padding: 0;
  background: url('https://galery-whell.pages.dev/gempa100/background-desktopp.webp') no-repeat center top;
  background-size: 100% 100%;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-top {
  text-align: center;
  margin-top: 2px;
  margin-bottom: -30px;
}
.logo-top img {
  max-width: 230px;
}

.main-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  padding: 40px 20px;
  flex-direction: row;
  max-width: 1300px;
  width: 100%;
}


#canvas {
  position: absolute;
  top: 0vh;
  left: 1px;
  width: 100% !important;
  height: 100% !important;
  z-index: 3;
  display: block;
}

#canvasContainer {
  position: relative;
  width: 550px;
  height: 550px;
  top: -1vh;
  left: 3vw;
  z-index: 1;
}
#wheelBorder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  z-index: 2;
  display: block;
}

#princess {
  position: absolute;
  bottom: -12%;
  left: -50%;
  width: 480px;
}

#prizeCenter {
  width: 150px;
  height: 150px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

#prizePointer {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -33%);
  z-index: 10;
  width: 120px;
}

.desktop-form-logo {
  max-width: 430px !important;
      width: auto;
      margin: 0 auto;
      display: block;
}

.mobile-form-logo {
  display: none;
}

.form-content {
  position: relative;
  top: -10px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.form-frame {
  background: url('https://galery-whell.pages.dev/gempa100/frame-bg.webp') no-repeat center center;
  background-size: 100% 100%;
  padding: 80px 40px 40px;
  width: 600px;
  height: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.9;
}
#spinForm input {
  width: 100%;
  max-width: 330px;
  margin: 15px auto 25px auto;
  padding: 2px 24px;
  border-radius: 45px;
  border: none;
  outline: none;
  font-size: 28px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  
}

#spinForm button {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: -20px;
  width: 100%;
  display: flex;
  justify-content: center;
}
#spinForm button img.redeem-button {
  max-width: 530px;
  width: 100%;
  height: auto;
  transition: transform 0.3s;
  margin-left: 25px;
}
#spinForm button img.redeem-button:hover {
  transform: scale(1.05);
}

.form-content .row.no-gutters {
  margin-left: 22px;
  margin-right: 12px;
}


.form-content .row .col-6 {
  padding: 0 5px;
}

.form-content .row .col-6 img {
  width: 100%;
  transform: scale(1.15);
  transition: transform 0.3s ease;
}
.form-content .row .col-6 img:hover {
  transform: scale(1.2);
}

button:focus,
button:active,
a:focus,
a:active,
#spinForm .btn,
#spinForm .btn:focus,
#spinForm .btn:active {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.reward-modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.reward-frame-bg {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 0.8;
}

.reward-image {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -60%);
  z-index: 2;
  max-width: 480px;
}


#voucherUsedText,
.voucher-text-inside-frame {
  position: absolute;
  bottom: -135px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  font-weight: 500;
  color: white;
  background-color: transparent;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}


/* Alert Custom Style */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.534);
  z-index: 9998;
  display: none;
}

.custom-alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 350px;
  background: white;
  border-radius: 5px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: 9999;
  display: none;
  animation: alertEnter 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes alertEnter {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.alert-header {
  display: flex;
  align-items: center;
  padding: 20px;
  background: white;
  color: rgb(0, 0, 0);
}

.alert-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.1), transparent);
  margin: 0 10px;
}

.alert-icon {
  width: 30px;
  height: 30px;
  background: white;
  color: #ff0004;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  margin-right: 15px;
}

.alert-title {
  margin: 0;
  font-size: 18px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.alert-body {
  padding: 25px 20px;
  text-align: center;
}

#customAlertMessage {
  margin: 0;
  color: #333;
  font-size: 16px;
  line-height: 1.5;
}

.alert-footer {
  padding: 15px;
  text-align: center;
}

.alert-button {
  background: gray;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  width: 50%;
  max-width: 150px;
}

.alert-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.alert-button:active {
  transform: translateY(0);
}

.music-control {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;

}

.music-control:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

#musicToggle {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s;
}

#musicToggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.music-icon {
  font-size: 40px;
  transition: all 0.3s;
}

.music-label {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  margin-right: 5px;
}

@media (max-width: 990px) {
  html,
  body {
    width: 100%;
    height: auto;
    overflow-x: hidden;
  }

  body {
    background-image: url('https://galery-whell.pages.dev/gempa100/background-mobile.webp');
    background-size: 100% 100%;
    background-position: bottom;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
  }

  .logo-top {
    margin-top: 10px;
    margin-bottom: 20px;
  }

  .logo-top img {
    max-width: 150px;
  }

  .desktop-form-logo {
    display: none;
}

.mobile-form-logo {
  max-width: 350px !important;
  width: auto;
  margin: 0 auto;
  display: block;
  margin-bottom: -10px;
}

  .main-layout {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    margin-top: -10px;
  }

  #canvasContainer {
    position: relative;
    width: 390px;
    height: 390px;
    margin: -40px auto 0 auto; /* Pusatkan container */
    top: 1vh;
    left: 0;
  }

  #canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Pusatkan secara absolut */
    z-index: 3;
    width: 335px !important;
    height: 335px !important;
  }

  #wheelBorder { 
    position: absolute;
    width: 335px !important;
    height: 335px !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Pusatkan secara absolut */
    z-index: 2;
    pointer-events: none;
  }
  
  #princess {
    display: none;
}

#prizePointer {
  position: absolute;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -25%);
    z-index: 999;
    width: 70px;
}

#prizeCenter {
  position: absolute;
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


  .form-frame { 
    background: url('https://galery-whell.pages.dev/gempa100/frame-bg.webp') no-repeat center center;
    width: 90%;
    max-width: 490px;
    height: auto;
    background-size: 110% 65%;
    background-position: center;
    padding: 130px 14px 30px;
    margin-top: -100px;
    opacity: 0.8;
  }
 
  .form-content {
    position: relative;
    top: -15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 1.5;

  }

  #spinForm {
    margin-bottom: 10px;
  }
  
  #spinForm input {
    width: 70%;
    max-width: none;
    padding: 2px 24px;
    font-size: 24px;
    border-radius: 40px;
    margin-bottom: 20px;
  }

  #spinForm button img.redeem-button {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
    margin-left: 15px;
  }

  .btn-image:first-child,
  .btn-image:last-child {
    flex: 1;
  }

  .modal-dialog.modal-lg {
    max-width: none !important;
    width: 720px !important;
    margin: auto !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1055;
  }

  .modal-content.reward-modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }

  .reward-frame-bg {
    width: 550px !important;
    height: 550px !important;
  }

  .reward-image {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 350px !important;
    z-index: 2;
  }

  #voucherUsedText,
  .voucher-text-inside-frame {
    font-size: 15px !important;
    bottom: -135px !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .music-control {
    top: 10px;
    left: 10px;
    padding: 6px 12px;
  }
  
  .music-label {
    display: none;
  }

  
}
