body .card img:not([class]) {
    width: 100%;
}

.bg-bg {
    background: rgb(var(--bg));
}

.bg-main-bg {
    background: rgb(var(--main-bg));
}

.bg-dark {
    background-color: rgb(var(--main-bg)) !important;
}

.bg-primary {
    background: rgb(var(--bg-primary)) !important;
}

.alert.bg-primary {
    color: var(--text-color)
}

.text-main {
    color: rgb(var(--main-color))
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    color: rgb(var(--text));
    background-color: rgb(var(--bg));
}

.nav-link {
    color: rgb(var(--text-dark));
}

.nav-link:focus,
.nav-link:hover {
    color: rgba(var(--text-dark), 80%);
}

.nav-link.active {
    color: rgb(var(--main-color));
}

/* Primary Button */
.btn-primary {
    --bs-btn-color: var(--btn-primary-text-color);
    --bs-btn-bg: var(--btn-primary);
    --bs-btn-border-color: var(--btn-primary);

    --bs-btn-hover-color: var(--btn-primary-text-color);
    --bs-btn-hover-bg: var(--btn-primary-hover);
    --bs-btn-hover-border-color: var(--btn-primary-hover);

    --bs-btn-active-color: var(--btn-primary-text-color);
    --bs-btn-active-bg: var(--btn-primary-active);
    --bs-btn-active-border-color: var(--btn-primary-active);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);

    --bs-btn-focus-shadow-rgb: 255, 255, 255;

    --bs-btn-disabled-color: var(--btn-primary-disabled-color);
    --bs-btn-disabled-bg: var(--btn-primary-disabled-bg);
    --bs-btn-disabled-border-color: var(--btn-primary-disabled-border-color);
}

/* Secondary Button */
.btn-secondary {
    --bs-btn-color: var(--btn-secondary-text-color);
    --bs-btn-bg: var(--btn-secondary);
    --bs-btn-border-color: var(--btn-secondary);

    --bs-btn-hover-color: var(--btn-secondary-text-color);
    --bs-btn-hover-bg: var(--btn-secondary-hover);
    --bs-btn-hover-border-color: var(--btn-secondary-hover);

    --bs-btn-active-color: var(--btn-secondary-text-color);
    --bs-btn-active-bg: var(--btn-secondary-active);
    --bs-btn-active-border-color: var(--btn-secondary-active);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);

    --bs-btn-focus-shadow-rgb: 255, 255, 255;

    --bs-btn-disabled-color: var(--btn-secondary-disabled-color);
    --bs-btn-disabled-bg: var(--btn-secondary-disabled-bg);
    --bs-btn-disabled-border-color: var(--btn-secondary-disabled-border-color);
}

/* Success Button */
.btn-success {
    --bs-btn-color: var(--btn-success-text-color);
    --bs-btn-bg: var(--btn-success);
    --bs-btn-border-color: var(--btn-success);

    --bs-btn-hover-color: var(--btn-success-text-color);
    --bs-btn-hover-bg: var(--btn-success-hover);
    --bs-btn-hover-border-color: var(--btn-success-hover);

    --bs-btn-active-color: var(--btn-success-text-color);
    --bs-btn-active-bg: var(--btn-success-active);
    --bs-btn-active-border-color: var(--btn-success-active);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);

    --bs-btn-focus-shadow-rgb: 255, 255, 255;

    --bs-btn-disabled-color: var(--btn-success-disabled-color);
    --bs-btn-disabled-bg: var(--btn-success-disabled-bg);
    --bs-btn-disabled-border-color: var(--btn-success-disabled-border-color);
}

/* Danger Button */
.btn-danger {
    --bs-btn-color: var(--btn-danger-text-color);
    --bs-btn-bg: var(--btn-danger);
    --bs-btn-border-color: var(--btn-danger);

    --bs-btn-hover-color: var(--btn-danger-text-color);
    --bs-btn-hover-bg: var(--btn-danger-hover);
    --bs-btn-hover-border-color: var(--btn-danger-hover);

    --bs-btn-active-color: var(--btn-danger-text-color);
    --bs-btn-active-bg: var(--btn-danger-active);
    --bs-btn-active-border-color: var(--btn-danger-active);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);

    --bs-btn-focus-shadow-rgb: 255, 255, 255;

    --bs-btn-disabled-color: var(--btn-danger-disabled-color);
    --bs-btn-disabled-bg: var(--btn-danger-disabled-bg);
    --bs-btn-disabled-border-color: var(--btn-danger-disabled-border-color);
}

/* Warning Button */
.btn-warning {
    --bs-btn-color: var(--btn-warning-text-color);
    --bs-btn-bg: var(--btn-warning);
    --bs-btn-border-color: var(--btn-warning);

    --bs-btn-hover-color: var(--btn-warning-text-color);
    --bs-btn-hover-bg: var(--btn-warning-hover);
    --bs-btn-hover-border-color: var(--btn-warning-hover);

    --bs-btn-active-color: var(--btn-warning-text-color);
    --bs-btn-active-bg: var(--btn-warning-active);
    --bs-btn-active-border-color: var(--btn-warning-active);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);

    --bs-btn-focus-shadow-rgb: 255, 255, 255;

    --bs-btn-disabled-color: var(--btn-warning-disabled-color);
    --bs-btn-disabled-bg: var(--btn-warning-disabled-bg);
    --bs-btn-disabled-border-color: var(--btn-warning-disabled-border-color);
}

/* Info Button */
.btn-info {
    --bs-btn-color: var(--btn-info-text-color);
    --bs-btn-bg: var(--btn-info);
    --bs-btn-border-color: var(--btn-info);

    --bs-btn-hover-color: var(--btn-info-text-color);
    --bs-btn-hover-bg: var(--btn-info-hover);
    --bs-btn-hover-border-color: var(--btn-info-hover);

    --bs-btn-active-color: var(--btn-info-text-color);
    --bs-btn-active-bg: var(--btn-info-active);
    --bs-btn-active-border-color: var(--btn-info-active);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);

    --bs-btn-focus-shadow-rgb: 255, 255, 255;

    --bs-btn-disabled-color: var(--btn-info-disabled-color);
    --bs-btn-disabled-bg: var(--btn-info-disabled-bg);
    --bs-btn-disabled-border-color: var(--btn-info-disabled-border-color);
}

.table-dark {
    --bs-table-color: rgb(var(--text)); /* Text color */
    --bs-table-bg: rgb(var(--bg)); /* Background color */
    --bs-table-border-color: rgb(var(--main-bg)); /* Border color */

    --bs-table-striped-bg: rgba(var(--main-bg), 0.05); /* Striped rows background */
    --bs-table-striped-color: var(--text); /* Text color for striped rows */

    --bs-table-active-bg: rgba(var(--main-bg), 0.15); /* Active row background */
    --bs-table-active-color: var(--text-dark); /* Text color for active row */

    --bs-table-hover-bg: rgba(var(--main-bg), 0.1); /* Hovered row background */
    --bs-table-hover-color: var(--text-info); /* Text color for hovered row */

    color: var(--bs-table-color);
    background-color: var(--bs-table-bg);
    border-color: var(--bs-table-border-color);
}


a.dropdown-item {
    padding: 15px;
}

.dropdown-item.active, .dropdown-item:active {
    color: rgb(var(--text));
    background-color: rgb(var(--bg));
}

.link-primary, .text-primary {
    color: rgb(var(--main-color)) !important;
}

.link-primary:focus, .link-primary:hover {
    color: rgba(var(--main-color), 50%) !important;
}

fieldset:disabled .btn {
    color: var(--btn-primary-disabled-color) !important;
    pointer-events: none;
    background-color: var(--btn-primary-disabled-bg) !important;
    border-color: var(--btn-primary-disabled-border-color) !important;
    opacity: var(--btn-primary-disabled-opacity) !important;
}

.list-group-item-action:focus, .list-group-item-action:hover {
    background: rgba(var(--main-bg), 70%) !important;
}

.card .list-group-item-action:focus, .card .list-group-item-action:hover {
    background: rgba(var(--bg), 70%) !important;
}

.border-primary {
    border-color: var(--btn-primary);
}

.pagination {
    --bs-pagination-bg: rgb(var(--bg));
    --bs-pagination-focus-box-shadow: 0 0 0 0.10rem rgba(var(--main-color), 0.25);
}

.pagination .disabled > .page-link,
.pagination .page-link.disabled {
    color: rgb(var(--text));
    background-color: rgb(var(--main-bg));
    border-color: rgb(var(--bg));
}

.pagination .active > .page-link,
.pagination .page-link.active {
    color: rgb(var(--text));
    background-color: var(--btn-primary);
    border-color: rgb(var(--bg));
}

.pagination .page-link {
    background-color: rgb(var(--main-bg));
    color: rgb(var(--main-color));
    border-color: rgb(var(--bg));
}

.pagination .page-link:hover {
    background-color: rgba(var(--main-bg), 50%);
    color: rgb(var(--main-color));
    border-color: rgb(var(--bg));
}

.pagination .page-item:last-child .page-link,
.pagination .page-item:first-child .page-link {
    background-color: rgb(var(--main-bg));
    color: rgb(var(--main-color));
    border-color: rgb(var(--bg));
}

.modal-content {
    background-color: rgb(var(--bg));
    background-clip: padding-box;
    border-color: rgb(var(--main-bg));
}

.modal-header, .modal-footer {
    border-color: rgb(var(--main-color));
}

.form-control {
    background-color: rgb(var(--bg));
    border-color: rgba(var(--main-bg), 80%);
    background-clip: padding-box;
    color: rgba(var(--text));
}

.form-select {
    background-color: rgb(var(--bg));
    border-color: rgba(var(--main-bg), 80%);
    background-clip: padding-box;
    color: rgba(var(--text));
}

.form-control:focus {
    background-color: rgb(var(--bg));
    border-color: rgba(var(--main-bg), 80%);
    color: rgba(var(--text));
}

.list-group-item.active {
    color: var(--text-color);
    background-color: var(--btn-primary);
    border-color: var(--btn-primary);
}

.card {
    background: linear-gradient(rgb(var(--main-bg)) -12.18%, rgb(var(--main-bg)) 86.88%, rgb(var(--main-bg)) 103.8%);
    border-color: rgb(var(--main-bg));
    border-radius: 0;
}


.server-view .img-thumbnail {
    background-color: rgb(var(--main-bg));
    border: 1px solid rgb(var(--main-color));
    width: 270px;
}


.server-modal .modal-content {
    background: linear-gradient(0deg, rgb(var(--main-bg)) 71.09%, rgba(19, 24, 33, 0) 129.73%), rgb(var(--main-bg));
    box-shadow: 0 4px 134px 0 rgba(0, 0, 0, .37);
    border-radius: 30px;
}

.server-modal .modal-header {
    display: flex;
    flex-direction: column;
}

.server-modal .ctteam img, .server-modal .tteam img {
    margin: 0 25px;
    width: 60px;
}

.server-modal .ctteam, .server-modal .tteam {
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
}

.server-modal .sid {
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-color);
    text-align: center;
}

.server-modal .score {
    font-weight: 700;
    font-size: 25px;
    line-height: 30px;
    margin-bottom: 6px;
    color: #fff;
}

.server-modal .s-time {
    color: var(--text-color);
    font-weight: 500;
    font-size: 12px;
}

.modal-dialog.server-modal {
    transform: none;
    bottom: 0;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    mix-blend-mode: normal;
    pointer-events: none;
    display: flex;
    margin-top: 0;
}

.server-modal .modal-header .btn-close {
    height: 40px;
}

.server-modal .modal-header {
    position: relative;
}

.server-modal .modal-bg img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.server-modal .modal-bg {
    background-position: 50% !important;
    background-repeat: no-repeat !important;
    height: 128px;
    background-size: contain;
    margin: 0 0 24px;
    border-radius: 12px 12px 0 0;
    opacity: .15;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    mask-image: linear-gradient(180deg, rgb(var(--main-bg)), #0000);
}

.server-modal td.srv-avatar img {
    height: 23px;
    width: 23px;
    border-radius: 50px;
}

.server-modal .table {
    font-weight: 400;
    font-size: 12px;
    color: #fff;
    vertical-align: middle;
}

.server-modal td.srv-rank img {
    height: 20px;
}

.server-modal table.table.server-players td, table.table.server-players th {
    text-align: center;
}

.server-modal tr.s-head {
    text-transform: uppercase;
    background: rgb(var(--bg));
    border: unset;
}

.server-modal .modal-header {
    border: unset;
}

.server-modal .srv-name {
    max-width: 400px;
    overflow: hidden;
}

.server-modal .table-responsive {
    max-height: 300px;
    overflow-y: auto;
}

.table-responsive .text-center tr > th {
    text-align: center;
}

.server-modal .country img {
    height: 10px !important;
}

.server-modal .srv-avatar {
    position: relative;
}

.server-modal .country {
    position: absolute;
    right: 20px;
    bottom: 0px;
}

.server-modal table.table.server-players th {
    border: unset;
}

.server-modal .modal-footer button, .server-modal .modal-footer a {
    background: transparent;
    border: transparent;
    font-size: 12px;
    color: #fff;
    opacity: .5;
    outline: none;
    box-shadow: unset;
}

.server-modal .modal-footer a {
    opacity: 1;
}

.server-modal .modal-footer {
    display: flex;
    justify-content: space-between;
    border: transparent;
    background: rgb(var(--bg));
}

.server-modal .table tr {
    display: grid;
    grid-template-columns: 80px 110px 1fr 1fr 1fr 1fr 1fr;
}


.server img {
    z-index: -1;
    position: absolute;
    filter: opacity(0.3);
    object-fit: cover !important;
    height: 100% !important;
    width: 100% !important;
    transition: .3s;
}


.server:hover > img {
    filter: unset !important;
    transition: .3s;
}

.servers {
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
}

.server {
    position: relative;
    height: auto;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%; /* Ensures full width within the grid */
}

.servers .row {
    width: 100%;
}

.servers .row .col-12.col-sm-6.col-md-6.col-lg-3 {
    margin-bottom: 1rem; /* Adjust bottom margin between rows */
}

.servers.single-server {
    justify-content: center; /* Center a single server */
}

.copy:hover, .server a:hover {
    background: rgba(var(--main-bg), 30%);
    transition: .3s;
}


.copy:hover, .server a:hover {
    background: rgba(var(--main-bg), 30%);
    transition: .3s;
}

.copy {
    border-radius: 12px 0;
    color: var(--text-color);
    display: flex;
    transition: .3s;
    z-index: 1;
    text-align: center;
    justify-items: center;
    cursor: pointer;
    height: 40px;
    align-items: center;
    width: 40px;
    position: absolute;
    top: 0;
    opacity: 1;
    right: 0;
    justify-content: center;
    text-decoration: none;
}

.server a {
    border-radius: 12px 0;
    color: var(--text-color);
    display: flex;
    transition: .3s;
    z-index: 25;
    text-align: center;
    justify-items: center;
    height: 40px;
    align-items: center;
    width: 40px;
    position: absolute;
    bottom: 0;
    opacity: 1;
    right: 0;
    justify-content: center;
    text-decoration: none;
}

.s-name {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 80%;
}

.s-rank {
    font-size: 12px;
    opacity: .6;
}

.s-count {
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: .6;
}


.carousel-indicators {
    position: relative;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    padding: 0;
    margin-right: unset;
    margin-bottom: unset;
    margin-left: unset;
    list-style: none;
}

.carousel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.carousel-indicators [data-bs-target] {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 20px;
    height: 20px;
    padding: 0;
    margin-right: 3px;
    margin-left: 3px;
    text-indent: -999px;
    cursor: pointer;
    background-color: transparent;
    background-clip: padding-box;
    opacity: .5;
    transition: opacity .6s ease;
    border: 2px solid rgb(var(--main-bg));
    border-radius: 50px;
}

.carousel-indicators [data-bs-target].active {
    opacity: 1;
    border-color: rgb(var(--main-color)) !important;
}

.carousel-indicators [data-bs-target] {
    border-color: var(--text-color);
}


.carousel-slide-bg {
    background-size: cover;
    background-position: center;
    height: 350px; /* Reduce height for a more balanced view */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.carousel-content {
    width: 100%;
    padding: 30px; /* Adjust padding for better spacing */
}

.carousel-text {
    flex: 1;
    padding-left: 30px; /* Reduce left padding for better balance */
    max-width: 70%; /* Keep content to half of the width */
    background: rgba(var(--main-bg), 0.54);
    border-radius: 1em;
}


.carousel-text-title {
    color: rgb(var(--main-color));
}

.carousel-text h3 {
    font-size: 3rem; /* Reduce title size slightly */
    font-weight: 800; /* Stronger font-weight */
}

.carousel-text p {
    font-size: 1.5rem; /* Reduce text size slightly */
    line-height: 1.4;
}

.carousel-action {
    padding-right: 30px; /* Reduce right padding for better balance */
}

.carousel-action a {
    font-size: 1.5rem; /* Adjust button size slightly */
    padding: 12px 25px; /* Adjust padding for the button */
}

.carousel-slide-bg {
    user-select: none; /* Prevent text selection on the carousel background */
}

.carousel-text, .carousel-action {
    user-select: none; /* Prevent text selection on the text and action button */
}


.or-divider {
    position: relative;
    width: 0.3em;
    height: 2.57142857em;
    z-index: 3;
}

.profile-buttons .or-divider:before {
    position: absolute;
    text-align: center;
    content: 'OR';
    border-radius: 500rem;
    top: 50%;
    left: 50%;
    background-color: rgb(var(--bg));
    text-shadow: none;
    margin-top: -0.89285714em;
    margin-left: -0.89285714em;
    width: 1.78571429em;
    height: 1.78571429em;
    line-height: 1.78571429em;
    color: white;
    font-style: normal;
    font-weight: 700;
    -webkit-box-shadow: 0 0 0 1px transparent inset;
    box-shadow: 0 0 0 1px transparent inset;
}


.sidebar-menu .nav-link {
    color: var(--text-color);
    padding: 0.75rem 1rem;
}

.sidebar-menu .nav-link:hover {
    color: var(--text-color);
    background-color: rgb(var(--bg));
}

.sidebar-menu .sub-menu {
    display: none; /* Hidden by default */
}

.sidebar-menu .sub-menu .dropdown-item {
    padding: 0.5rem 1.5rem;
    color: #ffffff;
}

.sidebar-menu .dropdown-item.active, .sidebar-menu .dropdown-item:active {
    color: rgb(var(--main-color));
    background-color: transparent;
}

.sidebar-menu .sub-menu .dropdown-item:hover {
    background-color: rgb(var(--bg));
}

.sidebar-menu .nav-item.opened > .nav-link {
    background-color: rgb(var(--bg));
}

.support-content {
    margin: 0 auto;
}

.slide-container img, #article-content img {
    width: 100%;
}

@media (max-width: 991px) {
    .slide-container img, #article-content img {
        width: 100% !important;
    }
}

.wiki-content-desktop {
    position: sticky;
    top: 4rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding-right: 15px;
}


.slide-main-wrapper {
    max-width: 1000px;
    position: relative; /* Ensure this is relative to allow absolute positioning within */
    margin-bottom: 40px;
}

.slide-wrapper {
    justify-content: center;
    display: flex;
    width: 100%;
    margin-bottom: 10px;
}

.slide-container {
    display: none;
}

.slide-nav-prev, .slide-nav-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Center vertically */
    width: auto;
    padding: 17px;
    color: grey;
    font-weight: bold;
    font-size: 19px;
    transition: .4s ease;
    user-select: none;
}

.slide-nav-prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.slide-nav-next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.slide-nav-prev:hover, .slide-nav-next:hover {
    background-color: rgb(var(--bg));
}

.slide-indicator {
    cursor: pointer;
    height: 16px;
    width: 16px;
    margin: 0 3px;
    background: linear-gradient(92.18deg, var(--text-color) .78%, var(--text-color-dark) 123.02%);
    opacity: .3;
    border-radius: 50%;
    display: inline-block;
    transition: background-color .5s ease;
}

.slide-indicator-active, .slide-indicator:hover {
    background: linear-gradient(92.18deg, rgb(var(--main-color)) -25.78%, rgb(var(--main-color)) 123.02%);
    opacity: 1;
}

.slide-fade {
    -webkit-animation-name: slide-fade;
    animation-name: slide-fade;
    -webkit-animation-duration: 1.4s;
    animation-duration: 1.4s;
}

@-webkit-keyframes slide-fade {
    from {
        opacity: .5;
    }
    to {
        opacity: 1;
    }
}

@keyframes slide-fade {
    from {
        opacity: .5;
    }
    to {
        opacity: 1;
    }
}


.stats-container {
    overflow: hidden;
    border-radius: 6px;
    position: relative;
    top: 0;
    left: 0;
}

.stats-number {
    font-size: 18px;
    font-weight: 600;
    margin-right: 5px;
    color: rgb(var(--main-color));
}

.stats-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    transition: .3s;
}

.stats-subtitle {
    transform: translateY(28px);
    opacity: 0;
    position: relative;
    visibility: hidden;
    transition: .3s;
    font-size: 12px;
    font-weight: 600;
    color: rgb(var(--main-color));
}

.stats-content-wrapper {
    width: 170px;
}

.stats-content {
    display: flex;
    transform: translateY(10px);
    font-size: 18px;
    font-weight: 800;
    transition: .3s;
    z-index: 2;
}

.stats-box {
    display: flex !important;
    background-color: rgb(var(--main-bg));
    padding: 5px 15px;
    border-radius: 4px;
    position: relative;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    align-items: center;
    width: 100%;
}

.stats-icon {
    z-index: 2;
    display: flex;
    right: 15px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: .3s;
    margin-left: 20px;
}
.stats-icon i{
    color: rgb(var(--main-color));
}

.stats-box:hover .stats-label {
    transform: translateY(-50px);
    opacity: 1;
    visibility: visible;
    transition: .3s;
}

.stats-box:hover .stats-content {
    color: var(--text-color);
    transform: translateY(0px);
    transition: .3s;
}

.stats-box:hover .stats-subtitle {
    transform: translateY(-2px);
    opacity: 1;
    visibility: visible;
    transition: .3s;
}

.stats-box:hover .stats-number {
    color: var(--text-color);
}

.stats-box-wrapper {
    flex: 1 1 20%; /* This makes each item take up 20% of the row */
    max-width: 20%; /* Ensures 5 items per row */
}


.sidebar {
    margin-bottom: 15px;
}

.sidebar ul.payments {
    display: flex;
}

.sidebar ul.payments .payment {
    margin: 0 5px 0 5px;
}

.sidebar .card-header {
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 18px;
}

.sidebar .payment img {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius: 6px;
}

.sidebar .top-donator .card-header {
    color: #fff;
    letter-spacing: 2px;
    padding: 0;
    text-align: center;
    font-size: 17px;
    font-weight: bold;
    text-transform: uppercase;
    background: transparent;
    border-color: var(--main-color);
}

.sidebar .top-donator .info .ign {
    margin-top: 2px !important;
    margin-bottom: 0 !important;
    font-size: 15px !important;
}

.sidebar .top-donator .avatar {
    overflow: hidden;
}

.sidebar .top-donator .card-body {
    padding: 5px;
}

.sidebar .top-donator .card-body {
    padding: 5px 0px 0 0px;
}

.sidebar .top-donator .avatar {
    position: relative;
    float: left;
    width: 40%;
}

.sidebar .top-donator .avatar .user-avatar {
    width: 96px;
    height: 83px;
    font-size: 58px;
}

.sidebar .top-donator .info {
    float: left;
    width: 65%;
    text-align: left;
}

.sidebar .top-donator {
    display: flex;
    align-items: center;
}

.sidebar .top-donator .avatar img {
    width: 55px;
}


.leaderboards .ranking-points {
    position: absolute;
    padding-left: 22px;
    padding-top: 2px;
    font-style: italic;
    font-weight: 700;
}

.leaderboards .ranking-image {
    height: 35px;
    font-size: 16px;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    text-shadow: 0 1px 0 black;
    font-weight: 700;
    margin: auto;
}

.leaderboards .top-name {
    color: var(--k4main-color);
    font-weight: 700;
    user-select: none;
    font-size: 10px;
    max-width: 45px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}


.leaderboards .stats-block {
    background-color: var(--k4second-bg);
    height: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 5px;
    justify-content: center;
    overflow: hidden;
}

.leaderboards .stats-title {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bolder;
    color: var(--k4main-color);
    opacity: .8;
}

.leaderboards .stats-color {
    font-size: 18px;
    font-weight: 700;
    color: var(--k4main-color);
}

.leaderboards .top-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
    width: 100%;
    height: 100%;
    justify-items: center;
    grid-gap: 15px;
}

#leaderboards-server-data .top-stats {
    grid-template-columns: repeat(4, 1fr);
}


.rank-badge {
    display: inline-block;
    padding: 3px 8px 4px;
    font-weight: 600;
    min-width: 1.75rem;
    height: 1.75rem;
    box-sizing: border-box;
    font-size: 1rem;
    line-height: 1.2rem;
    vertical-align: middle;
    border-radius: 4px;
    background-color: #757575;
    color: white;
}

.rank-username-1 {
    color: #ffd700;
}

.rank-username-2 {
    color: #c0c0c0;
}

.rank-username-3 {
    color: #CD7F32;
}

.rank-border-1 {
    border-bottom: 2px solid #ffd700;
}

.rank-border-2 {
    border-bottom: 2px solid #c0c0c0;
}

.rank-border-3 {
    border-bottom: 2px solid #CD7F32;
}

.leaderboards .stats-block .rank-image img {
    max-width: 110px;
    height: auto;
}

.leaderboards .top-player {
    justify-content: center;
    background-color: var(--k4main-bg);
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 13px 13px;
    align-items: center;
    gap: 10px;
}

.leaderboards .top-players {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}


.leaderboards .table .rating-rank {
    width: 100%;
    height: 100%;
}


/* Target the table and change the background */
.table-responsive table {
    background-color: rgb(var(--bg)) !important; /* Override background */
    width: 100% !important; /* Ensure the table takes full width */
}

/* Target table rows */
.table-responsive tbody tr {
    background-color: rgb(var(--main-bg)) !important;
    border-radius: 10px;
    transition: background-color 0.3s ease !important;
}

/* Hover effect */
.table-responsive tbody tr:hover {
    background-color: rgba(var(--main-bg), 0.7) !important;
}


/* Ensure table layout works correctly */
.table-responsive {
    border-collapse: separate !important;
    border-spacing: 0 8px !important; /* Spacing between rows */
}

.table-responsive th, .table-responsive td {
    border: none !important; /* Remove Bootstrap table borders */
    padding: 10px !important; /* Adjust padding */
}

.table-responsive tbody > tr:not(:first-child) > td {
    border-top: 6px solid rgb(var(--bg)) !important;
}

.table-responsive .table {
    --bs-table-bg: none;
}


.server-modal .table-responsive tbody > tr:not(:first-child) > td {
    border: unset !important;
}

.server-modal .table-responsive table {
    background-color: unset !important;
    border-collapse: unset !important;
}

.server-modal .table-responsive th, .table-responsive td {
    padding: 0;
}


.leaderboards .pagination {
    --bs-pagination-bg: rgb(var(--main-bg));
    --bs-pagination-focus-box-shadow: 0 0 0 0.10rem rgba(var(--main-color), 0.25);
}

.leaderboards .pagination .disabled > .page-link, .pagination .page-link.disabled {
    color: rgb(var(--text));
    background-color: rgb(var(--main-bg));
    border-color: rgb(var(--main-bg));
}

.pagination .active > .page-link, .leaderboards .pagination .page-link.active {
    color: rgb(var(--text));
    background-color: var(--btn-primary);
    border-color: rgb(var(--main-bg));
}

.pagination .page-link {
    background-color: rgb(var(--main-bg));
    color: rgb(var(--main-color));
    border-color: rgb(var(--bg));
}

.pagination .page-link:hover {
    background-color: rgb(var(--bg));
    color: rgb(var(--main-color));
    border-color: rgb(var(--main-bg));
}

.pagination .page-item:last-child .page-link, .pagination .page-item:first-child .page-link {
    color: rgb(var(--text));
    background-color: rgb(var(--main-bg));
    border-color: rgb(var(--bg));
}

.table-responsive .row:nth-child(1) {
    background: rgba(var(--main-bg), 65%);
}

.table-responsive thead tr {
    background: rgba(var(--main-bg), 70%);
}

.table-responsive label, .table-responsive label {
    padding: 10px;
    font-weight: bolder;
}


.page-content-80 {
    width: 80%;
    margin: 0 auto
}


.jodit_theme_custom {
    --jd-color-background-default: rgb(var(--main-bg));
    --jd-color-border: rgb(var(--main-color));
    --jd-color-panel: rgb(var(--main-bg));
    --jd-color-icon: whitesmoke;
}

:root {
    --jd-color-background-light-gray: rgb(var(--bg)) !important;
    --jd-color-background-default: rgb(var(--bg)) !important;
    --jd-color-button-background-hover: rgb(var(--main-bg)) !important;
    --jd-color-text-icons: whitesmoke !important;
    --jd-color-white: rgb(var(--bg)) !important;
    --jd-color-border: rgb(var(--main-color)) !important;
    --jd-color-gray: rgb(var(--bg)) !important;
    --jd-color-background-button-hover: rgb(var(--bg)) !important;
}

.jodit-dialog__content .jodit-form__group .jodit-input_group-buttons > .jodit-button {
    fill: whitesmoke;
}


.jodit .jodit-input, .jodit .jodit-select, .jodit .jodit-textarea {
    color: whitesmoke;
}

.jodit .jodit-input[disabled], .jodit .jodit-select[disabled], .jodit .jodit-textarea[disabled] {
    background-color: rgb(var(--main-bg)) !important;
}

.jodit-ui-button_variant_primary {
    background-color: var(--btn-primary) !important;
}

.jodit-toolbar-button__trigger svg {
    fill: whitesmoke;
}

.jodit-dialog__panel {
    background-color: rgb(var(--main-bg)) !important;
}

.jodit-toolbar-button__button:focus-visible:not([disabled]), .jodit-toolbar-button__button:hover:not([disabled]) {
    background-color: rgb(var(--bg)) !important;
}

.jodit-dialog__header {
    background-color: rgb(var(--bg));
}

.ace-idle-fingers {
    background-color: rgb(var(--bg));;
    color: var(--text-color)
}

.ace-idle-fingers .ace_gutter {
    background-color: rgb(var(--main-bg));;
    color: var(--text-color)
}

.ace-idle-fingers .ace_gutter-active-line {
    background-color: rgb(var(--main-color));
}


.list-group-item.active {
    color: var(--text-color);
    background-color: var(--btn-primary);
    border-color: var(--btn-primary)
}

.swal2-modal {
    background-color: rgb(var(--main-bg)) !important;
    color: var(--text-color);
}

.swal2-confirm {
    background-color: rgb(var(--main-color)) !important;
    color: var(--text-color);
}


.tooltip-inner {
    background-color: rgb(var(--bg));
    color: var(--text-color);
    padding: 10px;
    margin-bottom: 12px;
    font-weight: bold;
    max-width: 350px !important;
}


.tooltip-arrow {
    display: none !important;
}


.btn-login-discord {
    background-color: rgb(var(--bg));
    color: var(--text-color);
    font-size: 24px;
}

.btn-login-discord:hover {
    background-color: rgb(var(--bg), 50%);
    color: var(--text-color);
}

.btn-login-discord i {
    color: #7289DA;
}

.btn-login-steam {
    background-color: rgb(var(--bg));
    color: var(--text-color);
    font-size: 24px;
}

.btn-login-steam:hover {
    background-color: rgb(var(--bg), 50%);
    color: var(--text-color);
}

.btn-login-steam i {
    color: rgb(var(--main-color));
}


.modal .btn-login-discord, .modal .btn-login-steam {
    background-color: rgb(var(--main-bg));
}

.modal .btn-login-steam:hover, .modal .btn-login-discord:hover {
    background-color: rgb(var(--main-bg), 60%);
    color: var(--text-color);
}

.resource-image {
    width: 195px;
    height: 169px;
}

.move-up-on-hover {
    transition: transform 0.3s ease; /* Smooth transition */
}

.move-up-on-hover:hover {
    transform: translateY(-10px); /* Moves the element up */
}

.hover-animation:hover {
    transform: translateY(-10px);
}


.border-animate {
    --c: rgb(var(--main-color)); /* Border color */
    --b: 1px; /* Border thickness */

    padding: var(--b); /* Border thickness as padding */
    background: conic-gradient(from 180deg at top var(--b) right 2px, #0000 25%, var(--c) 0) var(--_i, 200%) 0 / 200% var(--_i, var(--b)) no-repeat,
    conic-gradient(at bottom var(--b) left var(--b), #0000 25%, var(--c) 0) 0 var(--_i, 200%) / var(--_i, var(--b)) 200% no-repeat;
    transition: .1s, background-position .1s .1s; /* Faster transition */
    cursor: pointer;
}

.border-animate:hover {
    --_i: 100%; /* Animation scale */
    transition: .1s, background-size .1s .1s; /* Faster hover transition */
}


@media (max-width: 1200px) {
    .stats-box-wrapper {
        flex: 1 1 33.33%; /* Show 3 items per row on medium-large screens */
        max-width: 33.33%;
    }
}

@media (width: 1024px) {
    .servers .col-lg-3 {
        width: 50%;
    }
}

@media (max-width: 991px) {

    .leaderboards .top-img {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 30%;
        height: 100%;
        justify-content: space-between;
        overflow: hidden;
        gap: 1px;
    }

    .leaderboards .top-img img {
        width: 80px;
        height: 80px;
        border-radius: 4px;
        outline-offset: 0px;
    }

    .leaderboards .top-stats {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        align-items: center;
        width: 100%;
        height: 100%;
        justify-items: center;
        grid-gap: 15px;
    }


    .leaderboards .stats-block {
        padding: 15px;
        width: 100%;
    }

    .leaderboards .top-player {
        justify-content: center;
        background-color: var(--k4main-bg);
        border-radius: 12px;
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 13px 13px;
        align-items: center;
        gap: 10px;
    }
}

@media (max-width: 768px) {

    .server-modal .table tr {
        grid-template-columns: 80px 110px 1fr 1fr 1fr 1fr;
    }

    .content img {
        max-width: 100%;
    }

    .card-link-hover .no-image {
        font-size: 2rem;
    }

    .carousel-text {
        max-width: 100%;
        padding-left: 15px;
    }

    .carousel-action {
        margin-top: 5px; /* Ensure button stays at the bottom */
        padding-right: 0;
        padding-left: 0;
    }

    .carousel-slide-bg {
        height: 400px; /* Maintain a smaller height for mobile */
    }

    .carousel-text h3 {
        font-size: 2rem; /* Smaller title on mobile */
    }

    .carousel-text p {
        font-size: 1rem; /* Smaller description on mobile */
    }

    .carousel-action a {
        font-size: 1rem;
        padding: 10px 20px;
    }

    #leaderboards-server-data .top-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1067px) {
    #leaderboards-server-data .top-stats {
        grid-template-columns: 45px auto auto;
    }
}

@media (max-width: 576px) {

}

@media (width: 425px) {

}

@media (max-width: 425px) {
    .server-modal .table tr {
        grid-template-columns: 80px 110px 1fr 1fr;
    }

    .server-modal {
        margin: 0;
    }

    .carousel-content {
        flex-direction: column;;
    }


    .card-link-hover .no-image {
        font-size: 1.5rem !important;
        height: 200px !important;
    }

    .news-img {
        display: none;
    }
}


@media (max-width: 375px) {
    .carousel-text p {
        font-size: 1rem;
    }
}


@media (max-width: 320px) {


}

@media (max-width: 991px ) {
    .page-content-80 {
        width: 100%;
    }

    .support-content {
        width: fit-content !important;
    }
}


.card-border {
    border-width: var(--bs-border-width);
    border-color: rgba(var(--bg), 95%);
    border-radius: 0;
}

.card-header {
    margin-bottom: 0;
    border-radius: 0;
    color: var(--bs-card-cap-color);
    background-color: rgba(var(--bg), 40%);
    border-bottom: var(--bs-card-border-width) solid rgba(var(--bg), 10%);
}


#vote a.vote-link h1 {
    background: rgb(var(--bg));;
    color: rgb(var(--text));
    padding: 20px;
    font-size: 1.5em;
    font-weight: 700;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 7px -2px rgb(0 0 0 / 20%);
    transition: .5s;
    text-transform: uppercase;
}

#vote a.vote-link h1:hover {
    opacity: 0.8;
    color: rgb(var(--text));
    transition: 0.5s;
}

#vote a:hover {
    text-decoration: none;
}

#vote .player ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-block-start: 0 !important;
    padding-inline-start: 0 !important;
}

#vote li.v-top {
    font-weight: 800;
    width: 50px;
}

#vote li.v-avatar img {
    width: 40px;
    height: 45px;
    margin-left: 10px;
    margin-right: 15px;
}

#vote li.v-name {
    color: rgb(var(--text));
    font-weight: 800;
}

#vote li.v-count {
    font-weight: 600;
    margin-left: auto;
    text-transform: uppercase;
}

#vote .player {
    border-bottom: rgb(var(--bg));;
}

#vote .recent-voter img {
    width: 50px;
    margin-right: 20px;
}

#vote .recent-voter {
    display: flex;
    align-items: center;
}

#vote .recent-voter h2 {
    font-size: 1em;
    color: rgb(var(--text));
    font-weight: bold;
    margin-top: 10px;
}

#vote .recent-voter {
    background: rgb(var(--bg)) !important;
    margin: 10px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 7px -2px rgb(0 0 0 / 20%);
}

#vote .recent-voter p {
    margin: 0 0 0 auto;
    font-weight: 600;
    text-transform: uppercase;
}

.fs-7 {
    font-size: 0.84rem !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 2px;
}

::-webkit-scrollbar-track {
    background: rgb(var(--main-bg));
}

::-webkit-scrollbar-thumb {
    background: rgb(var(--main-color));
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(var(--bg));
}
