* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and IE 11 */
    user-select: none;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    /* Standard syntax */
}

*:focus-visible {
    outline: none;
}

@font-face {
    font-family: RubikRegular;
    src: url(./fonts/Rubik-Regular.ttf) format("truetype");
    font-display: swap;
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: RubikMedium;
    src: url(./fonts/Rubik-Medium.ttf) format("truetype");
    font-display: swap;
    font-weight: normal;
    font-style: normal;
}

input,
input:before,
input:after {
    -webkit-user-select: initial;
    -khtml-user-select: initial;
    -moz-user-select: initial;
    -ms-user-select: initial;
    user-select: initial;
}

body,
html {
    overflow: hidden;
    background-color: black;
    touch-action: none;
    height: 100%;
    overscroll-behavior: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.game-div {
    -webkit-transform-origin: top left;
    -ms-transform-origin: top left;
    transform-origin: top left;
}

.game {
    position: relative;
    width: 2370px;
    height: 1220px;
    color: rgba(255, 255, 255, 1);

    --strokegrad: linear-gradient(0deg, #441563 0%, #c78bef 100%);
}

.mobileGameContent {
    width: 756px;
    height: 1344px;
    left: calc((100% - 756px) / 2);
    top: -65px;
    border-radius: 7%;
    margin: auto;
    transform: scale(0.9);
    -webkit-transform: scale(0.9);
    -moz-transform: scale(0.9);
    -ms-transform: scale(0.9);
    -o-transform: scale(0.9);
    position: absolute;
}
.none,
.hide {
    display: none !important;
}

.canvas canvas {
    position: relative;
    margin-left: 0;
    -webkit-transform-origin: top left;
    -ms-transform-origin: top left;
    transform-origin: top left;
    left: calc((100% - 680px) / 2);
    top: 2px;
    right: 0;
    margin: auto;
    /* border: 2px red solid; */
    /* pointer-events: none; */
}

.canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

#game {
    width: 2370px;
    height: 100%;
    position: relative;
    font-family: RubikRegular;
}

.game.mobile {
    margin: 0 auto;
    position: relative;
}

.game.mobile .canvas canvas {
    left: 0 !important;
    right: 0;
    margin: auto;
}

.game.mobile .gameContent {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: auto;
    top: 0;
    left: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: none !important;
    border-radius: 0 !important;
}

.GameParent {
    position: absolute;
    -webkit-transform-origin: top left;
    -ms-transform-origin: top left;
    transform-origin: top left;
    width: 100%;
    height: 1344px;
    /* width: 836px;
    height: 410px; */
    box-sizing: border-box;
    /* background-image: url(./assets/Images/background.png); */
    /* background-repeat: no-repeat; */
    /* background-position-y: -66px; */
    /* background-position-x: center; */
    /* overflow: hidden; */
}

.loader-div {
    position: fixed;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: #000000;
}

.loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -75px;
    width: 154px;
    height: 72px;
    background: url(./assets/Images/logo.png) no-repeat center / cover;
}

.logo {
    background: url(./assets/Images/logo.png);
    width: 154px;
    height: 72px;
    position: absolute;
    left: calc((100% - 154px) / 2);
}

.loader-bar {
    background-color: rgb(70, 70, 70);
    width: 178px;
    height: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 90px 0 0 -89px;
    border-radius: 1px;
}

.loader-bar div {
    background-color: rgba(255, 255, 255, 1);
    position: absolute;
    left: 0;
    top: -1px;
    width: 0;
    height: 4px;
    border-radius: 2px;
}
.loader-text {
    width: 178px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 105px 0 0 -89px;
    font-size: 16px;
    color: #ffffff;
    text-align: center;
    font-family: RubikMedium;
}
.header-info {
    margin-top: 15px;
    margin-left: 20px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    height: 72px;
}
.header-buttons {
    display: flex;
    column-gap: 38px;
    align-items: center;
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-direction: column;
    position: relative;
    z-index: 1;
    height: calc(100% - 72px);
}

.main-canvas {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
}

.balance {
    display: flex;
    align-items: center;
    column-gap: 20px;
}

.wallet {
    background: url(./assets/Images/wallet.png);
    width: 42px;
    height: 42px;
}

.balance-value {
    color: #fff;
    font-family: Inter;
    font-size: 16.8px;
    font-weight: 500;
}

.balance-value::after {
    content: attr(data-currency);
    color: #aa5bff;
    font-family: Inter;
    font-size: 16.8px;
    font-weight: 900;
    margin-left: 5px;
}

.coeff span {
    text-align: center;
    min-width: 80px;
    display: inline-block;
}

.coeff .dot {
    min-width: 26px !important;
}

.coeff-parent {
    display: flex;
    justify-content: center;
    position: absolute;
    color: #fff;
    text-align: center;
    text-shadow:
        0 7px 0 #ec28f1,
        0 0 34.93px #8615ff;
    font-family: RubikMedium;
    font-size: 140px;
    font-weight: 700;
}

.coeff-parent.exploded {
    color: #f21f1f;
    text-shadow:
        0 7px 0 #951673,
        0 0 34.93px rgba(255, 21, 33, 0.52);
}

.coeff-parent.win {
    color: #32eb32;
    text-shadow:
        0 7px 0 #f1a128,
        0 0 34.93px #0ea65a;
}

.betAmount {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    column-gap: 5px;
    font-size: 32px;
    font-weight: 700;
    font-family: RubikMedium;
}
/* 
.currency::after {
    content: attr(data-currency);
    font-family: RubikMedium;
    font-size: 32px;
    font-weight: 500;
    text-align: center;
} */

.volume {
    background: url(./assets/Images/allSoundOff.png) no-repeat;
    width: 42px;
    height: 42px;
    cursor: pointer;
}
/* 
.volume:hover {
    background: url(./assets/Images/volumehover.png) no-repeat;
} */

.volume.active {
    background: url(./assets/Images/soundOn.png) no-repeat;
}

/* .volume.active:hover {
    background: url(./assets/Images/turnOnSoundHover.png) no-repeat;
} */

/* Toggle container */

.sound,
.music {
    width: 42px;
    height: 42px;
}

.sound[data-sound="true"] {
    background-image: url(./assets/Images/soundOn.png);
}
.music[data-music="true"] {
    background-image: url(./assets/Images/musicOn.png);
}
.sound[data-sound="false"] {
    background-image: url(./assets/Images/soundOff.png);
}
.music[data-music="false"] {
    background-image: url(./assets/Images/musicOff.png);
}
.sound-menu-popup {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 0px;
    top: 92px;
    row-gap: 40px;
}

.sound-menu-popup.active {
    display: flex;
}

.autoplay,
.autoCashout {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background:
        linear-gradient(rgba(33, 10, 47), rgba(33, 10, 47)) padding-box,
        var(--strokegrad) border-box;
    border: 2px solid transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.autoplay-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-self: center;
}

.autoplay-outer,
.autoCashout-outer {
    border-radius: 12px;
    background:
        linear-gradient(#441563, #441563) padding-box,
        var(--strokegrad) border-box;
    border: 2px solid transparent;
    box-shadow: 0 0 35px 0 #000 inset;

    width: 352px;
    height: 59px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 5px;
    padding: 7px 5px 6px 10px;
}

.autobet-text {
    color: #fff;
    font-family: Inter;
    font-size: 16.8px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

.check {
    width: 19px;
    height: 16px;
    position: absolute;
    background-image: url(./assets/Images/check.png);
    display: none;
}

.autoplay[data-autoplay="true"] .check,
.autoplay-help[data-autoplay="true"] .check,
.autoCashout[data-autoCashout="true"] .check {
    display: block;
}

.menu {
    background: url(./assets/Images/menu.png) no-repeat;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

.columnTop {
    z-index: 1;
    height: max-content;
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 45px;
    justify-content: flex-start;
    font-size: 18px;
}

.columnTop.sesionTime {
    align-items: flex-start;
    width: 110px;
}

.columnTop.red {
    align-items: flex-end;
    /* width: 70px; */
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.icon-div {
    width: 33.3%;
    height: 77px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
/* Removed unused old game grid styles (sheriffGrid, sunGrid, freespins) */

.win-popup-wrapper {
    position: absolute;
    display: none;
    width: 100%;
    bottom: 120%;
    z-index: 4;
    animation: slideOut 4s ease-out;
    opacity: 1;
}

@keyframes slideOut {
    0% {
        bottom: 120%;
        opacity: 1;
    }
    20% {
        opacity: 1;
    }
    100% {
        bottom: 170%;
        opacity: 0;
    }
}

.win-popup {
    border-radius: 20px;
    border: 2px solid #28f1ab;
    background: rgba(102, 226, 102, 0.8);
    padding: 14px 19px;
    row-gap: 16.5px;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    color: #fff;
    text-align: center;
    font-family: Inter;
    margin: auto;
    width: max-content;
}

.youwon {
    font-size: 29.484px;
    font-weight: 900;
}

.won-amount {
    font-size: 22px;
    font-weight: 700;
}

.won-currency::after {
    content: attr(data-currency);
    font-size: 22px;
    margin-left: 5px;
    font-weight: 400;
}

/* Removed unused freespins/gift spin popup styles */

/* error */

.errors {
    width: 0;
    height: 0;
}

.error-popup {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(24, 17, 13, 0.8);
    z-index: 6;
    cursor: default;
}

.error-popup.active {
    display: block;
}

.error-popup-content {
    width: 716px;
    padding: 10px 10px 30px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 20px;
    background-color: rgba(47, 40, 37, 1);
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

.error-popup-content p {
    font-size: 28px;
    line-height: 33px;
    text-align: center;
    font-family: RubikMedium;
}

.errorX {
    align-self: flex-end;
}

.error-reload {
    background: linear-gradient(0deg, #469d10 4.17%, #7fea3d 100%);
    color: rgba(24, 17, 13, 1);
    cursor: pointer;
    width: 280px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 33px;
    font-family: RubikMedium;
    text-align: center;
    border-radius: 40px;
    margin-top: 40px;
}

.not-enough-money {
    background-image: url(./assets/Images/lessMoney.png);
    width: 293px;
    height: 59px;
    position: relative;
    left: calc((100% - 265px) / 2);
    bottom: -730px;
    z-index: 3;
    visibility: hidden;
}

.not-enough-money span {
    font-size: 14px;
    color: rgb(255, 255, 255);
    width: 223px;
    left: 54px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45px;
}

.wonColor {
    color: rgb(40, 148, 40);
}

/* change history tab for small device */

.cars-chat {
    background-image: url(./assets/Images/chatIcon.png);
    width: 70px;
    height: 70px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.cars-history {
    background-image: url(./assets/Images/clock.png);
    width: 70px;
    height: 70px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}

.bet-button-container {
    display: flex;
    align-items: center;
    column-gap: 20px;
}

.bet-button {
    background-image: url(./assets/Images/betButton.png);
    cursor: pointer;
    width: 465px;
    height: 174px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 30px 0 12px 0;
}

.bet-button .collect,
.bet-button .noBet {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.bet-button.noBet .collect {
    display: none;
}

.bet-button.collect .noBet {
    display: none;
}

.bet-button.collect {
    background-image: url(./assets/Images/betButtonCollect.png);
}

.bet-button.disable {
    background-image: url(./assets/Images/betButtonDisabled.png);
    cursor: auto;
    pointer-events: none;
}

.bet-button-text,
.bet-accepted-collect {
    text-align: center;
    font-family: Inter;
    font-size: 44.8px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.noBet .bet-button-text {
    color: #78471a;
}

.bet-accepted-collect {
    color: #1a2a78;
}

.bet-intput-outer {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 5px;
    margin-top: 25px;
}

.bet-amount-text {
    color: #8e6390;
    text-align: center;
    font-family: Inter;
    font-size: 25.2px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.bet-input-container,
.autoplay-bet-input-container,
.autoplay-multiplier-input-container {
    /* border: 3px solid #caa2d8; */
    /* background: rgba(16, 16, 16, 0.2); */
    background:
        linear-gradient(#441563, #441563) padding-box,
        linear-gradient(0deg, rgba(137, 40, 241, 1) 0%, rgba(202, 162, 216, 1) 100%) border-box;
    border: 3px solid transparent;
    box-shadow: 0 2.8px 26.67px 0 #000 inset;

    width: 374px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
}

.autoplay-bet-input-container {
    pointer-events: all;
    opacity: 1;
}

.autoplay-bet-input-container,
.autoplay-multiplier-input-container {
    height: 46px;
    width: 200px;
    border-radius: 10px;
}

.autoplay-multiplier-input-container {
    width: 160px;
}

.bet-values-conatiner {
    display: flex;
    flex-direction: column;
    row-gap: 31.5px;
}

.bet-input,
.autoplay-bet-input,
.autoplay-multiplier-input {
    background: none;
    border: none;
    width: 100%;
    height: 100%;
    font-size: 15px;
    padding-top: 8px;
    padding-bottom: 9px;
    box-sizing: border-box;
    text-align: center;
    font-family: Inter;
    font-size: 28px;
    font-weight: 400;
    line-height: normal;
    color: rgba(255, 255, 255, 1);
}

.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.autoplay-bet-input,
.autoplay-multiplier-input {
    font-size: 22px;
}

.bet-input:focus,
.autoplay-bet-input:focus,
.autoplay-multiplier-input:focus {
    outline: none;
}

.bet-value,
.autoplay-bet-value {
    background:
        linear-gradient(#ac23da, #79159b) padding-box,
        linear-gradient(0deg, #663699 0%, #bf84ff 100%) border-box;
    border: 2px solid transparent;
    border-radius: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 140px;
    height: 45px;

    color: #441563;
    text-align: center;
    font-family: Inter;
    font-size: 23.841px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.betting-options-container,
.howToPlay-betting-options-container {
    /* visibility: hidden; */
    width: 653px;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.main-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.betting-option,
.howToPlay-betting-option {
    width: 207px;
    height: 160px;
}

.l1,
.l2,
.l3 {
    background-image: url(./assets/Images/side.png);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #441563;
    text-align: center;
    text-shadow: 0 0.7px 0.7px rgba(255, 255, 255, 0.85);
    font-family: RubikMedium;
    font-size: 54px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    z-index: 1;
    background-size: cover;
    width: 154px;
    height: 154px;
}

.l1.active,
.l2.active,
.l3.active {
    background-image: url(./assets/Images/sideActive.png);
    color: #f1c7ff;
}

.l1.exploded,
.l2.exploded,
.l3.exploded {
    background-image: url(./assets/Images/sideExploded.png);
    cursor: auto;
}

.close-icon {
    background: url(./assets/Images/close.png);
    cursor: pointer;
    width: 29px;
    height: 28px;
    display: block;
    align-self: flex-end;
}

.help-betting-options-container {
    background: url(./assets/Images/helpBettingOption.png);
    width: 698px;
    height: 172px;
}

.betting-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.betting-wrapper {
    width: 731px;
    height: 152px;
    padding: 18px 10px 14px 10px;
    position: relative;
    background: url(./assets/Images/betContainer.png);
}

.betting-controls {
    display: flex;
    align-items: center;
    column-gap: 24.5px;
}

.bet-accepted {
    font-family: Inter;
    font-size: 22px;
    font-weight: 400;
}

.bet-accepted-winning {
    padding: 10px;
    align-items: center;
    gap: 10px;
    border-radius: 20px;
    background: rgba(236, 40, 241, 0.5);
    text-shadow: 0 3px 0 #ec28f1;
    height: max-content;
    top: 200px;
    position: absolute;
    display: none;
}

.bet-button-accepted-winning {
    display: flex;
    column-gap: 5px;
}

.collectAmount {
    display: flex;
    column-gap: 5px;

    color: #fff;
    text-align: center;
    font-family: RubikMedium;
    font-size: 41.143px;
    font-weight: 700;
}

.collectAmount.bet {
    font-family: RubikMedium;
    text-align: center;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.collectCurrency::after {
    font-size: 41.143px;
}

.betting-started {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.betting-left {
    display: flex;
    align-items: center;
    column-gap: 40px;
}
