@media screen and (max-width: 360px) {
    .fa-language {
        display: none;
    }

    .login {
        background-color: #109c45;
        color: white;
        border: 1px solid #46a345;
        padding: 3px 10px;
        border-radius: 15px;
        cursor: pointer;
        position: relative;
        right: -8px;
    }

    .join-now {
        background-color: white;
        color: #109c45;
        border: 1px solid white;
        padding: 3px 10px;
        margin-right: 10px;
        border-radius: 15px;
        cursor: pointer;
        position: relative;
        right: -30px;
    }

    #username-log {
        color: white;
        padding: 3px 10px;
        font-size: 12px;
    }

    #theopen-three {
        right: 13px !important;
    }

    .balance-value {
        font-size: 14px;
        font-weight: bold;
        text-align: center;
    }

    .ziboard {
        position: absolute;
        top: 60px;
        display: flex;
        justify-content: center;
        flex-direction: column;
        width: 100%;
        margin: 0px auto;
        font-family: Arial, sans-serif;
        color: #fff;
        opacity: 0;
    }

    .board {
        display: grid;
        grid-template-columns: 1fr 1.5fr 1fr 1fr;
        margin: 0 auto;
        border-collapse: collapse;
        width: 100%;
    }

    .dvautocheckbox label {
        position: relative;
        left: -20px;
    }

    #autbtnid {
        font-size: 12px;
    }

    .bet-button {
        background-color: #109c45;
        border: 1px solid green;
        border-radius: 10px;
        color: white;
        line-height: 35px;
        font-size: 13px;
        width: 90%;
        display: block;
        margin: 12px auto;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }
}

@media screen and (max-width:400px) {
    .login {
        background-color: #109c45;
        color: white;
        border: 1px solid #46a345;
        padding: 3px 10px;
        border-radius: 15px;
        cursor: pointer;
        position: relative;
        right: -8px;
    }
}

.luckyboxtab .game-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    width: 100%;
    margin: 0 auto;
    padding: 25px;
}

.luckyboxtab .box {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ff4b1f, #1fddff);
    border-radius: 12px;
    font-size: calc(1.2rem + 0.5vw);
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.luckyboxtab .box:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.luckyboxtab .highlighted {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    box-shadow: 0 0 20px #ffd700, 0 0 30px #ffa500;
}

.luckyboxtab .highlighted::after {
    content: '\2713';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 20px;
    color: green;
}

.luckyboxtab .special {
    background: linear-gradient(135deg, #8e44ad, #3498db);
    border: 2px solid #fff;
    color: #f1c40f;
}

.luckyboxtab .circle {
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
}

.luckyboxtab .multiplier {
    position: relative;
    bottom: -30px;
    width: 78%;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    padding: 2px 0;
}

.luckyboxtab .stake-container {
    margin: 20px 0;
    text-align: center;
    color: #fff;
}

.luckyboxtab .stake-container input {
    padding: 5px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
}

.luckyboxtab .result {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

@media screen and (max-width: 768px) {
    .luckyboxtab .game-container {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 8px;
    }

    .luckyboxtab .box {
        font-size: calc(1rem + 0.3vw);
    }
}

.toptop {
    display: flex;
    justify-content: space-between;
    height: 60px;
    height: 40px;
    line-height: 40px;
    padding: 0px 10px;
    background-image: linear-gradient(rgb(0, 255, 111) 0%, rgba(53, 88, 186, 0) 150%);
}

#theopen-three {
    color: white;
    font-size: 22px;
    margin-top: 10px;
}

.takeofflogo-x {
    height: 25px;
}

.backnlogo {
    display: grid;
    grid-template-columns: 0.5fr 2.5fr;
    gap: 15px;
}

.wall-balancexx {
    background-color: #0f210f;
    color: white;
    padding: 0px 10px;
    display: flex;
    justify-content: space-evenly;
    align-items: revert;
    margin-top: 0px;
    margin-left: 0px;
    margin-right: 0px;
    width: 100%;
    border-bottom: 1px solid #063f06;
}

.balance-label {
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    height: 15px;
    line-height: 15px;
}

.balance-value {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    height: 15px;
    line-height: 15px;
}

.balance-value span {
    color: #33ccff;
}

.jcK88Ljd {
    display: grid;
    grid-template-rows: 1fr 1fr;
    text-align: center;
    height: 30px;
    padding-top: 10px;
}

.redeemdiv {
    text-align: right;
    line-height: 40px;
    margin-top: 2px;
}

.redeembtns {
    background-color: #397f12;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 5px;
    position: relative;
}

.slide-panel {
    position: fixed;
    top: -100vh;
    /* hidden above the screen */
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #121212;
    color: white;
    z-index: 20999;
    transition: top 0.4s ease-in-out;
    padding: 20px;
    overflow-y: auto;
}

.slide-panel.show {
    top: 0;
}

/* Prevent initial tab flashes before activation */
.tab-content .tab-pane {
    display: none !important;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    transform: translateY(20px);
    /* optional: slight slide effect */
}

/* When tab becomes active */
.tab-content .tab-pane.active.show {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

#closebtn {
    color: #ffffff !important;
    font-size: 30px;
}