body,
html {
    background-image: linear-gradient(-57deg, #0048dc 3%, #0781cc 85%) !important;
    min-height: 100vh;
    font-family: "Roboto", sans-serif;
}

.wrapper .main-content {
    padding-top: unset !important;
}

.game-container {
    /*background: #0777d9;*/
    padding: 32px 20px 10px 10px;
    width: 395px;
    margin: 30px auto 0 auto;
    border-radius: 40px;
}

.spinner[_ngcontent-wly-c86] .dropdown-menu.show[_ngcontent-wly-c86] {
    min-width: 0;
    background-color: transparent;
    background-color: initial;
    color: inherit;
    border: unset;
    padding: 0;
    margin: 0;
}

.dropdown-menu-numpad {
    position: absolute;
    top: 100%;
    left: 36 !important;
    z-index: 1000;
    min-width: -22rem;
    margin: 0;
    color: #fff;
    text-align: left;
    list-style: none;
    background-color: #2f3542;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.dropdown-menu-numpad.show {
    display: block !important;
}

.numpad[_ngcontent-wly-c85] {
    width: 234px;
    padding: 5px;
    border-radius: 12px;
    background: #0267a5;
}

.mines .gui-bg {
    background-color: #0267a5 !important;
}

.numpad[_ngcontent-wly-c85] .col-4[_ngcontent-wly-c85], .numpad[_ngcontent-wly-c85] .col-12[_ngcontent-wly-c85] {
    padding: 1px;
}

.btn.btn-game {
    cursor: default;
    font-size: inherit;
    color: #fff;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .5);
    border-radius: 20px;
    background-color: #00000026;
    box-shadow: inset 1px 1px #fff1cd33;
}

.mines .btn-game {
    background-color: #0267a5;
}

.numpad[_ngcontent-wly-c85] .btn-game[_ngcontent-wly-c85] {
    height: 34px;
    border-radius: 8px;
    font-size: 22px;
    width: 100%;
    justify-content: center;
}

.numpad[_ngcontent-wly-c85] .btn-game[_ngcontent-wly-c85] i.confirm[_ngcontent-wly-c85] {
    background: url(https://turbo.spribegaming.com/icon-confirm.ec9f979b15ef75ed.svg) no-repeat center center / contain;
    width: 18px;
    height: 13px;
    display: flex;
}

.numpad[_ngcontent-wly-c85] .btn-game[_ngcontent-wly-c85] i.backspace[_ngcontent-wly-c85] {
    background: url(https://turbo.spribegaming.com/icon-backspace.4af92da27c353bca.svg) no-repeat center center / contain;
    width: 22px;
    height: 17px;
    display: flex;
}

.paidogrid{
    padding: unset !important;
}

.grid{
    padding: unset !important;
}

@media (max-width: 600px) {
    .paidogrid{
        padding: 10px;
        margin-top: 2em;
    }

    .grid{
        padding: 10px 0px 10px 9px;
    }
}

.switch {
  position: relative;
  display: inline-block;
  width: 35px;
  height: 18px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 4px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(13px);
  -ms-transform: translateX(13px);
  transform: translateX(13px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6px;
}

.top-controls select {
    background: #0267a5;
    color: #fff;
    border: 1px solid #1a66a0;
    padding: 6px 40px 6px 40px;
    border-radius: 13px;
    font-size: 12px;
    /*font-weight: 600;*/
    box-shadow: 0 1px 0 #0d5ea5;
    outline: none;
    appearance: none;
    height: 26px;
    width: 129px;
    text-align: center;
    font-size: inherit;
    color: #fff;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .5);
    border-radius: 20px;
    background-color: #00000026;
    box-shadow: inset 1px 1px #fff1cd33;
}

.top-controls .multiplier {
    background: #ffc100;
    color: #0b3a63;
    padding: 5px 16px;
    border-radius: 13px;
    font-size: 15px;
    /* font-weight: 700; */
    min-width: 110px;
    text-align: center;
    border: 1px solid #ffa800;
    /* box-shadow: 0 1px 0 #ffe480; */
}

/* GRID BUTTONS */
.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: -100px!important;
    row-gap: 5px;
    /* padding: 58px; */
    margin-bottom: 24px;
    /* background: rgba(0, 0, 0, 0.05); */
    /* border-radius: 22px; */
    /* box-shadow: 0 8px 32px 0 rgba(0, 60, 200, 0.10); */
    justify-items: center;
    justify-content: center;
}

.grid button {
    background: #09416D;
    border: 3px solid #014F97;
    border-radius: 7px;
    width: 67px;
    height: 44px;
    cursor: pointer;
    transition: background 0.18s, transform 0.16s, border-color 0.18s;
    position: relative;
    box-shadow: 0px 3px 0px 0px rgba(38, 7, 14, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    outline: none;
    z-index: 1;
    margin: 0;
}

.grid button:after {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #2165A8;
    opacity: 0.73;
    /* box-shadow: 0 1px 6px 0 #1081e8; */
    margin: 0 auto;
}

.grid button.active-gem::after {
    background: unset;
}

.grid button.active-gem {
    background: url(https://i.imgur.com/212NPwz.png);
    /* background-image: url(https://static.vecteezy.com/system/resources/previews/009/399/111/non_2x/mobile-game-golden-star-clipart-design-illustration-free-png.png); */
    border-color: #b3961c;
    box-shadow: 0 0 10px #a0b31c;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 999999999;
    background-position: center;
    /* height: 33px; */
    padding: -47px;
    /* margin: 30px; */
    /* background-size: 28px; */
    background-size: cover;
}

.grid button.active-bomb::after {
    background: unset;
}

.grid button.active-bomb {
    background: #ff5757;
    border-color: #d54747;
    animation: bombshake 0.3s;
    /* box-shadow: 0 0 16px #e30000; */
    background: url(https://i.imgur.com/rYKrkiv.png);
    background-position: center;
    background-size: cover;
    /* background-size: 51px; */
    background-repeat: no-repeat;
}

@keyframes bombshake {
    0% {
        transform: translateX(0px);
    }

    20% {
        transform: translateX(-2px);
    }

    40% {
        transform: translateX(2px);
    }

    60% {
        transform: translateX(-2px);
    }

    80% {
        transform: translateX(2px);
    }

    100% {
        transform: translateX(0px);
    }
}

/* CONTROLS BAR */
.controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 6px;
}

.controls-bar .random-btn {
    background: #207abf;
    border: 1.5px solid #06487a;
    color: #ccc;
    border-radius: 100px;
    padding: 7px 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.14s;
    margin-right: 8px;
}

.controls-bar .random-btn:hover {
    background: #207abf;
    color: #fff;
}

.controls-bar .autoplay-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(0,0,0,.3);
    border-radius: 16px;
    padding: 6px 17px 6px 9px;
    width: 100%;
    height: 26px;
}

.controls-bar .autoplay-toggle label {
    color: #fff;
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    margin-bottom: 0;
}

.controls-bar .autoplay-toggle input[type="checkbox"] {
    accent-color: #fff;
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-right: 2px;
}

/* MAIN ACTION ROW */
.main-action-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 0 6px;
}

.main-action-row .reset-btn-bg {
    background: #1a2841;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-action-row .circle-btn {
    width: 44px;
    height: 44px;
    background: rgb(3, 92, 192);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    outline: none;
    cursor: pointer;
    transition: background 0.14s;
    box-shadow: none;
    padding: 0;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .5);
    box-shadow: 3px 3px 6px #020b1a80, inset -1px -1px #00000052, inset 1px 1px #fff1cd33;
    border: 1.4px solid rgba(0, 0, 0, .9);
}

.main-action-row .main-btn {
    flex: 1;
    background: #3e7914;
    background: linear-gradient(
        264deg,
        rgba(62, 121, 20, 1) 0%,
        rgba(90, 159, 3, 1) 49%,
        rgba(45, 117, 0, 1) 100%
    );
    color: #fff;
    border: 2px solid rgba(0, 0, 0, .9);
    border-radius: 20px;
    font-size: 16px;
    /*font-weight: bold;*/
    /*box-shadow: 0 5px 0 #388e00;*/
    height: 54px;
    transition: background 0.14s;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    box-shadow: 3px 3px 6px #020b1a80, inset -1px -1px #00000052, inset 1px 1px #fff1cd33!important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .5);
}

.main-action-row .main-btn svg {
    width: 32px;
    height: 32px;
    display: inline-block;
    margin-right: 6px;
}

.main-action-row .main-btn[disabled] {
    background: #a7a7a7;
    box-shadow: 0 3px 0 #636363;
    cursor: not-allowed;
}

.main-action-row .main-btn#finishBtn {
    background: #ff5757;
    box-shadow: 0 5px 0 #004ba0;
}

/* BET CONTROLS */
.bet-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 0px 0px;
    gap: 20px;
    background: #0267a5 !important;
    border-radius: 25px;
    /* border: 1.5px solid #06487a; */
    border: 1px solid rgba(0, 0, 0, .53);
    box-shadow: inset 1px 1px #fff1cd33;
    width: 90%;
}

.bet-controls label {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
    margin-right: 6px;
}

.bet-controls .bet-input-wrap {
    background: rgb(1, 72, 115);
    border-radius: 14px;
    display: flex;
    align-items: center;
    /* padding: 0 59px; */
    height: 22px;
    width: 124px;
    border: 1px solid black;
    box-shadow: 0 2px 8px 0 rgba(7, 32, 76, 0.09);
    text-align: center;
    justify-content: center;
}

.bet-controls input[type="number"] {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    width: 62px;
    text-align: center;
    outline: none;
    padding: 2px 0;
}

.bet-controls .round-btns-wrap {
    /*background: #14335a;*/
    border-radius: 22px;
    display: flex;
    align-items: center;
    gap: 0;
    height: 44px;
    min-width: 96px;
    /*padding: 0 8px;*/
    /*box-shadow: 0 2px 8px 0 rgba(7, 32, 76, 0.09);*/
}

.bet-controls .bet-round-btn {
    background: #0267a5;
    border: 1.5px solid #06487a;
    color: #fff;
    font-size: 22px;
    /* font-weight: bold; */
    border-radius: 50%;
    width: 35px;
    height: 33px;
    margin: 0 2px;
    cursor: pointer;
    transition: background 0.14s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    border: 1px solid rgba(0, 0, 0, .5);
    border-radius: 20px;
    background-color: #00000026;
    box-shadow: inset 1px 1px #fff1cd33;
}

.bet-controls .bet-round-btn:active {
    background: #0e579c;
}

/* FOOTER */
.footer-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* background: #0e579c; */
    border-radius: 0 0 22px 22px;
    padding: 13px 16px 13px 16px;
    color: #fff;
    font-size: 17px;
    margin-top: -5px;
}

.footer-status .footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #207abf;
    padding: 1px 27px;
    /* font-size: 10px; */
    border-radius: 20px;
    border: 1.5px solid #06487a;
}

.footer-status .footer-right {
    font-weight: bold;
}

.footer-status .icon-q {
    /*font-size: 19px;*/
    margin: 0 3px;
    color: #000000;
    vertical-align: middle;
    background: #f69314;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    /* padding: 3px; */
}

.footer-status .icon-coin {
    font-size: 17px;
    margin-left: 6px;
    color: #ffe065;
}

/* Remove number spinners in bet input */
.bet-controls input[type="number"]::-webkit-outer-spin-button,
.bet-controls input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bet-controls input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.container-controls {
    background: rgba(0, 0, 0, .3);
    padding: 10px 20px 10px 20px!important;
    padding: 20px;
    border-radius: 20px;
    text-align: -webkit-center;
}

.btn.btn-game {
    cursor: default;
    font-size: inherit;
    color: #fff;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .5);
    border-radius: 20px;
    background-color: #00000026;
    box-shadow: inset 1px 1px #fff1cd33;
}

.mines .btn-game {
    background-color: #0267a5;
}

.progress {
    display: flex;
    height: 1rem;
    overflow: hidden;
    line-height: 0;
    font-size: .75rem;
    background-color: #e9ecef;
    border-radius: .25rem;
    width: 100%;
    background-color: #15171969;
    height: 4px;
    margin-bottom: .3em;
    margin-top: 5px;
}

/* Apenas para telas menores que 600px (celular) */
@media (max-width: 600px) {
    .game-container {
        width: 98vw !important;
        max-width: 98vw !important;
        padding: 14px 2vw 8px 2vw !important;
        border-radius: 22px !important;
        margin: 10px auto 0 auto !important;
        box-sizing: border-box !important;
    }

    .top-controls {
        /*flex-direction: column;*/
        gap: 7px;
        /*align-items: stretch;*/
        padding: 0 2px !important;
        background-color: #15171969 !important;
        border-radius: 12px;
    }

    .top-controls select {
        font-size: 12px !important;
        padding: 6px 40px 6px 40px !important;
        min-width: 65px !important;
    }

    .top-controls .multiplier {
        font-size: 13px !important;
        min-width: 60px !important;
        padding: 3px 6px !important;
    }

    .grid {
        /*grid-gap: 1.8vw !important;*/
        padding: 8px 0 8px 0 !important;
        grid-template-columns: repeat(5, 67px)!important;
    }

    .grid button {
        width: 16vw !important;
        /* min-width: 36px !important; */
        /* max-width: 56px !important; */
        /* height: 9vw !important; */
        min-height: 32px !important;
        /* max-height: 40px !important; */
    }
}

@media (max-width: 599px){
    .grid{
        grid-template-columns: repeat(5, 98px)!important;
    }
}

@media (max-width: 499px){
    .grid{
        grid-template-columns: repeat(5, 81px)!important;
    }
}

@media (max-width: 400px){
    .grid{
        grid-template-columns: repeat(5, 67px)!important;
    }
}

.highlight-bomb {
    border: 3px solid #ff0000 !important;
    box-shadow: 0 0 16px 4px #ff0000 !important;
    z-index: 10 !important;
    position: relative !important;
}

/* Estilo para o input quando readonly */

/* Animação para botões do numpad */
.numpad .btn-game:hover {
    background-color: #0390cc !important;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.numpad .btn-game:active {
    transform: scale(0.95);
}

/* Estilo especial para o botão de confirmar */
.numpad .btn-done {
    /*background-color: #28a745 !important;*/
    font-weight: bold;
}

.numpad .btn-done:hover {
    /*background-color: #218838 !important;*/
}

/* Custom Select */
.custom-select {
    position: relative;
    display: inline-block;
}

.custom-select-trigger {
    background: #0267a5;
    color: #fff;
    border: 1px solid rgba(0, 0, 0, .5);
    padding: 6px 5px 6px 38px;
    border-radius: 20px;
    background-color: #00000026;
    box-shadow: inset 1px 1px #fff1cd33;
    font-size: 12px;
    height: 26px;
    width: 129px;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    outline: none;
    transition: all 0.3s ease;
}

.custom-select-trigger:hover {
    background-color: #0390cc;
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0267a5;
    border: 1px solid rgba(0, 0, 0, .5);
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    margin-top: 2px;
}

.custom-options.show {
    display: block;
}

.custom-option {
    background: #0267a5;
    color: #fff;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, .2);
    text-align: center;
}

.custom-option:first-child {
    border-radius: 20px 20px 0 0;
}

.custom-option:last-child {
    border-radius: 0 0 20px 20px;
    border-bottom: none;
}

.custom-option:only-child {
    border-radius: 20px;
}

.custom-option:hover {
    background: #0390cc;
    box-shadow: inset 1px 1px #fff1cd33;
}

.custom-option.selected {
    background: #0390cc;
    box-shadow: inset 1px 1px #fff1cd33;
}