html, body {
    height: 100%;
    margin: 0;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;    /* висота всього вікна */
}

.wrapper > main {
    flex: 1;               /* головний контент розтягується, щоб зайняти весь простір */
}

/*---GAME---*/
.gameframe { position: relative; width: 100%; max-width: 900px; height: 600px; margin: 20px auto; }
@media (max-width:767.98px){
    .gameframe {height: 255px;}
}

.gameframe .frameimg { display: block; width: 100%; height: auto;     position: absolute;}
.gameframe .frame16x9.hidden { display: none; }
.gameframe .darkness { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #000000; display: none; }
.gameframe .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0, 0.7);
    z-index: 1; }
.gameframe .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); padding: 12px 24px; background: #e74c3c; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 1rem;
    z-index: 99;}
.gameframe .loading {
    position: absolute;
    top: 50%;
    left: 37%;
    color: #fff;
    font-size: 1rem;
    display: none;
}
.gameframe .loader {
    position: absolute;
    top: 37%; left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    width: 50px; height: 50px;
    border: 6px solid rgba(255,255,255,0.3);
    border-top: 6px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 3;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.gameframe iframe { display: block; width: 100%;  border: none; }

.gameframe iframe canvas {
    width: 100%;
    height: auto;
}


/*PAYMENT PAGE*/
.bank-item {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 8px;
    transition: border-color .2s, box-shadow .2s;
}

.bank-item:hover,
.bank-item:has(input:checked) {
    border-color: rgba(255, 193, 7, 0.8);
}


.bank-item input:checked + img + div {
    color: #ffc107;
}

.main_balance span {
    font-size: large;
    font-weight: bold;
}


.modal-title {
    color: #000;
}

form label span {
    color: red;
}

.pb-2 .h1, .pb-2 h3 {
    text-align: center;
}


/*-----game-preview-------*/

.game-preview {
    position: relative;
    overflow: hidden;
}

.game-preview .game-img {
    display: block;
    width: 100%;
    height: auto;
    transition: filter 0.3s ease, transform 0.3s ease;
}


.game-preview .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.game-preview .game-title {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    white-space: nowrap;
    transition: top 0.3s ease;
    pointer-events: none;
    z-index: 2;
}


.game-preview .play-button {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: bottom 0.3s ease, opacity 0.3s ease;
    z-index: 2;
}

.game-preview:hover .game-img {
    filter: blur(3px) brightness(50%);
}

.game-preview:hover .overlay {
    background: rgba(0, 0, 0, 0.4);
}

.game-preview:hover .game-title {
    top: 10px;
}

.game-preview:hover .play-button {
    bottom: 40%;
    opacity: 1;
}
.no_balance_info {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    z-index: 99;
}
