input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* Custom scrollbar hide */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

#wrapper {
    width: 100%;
    position: relative;
    height: auto;    /* Make sure the wrapper takes full viewport height */
    overflow-y: auto; /* Allow vertical scrolling */
    box-sizing: border-box;
}


#header {
    display: flex;
    width: 100%;
    flex-direction: row;
    max-width: 500px;
    align-items: end;
    overflow: hidden;
}



#last-counters p {
    padding: 2px 8px;
    border-radius: 11px;
    border-width: 1px;
    border-style: solid;
    margin: 0 5px;
}

.blueBorder {
    color: rgb(52, 180, 255);
    border-color: rgb(52, 180, 255);
}

.purpleBorder {
    color: rgb(145, 62, 248);
    border-color: rgb(145, 62, 248);
}

.burgundyBorder {
    color: rgb(51, 192, 23);
    border-color: rgb(23, 192, 82);
}

#mid-wrapper {
    position: relative;
    width: auto;
    display: flex;
    flex-direction: column;
    margin: 20px 20px 0 20px;
    align-items: center;
    overflow: hidden;
}

#counterWrapper {
    position: relative;
    top: 20%; 
    z-index: 10;
    width: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* max-width: 500px; */
    overflow: hidden;
    margin: 0 auto;
    padding: 0 1px;
    border-radius: 20px;
}

/* Pre-filled betting amount buttons */
#bet-amount-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

#bet-amount-wrapper p {
    font-size: 18px;
    color: white;
    margin-bottom: 10px;
}

#loader {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: 20px;
}

#bg-image {
    position: absolute;
    width: 300%;
    height: 450%;
    /* overflow: hidden; */
    top: 100%;
    left: 0%;
    transform: translate(-72%, -46%);
}

#counterWrapper #bg-image::before {
    content: '';
    background-image: url('/static/img/aviator-re-bg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    width: 150%;
    height: 100%;
    min-width: 100%;
    top: 0;
    left: 0;
    animation: rotation 8s infinite linear;
    transform-origin: 49% 50%;
}

@-webkit-keyframes rotation {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

@-moz-keyframes rotation {
    from {
        -moz-transform: rotate(0deg);
    }

    to {
        -moz-transform: rotate(360deg);
    }
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#canvas {
    width: 100%;
    /* max-width: 500px; */
    height: 400px;
    display: block;
    border: 1px solid #2a2b2e;
    border-radius: 20px;
    margin: 0 auto;
    z-index: 6;
    overflow: hidden;
}

#counter {
    position: absolute;
    top: 10%;
    left: 42%;
    font-size: 42px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: white;
    z-index: 999;
}


/* Responsive tweaks */
@media (max-width: 768px) {
    #counterWrapper {
        height: auto;
        width: auto;
    }
    
    #canvas {
        width: 100%;
        height: 300px;
    }

    #counter {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    #counterWrapper {
        height: auto;
        width: auto;
    }

    #canvas {
        width: 100%;
        height: 200px;
    }

    #counter {
        font-size: 24px;
    }
}

#bottom-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: row;
    padding: 20px 5px;
    max-width: 500px;
}

#input-wrapper {
    position: relative;
    width: 100%;
}

#message {
    color: #fb024c;
    font-size: 16px;
    font-weight: 500;
}

#message-button {
    display: flex;
    flex-direction: column;
}

/* General styling for all player lists */
.dropdown-wrapper {
    margin: 20px 0;
    padding: 10px;
    width: 100%;
    max-width: 500px;
    background-color: #1f1f1f;
    border-radius: 10px;
    color: #ffffff;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: #00ff99;
}

/* 
.dropdown-content {
    overflow: hidden;
    height: 0;
    transition: height 0.3s ease;
}

.dropdown-content.show {
    height: auto; 
}


.dropdown-content {
    display: none;
    padding: 10px;
    background-color: #2a2b2e;
    border-radius: 5px;
}

.chevron {
    transition: transform 0.3s ease;
}

.rotate {
    transform: rotate(180deg); 
}

#betting-players-wrapper, #winners-wrapper, #losers-wrapper {
    margin: 20px 0;
    padding: 10px;
    width: 100%;
    max-width: 500px;
    background-color: #1f1f1f;
    border-radius: 10px;
    color: #ffffff;
}

#betting-players-wrapper h3, #winners-wrapper h3, #losers-wrapper h3 {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #ff6a00; 
}

.player {
    padding: 10px;
    margin: 5px 0;
    border: solid 1px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 100;
    color: #ffffff;
}

#betting-players .player {
    border-color: #00bfff; 
}

#winners .player {
    border-color: #32cd32;
}

#losers .player {
    border-color: #ff4500; 
} */