.wrapper {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity .5s linear;
}

.footer {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity .5s linear;
}

#back_btn {
    visibility: hidden;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #191d27;
    color: #ffffff;
}

h1 {
    text-align: center;
    font-size: 2em;
    margin-top: 1%;
    margin-bottom: 0;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 3em;
}

.yata {
    border-radius: 100%;
    width: 2em;
    height: 2em;
    margin-right: .75em;
}

.playerlink:hover {
    color: #ffffff;
    transition-duration: 0.4s;
}
.playerlink {
    transition-duration: 0.4s;
}

.leaderboard-table {
    width: 50%;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto; 
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 1em;
    font-family: sans-serif;
    min-width: 800px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
}

.leaderboard-table thead tr {
    background-color: #242a38;
    color: #ffffff;
    text-align: left;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 12px 15px;
}

.leaderboard-table tr:first-child th:first-child {
    border-radius: 10px 0px 0px 0px;
}

td.pp {
    color: #fb923c;
    font-weight: 700;
}

.leaderboard-table tr:first-child th:last-child {
    border-radius: 0px 10px 0px 0px;
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid #46526e;
    text-align: left;
    transition-duration: 0.3s;
}

#back_btn {
    background-color: #242a38;
    color: #ffffff;
    border: 2px solid #fb923c;
    border-radius: 10px 0px 0px 0px;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 1em;
    margin: 4px 2px;
    cursor: pointer;
    transition-duration: 0.4s;
    /* margin-bottom: 10px; */
}
#back_btn:hover {
    background-color: #fb923c;
    color: #242a38;
    border: 2px solid #191d27;
}

tbody tr:hover {
    background-color: #242a38;
    color: #ffffff;
    border-bottom: 1px solid #fb923c;
    transition-duration: 0.1s;
}

td.name {
    display: flex;
    /* font-weight: 700; */
    align-items: center;
    color: white;
}

td {
    font-weight: 700;
    color: #46526e;
}

.top-right {
    float: right;
    padding-right: 1em;
}

.top-left {
    float: left;
    padding-left: 1em;
}

.footer-right {
    float: right;
    padding-right: 1em;
}

.footer-left {
    float: left;
    padding-left: 1em;
}

#prev_btn {
    float: left;
    border-radius: 0px 0px 0px 10px;
}
#next_btn {
    float: right;
    border-radius: 0px 0px 10px 0px;
}

footer.p {
    text-align: center;
    font-size: 0.8em;
    margin-top: 1%;
    margin-bottom: 0;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 1em;
    align-items: center;
    vertical-align: middle;
}

button {
    background-color: #242a38;
    color: #ffffff;
    border: 2px solid #fb923c;
    border-radius: 10px;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 1em;
    margin: 4px 2px;
    cursor: pointer;
    transition-duration: 0.4s;
}
button:hover {
    background-color: #fb923c;
    color: #242a38;
    border: 2px solid #191d27;
}

.buttons {
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 50%;
    margin-top: 5px;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    min-width: 800px;
}

.top {
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 50%;
    margin-top: 5px;
    margin-bottom: 60px;
    margin-left: auto;
    margin-right: auto;
    min-width: 800px;
}

a {
    color: #fb923c;
    text-decoration: none;
    transition-duration: 0.4s;
}
a:hover {
    color: #ffffff;
    transition-duration: 0.4s;
}

.wrapper {
    min-height: 100%;
    margin-bottom: -60px;
}

.push {
    height: 30px;
}

.footer {
    height: 60px;
    font-size: 1em;
    margin-left: auto;
    min-width: 800px;
    margin-right: auto;
    margin-bottom: 0;
    margin-top: 100px;
    width: 50%;
    border-radius: 10px 10px 0px 0px;
    background-color: #242a38;
    background-size: cover;
}

.leaderboard-table tbody tr:last-of-type {
    border-bottom: 2px solid #dddddd;
}

.load {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

::placeholder {
    color: #fb923c;
    opacity: .8;
}
#search_box {
    background-color: #242a38;
    color: #ffffff;
    border: 2px solid #fb923c;
    border-radius: 0px 10px 0px 0px;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 1em;
    margin: 4px 2px;
    cursor: pointer;
    transition-duration: 0.4s;
}
#search_box:hover {
    cursor: text;
}
input:focus::placeholder {
    color: transparent;
}

.text-prev {
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation-duration: 1s;
    max-height: 60px;
}
.text-prev:hover {
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    animation-duration: 1s;
    max-height: 300px;
}

.weighted-pp {
    color: #46526e;
    font-weight: 700;
    font-size: .8em;
}
.star-rating {
    color: #fb923c;
    font-weight: 700;
    font-size: .8em;
}

#search_btn {
    background-color: #242a38;
    color: #ffffff;
    border: 2px solid #fb923c;
    border-radius: 10px 0px 0px 0px;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 1em;
    margin: 4px 2px;
    cursor: pointer;
    transition-duration: 0.4s;
}
#search_btn:hover {
    background-color: #fb923c;
    color: #242a38;
    border: 2px solid #191d27;
}

/* loading bar */
.loading-box {
    --ease-in-out-quartic: cubic-bezier(0.645, 0.045, 0.355, 1);
    display: flex;
    overflow: hidden;
    width: 200px;
    height: 75px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: visibility 0s, opacity 1s linear;
}
.loading-text {
    color: white;
    transform: translate(40px, -10px);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.loading-bar {
    position: absolute;
    top: 90%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, #242a38 0%, #46526e 50%);
    transform-origin: left;
}
.loading-bar {
    animation: load-right 2s 1s var(--ease-in-out-quartic) forwards;
    animation-iteration-count: infinite;
}
@keyframes load-right {
    0% {
        left: -100%;
    }
    50% {
        left: 0;
    }
    100% {
        left: 100%;
    }
}

/* border colors */
.indigo {
    border-color: rgb(129 140 248);
    border-width: 2px;
    border-style: solid;
    border-radius: 9999px;
}
.pink {
    border-color: rgb(244 114 182);
    border-width: 2px;
    border-style: solid;
    border-radius: 9999px;
}
.yellow {
    border-color: rgb(250 204 21);
    border-width: 2px;
    border-style: solid;
    border-radius: 9999px;
}
.gray {
    border-color: rgb(156 163 175);
    border-width: 2px;
    border-style: solid;
    border-radius: 9999px;
}
.teal {
    border-color: rgb(45 212 191);
    border-width: 2px;
    border-style: solid;
    border-radius: 9999px;
}
.blue {
    border-color: rgb(96 165 250);
    border-width: 2px;
    border-style: solid;
    border-radius: 9999px;
}
.purple {
    border-color: rgb(192 132 252);
    border-width: 2px;
    border-style: solid;
    border-radius: 9999px;
}
.red {
    border-color: rgb(248 113 113);
    border-width: 2px;
    border-style: solid;
    border-radius: 9999px;
}
.orange {
    border-color: rgb(251 146 60);
    border-width: 2px;
    border-style: solid;
    border-radius: 9999px;
}
.green {
    border-color: rgb(74 222 128);
    border-width: 2px;
    border-style: solid;
    border-radius: 9999px;
}
