.overlay{
    position: fixed;
    display: none;
    height: 100vh;
    width: 100vw;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.374);
    z-index: 100000;
}
.overlay.active{
    display: flex;
}
.round_loader{
    position: absolute;
    left: 50%;
    top: 50%;
    height: 0;
    width: 0;
     z-index: -5;
     transition: .1s ease-in-out;
}

.round_loader.active{
     left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: black;
    z-index: 50;

}

.round_loader img{
    width: 50%;
}

.loader{
    position: absolute;
    bottom: 10%;
    width: 50%;
    height: .5rem;
    border: 1px solid rgba(117, 117, 117, 0.218);
    background: rgba(128, 128, 128, 0.479);
    border-radius: .3rem;
}
.fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: red;
    border-radius: .3rem;
    transition: width linear; /* Add this line for smooth transition */
}

.aviator.reset{
    bottom: 1rem !important;
    left: 2rem !important;
    margin-left: .1rem !important;
    margin-bottom: .1rem !important;

}
.cil, .cil2{
    display: none;
}
.cil.active, .cil2.active{
    display: flex;
    position: absolute;
    z-index: 10;
    border-radius: 1rem;
    flex-direction: column;
    justify-content: space-evenly !important;

    width: 95%;
    height: 80%;
    background: red;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.cil .nr, .cil2 .nr2{
    font-size: .8rem;
    width: 100% !important;
    text-align: center;
    font-weight: 400;
 }

.cash_out, .cash_out2{
    display: none;
}

.cash_out2{
    position: absolute;
}
.cash_out.active, .cash_out2.active{
    display: flex;
    position: absolute;
    z-index: 20;
    border-radius: 1rem;

    width: 95%;
    height: 80%;
    background: rgb(255, 153, 0);
    font-size: 1.1rem;
    text-align: center;
    color: white;
}


.rel{
    position: relative;
}.game-alert-popup {
    padding: 1rem !important;
    max-width: 280px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.game-alert-icon {
    transform: scale(0.6); /* shrink icon */
    margin-bottom: -5px;
}

.game-alert-text {
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}
/* Dark Theme Styles */
.auth-popup {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
    border-radius: 12px !important;
    max-width: 420px;
    padding: 2rem !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Media query for smaller screen sizes */
@media screen and (max-width: 750px) {
    .auth-popup {
        max-width: 90vw !important;
    }
}

.auth-popup .swal2-title {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    font-weight: 300 !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 1.5rem !important;
}

.auth-popup .swal2-input {
    background-color: #2a2a2a !important;
    border: 1px solid #3a3a3a !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 12px 16px !important;
    margin: 8px 0 !important;
    transition: all 0.3s ease !important;
}

.auth-popup .swal2-input:focus {
    border-color: #4CAF50 !important;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2) !important;
}

.auth-popup .swal2-input::placeholder {
    color: #777 !important;
}

.auth-actions {
    margin-top: 1.5rem !important;
}

.auth-confirm {
    background-color: #4CAF50 !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 24px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.auth-confirm:hover {
    background-color: #3d8b40 !important;
    transform: translateY(-1px) !important;
}

.auth-cancel {
    background-color: transparent !important;
    color: #aaa !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 24px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.auth-cancel:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.auth-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-icon svg {
    width: 64px;
    height: 64px;
    color: #4CAF50;
    opacity: 0.8;
}

.auth-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #aaa;
}

.auth-footer a {
    color: #4CAF50 !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: #3d8b40 !important;
    text-decoration: underline;
}

/* Animation */
.swal2-show {
    animation: fadeInUp 0.3s !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nbr{
    border-right: none !important;
}
.floating {
    animation: floatUpDown 35s ease-in-out infinite !important;
  }
  .floating2 {
    animation: floatUpDownTwo 35s ease-in-out infinite !important;
  }
  @keyframes floatUpDown {
    0% {
        left: 80%;
        bottom: 80%;
        scale: 1.1; 
    }
    10% {
        left: 79%; /* 1% backward */
        bottom: 60%;
        scale: 1.1;
    }
    20% {
        left: 82%; /* 2% forward */
        bottom: 85%;
        scale: 1.1;
    }
    30% {
        left: 78%; /* 2% backward */
        bottom: 50%;
        scale: 1.1;
    }
    40% {
        left: 81%; /* 1% forward */
        bottom: 75%;
        scale: 1.1;
    }
    50% {
        left: 84%; /* 4% forward (max forward) */
        bottom: 40%;
        scale: 1.1;
    }
    60% {
        left: 80%; /* back to center */
        bottom: 70%;
        scale: 1.1;
    }
    70% {
        left: 77%; /* 3% backward */
        bottom: 55%;
        scale: 1.1;
    }
    80% {
        left: 80%; /* back to center */
        bottom: 85%;
        scale: 1.1;
    }
    90% {
        left: 76%; /* 4% backward (max backward) */
        bottom: 45%;
        scale: 1.1;
    }
    100% {
        left: 80%;
        bottom: 80%;
        scale: 1.1; 
    }
}

@keyframes floatUpDownTwo {
    0% {
        width: 100%;
        height: 100%;
    }
    10% {
        width: 98.75%; /* 79/80 = 98.75% */
        height: 75%;
    }
    20% {
        width: 102.5%; /* 82/80 = 102.5% */
        height: 106.25%;
    }
    30% {
        width: 97.5%; /* 78/80 = 97.5% */
        height: 62.5%;
    }
    40% {
        width: 101.25%; /* 81/80 = 101.25% */
        height: 93.75%;
    }
    50% {
        width: 105%; /* 84/80 = 105% */
        height: 50%;
    }
    60% {
        width: 100%; /* 80/80 = 100% */
        height: 87.5%;
    }
    70% {
        width: 96.25%; /* 77/80 = 96.25% */
        height: 68.75%;
    }
    80% {
        width: 100%; /* 80/80 = 100% */
        height: 106.25%;
    }
    90% {
        width: 95%; /* 76/80 = 95% */
        height: 56.25%;
    }
    100% {
        width: 100%;
        height: 100%;
    }
}