* {
    padding: 0;
    margin: 0;
}

@font-face {
    font-family: "AmazonEmber";
    src: url("./font/AmazonEmberDisplay.woff") format("woff");
    font-weight: 400;
    font-style: normal;
}

/* Bold weight */
@font-face {
    font-family: "AmazonEmber";
    src: url("./font/AmazonEmberHeavy.woff") format("woff");
    font-weight: 800;
    font-style: normal;
}

/* Main */
body {
    margin: 0;
    padding: 0;
}
.container-spin {
    position: absolute;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    z-index: 10;
    background-image: url("/spin-back.webp");
    background-position: bottom center;
    background-size: cover;
    background-repeat: no-repeat;
}
.container-user {
    position: absolute;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    z-index: 100;
    display: none;
    background: #000000d5;
}
.container-user.container-active {
    display: flex;
}
.container-quiz {
    position: absolute;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    z-index: 100;
    display: none;
    background-image: url("/quiz-back.webp");
    background-color: #fff;
    background-position: bottom center;
    background-size: cover;
    background-repeat: no-repeat;
}
.container-quiz.container-active {
    display: block;
}
.quiz-type {
    display: none;
}
.quiz-type.quiz-active {
    display: block;
}
.container-quiz .question-container {
    display: none;
}
.container-quiz .question-container.question-active {
    display: block;
}

.container-jackpot {
    position: absolute;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    z-index: 1000;
    display: none;
    background-image: url("/jackpot-back.webp");
    background-color: #fff;
    background-position: bottom center;
    background-size: cover;
    background-repeat: no-repeat;
    align-content: center;
    justify-content: center;
}
.container-jackpot.container-active {
    display: flex;
}

.container-result-win {
    position: absolute;
    /* overflow: hidden; */
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    z-index: 10000;
    background-image: url("/spin-back.webp");
    background-color: #fff;
    background-position: bottom center;
    background-size: cover;
    background-repeat: no-repeat;
    display: none;
}
.container-result-win.container-active {
    display: block;
}
.container-result-lose {
    position: absolute;
    /* overflow: hidden; */
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    z-index: 10000;
    background-image: url("/spin-back.webp");
    background-color: #fff;
    background-position: bottom center;
    background-size: cover;
    background-repeat: no-repeat;
    display: none;
}
.container-result-lose.container-active {
    display: block;
}
.container-result-wrong {
    position: absolute;
    /* overflow: hidden; */
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    z-index: 10000;
    background-image: url("/spin-back.webp");
    background-color: #fff;
    background-position: bottom center;
    background-size: cover;
    background-repeat: no-repeat;
    display: none;
}
.container-result-wrong.container-active {
    display: block;
}

/* Spin */
.container-spin .spin-logo img {
    width: 50%;
    margin: auto;
    display: block;
}
.container-spin .wheel-heading img {
    width: 70%;
    margin: auto;
    display: block;
}
.container-spin .wheel-container {
    position: relative;
}
.container-spin .wheel-container #wheelsvg {
    width: 100%;
    height: auto;
}
.container-spin #spin-wheel {
    transition: transform 5s cubic-bezier(0.33, 1, 0.68, 1);
    transform: rotate(0deg);
    transform-origin: 50.4% 39.1%;
}

.container-spin .pointer {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}

.container-spin #wheel-spin-btn {
    margin-top: -8.4vw;
    cursor: pointer;
    border: none;
    background: transparent;
}
.container-spin #wheel-spin-btn img {
    width: 80%;
    margin: auto;
}

.container-spin .log,
.container-spin .debug-log {
    margin-top: 20px;
    font-size: 14px;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    white-space: pre-wrap;
}

.container-spin .debug-log {
    background: #eee;
}

/* User */
.container-user {
    justify-content: center;
}
.form-popup {
    background-image: url("/user-popup-back.webp");
    background-color: #fff;
    background-position: bottom center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 80%;
    height: max-content;
    margin: 5vw auto;
    padding: 10vw 7vw 2vw;
    border-radius: 4vw;
}
.form-popup label {
    font-size: 4vw;
    display: block;
    margin-bottom: 1.5vw;
    color: #373636;
    font-family: "AmazonEmber" !important;
    font-weight: 400;
}
.form-popup input {
    width: calc(100% - 8vw);
    height: 7vw;
    background: #1d2122;
    font-family: "AmazonEmber" !important;
    font-weight: 400;
    color: #fff;
    border: 0;
    border-radius: 3.5vw;
    font-size: 3vw;
    padding: 1.8vw 4vw;
    margin-bottom: 4vw;
    display: block;
    caret-color: #fff;
}
.form-popup input::-webkit-input-placeholder {
    color: #ffe85180 !important;
}
.form-popup input:-ms-input-placeholder {
    color: #ffe85180 !important;
}
.form-popup input::placeholder {
    color: #ffe85180 !important;
}

.form-popup button {
    width: 100%;
    border: 0;
    background: transparent;
}
.form-popup button img {
    width: 80%;
    margin-top: -6vw;
    margin-bottom: -4vw;
}

/* Quiz */
.container-quiz .quiz-header img {
    width: 50%;
    margin: auto;
    display: block;
    margin-top: 8vw;
    margin-bottom: 10vw;
}
.question-container {
    padding: 6vw;
}
.question-container h3 {
    font-size: 6vw;
    margin-bottom: 8vw;
    font-family: "AmazonEmber" !important;
    font-weight: 800;
    color: #333f48;
}
.answer-option {
    display: flex;
    align-items: center;
    background: #333f48;
    padding: 5vw;
    border-radius: 4vw;
    margin-bottom: 8vw;
}
.answer-option.correct-answer:hover {
    background: #23ab1a;
}
.answer-option.correct-answer:focus {
    background: #23ab1a;
}
.answer-option.correct-answer:active {
    background: #23ab1a;
}
.answer-option.wrong-answer:hover {
    background: #c71a1a;
}
.answer-option.wrong-answer:focus {
    background: #c71a1a;
}
.answer-option.wrong-answer:active {
    background: #c71a1a;
}
.answer-option h5 {
    font-size: 3.5vw;
    margin: 0;
    color: #000;
    font-family: "AmazonEmber" !important;
    font-weight: 400;
    background: #ffd751;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 7vw;
    height: 7vw;
    border-radius: 50%;
    margin-right: 4vw;
}
.answer-option p {
    font-size: 4vw;
    margin: 0;
    color: #fff;
    font-family: "AmazonEmber" !important;
    font-weight: 800;
    width: calc(100% - 11vw);
}

/* Jackpot */
.jackpot-frame-container {
    align-self: center;
    text-align: center;
    height: auto;
}
.container-jackpot #jackpotframe {
    width: 80%;
    height: auto;
    margin: auto;
}
.jackpot-container {
    text-align: center;
}

.slot-machine {
    display: flex;
    justify-content: center;
    margin-top: -32.5vw;
    margin-left: -10vw;
    padding-bottom: 20vw;
}
.reel {
    width: 8vw;
    height: 8vw;
    margin: 0 5.4vw;
    display: flex;
    justify-content: center;
    position: relative;
}
.reel img {
    width: 95%;
    height: auto;
    margin: auto;
}
.jackpot-frame-container {
    position: relative;
}
.jackpot-lever {
    transition: transform 1s ease-in-out;
    width: 10vw;
    position: absolute;
    top: 2vw;
    right: 16vw;
}
.jackpot-lever.lever-pulled {
    animation: leverPull 1s ease-in-out forwards;
    transform-origin: 33% 98%;
}
@keyframes leverPull {
    0% {
        transform: rotateZ(0) skewX(0) scale(1);
    }
    50% {
        transform: rotateZ(-90deg) skewX(10deg) scale(0.9);
    }
    100% {
        transform: rotateZ(0) skewX(0) scale(1);
    }
}

.container-jackpot #spinBtn {
    background: transparent;
    border: 0;
}
.container-jackpot #spinBtn img {
    width: 70vw;
}

/* button {
                margin-top: 20px;
                background: #ff5722;
                color: #fff;
                border: none;
                padding: 15px 30px;
                font-size: 18px;
                border-radius: 10px;
                cursor: pointer;
                transition: background 0.3s;
            }

            button:disabled {
                background: gray;
                cursor: not-allowed;
            }

            button:hover:not(:disabled) {
                background: #e64a19;
            } */

#result {
    margin-top: 20px;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px #000;
}

#reloadInfo {
    margin-top: 10px;
    font-size: 18px;
    color: #222;
    font-weight: bold;
}

/*Result*/
.result-header img {
    width: 50%;
    margin: auto;
    display: block;
    margin-top: 3vw;
    padding: 5vw;
    margin-bottom: 5vw;
}
.result img {
    width: 85%;
    margin: auto;
    display: block;
}
