html,
body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: "Poppins", "Dangrek", sans-serif;
}
span.jconfirm-title {
    margin-top: 8px;
    line-height: 2rem;
}
span.icon-button {
    position: relative;
}
html {
    /* background-image: url("/images/bg.webp"); */
    background-size: cover;
}
.custom-j-confirm{
    max-width: 480px !important;
}
.custom-j-confirm .jconfirm-title-c{
    display: none !important;
}
span.note-block {
    display: -webkit-box;
    padding: 16px;
    background: #fbe7a8;
    margin-top: 16px;
    border-radius: 12px;
}
body {
    background: linear-gradient(25deg, #2a9d8f, #ffffff3b);
}
.global-load {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000000000000;
    background: linear-gradient(25deg, #2a9d8f, #ffffff);
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: whitesmoke;
    font-size: 11px;
    letter-spacing: 3px;
    font-family: system-ui;
    text-transform: uppercase;
    flex-direction: column;
}
.global-load img{
    height: 86px;
}
.content {
    display: flex;
    gap: 24px;
    padding: 48px 24px;
    justify-content: space-around;
    height: 100%;
    align-items: flex-start;
}

.leading {
    font-size: 48px;
    font-weight: 600;
    color: #e63946;
    padding-left: 100px;
    padding-right: 100px;
    margin: auto;
    position: relative;
    display: block;
    width: fit-content;
}

.leading::before {
    content: "";
    display: block;
    position: absolute;
    width: 80px;
    height: 2px;
    background: #e63946;
    left: 0;
    top: 49%;
    border-radius: 12px;
}

.leading::after {
    content: "";
    display: block;
    position: absolute;
    width: 80px;
    height: 2px;
    background: #e63946;
    right: 0;
    top: 49%;
    border-radius: 12px;
}

.wrapper {
    max-width: 1280px;
    margin: 84px auto 24px;
    color: #000000;
    z-index: 1000;
    position: relative;
}

.company {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
}

.company .logo {
    height: 80px;
}

.company .logo img {
    height: 100%;
}

.wrapper-wheel {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    font-size: 11px;
    opacity: 0.7;
    pointer-events: none;
    user-select: none;
}

#spin-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    opacity: 0.9;
    font-family: "Poppins", "Dangrek", sans-serif;
}

.welcome {
    max-width: 480px;
}

.privacy {
    font-size: 13px;
    max-width: 720px;
    text-align: center;
    margin: auto;
    padding: 20px;
}

#wheel-container {
    border-radius: 50%;
    background: radial-gradient(ellipse farthest-corner at right bottom, #FEDB37 0%, #FDB931 8%, #9f7928 30%, #8A6E2F 40%, transparent 80%),
        radial-gradient(ellipse farthest-corner at left top, #FFFFFF 0%, #FFFFAC 8%, #D1B464 25%, #5d4a1f 62.5%, #5d4a1f 100%);
    ;
    padding: 10px 10px 5px 10px;
    position: relative;
}

#wheel-container::after {
    content: "\f04b";
    display: block;
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    font-family: "fontAwesome";
    font-size: 26px;
    color: #4CAF50;
}

#wheel-container::before {
    content: "\f10c";
    display: block;
    position: absolute;
    right: -17px;
    top: 50%;
    transform: translateY(-50%);
    background: #4CAF50;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "fontAwesome";
    z-index: 1;
}

.wrapper-wheel.spin canvas {
    animation: wheel 0.1s infinite;
    ;
}

.wrapper-wheel.spin #spin-button,.wrapper.disabled #spin-button {
    opacity: 0.3;
    user-select: none;
    pointer-events: none !important;
}
#button-sent-phone.disabled,input[disabled="disabled"]{
    opacity: 0.7 !important; 
    cursor: not-allowed;
}
@keyframes wheel {
    0% {
        transform: rotate(0deg);
        filter: blur(1px)
    }

    100% {
        transform: rotate(360deg);
        filter: blur(1px)
    }
}

.asset img {
    max-width: 50vw;
    filter: brightness(0.1) opacity(0.5);
}

.asset .bottom-right {
    position: fixed;
    bottom: -5%;
    right: -20%;
}

.asset .bottom-left {
    position: fixed;
    bottom: 2%;
    left: 2%;
}

.asset .bottom-left img {
    max-width: 350px;
}

.asset .top-right {
    position: fixed;
    top: 2%;
    right: 2%;
}

.asset .top-right img {
    max-width: 200px;
    filter: none;
}

.asset .top-left {
    position: fixed;
    top: 2%;
    left: 2%;
}

.asset .top-left img {
    max-width: 200px;
    filter: none;
}

.form input {
    padding: 16px;
    border: none;
    border-radius: 2px;
    margin-bottom: 8px;
    min-width: 248px;
    background: #d2eae7;
    font-family: "Dangrek";
}

.form input::placeholder {
    color: rgba(0, 0, 0, 0.6);
    opacity: 1;
    /* Firefox */
    font-family: "Dangrek";
}

.form .message {
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.jconfirm {
    padding: 24px;
}

.jconfirm-box {
    max-width: 338px;
}

.form button {
    border: none;
    padding: 16px 32px;
    border-radius: 4px;
    font-family: inherit;
    background: #e63946;
    color: white;
    cursor: pointer;
}

.form {
    position: relative;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label#phone-error {
    display: flex;
    margin-bottom: 10px;
    font-size: 14px;
    color: #e74c3c;
}

input.phone-input.error {
    outline: 2px solid #f36556;
}

input.phone-input:not(.error) {
    outline-color: #2a9d8f;
}

.form .arrow {
    position: absolute;
    right: -64%;
    bottom: -11%;
    opacity: 0.1;
}
.show .form .arrow {
    animation: animate-arrow 2s 20 forwards ease-in-out;
    transform-origin: left;
}
@keyframes animate-arrow {
    0%{
        opacity: 1;
        transform: scale(1);
    }
    50%{
        opacity: 0.7;
        transform: scale(0.8);
    }
    100%{
        opacity: 1;
        transform: scale(1);
    }
}
.form .arrow img {
    max-width: 200px;
}

.wrapper.show .wrapper-wheel {
    opacity: 1;
    pointer-events: all;
}
label.custom-radio {
    display: flex;
    justify-content: flex-start;
    font-size: 13px;
}
label.custom-radio input {
    min-width: 16px;
    margin-right: 12px;
}

@media screen and (max-width:720px) {
    body{
        overflow-y: auto;
    }
    .asset .top-left img,.asset .top-right img{
        max-width: 150px;
    }
    .wrapper {
        grid-template-columns: 1fr;
        margin: 20px auto 0;
        z-index: 1000000;
        position: relative;
        min-height: calc(100% - 116px);
    }
    .welcome {
        max-width: 268px;
        font-size: 12px;
    }
    .content {
        padding: 8px 24px;
    }
    .leading {
        font-size: 1.25rem;
        padding-left: 12px;
        padding-right: 12px;
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        width: fit-content;
        margin: auto;
        padding-top: 54px;
    }

    .company .logo {
        height: 42px;
        padding: 16px;
        background: #00000014;
        border-radius: 12px;
    }

    .leading::before,
    .leading::after {
        display: none;
    }

    .wrapper-wheel {
        transform: translateX(150%);
        flex-grow: 0;
        flex-shrink: 0;
    }
    .form .message{
        font-size: 12px;
    }
    .privacy {
        background: #ff980075;
        color: #0c0404;
        position: relative;
        bottom: 0;
        left: 0;
        z-index: 100;
        width: calc(100% - 40px);
        font-size: 11px;
        text-align: left;
    }

    .company {
        padding: 16px;
        justify-content: flex-start;
        flex-grow: 0;
        flex-shrink: 0;
        width: 90%;
    }

    .wrapper.show .company {
        animation: hide-company 0.25s forwards;
    }

    .wrapper.show .wrapper-wheel {
        animation: show-wheel 0.25s forwards;
    }

    @keyframes hide-company {
        0% {
            transform: translateX(0%);
            opacity: 1;
        }

        99% {
            transform: translateX(-100%);
            opacity: 0.5;
        }

        100% {
            transform: translateX(-100%);
            display: none;
            opacity: 0;
        }
    }

    @keyframes show-wheel {
        0% {
            transform: translateX(150%)
        }

        100% {
            transform: translateX(0%)
        }
    }
}