#leaderboard-canvas {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  display: none;
}

.leaderboard-mask {
  background-color: #00000088;
  width: 100%;
  height: 100%;
}

.leaderboard-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  max-height: min(80%, 500px);
  height: 50vw;
}

.leaderboard-bg {
  height: 100%;
}

.leaderboard-content {
  position: absolute;
  width: 79%;
  height: 73%;
  top: 53%;
  left: 54%;
  transform: translateX(-50%) translateY(-50%);
  text-align: center;
  white-space: nowrap;
  overflow-y: scroll;
  overflow-x: hidden;
}

/* Track */
.leaderboard-content::-webkit-scrollbar {
  width: min(2vh, 20px);
}

/* Track */
.leaderboard-content::-webkit-scrollbar-track {
  background-color: #e7ebf2;
  border-radius: 100px;
  border-style: solid;
  border-color: #b0bbd4;
  border-width: 1%;
}

/* Handle */
.leaderboard-content::-webkit-scrollbar-thumb {
  background-color: #ed4300;
  border-radius: 100px;
}

.leaderboard-content-item {
  width: 94%;
  height: 20%;
  margin-top: 2%;
  margin-bottom: 2%;
  position: relative;
}

.leaderboard-ranking-bullet {
  position: absolute;
  bottom: 20%;
  left: 3%;
  height: 50%;
}

.leaderboard-ranking-bullet img {
  height: 100%;
}

.leaderboard-ranking-bullet p{
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: min(min(3vh, 20px), 2vw);
  transform: translateX(-50%) translateY(-50%);
  color: black;
}

.leaderboard-profile-image {
  position: absolute;
  bottom: 35%;
  left: 14.6%;
  /* height: 55%; */
  height: 7vh;
  width: 7vh;
  max-height: min(4vw, 40px);
  max-width: min(4vw, 40px);
  border-radius: 30%;
  object-fit: cover;
}

.leaderboard-profile-name {
  position: absolute;
  bottom: 6%;
  left: 18%;
  font-size: min(min(1.5vh, 10px), 1vw);
  transform: translateX(-50%);
  color: white;
}

.leaderboard-level {
  position: absolute;
  top:50%;
  left: 30%;
  text-align: center;
  transform: translateX(-50%) translateY(-50%);
  font-size: min(min(3vh, 18px), 2vw);
  color: white;
  line-height: 1;
}

.leaderboard-progress {
  position: absolute;
  top:50%;
  left: 60%;
  height: 75%;
  transform: translateX(-50%) translateY(-50%);
}

.leaderboard-progress-empty {
  height: 100%;
}

.leaderboard-progress-full {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  transition: 2s;
  animation: full-in 2s;
}

.leaderboard-rocket {
  position: absolute;
  height: 40%;
  bottom: 15%;
  transform: translateX(30%) translateY(50%);
  animation: rocket-in 2s;
}

.leaderboard-km {
  position: absolute;
  right: 7.5%;
  bottom: 3%;
  transform: translateX(50%) translateY(50%);
  text-align: center;
  font-size: min(min(3vh, 18px), 2vw);
  color: white;
}

#leaderboard-close-button {
  height: 9%;
  position: absolute;
  right: 7%;
  top: 5%;
}

#leaderboard-close-button:active {
  content: url("../img/register/close-button-pressed.png");
}

#refresh-button{
  cursor: pointer;
  color: #FFF;
}

#refresh-button:hover{
  color: #ffffff94;
}

@keyframes full-in {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
  }
}

@keyframes rocket-in {
  0% {
    right: 100%;
  }
  100% {
  }
}
