*, *::before, *::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: "Rajdhani", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: white;
    color: black;
    scroll-behavior: smooth;
}

h1 {
    font-size: 3rem;
}

button {
    all: unset;
}

button:focus {
    outline: 3px solid white;
}

footer {
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    background-color: #131313;
    color: white;
}

.text-centre {
    text-align: center;
}

a:visited {
    color: inherit;
}

a.link, a.link:visited {
    color: inherit;
    text-decoration: underline;
    transition: color 250ms;
}

a.link:hover {
    color: #ef4623;
}

a.footer-link, a.footer-link:visited {
    padding: 10px;
    border-bottom: 2px solid transparent;
    transition: color 250ms ease-out, border-bottom 250ms ease-in;
    color: inherit;
    text-decoration: none;
}

a.footer-link:hover {
    color: #ef4623;
    border-bottom: 2px solid #ef4623;
}

.btn-primary {
    display: inline-block;
    background-color: #ef4623;
    padding: 12px 15px;
    border-radius: 500px;
    font-size: 1.2rem;
    margin: 10px 20px;
    text-decoration: none;
    color: black !important;
    font-weight: 600;
    transition: 250ms transform, 250ms background-color;
    cursor: pointer;
    font-family: inherit;
    border: none;
}

.btn-primary:hover {
    transform: scale(1.1);
    background-color: #ef6823;
}

dialog::backdrop {
    background: rgb(0, 0, 0, 0);
    transition: 500ms background, 500ms backdrop-filter;
}

dialog.open::backdrop {
    background: rgb(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-box {
    position: relative;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    top: 0;
    transition: 400ms opacity, 400ms top;
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    width: 60%;
    color: inherit;
    border: none;
    animation-fill-mode: forwards;
}

.modal-box.open {
    top: 50%;
    opacity: 1;
}

.modal-btn {
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    margin: 10px 0;
}

.roles-container {
    margin: 10px;
}

.role-block {
    color: black;
    padding: 10px;
    font-weight: 600;
    text-align: center;
    max-width: 450px;
    margin: auto;
}

.role-block:first-of-type {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.role-block:last-of-type {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.role-block-lvl {
    font-size: 0.8rem;
}

.role-block-reward {
    font-size: 1.2rem;
    font-weight: 900;
}

.modal.active {
    display: block;
}

@keyframes togglemodal {
    from {
        opacity: 0;
        top: 0;
    }
    to {
        opacity: 1;
        top: 50%;
    }
}

/*
*   NAVBAR
*/

.fa-secondary {
    opacity: 0.4;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: white;
    padding: 10px;
}

.nav-logo {
    display: block;
    width: 60px;
}

.nav-item {
    list-style: none;
}

.nav-link {
    color: inherit;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 15px;
    display: flex;
    transition: color 250ms, background-color 250ms;
    font-weight: 600;
    border-radius: 15px;
    margin: 0 5px;
    flex-direction: column;
    align-items: center;
}

.nav-link-icon {
    display: block;
    width: 32px;
    
}

.nav-icon {
    color: inherit;
    text-decoration: none;
    font-size: 1.3rem;
    display: block;
    transition: color 250ms;
    width: 30px;
    margin: 10px;
}

.nav-link:hover {
    color: #ef4623;
    background-color: #d8d8d8;
}

.nav-icon:hover {
    color: #ef4623;
}

.icon-discord:hover {
    color: #5865f2;
}

.navbar {
    display: flex;
    align-items: center;
}

/*
*   HOME
*/

.stats {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.stat {
    margin: 10px;
}

.stat-icon > svg {
    width: 100px;
    height: 100px;
    margin: auto;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: #ef4623;
}

.stat-label {
    font-weight: 600;
}

/*
*   LEADERBOARD
*/

.section {
    text-align: center;
    background-position: center;
    background-size: cover;
    padding: 50px 0;
    min-height: 400px;
    color: white;
    border-bottom: 10px solid #ef4623;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-blend-mode: darken;
}

.section-horizontal {
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 20px;
}

.section-nobg {
    color: black;
}

.tools-section {
    max-width: 900px;
    padding: 32px;
    margin: 0 auto;
    background-color: #3d3d3d;
}

.tools-input-block {
    margin: 20px 0;
}

.tools-input {
    width: 100%;
    padding: 10px;
}

.tools-label {
    display: block;
    margin-right: 32px;
    font-size: 24px;
    font-weight: 600;
}

.tools-output {
    background-color: black;
    font-family: 'Courier New', Courier, monospace;
    margin: 20px 0;
    color: white;
    padding: 10px;
    white-space: pre;
}

.podium {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    height: calc(100% + 30px);
    flex-wrap: inherit;
}

.card {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 15px;
    padding: 30px;
    width: 300px;
    margin: 30px 15px;
    color: black;
}

.card:nth-child(1) {
    order: 2;
    background-color: #d4af37;
}
.card:nth-child(2) {
    order: 1;
    background-color: #b9a095;
}
.card:nth-child(3) {
    order: 3;
    background-color: #cd7f32;
}

@keyframes card {
    0% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(360deg);
    }
    100% {
        filter: hue-rotate(0deg);
    }
}

.card:hover {
    animation: 2s card linear infinite;
}

.card-img {
    position: absolute;
    top: -50px;
    background-color: #36393f;
    border-radius: 25px;
    border: 3px solid black;
}

.username, .rank {
    font-size: 1.5rem;
}

.rank {
    font-weight: 900;
    margin-top: 25px;
}

.leaderboard-row {
    display: flex;
    padding: 10px;
    background-color: #c7c7c7;
    border-radius: 35px;
    width: 90%;
    align-items: center;
    position: relative;
    margin: 20px auto;
    justify-content: space-between;
    flex-wrap: nowrap;
    overflow: auto;
    white-space: nowrap;
}

.leaderboard-rank {
    font-size: 1.5rem;
    background-color: #ef4623;
    text-align: center;
    position: absolute;
    height: 35px;
    width: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaderboard-stats {
    margin: 0 10px;
}

.leaderboard-name {
    font-size: 1.5rem;
    font-weight: 900;
    margin-left: 50px;
}

.xp, .level, .messages {
    font-size: 1.2rem;
    display: inline-block;
    text-align: center;
    margin: 0 10px;
}

.stats-title {
    font-size: 0.8rem;
    color: grey;
}

.stats-number {
    font-weight: 600;
}

.pulse-loader:not(:required) {
    display: block;
    width: 50px;
    height: 50px;
    -moz-animation: pulse-loader 0.7s linear infinite alternate;
    -webkit-animation: pulse-loader 0.7s linear infinite alternate;
    animation: pulse-loader 0.7s linear infinite alternate;
    border: 2px solid #ef4623;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    overflow: hidden;
    text-indent: 50px;
    margin: 40px auto;
  }
  
  @-moz-keyframes pulse-loader {
    0% {
      -moz-box-shadow: #ef4623 0 0 0px 20px;
      box-shadow: #ef4623 0 0 0px 20px;
    }
    40% {
      -moz-box-shadow: none;
      box-shadow: none;
    }
    100% {
      -moz-box-shadow: #ef4623 0 0 0px 25px inset;
      box-shadow: #ef4623 0 0 0px 25px inset;
    }
  }
  @-webkit-keyframes pulse-loader {
    0% {
      -webkit-box-shadow: #ef4623 0 0 0px 20px;
      box-shadow: #ef4623 0 0 0px 20px;
    }
    40% {
      -webkit-box-shadow: none;
      box-shadow: none;
    }
    100% {
      -webkit-box-shadow: #ef4623 0 0 0px 25px inset;
      box-shadow: #ef4623 0 0 0px 25px inset;
    }
  }
  @keyframes pulse-loader {
    0% {
      -moz-box-shadow: #ef4623 0 0 0px 20px;
      -webkit-box-shadow: #ef4623 0 0 0px 20px;
      box-shadow: #ef4623 0 0 0px 20px;
    }
    40% {
      -moz-box-shadow: none;
      -webkit-box-shadow: none;
      box-shadow: none;
    }
    100% {
      -moz-box-shadow: #ef4623 0 0 0px 25px inset;
      -webkit-box-shadow: #ef4623 0 0 0px 25px inset;
      box-shadow: #ef4623 0 0 0px 25px inset;
    }
  }

/*
*   COMMANDS
*/

.cmd-section {
    background-color: #dfdede;
    margin: 20px;
    border-radius: 15px;
    padding: 10px;
}

.cmd {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    margin: 5px auto;
    font-size: 20px;
    flex-wrap: wrap;
    background-color: #c7c7c7;
    padding: 5px;
    border-radius: 5px;
    width: -moz-fit-content;
    width: fit-content;
}

.cmd-name {
    margin-right: 5px;
    font-weight: 600;
}

.cmd-description {
    flex-basis: 100%;
    text-align: center;
    font-size: 16px;
}

.cmd-options {
    text-align: center;
}

.cmd-option {
    display: inline-block;
    background-color: black;
    padding: 3px;
    border-radius: 3px;
    margin: 2px;
    color: white;
}

.cmd-option:hover {
    cursor: pointer;
}

.cmd-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: #000000;
    color: white;
    padding: 5px;
    border-radius: 4px;
    font-size: 90%;
    pointer-events: none;
    z-index: 1;
    text-align: center;
    width: 0;
    max-width: 90vw;
    border: 2px solid #ef4623;
    box-shadow: 0px 0px 10px 5px #141414;
    transform: scale(0.2);
    transition: 125ms visibility, 125ms opacity, 125ms transform;
}

.arrow {
    position: absolute;
    background: #000000;
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
}

h2.subheader {
    text-align: center;
    margin: 10px 0;
    font-size: 2rem;
    text-transform: capitalize;
}

/*
*   WALLPAPERS
*/

.wallpaper-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.wallpaper {
    text-align: center;
    margin: 10px;
    border: 3px solid black;
    border-radius: 15px;
}

.wallpaper-img {
    height: 225px;
    width: 400px;
    border-radius: 10px;
    object-fit: cover;
}

.wallpaper-description {
    font-weight: 600;
}

/*
*    404 / ERROR
*/

.bsod {
    background-color: #0078d7;
    padding: 20px 100px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
}

.bsod-face {
    font-size: 200px;
}

.bsod-text {
    font-size: 1.6rem;
}

.bsod-button {
    display: inline-block;
}

code.bsod-error {
    margin: 10px 0;
    background-color: black;
    padding: 3px;
    display: block;
}

/*
*   APPEALS
*/

.form-section {
    display: none;
}

.appeal-icon {
    width: 100px;
    color: #00be29;
}

.appeal-errors {
    text-align: left;
    margin: 20px auto;
    color: red;
}

.appeal-error {
    margin: 0 40px;
}

.appealLabel {
    display: block;
    font-size: 1.3rem;
    margin-top: 20px;
    font-weight: 600;
}

.appealTextArea {
    width: 80vw;
    resize: none;
    height: 200px;
    margin: 20px 0;
    padding: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1rem;
}

.btn-appeal {
    border: none;
    display: inline;
}

/*
*   DASHBOARD
*/

.rank-preview-container {
    position: relative;
}

.rank-preview {
    border-radius: 20px;
max-width: 600px;width: 90%;}

#removeBtn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

#removeBtn:hover {
    transform: translate(-50%, -50%) scale(1.1)
}

.rank-background {
    max-width: 90%;
    margin: 10px auto;
}

.modal-btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

a.modal-cancel {
    text-decoration: none;
    padding: 5px 0;
}

a.modal-cancel:hover {
    cursor: pointer;
}

.upload-progress {
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: white;
    color: black;
    font-weight: 900;
    font-size: 1.3rem;
    height: 50px;
}

.upload-progress-secondary {
    z-index: -1;
    position: absolute;
    height: 50px;
    background-color: cornflowerblue;
    transition: 250ms width;
}

.upload-btn {
    display: block;
    margin: 15px auto;
    width: max-content;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #1f1f1f;
        color: white;
    }

    nav {
        background-color: black;
    }

    .nav-link:hover {
        background-color: #1b1b1b;
    }

    .leaderboard-row {
        background-color: #3f3f3f;
    }

    .modal-box {
        background-color: #1f1f1f;
    }

    .cmd-section {
        background-color: #3f3f3f;
    }

    .cmd {
        background-color: #2e2e2e;
    }

    .section-nobg {
        color: white;
    }
}

@media only screen and (max-width: 1080px) {
    .podium {
        align-items: center;
        flex-direction: column;
    }
    
    .card {
        order: 0 !important;
    }
}

@media only screen and (max-width: 950px) {

    .navbar:first-of-type {
        overflow: auto;
    }

    .modal-box {
        width: 90%;
    }
}