* {
    box-sizing: border-box;
}

:root {
    --primary-color: blue;
    --secondary-color: green;
    --secondary-color: green;

}

* {
    box-sizing: border-box;
}

body {
    background-color: #e0e7ed;
    /* background-color: #c2b6b6; */
    /* background-image: linear-gradient(315deg, #c2b6b6 0%, #576574 74%); */

    font-family: 'Roboto Slab', serif;
    font-size: 16px;
    margin: 0;
}

.content-wrapper {
    padding: 0 20px;
}

.leaderboard-container {
    max-width: 740px;
    margin: 0 auto;
    /* margin-bottom: 40px; */
    /* padding: 0 10px; */
    max-height: calc(100vh - 140px);
    overflow: auto;

}

.action-bar {
    padding: 20px;
    border: 2px solid lightyellow;
    margin: 0 auto;
    max-width: 400px;
}

.leaderboard-header {
    /* max-width: 740px; */
    width: 100%;
    margin: 0 auto;
    margin-bottom: 20px;
    padding: 10px 20px;
    text-align: center;
    font-family: 'Roboto', serif;
    font-weight: 500;
    background-color: #0099D8;
    color: white;
    /* background-color: goldenrod; */


}

.leaderboard {
    width: 100%;
    /* border: 2px solid lightgray; */
    border-collapse: collapse;
    background-color: gray;
    text-align: left;
    /* overflow: hidden; */
}

.leaderboard-container {
    max-height: 700px;
    overflow-y: auto;
}

.leaderboard .user .name {
    text-decoration: underline;
    max-width: 200px;
    overflow-x: auto;
    /* color: cornflowerblue; */
}

.leaderboard-stats-container {
    margin: 20px auto;
    border: 2px solid gray;
    border-radius: 4px;
    padding: 10px;
    max-width: 740px;
}

.quiz-stat .label {
    font-weight: bold;
}

.leaderboard tr {
    /* border: 2px solid gray; */
    border: 2px solid black;
    border-radius: 4px;
    -moz-box-shadow: 0 0 5px #000000;
    -webkit-box-shadow: 0 0 5px #000000;
    box-shadow: 0 0 5px #000000;

}

.leaderboard td,
.leaderboard th {
    /* padding: 10px 20px; */
    padding: 10px;
    white-space: nowrap;
}

.leaderboard th {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #bfbfbf;
    color: #3e3e3e;
    /* border-top: 1px solid black; */
    /* border-bottom: 1px solid black; */
    /* box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4); */
}

tr.user {
    height: 50px;
    color: #3e3e3e;
    background-color: lightgray;
    background-color: #e4e7e6;
    background: linear-gradient(315deg, #ebf3f0 0%, #ebf3ee 74%);
    cursor: pointer;

}

.user th,
.user td {
    background: transparent;
    background-image: none;
}

th.rank,
td.rank {
    width: 60px;
}

th.correct,
td.correct {
    width: 70px;
}

th.accuracy,
td.accuracy {
    width: 100px;
}

td.rank {
    position: relative;
}

.info {
    /* color: #5f5f5f; */
    text-align: right;
    font-weight: 600;
    font-size: 18px;
    padding-right: 10px;
}

.required {
    color: brown;
}

.rank-icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    width: auto;
    height: 90%;
}

.rank-number {
    margin: 0 auto;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.leaderboard .user:nth-child(1) .rank-icon {
    /* width: 60px; */
    /* height: 60px; */
}


.user .score {
    /* text-align-last: center; */
}

.user:not([class*="-place"]):nth-child(odd) {
    filter: brightness(1.03);
}

.user:nth-child(1)

/* , .user:nth-child(2), */
/* .user:nth-child(3)  */
    {
    font-size: larger;
    font-weight: bold;
    /* -moz-box-shadow: 0 0 10px #000000;
    -webkit-box-shadow: 0 0 10px #000000;
    box-shadow: 0 0 10px #000000; */

}

.leaderboard .user:nth-child(1)

/* , .leaderboard .user:nth-child(2), */
/* .leaderboard .user:nth-child(3)  */
    {
    min-height: 70px;
}

.leaderboard .user:nth-child(1),
#user-details-modal.first-place .modal-content {
    background-color: gold;
    background-color: #a38560;
    /* background-image: linear-gradient(315deg, #a38560 0%, #e0d4ae 74%); */
    background: linear-gradient(to right, #FCF6BA, #bf953f, #B38728, #FBF5B7, #AA771C);
}

/* .leaderboard .user:nth-child(2), */
#user-details-modal.second-place .modal-content {
    background-color: azure;
    background-color: #d9d9d9;
    background-image: linear-gradient(315deg, #d9d9d9 0%, #f6f2f2 74%);
}

/* .leaderboard .user:nth-child(3), */
#user-details-modal.third-place .modal-content {
    background-color: darkgoldenrod;
    background-color: #ba9a8e;
    background-image: linear-gradient(315deg, #ba9a8e 0%, #96705b 74%);
}

.name {
    white-space: nowrap;
}

.rank {
    padding: 0;
}

.leaderboard .user:hover {
    filter: brightness(1.1);
}

/* .leaderboard th:hover {
    filter: brightness(1.1);
} */

.hidden {
    visibility: hidden;
}

.noselect {
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

.mobile-header {
    display: none;
}

.leaderboard-container::-webkit-scrollbar {
    width: 1em;
}

.leaderboard-container::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.leaderboard-container::-webkit-scrollbar-thumb {
    background-color: darkgrey;
    outline: 1px solid slategrey;
}

/* Modal CSS START */
/* #user-details-modal */
.modal-body {
    padding: 10px 16px;
}

#user-details-modal {
    z-index: 1000;
}

#user-details-modal .modal-header {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(0, 0, 0, 1));
}

#user-details-modal .close {
    color: white;
}

#user-details-modal .modal-content {
    max-width: 500px;
    background-color: #e0e7ed;
}

.user-detail label {
    font-weight: bold;
}

.leaderboard-title,
.info.required {
    max-width: 740px;
    margin: auto;
}

.leaderboard-title {
    text-align: center;
    /* background-color: lightgray; */
    margin-top: 30px;
    /* border: 2px solid gray; */
    margin-bottom: 5px;
    padding: 5px 10px;
    /* border-radius: 3px; */
    /* background-color: #07305e; */
    /* color: #f1da36; */
    background-color: #0099D8;
    color: white;
    height: 31px;
}



.leaderboard-container .leaderboard-title {
    position: sticky;
    top: 0;
    z-index: 101;
    margin-top: 0px;
}


.admin-actions {
    border: 2px solid darkslategray;
    padding: 10px;
    padding-top: 5px;
    border-radius: 4px;
    background-color: rgba(120, 120, 120, .4);
    margin-top: 20px;
}

.admin-actions .title {
    margin-bottom: 10px;
    border-bottom: 1px solid darkslategray;
}

button:focus {
    outline: none;
}

button {
    color: #3e3e3e;
    padding: 5px 8px;
    border: 2px solid darkslategray;
    border-radius: 3px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    margin-right: 5px;
}



.move-user-button {
    background-color: goldenrod;
}

.move-user-button:hover {
    background-color: darkgoldenrod;
}

.disqualify-user-button {
    background-color: coral;
}

.disqualify-user-button:hover {
    background-color: rgb(226, 99, 52);
}



/* Modal CSS END */



@media screen and (max-width:740px) {
    body {
        /* font-size: 14px; */
    }

    .leaderboard-container {
        max-height: 80vh;
    }
}

@media screen and (max-width:600px) {
    .leaderboard .state {
        display: none;
    }

}

@media screen and (min-width:800px) {

    .user:nth-child(1)

    /* , .user:nth-child(2), */
    /* .user:nth-child(3) */
        {
        height: 70px;
    }
}

@media screen and (max-width:540px) {
    body {
        font-size: 14px;

    }
}

@media screen and (max-width:480px) {

    th.accuracy,
    td.accuracy {
        display: none;
    }
}


@media screen and (max-width:440px) {
    /* .content-wrapper {
        padding: 0 10px;
    } */

    /* .leaderboard th.rank .desktop-header {
        display: none;
    }

    .leaderboard th.rank .mobile-header {
        display: inline;
    } */
}