@import url(https://fonts.googleapis.com/css?family=Lato:400,700);
@import url(http://weloveiconfonts.com/api/?family=entypo);
:root {
    --fs-h1: 1.5rem;
    --fs-info-text: 0.75rem;
    --fs-places: 1.2rem;
    --fs-places-lvl: 1.2rem;
    --fs-leaderboard: 1.2rem;
    --fs-leaderboard-lvl: 1rem;
    --fs-rank: 1rem;
    --fs-rank-sub: 1rem;
    --fs-navbar: 1rem;

    --img-logo: 35px;
    --img-welcome: 20rem;
    --img-place1: 4.5rem;
    --img-place2: 4rem;
    --img-place3: 3.5rem;
    --img-leaderboard: 3rem;
    --img-rankcard: 9rem;
    --img-icon: 3.5rem;
}
.ranking {
    display: flex;
    flex-direction: column;
    max-height: 100%;
    justify-content: center;
    width: 90%;
    align-items: center;
    gap: 20px;
}
.stats-and-rank {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
}
.leaderboard {
    width: 100%;
    background: #09081b84;
    backdrop-filter: blur(10px);
    border-radius: 16px;
}
.navbar-right button {
    cursor: pointer;
    border: 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: var(--fs-navbar);
    margin: 10px 10px;
    width: 85px;
    padding: 10px 0;
    transition: 0.4s;
    color: #FF2AFA;
    background-color: transparent;
}
.navbar-right button:hover{
    color: white;
    text-shadow: 0 0 10px #ff2afb6f;
}
.stat-icons p {
    font-family: 'lazer84';
    color: #FF17FA;
    font-weight: normal;
    font-style: normal;
    font-size: var(--fs-h1);
    text-shadow: -2px 2px 0px #ffffff;
    top: 15px;
    position: absolute;
}
@media (min-width: 40em) {
    :root {
        --fs-h1: 3rem;
        --fs-info-text: 1.5rem;
        --fs-places: 2rem;
        --fs-places-lvl: 2rem;
        --fs-leaderboard: 2rem;
        --fs-leaderboard-lvl: 1.5rem;
        --fs-rank: 2rem;
        --fs-rank-sub: 1.5rem;
        --fs-navbar: 1rem;

        --img-logo: 50px;
        --img-welcome: 50rem;
        --img-place1: 9rem;
        --img-place2: 8rem;
        --img-place3: 7rem;
        --img-leaderboard: 6rem;
        --img-rankcard: 15rem;
        --img-icon: 7rem;
    }
}
@media (min-width: 80em) {
    :root {
        --fs-h1: 3rem;
        --fs-info-text: 1.5rem;
        --fs-places: 2rem;
        --fs-places-lvl: 2rem;
        --fs-leaderboard: 2rem;
        --fs-leaderboard-lvl: 1.5rem;
        --fs-rank: 2rem;
        --fs-rank-sub: 1.5rem;
        --fs-navbar: 1rem;

        --img-logo: 50px;
        --img-welcome: 60rem;
        --img-place1: 9rem;
        --img-place2: 8rem;
        --img-place3: 7rem;
        --img-leaderboard: 6rem;
        --img-rankcard: 15rem;
        --img-icon: 7rem;
    }
    .ranking {
        flex-direction: row;
        max-height: 100%;
        width: 90%;
        align-items: flex-start;
    }

    button {
        width: 225px;
    }

    .stats-and-rank {
        width: 50%;
    }

    .stat-icons p {
        top: 30px;
    }

    .leaderboard {
        width: 40%;
    }
}
/* ===== Scrollbar CSS ===== */
  /* Firefox */
  * {
    scrollbar-width: 6px;
    scrollbar-color: #FDC5FF transparent;
  }

  /* Chrome, Edge, and Safari */
  *::-webkit-scrollbar {
    width: 6px;
  }

  *::-webkit-scrollbar-track {
    background: transparent;
  }

  *::-webkit-scrollbar-thumb {
    background-color: #FDC5FF;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: ease-in;
    transition-duration: 2s;
  }

  *::-webkit-scrollbar-thumb:hover {
    background-color: #FF17FA;
    transition: ease-out;
    transition-duration: 2s;
  }
#logo {
    height: var(--img-logo);
}
.no-drag {
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
body, html {
    font-family:'Lato';
    height: 100%;
    margin: 0;
    overflow: overlay;
}
div#alert-box {
    width: 100%;
    display: flex;
    justify-content: center;
    position: fixed;
    z-index: 5;
}
span#alert {
    opacity: 0;
    display: none;
    text-align: center;
    font-weight: 600;
    border: 0;
    margin: 10px 10px;
    border-radius: 16px;
    padding: 10px;
    font-size: var(--fs-navbar);
    background: #09081b84;
    color:#FDC5FF;
    backdrop-filter: blur(10px);
    transition: opacity 1s linear;
}
.parallax {
    /* The image used */
    background-image: url(background.png);

    /* Full height */
    height: 100%; 

    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.greet-box {
    display: flex;
    top: 40%;
    position: relative;
    justify-content: center;
    width: 100%;
}
.greet-box img {
    width: var(--img-welcome);
}
.content {
    display: flex;
    background: #090013;
    width: 100%;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 20px;
}
@property --myColor1 {
    syntax: '<color>';
    initial-value: rgba(0, 0, 0, 0);
    inherits: false;
}
@property --myColor2 {
    syntax: '<color>';
    initial-value: rgba(0, 0, 0, 0);
    inherits: false;
}
.navbar {
    z-index: 3;
    width: 100%;
    position: fixed;
    display: flex;
    justify-content: space-between;
    background: linear-gradient(var(--myColor1), var(--myColor2));
    transition: --myColor1 1s, --myColor2 1s ease-in-out;
}
.navbar.scrolled {
    --myColor1: rgba(9,8,27,0.7105217086834734);
    --myColor2: rgba(9,8,27,0);
}
.navbar a{
    float: left;
    color: #60d0d0;
    font-size: var(--fs-navbar);
    margin: 10px 10px 10px 10px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}
.navbar a:hover {
    color: white;
}
.navbar-right {
    float: right;
}
.navbar-right .login {
    border: 1.5px solid #FF2AFA;
}
.navbar-right .login:hover {
    background-color: #FF2AFA;
    box-shadow: 0 0 20px #ff2afb6f;
    color: white;
}
.stats {
    display: flex;
    color: #FDC5FF;
    background: #09081b84;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    /*margin: 20px;*/
    width: 100%;
    margin-right: 10px;
    flex-direction: column;
    align-items: center;
}
.stats h1 {
    background-color: transparent;
    border-radius: 16px 16px 0px 0px;
    font-family: 'lazer84';
    color: #FF17FA;
    font-weight: normal;
    font-style: normal;
    font-size: var(--fs-h1);
    text-shadow: -2px 2px 0px #ffffff;
    text-align: center;
}
.stats span {
    margin-left: 25px;
    margin-right: 25px;
    text-align: justify;
}
.stat-icons {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
}
#stat-container {
    position: relative;
    text-align: center;
    color: white;
}
#stat-container p {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
}
#iconImage {
    height: var(--img-icon);
    width: var(--img-icon);
}
.rank {
    background: #09081b84;
    backdrop-filter: blur(10px);
    border-radius: 16px;
}
.rank h1 {
    background-color: transparent;
    border-radius: 16px 16px 0px 0px;
    font-family: 'lazer84';
    color: #FF17FA;
    font-weight: normal;
    font-style: normal;
    font-size: var(--fs-h1);
    text-shadow: -2px 2px 0px #ffffff;
    text-align: center;
}
.rank  {
    display: flex;
    flex-direction: column;
    max-height: fit-content;
    width: 100%;
}
.rank img {
    margin-bottom: 30px;
    max-height: var(--img-rankcard);
    max-width: var(--img-rankcard);
    border-radius: 8px;
    -webkit-box-shadow: 0px 5px 18px 5px rgb(0 0 0 / 34%);
    box-shadow: 0px 5px 18px 5px rgb(0 0 0 / 34%);
}
.rank #rank_disc {
    color:#e8b5ea;
    opacity: 0.8;
    font-size: var(--fs-rank-sub);
    cursor: pointer;
    transition: opacity 1s;
}
.rank #rank_disc:hover {
    opacity: 1;
}
.rank div#rankcard_player_profile {
    display: flex;
    flex-direction: column;
    font-size: var(--fs-rank);
    color: #FDC5FF;
    flex-grow: 1;
    align-items: center;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
}
.rank div#rankcard_player_info {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.rank div#rankcard_player_name {
    display: flex;
    position: relative;
    top: -25px;
    max-height: 60px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.rank div#player_xp {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
    position: relative;
    font-size: var(--fs-rank-sub);
}
.leaderboard h1 {
    background-color: transparent;
    border-radius: 16px 16px 0px 0px;
    font-family: 'lazer84';
    color: #FF17FA;
    font-weight: normal;
    font-style: normal;
    font-size: var(--fs-h1);
    text-shadow: -2px 2px 0px #FFFFFF;
    text-align: center;
}
.leaderboard ol {
    /*max-height: calc(100vh - 100px);*/
    overflow: hidden; 
    overflow-y: scroll;
    list-style-type: none;
}
.leaderboard ol li p {
    font-size: var(--fs-leaderboard);
}
.leaderboard ol li  {
    display: flex;
    flex-direction: column;
    max-height: fit-content;
    width: 100%;
    z-index: 1;
    counter-increment: leaderboard;
    backface-visibility: hidden;
    position: relative;
    margin-left: -35px;
}
.leaderboard ol li:before {
    position: absolute;
    z-index: 2;
    top: 15px;
    left: 15px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-family: 'lazer84';
    color: #FF17FA;
    font-weight: normal;
    font-style: normal;
    font-size: 40px;
    text-shadow: -2px 2px 0px #FFFFFF;
    text-align: center;
}
.leaderboard ol li:before {
    content: counter(leaderboard);
}
.leaderboard ol li img {
    margin: 20px;
    max-height: var(--img-leaderboard);
    max-width: var(--img-leaderboard);
    border-radius: 8px;
    -webkit-box-shadow: 0px 5px 18px 5px rgba(0,0,0,0.34); 
    box-shadow: 0px 5px 18px 5px rgba(0,0,0,0.34);
}
.leaderboard ol li.place1 img {
    max-width: var(--img-place1);
    max-height: var(--img-place1);
    -webkit-box-shadow: 0px 5px 18px 5px rgba(0,0,0,0.34); 
    box-shadow: 0px 5px 18px 5px rgba(0,0,0,0.34);
}
.leaderboard ol li.place2 img {
    max-width: var(--img-place2);
    max-height: var(--img-place2);
    -webkit-box-shadow: 0px 5px 18px 5px rgba(0,0,0,0.34); 
    box-shadow: 0px 5px 18px 5px rgba(0,0,0,0.34);
}
.leaderboard ol li.place3 img {
    max-width: var(--img-place3);
    max-height: var(--img-place3);
    -webkit-box-shadow: 0px 5px 18px 5px rgba(0,0,0,0.34); 
    box-shadow: 0px 5px 18px 5px rgba(0,0,0,0.34);
}
.leaderboard ol li div#player_profile {
    display: flex;
    flex-direction: column;
    font-size: var(--fs-leaderboard);
    color:#FDC5FF;
}
.leaderboard ol li div.img-container {
    display: flex;
    flex-direction: row;
}
.leaderboard ol li div#player_info {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: space-evenly;
}
.leaderboard ol li div#player_names {
    display: flex;
    position: relative;
    align-items: center;
    cursor: pointer;
}
.leaderboard ol li.place1 div#player_names div {
    font-size: var(--fs-places);
}
.leaderboard ol li.place2 div#player_names div {
    font-size: var(--fs-places);
}
.leaderboard ol li.place3 div#player_names div {
    font-size: var(--fs-places);
}
.leaderboard ol li div#player_names div {
    font-size: var(--fs-leaderboard);
}
.leaderboard ol li div#player_names small{
    position: relative;
    top: -32px;
    font-size: var(--fs-leaderboard-lvl);
}
.leaderboard ol li div#player_xp {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.leaderboard ol li.place1 div#player_xp {
    font-size: var(--fs-places-lvl);
}
.leaderboard ol li.place2 div#player_xp {
    font-size: var(--fs-places-lvl);
}
.leaderboard ol li.place3 div#player_xp {
    font-size: var(--fs-places-lvl);
}
#bar {
    -webkit-box-shadow: 0px 5px 18px 5px rgba(0,0,0,0.34); 
    box-shadow: 0px 5px 18px 5px rgba(0,0,0,0.34);
    margin-top: -10px;
    margin-left: 20px;
    margin-bottom: 20px;
    height: 20px;
    border-radius: 4px;
    background-color: #FDC5FF;
  }
#progress {
    height: 20px;
    border-radius: 4px;
    background-color: #FF17FA;
}
#rank-bar {
    -webkit-box-shadow: 0px 5px 18px 5px rgba(0,0,0,0.34); 
    box-shadow: 0px 5px 18px 5px rgba(0,0,0,0.34);
    height: 20px;
    border-radius: 4px;
    background-color: #FDC5FF;
  }
#rank-progress {
    height: 20px;
    border-radius: 4px;
    background-color: #FF17FA;
}
.leaderboard ol li div#player_names:hover div#username {
    display: none;
}
.leaderboard ol li div#player_names div#disc {
    display: none;
}
.leaderboard ol li div#player_names:hover div#disc {
    display: flex;
}
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    background: #110123;
    height: 40px;
    transition: opacity 1s;
}
footer #footer-txt {
    color: #FDC5FF;
    opacity: 0.8;
}
footer:hover #footer-txt {
    opacity: 1;
}