body {
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    font-family: Arial;
    font-size: 15px;
    background: url(./assets/slot-bg.webp) no-repeat;
    background-size: cover;
    background-attachment: fixed;
}
:focus, :focus-visible{
    outline: 0;
}
.wrap{
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: auto;
        flex-flow: row wrap;
}
#bowl {
    width: 440px;
    height: 440px;
    background-color: transparent;
    border-radius: 50%;
    top: 60px;
    margin: 5px 35px 0 0;
}

.container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.ball {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    transform: translateX(-50%);
}

.ballBars {
    opacity: 0.4;
    width: 63px;
}

img#startButtonSphere {
    position: absolute;
    top: 200px;
    left: 65px;
    z-index: 10000;
    cursor: pointer;
}

.ballsContainer {
    position: absolute;
    z-index: 2;
    right: -97px;
    top: 20px;
}

.ball h2 {
    transform: rotate(260deg);
}

.ballContainerParent {
    position: absolute;
    width: 100%;
    bottom: 0;
    top: 340px;
    left: -16px;
    z-index: 2;
}

.ballContainer {
    position: absolute;
    top: 140px;
    left: -180px;
    z-index: 45;
}

#ballContainer {
    left: 220px;
    position: absolute;
    top: 440px;
}

.disabled {
    pointer-events: none;
}

#pipeBallParent {
    z-index: 2;
    top: 60px;
    width: 440px;
    height: 440px;
    left: -236px;
    right: 50%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: end;
    /* background: red; */
}

.pipeBall {
    width: 50px;
    height: 0px;
    background: rgba(190, 190, 190, 0.46);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.9px);
    -webkit-backdrop-filter: blur(6.9px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.barsContainer {
    height: 255px;
    left: 522px;
    position: absolute;
    top: 148px;
    display: flex;
    gap: 10px;
}

.fanParent {
    position: absolute;
    top: 377px;
    left: 45px;
}

.fan{
    opacity: 0;
    background-color: transparent;
}
.spin-wrap {
    width: 60%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: start;
    /*flex-direction: column;*/
    margin-top: -70px;
        /*gap: 20px;*/
    /* margin-top: 80px; */
}
.spin {
    width: 45%;
    height: 570px;
}
.sidebar{
    width: 30%;
     box-sizing: border-box;
     z-index: 9;
}
.check-code {
    background: #424242;
    padding: 10px;
    border-radius: 5px;
}
.code-box {
    display: flex;
    justify-content: space-between;
    flex-flow: row wrap;
}
.check-code input {
    background: #fff;
    border: none;
    border-radius: 5px 0px 0px 5px;
    padding: 8px 10px;
    font-size: 15px;
    width: 221px;
}
.btn-action {
    text-align: center;
}
.btn-action button {
    border: 0;
    padding: 9px 20px;
    border-radius: 0px 5px 5px 0px;
    background: #1581df;
    text-transform: capitalize;
    color: #fff;
    cursor: pointer;
}
.btn-action button.close {
    background: #ad0000;
}
.code-note {
    margin-top: 10px;
    color: #b73d00;
    display: none;
    font-weight: 600;
    flex: 1;
}
.code-note.error {
    color: #ff0404;
}
.code-note.success {
    color: #159100;
}
.user{
    display: none;
    text-align: center;
    color: #fff;
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    border: 2px dashed #7c7c7c;
}
.user-name, .turn {
    font-weight: 600;
    color: #ffe200;
}
.winner-user {
    background: #262626;
    border-radius: 0px 0px 5px 5px;
    height: 500px;
    padding: 0px 10px 10px;
    color: #fff;
    overflow-y: auto;
}
.winnerInfo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0px;
    border-bottom: 1px dashed #7a7a7a;
}
.detail {
    text-align: center;
}
.detail b {
    font-size: 1.1em;
}
.detail > div {
    margin-top: 4px;
}
.text-warning {
    color: #fadd00;
}
.winner-list h2 {
    margin-bottom: 0;
    padding: 9px 10px;
    text-align: center;
    background: linear-gradient(to right, rgb(179 32 0), rgb(255 0 0 / 41%));
    color: #fff;
    text-transform: uppercase;
    border-radius: 5px 5px 0px 0px;
}
.winner-user::-webkit-scrollbar {
  width: 7px;
}
/* Track */
.winner-user::-webkit-scrollbar-track {
    background: #484848;
    border-radius: 0px 0px 20px 20px;
}
/* Handle */
.winner-user::-webkit-scrollbar-thumb {
  background: #8b0000;
    border-radius: 0px 0px 20px 20px;
}

/* Handle on hover */
.winner-user::-webkit-scrollbar-thumb:hover {
  background: #555;
}
img.img-before {
    position: absolute;
    top: 48%;
    width: 835px;
    left: -89%;
}
.info {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin-bottom: 15px;
}
.info-item {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    text-decoration: none;
}
.info-item span {
    font-weight: 600;
}
.popup {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 55%);
    z-index: 99999;
    display: none;
}
.popup-content {
    width: 40%;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
    padding: 10px;
    background: #4c4c4c;
    color: #fff;
    line-height: 1.9em;
    border: 4px solid #b3b3b3;
}
.popup-title {
    text-align: center;
    text-transform: uppercase;
    font-size: 1.5em;
    margin: 10px;
    color: #ffe200;
}
span.close {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    position: absolute;
    right: -15px;
    top: -15px;
    background: #4c4c4c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    border: 2px solid #b3b3b3;
}
table {
    width: 100%;
    border-collapse: collapse;
}
td, th {
    padding: 5px;
    border: 1px solid #8f8f8f;
    text-align: center;
}
.content th {
    background: #9b0000;
    text-transform: capitalize;
}
ol {
    margin: 0;
}
.code-text {
    font-weight: 600;
    color: #ffee00;
}
.winner-popup .popup-content {
    width: 20%;
    background: #3c8b6d;
    border: 4px solid #ffffff;
}
.winner-popup .content {
    text-align: center;
}
.content iframe {
    margin: auto;
    display: block;
    border: 0;
    margin-top: -60px;
}
.content p {
    margin-top: 0;
    margin-bottom: 0px;
}
strong.value {
    font-size: 1.5em;
    color: #ffe200;
}
img.text-title {
    /* width: 514px; */
    margin-bottom: -60px;
    margin-left: -200px;
    margin-top: -30px;
}
 .confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background-color: #f0f;
  animation: fall linear infinite;
}
.lose-popup .popup-content {
    width: 400px;
    background: transparent;
    border: none;
}
.lose-popup img{
    width: 100%;
}
.lose-popup span.close {
    top: 70px;
    right: 10px;
    background: #b21b11;
}
.info-popup .popup-content {
    width: 275px;
    text-align: center;
    background: #046603;
    border-color: #ffffff;
}
@keyframes fall {
  0% {
    transform: translateY(-100px) rotate(0deg);
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
  }
}
.firework {
  position: fixed;
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: explode 1s ease-out forwards;
  z-index: 9999999;
}
.turn-ball .turn {
    color: #b90000;
}
.turn-ball {
    position: absolute;
    top: 297px;
    left: 107px;
    z-index: 10000;
    cursor: pointer;
    font-weight: 600;
}
.popup-content .content {
    max-height: 90vh;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.popup-content .content::-webkit-scrollbar {
  display: none;
}
@keyframes explode {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0.5);
    opacity: 0;
  }
}
@media screen and (max-width: 767px){
    .sidebar {
        width: 100%;
        box-sizing: border-box;
        padding: 0px 10px;
    }
    .spin-wrap {
        width: 100%;
        height: 53vh;
        margin-top: 15px;
    }
    .spin {
        width: 100%;
        height: 300px;
    }
    img.box-one {
        width: 70%;
        left: 15px;
    }
    img.box-two {
        width: 70%;
        left: 15px;
    }
    img#startButtonSphere {
        position: absolute;
        top: 95px;
        left: 107px;
        z-index: 10000;
        cursor: pointer;
        width: 65px;
    }
    .ballsContainer {
        left: 27px;
        top: 20px;
        width: 70%;
        right: auto;
    }
    canvas#matter-canvas {
        width: 223px;
        height: 223px;
    }
    .fanParent {
        top: 160px;
        left: 85px;
    }
    .fan {
        width: 110px;
    }
    #bowl {
        width: 180px;
        height: 237px;
        background-color: transparent;
        border-radius: 50%;
        top: 19px;
        margin: 5px 20px 0 0;
        left: 50px;
    }
    img.img-before {
        position: absolute;
        top: 36%;
        width: 95%;
        left: -45px;
    }
    #pipeBallParent {
        display: none;
    }
    .check-code input {
        width: 66%;
    }
    .btn-action button {
        padding: 9px 17px;
    }
    .check-code input {
        width: 66%;
    }
    .btn-action {
        width: 28%;
    }
    .barsContainer {
        height: 255px;
        left: 311px;
        top: -3px;
    }
    .ballBars {
        width: 35px;
    }
    .ball {
        width: 25px;
        height: 25px;
    }
    #ballContainer {
        left: 90px;
        /*position: absolute;*/
        top: 200px;
    }
    body{
        font-size: 14px;
    }
    .popup-content, .winner-popup  .popup-content{
        width: 90%;
    }
    .lose-popup .popup-content {
        width: 98%;
        background: transparent;
        border: none;
    }
    .lose-popup span.close {
        top: 60px;
        right: 10px;
    }
    .turn-ball {
        display: none;
    }
}