* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:focus {
    outline: none !important;
    box-shadow: none !important;
}

body
{
    height: 100vh;
    color: #e30f0f;
    font-family: Hind Siliguri, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    background: url(https://luckyspinbest.b-cdn.net/zb/assets/images/bg.png) center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    /*overflow: hidden;*/
}

h1, p {
    margin: 0;
}

a,
button {
    color: #ecc42e;
    text-decoration: none;
    cursor: pointer;
    transition: all .3s ease-in-out;
}

a:hover,
button:hover {
    color: #eeca45;
    text-decoration: none;
}
body {
    max-width: 100%;
}
body,
html {
    color: #e30f0f;
    padding: 0;
    margin: 0;
}

.custombutton {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
}
/* alternate cursor style for ie */
* html .custombutton { cursor:hand; }

.page-loader {
    width: 100%;
    height: 100%;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #750012;
    z-index: 100000;
}

.text-gold {
    color: #fff;
    font-family:Arial;
}

.page-loader .loader-cont {
    position: absolute;
}

.loader-cont .dice {
    width: 100%;
    height: 48px;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
}

.loader-cont .loading {
    font-size: 1.5rem;
    font-weight: bold;
}

.loader-cont .dice i {
    position: absolute;
    animation: spinning_dice 1.5s linear infinite;
}

@keyframes spinning_dice {
    0% {
        top: 0px;
        transform: rotate(0deg);
    }

    5% {
        top: 0px;
        transform: rotate(0deg);
    }

    10% {
        top: -10px;
        transform: rotate(0deg);
    }

    25% {
        top: -50px;
        transform: rotate(180deg);
    }

    50% {
        top: -70px;
        transform: rotate(360deg);
    }

    75% {
        top: -50px;
        transform: rotate(540deg);
    }

    90% {
        top: -10px;
        transform: rotate(720deg);
    }

    95% {
        top: 0px;
        transform: rotate(720deg);
    }

    to {
        top: 0px;
        transform: rotate(720deg);
    }
}

.loading-btn {
    padding: 8px 15px;
    position: absolute;
    font-size: 16px !important;
    font-weight: bold;
    /*color: #fff !important;*/
    z-index: 999;
}

.bg-dark {
    background: rgba(0,0,0,0.4)!important;
    min-height: 100vh;
}

.alert-bg.active {
    display:flex!important;
}

.alert-bg {
    z-index: 99999!important;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
}

.alert-bd {
    width : 400px;
    max-width: 80%;
    height: auto !important;
    margin-top: -40px;
    padding: 20px;
    position: relative;
    /*background: black;*/
    /*color: white;*/
    background: #fff;
    color: #5e5e5e;
    font-weight: bold;
    border-radius: 4px;
}

.alert-close {
    font-size : 22px;
    font-weight : bold;
    color: #fff;
    position: absolute;
    top: -15px;
    right: -13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    width : 34px;
    height: 34px;
    background: #e30f0f;
}

.alert-close:hover {
    color: #fff;
    text-decoration: none;
}

.alert-text {
    text-align: center;
    font-size: 17px;
    overflow: hidden;
}

.alert-text .prize {
    display: block;
    font-size: 28px;
    border: 1px solid #5e5e5e;
    border-radius: 3px;
}

.alert-text img.win {
    max-width: 220px;
    margin-top: -30px;
}

.alert-text img.wrong-code-img {
    max-width: 220px;
}

.alert-text .wrong-code-msg {
    min-height: 70px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

#canvas {
    z-index: 5;
    max-width: 100%;
    top: 0;
    left: 0;
}


.the-wheel {
    position: absolute;
    max-width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
}

.spin-container {
    position: relative;
    width: 500px; /* Sesuaikan ukuran dengan gambar Anda */
    height: 500px; /* Sesuaikan ukuran dengan gambar Anda */
    margin: 50px auto; /* Untuk menengahkan */
}

.spin-button-image {
    position: absolute;
    /* Ini bagian terpenting untuk pemusatan */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* Atur ukuran tombol agar tidak terlalu besar */
    width: 14%; /* Misal, 25% dari ukuran container */
    height: auto; /* Biarkan tinggi menyesuaikan agar tidak gepeng */

    z-index: 15; /* Tombol di lapisan paling atas */
    cursor: pointer; /* Ubah kursor menjadi tangan saat di atas tombol */
    transition: transform 0.2s ease; /* Animasi klik yang bagus */
}


/* Atur posisi canvas dan bingkai agar tumpang tindih */
.spin-container canvas,
.spin-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Pastikan bingkai berada di lapisan paling atas */
.frame-image {
    z-index: 10;
}

/* Canvas berada di lapisan bawah */
#canvas {
    z-index: 5;
}

/* Tombol untuk memutar */
.spin-button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
}

/*.the-wheel.with-arrow:before {*/
/*    content: "";*/
/*    width: 10%;*/
/*    height: 100px;*/
/*    display: inline-block;*/
/*    position: absolute;*/
/*    top: -50px;*/
/*    left: 50%;*/
/*    transform: translate(-50%, 50%);*/
/*    background: url('https://luckyspinbest.b-cdn.net/zb/assets/images/wheel_arrow.webp') no-repeat 0 0;*/
/*    background-size: 100%;*/
/*}*/

.the-wheel.with-arrow:before {
    /*content: "";*/
    /*width: 12%;*/
    /*height: 100px;*/
    /*display: inline-block;*/
    /*position: absolute;*/
    /*top: -50px;*/
    /*left: 50%;*/
    /*transform: translate(-50%, 50%);*/
    /*background: url(https://luckyspinbest.b-cdn.net/zb/assets/images/wheel_arrow.png) no-repeat 0 0;*/
    /*background-size: 100%;*/
}

@media (max-width: 425px) {
    .the-wheel:before {
        width: 35px;
        height: 50px;
        top: 12px;
        left: calc(50% - 17px);
    }
}

/*.the-wheel canvas {*/
/*    max-width: 97%;*/
/*}*/

.input-voucher {
    max-width: 200px;
    height: auto!important;
    padding: 7px 10px 6px;
    background: white;
    border: 0px;
}

.single-img {
    border-radius: 5px;
    overflow: hidden;
}

.single-img img.img-effect {
    transition: .3s;
    transform: scale(1);
    width: 100%;
}

.single-img img.img-effect:hover {
    transform: scale(1.03);
}

.btn-gold {
    color: #fff;
    font-size: 1em;
    border-radius: 3px;
    background: #e30f0f linear-gradient(180deg, #e30f0f, #e30f0f) repeat-x;
    border: 1px solid transparent;
    border-color: #e30f0f;
    box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, .15), 0 1px 1px rgba(0, 0, 0, .075);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /*text-shadow: 2px 2px 2px #9c9c9c;*/
    transition: all .2s ease-in-out;
}

.btn-gold:hover {
    color: #fff;
    background: #e30f0f linear-gradient(180deg, #e30f0f, #e30f0f) repeat-x;
    border-color: #e30f0f;
}

.btn-gold.focus,
.btn-gold:focus {
    box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, .15),0 1px 1px rgba(0, 0, 0, .075), 0 0 0 .2rem rgba(212, 171, 19, .5);
}

.btn-gold.disabled,
.btn-gold:disabled {
    color: #fff;
    background-color: #e30f0f;
    border-color: #e30f0f;

}

.btn-gold:not(:disabled):not(.disabled).active,
.btn-gold:not(:disabled):not(.disabled):active,
.show > .btn-gold.dropdown-toggle {
    color: #fff;
    background-color: #a5850f;
    background-image: none;
    border-color: #997c0e;
}

.btn-gold:not(:disabled):not(.disabled).active:focus,
.btn-gold:not(:disabled):not(.disabled):active:focus,
.show > .btn-gold.dropdown-toggle:focus {
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125), 0 0 0 .2rem rgba(212, 171, 19, .5);
}

.btn-outline-gold {
    color: #d4ab13;
    background-color: transparent;
    background-image: none;
    border-color: #d4ab13;
}

.btn-outline-gold:hover {
    color: #222;
    background-color: #d4ab13;
    border-color: #d4ab13;
}

.btn-outline-gold.focus,
.btn-outline-gold:focus {
    box-shadow: 0 0 0 .2rem rgba(212, 171, 19, .5);
}

.btn-outline-gold.disabled,
.btn-outline-gold:disabled {
    color: #d4ab13;
    background-color: transparent;
}

.btn-outline-gold:not(:disabled):not(.disabled).active,
.btn-outline-gold:not(:disabled):not(.disabled):active {
    color: #222;
    background-color: #d4ab13;
    border-color: #d4ab13;
}

.btn-outline-gold:not(:disabled):not(.disabled).active:focus,
.btn-outline-gold:not(:disabled):not(.disabled):active:focus {
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125), 0 0 0 .2rem rgba(212, 171, 19, .5);
}

.logo-cont {
    max-width: 270px;
    display: inline-block;
    position: absolute;
    bottom: calc(100% - 200px);
    right: -278px;
}

@media only screen and (max-width: 768px) {
    .logo-cont {
        max-width: 270px;
        display: inline-block;
        position: relative;
        bottom: 20px;
        left: 0px;
    }

    .the-wheel {
        /*height: 350px;*/
        /*height: 50vh;*/
        /*max-width: 100%;*/
    }

    .the-wheel canvas {
        /*max-width: 97%;*/
    }

    .the-wheel.with-arrow:before {
        /*content: "";*/
        /*width: 12%;*/
        /*height: 100px;*/
        /*display: inline-block;*/
        /*position: absolute;*/
        /*top: -50px;*/
        /*left: 50%;*/
        /*transform: translate(-50%, 50%);*/
        /*background: url(https://luckyspinbest.b-cdn.net/zb/assets/images/wheel_arrow.png) no-repeat 0 0;*/
        /*background-size: 100%;*/
    }
}

.mute-btn {
    height: 32px;
    padding: 0;
    position: fixed !important;
    top: 15px;
    left: 15px;
    z-index: 99;
}

.speaker {
    height: 30px;
    width: 30px;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
}

.speaker span {
    display: block;
    width: 6px;
    height: 6px;
    background: #fff;
    margin: 0 0 0 4px;
    transition: all 0.2s ease-out;
}

.speaker span:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
    border-width: 8px 12px 8px 13px;
    left: -8px;
    top: 7px;
    transition: all 0.2s ease-out;
}

.speaker span:before {
    transform: rotate(45deg);
    border-radius: 0 50px 0 0;
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-style: double;
    border-color: #fff;
    border-width: 7px 7px 0 0;
    left: 19px;
    top: 10px;
    transition: all 0.2s ease-out;
}

.speaker:hover span:before {
    transform: scale(.8) translate(-3px, 0) rotate(42deg);
}

.speaker.mute span {
    margin: 0 0 0 8px;
}

.speaker.mute span:before {
    transform: scale(.5) translate(-15px, 0) rotate(36deg);
    opacity: 0;
}

.speaker.mute span:after {
    left: -4px;
}

.dashboard-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    position: fixed !important;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 55px;
    left: 15px;
    color: #fff;
    font-size: 18px;
    z-index: 99;
}

.wheel-container {
    text-align: center;
}

/*ARROW DI TENGAH*/
.page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.header-logo {
    width: 400px;

    max-width: 90%;
    height: auto;
}
.main-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    width: 100%;
}

.wheel-section {
    position: relative;
    width: 550px;
    height: 550px;
    flex-shrink: 0;
}

.wheel-section > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /*height: 100%;*/
}

#canvas, .frame-image { object-fit: contain; }
#canvas { z-index: 5; }
.frame-image { z-index: 10; pointer-events: none; }

.center-hub-image {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10%;
    height: auto;
    z-index: 15;
    pointer-events: none;
}

.form-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(1.1);
    transform-origin: left center;
}

.form-section h2 { color: #e30f0f; font-size: 24px; margin-bottom: 15px; }
.form-section input { width: 280px; padding: 12px 15px; border: none; border-radius: 8px; font-size: 16px; }
.form-section .putar-button { background: none; border: none; padding: 0; margin-top: 20px; cursor: pointer; }
.form-section .putar-button img { width: 200px; display: block; transition: transform 0.2s ease; }
.form-section .putar-button:active img { transform: scale(0.95); }

@media (max-width: 1100px) {
    .wheel-section { width: 550px; height: 550px; }
    .main-container { gap: 40px; }
}

@media (max-width: 900px) {
    .main-container { flex-direction: column; gap: 40px; }
    .wheel-section { width: 90vw; max-width: 450px; aspect-ratio: 1 / 1; height: auto; }
    .form-section { align-items: center; transform: scale(1); transform-origin: center center; }
}


/*ARROW DI ATAS*/
.page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.header-logo {
    width: 400px;
    max-width: 90%;
    height: auto;
}

.main-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    width: 100%;
}

.wheel-section {
    position: relative;
    width: 550px;
    height: 550px;
    flex-shrink: 0;
}

.wheel-section > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /*height: 100%;*/
}

#canvas, .frame-image { object-fit: contain; }
#canvas { z-index: 5; }
.frame-image { z-index: 10; pointer-events: none; }
.wheel-pointer {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 20%;
    max-width: 100px;
    height: auto;
    z-index: 20;
}

.form-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transform: scale(1.1);
    transform-origin: left center;
}

.form-section h2 { color: #e30f0f; font-size: 24px; margin-bottom: 15px; }
.form-section input { width: 280px; padding: 12px 15px; border: none; border-radius: 8px; font-size: 16px; }
.form-section .putar-button { background: none; border: none; padding: 0; margin-top: 20px; cursor: pointer; }
.form-section .putar-button img { width: 200px; display: block; transition: transform 0.2s ease; }
.form-section .putar-button:active img { transform: scale(0.95); }

@media (max-width: 1100px) {
    .wheel-section { width: 550px; height: 550px; }
    .main-container { gap: 40px; }
}

@media (max-width: 900px) {
    .main-container { flex-direction: column; gap: 40px; }
    .wheel-section { width: 90vw; max-width: 450px; aspect-ratio: 1 / 1; height: auto; }
    .form-section { align-items: center; transform: scale(1); transform-origin: center center; }
}
