/********** Template CSS **********/
:root {
    --primary: #ffffff;
    --secondary: #191C24;
    --light: #5b5a5a;
    --dark: #000000;
}

a {
    text-decoration: none;
}

.sidebar .navbar-brand {
    font-size: 1.4rem;
    font-family: 'Comfortaa', 'SansSerif';
    color: #1b5d3e;
}


.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}




/*** Button ***/
.btn {
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Layout ***/
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    height: 100vh;
    overflow-y: auto;
    transition: 0.5s;
    z-index: 999;
}

.content {
    margin-left: 250px;
    min-height: 100vh;
    background: var(--dark);
    transition: 0.5s;
}

@media (min-width: 992px) {
    .sidebar {
        margin-left: 0;
    }

    .sidebar.open {
        margin-left: -250px;
    }

    .content {
        width: calc(100% - 250px);
    }

    .content.open {
        width: 100%;
        margin-left: 0;
    }

    #winnerTable tr td:last-child {
        width:50%;
    }

    .g-profile {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        margin-left: -250px;
    }

    .sidebar.open {
        margin-left: 0;
    }

    .content {
        width: 100%;
        margin-left: 0;
    }
    #winnerTable tr td:last-child {
        width:35%;
    }

    .g-profile {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 767.98px) {
    .content .navbar .navbar-nav .nav-link {
        margin-left: 15px;
    }

    #winnerTable tr td:last-child {
        width:0%;
    }

    .g-profile {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 575.98px) {
    .content .navbar .navbar-nav .nav-link {
        margin-left: 15px;
    }

    #winnerTable tr td:last-child {
        width:0%;
    }

    .g-profile {
        width: 40px;
        height: 40px;
    }
}

/*** Navbar ***/
.sidebar .navbar .navbar-nav .nav-link {
    padding: 7px 20px;
    color: var(--light);
    font-weight: 500;
    border-left: 3px solid var(--secondary);
    border-radius: 0 30px 30px 0;
    outline: none;
}

.sidebar .navbar .navbar-nav .nav-link:hover,
.sidebar .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
    background: var(--dark);
    border-color: var(--primary);
}

.sidebar .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border-radius: 40px;
}

.sidebar .navbar .navbar-nav .nav-link:hover i,
.sidebar .navbar .navbar-nav .nav-link.active i {
    background: var(--secondary);
}

.sidebar .navbar .dropdown-toggle::after {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.sidebar .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

.sidebar .navbar .dropdown-item {
    padding-left: 45px;
    border-radius: 0 30px 30px 0;
    color: var(--light);
}

.sidebar .navbar .dropdown-item:hover,
.sidebar .navbar .dropdown-item.active {
    color: var(--primary);
    background: var(--dark);
}

.content .navbar .navbar-nav .nav-link {
    margin-left: 25px;
    padding: 12px 0;
    color: var(--light);
    outline: none;
}

.content .navbar .navbar-nav .nav-link:hover,
.content .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.content .navbar .sidebar-toggler,
.content .navbar .navbar-nav .nav-link i {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-black);
    border-radius: 36px;
}

.content .navbar .dropdown-item {
    color: var(--light);
}

.content .navbar .dropdown-item:hover,
.content .navbar .dropdown-item.active {
    color: var(--primary);
    background: var(--dark);
}

.content .navbar .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.content .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}




/*** Datatables ***/
#leaderboard thead tr,
#winnerTable thead tr {
    border-bottom: 2px solid white;
}

#winnerTable tbody tr td {
    padding-top: 1rem;
}






#playersTable {
    border-collapse: separate;
    border-spacing: 0 15px;
}

#playersTable thead tr th {
    border-bottom:0 !important;
    font-weight: 500;
    background-color: #0f1214;
}
#playersTable  tr {
    border-radius:20px;
}
#playersTable td,
#playersTable th {
    vertical-align: middle;
    border-style: none;
}
#playersTable tr td:nth-child(n+5),#playersTable tr th:nth-child(n+5) {
    border-radius: 0 .625rem .625rem 0;
}
#playersTable tr td:nth-child(1), #playersTable tr th:nth-child(1){border-radius: .625rem 0 0 .625rem;}
#playersTable .table td,
#playersTable .table th,
#playersTable .card {
    border: 0;
}
