body {
    font-family: "Poppins", sans-serif;
    background-image: url(https://winwheelgames.xyz/img/bg.webp);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
}


.container {
    font-family: "Poppins", sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #4242420a;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.user-id{
    color: #ffffff;
    font-weight: 800;
}

#openModalBtn {
    display: block;
    width: 200px;
    height: 50px;
    font-size: 16px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-top: 30px;
}

.logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    text-align: center;
    color: #ffffff;
}

form {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #ffffff;
}

input[type="text"] {
    font-family: "Poppins", sans-serif;
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 3px solid #ac0000;
    background-color: #313131a4;
    color: #ffffff;
    ;
    border-radius: 10px;
    box-sizing: border-box;
}

button {
    font-family: "Poppins", sans-serif;
    padding: 10px 20px;
    background-color: #bb0000;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background-color: #ff0000;
}

.user-id {
    text-align: center;
    font-weight: 600;
}

.boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    margin-top: 45px;
    max-width: 445px;
    margin-left: auto;
    margin-right: auto;
}

#caps {
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
    color: rgb(252, 14, 61);
}

#caps1 {
    text-align: center;
    font-weight: 600;
    color: rgb(252, 14, 61);
}

#valid {
    text-align: center;
}

#ticketModal {
    /* atur display ke none agar modal tidak terlihat saat pertama kali dimuat */
    display: none;
}

/* gaya untuk konten modal */
#ticketModal .modal-content {
    background-color: #252525;
    color: #ffffff;
    padding: 20px;
    border: 3px solid #ac0000;
    border-radius: 10px;
    max-width: 400px;
    margin: auto;
    text-align: center;
}

/* gaya untuk tombol close */
#ticketModal .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    cursor: pointer;
}

.box {
    width: 100px;
    height: 100px;
    /* background-color: #ddd; */
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.box img:hover {
    animation: wiggle 0.5s ease-in-out, zoom 0.5s ease-in-out;
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(-10deg);
    }

    30% {
        transform: rotate(10deg);
    }

    45% {
        transform: rotate(-10deg);
    }

    60% {
        transform: rotate(10deg);
    }

    75% {
        transform: rotate(-5deg);
    }

    90% {
        transform: rotate(5deg);
    }
}

@keyframes zoom {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(56, 56, 56, 0.411);
}

.modal-content {
    background-color: #252525;
    color: #ffffff;
    margin: auto;
    padding: 20px;
    border: 3px solid #ac0000;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.prize-name {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.prize-image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    height: 250px;
    width: 250px;
    animation: shake 0.82s cubic-bezier(.36, .07, .19, .97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.error {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    height: 150px;
    width: 150px;
    animation: shake 0.82s cubic-bezier(.36, .07, .19, .97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-10px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(0);
    }
}

h2 {
    font-size: 26px;
    text-align: center;
    font-weight: bold;
}

.close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    cursor: pointer;
}

#remainingTickets {
    text-align: center;
    margin-top: 20px;
    color: #ffffff;
    font-weight: 600;
}

.box.shuffle {
    animation: shuffleAnimation 0.5s ease infinite;
}

@keyframes shuffleAnimation {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(10px, 0);
    }

    50% {
        transform: translate(0, 10px);
    }

    75% {
        transform: translate(-10px, 0);
    }

    100% {
        transform: translate(0, -10px);
    }
}


/* audio {
    display: none
} */

@media (max-width: 768px) {
    .boxes {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
    }

    .logo {
        display: block;
        margin-left: auto;
        margin-right: auto;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .boxes {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
    }

    .logo {
        display: block;
        margin-left: auto;
        margin-right: auto;
        height: 80px;
    }
}