.roulette-container {
    position: relative;
    /* border: solid rgb(0, 0, 0) 1px; */
    width: 793px;
    height: 81px;
    overflow: hidden;

}

.machine {
    display: flex;
}

.square {
    width: 61px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    outline: 5px solid white;
    outline-offset: -4px;
    border-radius: 10px;
    color: white;
    background-color: black;
    overflow: hidden;
}

.square img {
    position: unset;
    height: 63px;
}

.roulette-inner {
    background: white;
    background-color: white;
    height: inherit;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
}

.square.green {
    background-color: green;
}

.square.red {
    background-color: red;
}

.square.black {
    background-color: black;
}

.selector {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: inherit;
    background-color: white;
    z-index: 10;
}





.reelContainer {
    position: relative;
    /* border: solid rgb(0, 0, 0) 1px; */
    width: 61px;
    height: 213px;
    overflow: hidden;

}

.square {
    width: 61px;
    height: 71px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    outline: 5px solid white;
    outline-offset: -4px;
    border-radius: 10px;
    color: white;
    background-color: black;
}

.reelInner {
    background: white;
    background-color: white;
    height: inherit;
    position: absolute;
    top: 0;
    left: 0;
}



.slotSelector {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: inherit;
    height: 4px;
    background-color: white;
    z-index: 10;
}

#Badge {
    text-align: center;
    gap: 9px;
}

#Badge img {
    width: 100%;
    height: auto;
}

#Badge div {
    padding: 4px 10px;
    line-height: 1.2rem;
    height: 36px;

    justify-content: center;
    align-items: center;
}

#Badge>* {
    display: flex;
}


/* The Trigger Button */
#openModalBtn {
    padding: 14px 30px;
    font-size: 20px;
    cursor: pointer;
    background-color: #5d3fd3;
    /* Deep Purple */
    color: white;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
}

#openModalBtn:hover {
    background-color: #4a33a5;
    transform: scale(1.02);

}

.modal-overlay h1 {
    border: none;
    color: white;
    font-weight: bold;
    background-color: transparent;
    text-align: center;
    box-shadow: none;
    
}

.round {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background-color: white;
    text-align: center;
    border-radius: 50%;
    height: 150px;
    width: 150px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
}
.round i{
 -webkit-mask-size: contain;
  mask-size: contain;
  height: 80px;
  background-color: rgb(255, 170, 0);
    width: 80px;
}
.modal-overlay h2 {
    border: none;
    padding: 0;
    color: white;
    font-weight: bold;
    background-color: transparent;
    text-align: center;
    box-shadow: none;
    margin: 0;
    font-size: 2.5vw;
}

.modal-overlay h3 {
    border: none;
    padding: 0;
    margin: 0;
    color: rgb(255, 170, 0);
    font-weight: bold;
    background-color: transparent;
    text-align: center;
    box-shadow: none;
}

.modal-content .main{
    display: flex;
  justify-content: center;
}
/* Modal Overlay (Created and shown by JS) */
.modal-overlay {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content.games{
    margin: unset;
    background-color: transparent;
}

/* Modal Content Box */
.modal-content {
    
    padding: 50px;
    border: none;
    width: 90%;
    max-width: 450px;
    /* box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); */
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease-out;
    overflow: visible;
    /* Allows confetti to pop out */
}

/* Modal Close Button */
.close-btn {
    background-color: white;
    /* Cyan */
    color: black;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: gray;
}

/* --- Confetti Styles (Pure CSS Animation) --- */
.confetti-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    /* Center point for radial burst */
    height: 1px;
    pointer-events: none;
}

.confetti-piece {
    position: absolute;
    opacity: 0;
    border-radius: 50%;
    /* The animation uses variables set by JS for radial spread */
    animation: confetti-fall-radial var(--duration) ease-out forwards;
}

/* Keyframes for Modal and Confetti */
@keyframes slideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Radial Confetti Animation */
@keyframes confetti-fall-radial {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        /* Start at center of container */
        opacity: 1;
    }

    100% {
        /* End position set by --end-x and --end-y variables from JS */
        transform: translate(var(--end-x), var(--end-y)) scale(0.3) rotate(1000deg);
        opacity: 0;
    }
}