@import url('https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto+Condensed&display=swap');

html {
  scroll-behavior: smooth;
  padding: 0;
  margin: 0;
}

body {
  scroll-behavior: smooth;
  background-color: #111111;
  color: #eeeeee;
  font-family: "Roboto Mono";
  font-size: 14px;
  text-align: center;
}

table {
  margin: 0 auto;
  table-layout: auto;
  width: calc(95% - 5em);
}

.leaderboard-rank {
  width: 0;
  text-align: right;
  padding-right: 2vw;
}

.leaderboard-name {
  width: 0;
  text-align: right;
  padding-right: 2vw;
}

.leaderboard-count {
  width: 0;
  text-align: center;
  padding-right: 2vw;
}

.bar {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  top: 0.3em;
  border-radius: 2em;
  height: 1em;
  margin-bottom: 0.5em;
  animation: 1s ease-out 0s 1 bar-width;
}

.bar-group:hover {
  transform: scale(1, 1.1);
  filter: brightness(150%);
  transition: all 0.5s ease-out;
}

#days {
  display: block;
  position: relative;
  width: 0;
  height: 300px;
  margin: 0 0 50px 0;
  padding: 0;
  background: transparent;
  font-size: 1em;
}

/* #days caption {
  caption-side: top;
  width: 600px;
  text-transform: uppercase;
  letter-spacing: .5px;
  top: -40px;
  position: relative;
  z-index: 10;
  font-weight: bold;
} */

#days tr,
#days th,
#days td {
  position: absolute;
  bottom: 0;
  width: 18vw;
  z-index: 2;
  margin: 0;
  padding: 0;
  text-align: center;
}

#days td {
  transition: all .3s ease;
}

#days td:hover {
  background-color: desaturate(#85144b, 100);
  opacity: 0.9;
  color: #eeeeee;
}

#days tbody tr {
  height: 296px;
  padding-top: 2px;
  /* border-right: 1px dotted #c4c4c4; */
  color: #eeeeee;
}

#days tbody th {
  bottom: -1.75em;
  vertical-align: top;
  font-weight: normal;
  color: #eeeeee;
}

#days .bar2 {
  margin-left: calc((18vw - max(5vw, 2.5em)) / 2);
  width: max(5vw, 2.5em);
  border: 1px solid; 
  border-bottom: none;
  color: #eeeeee;
  border-color: transparent;
}

#days .bar2 p {
  color: #eeeeee;
  margin: 5px 0 0;
  padding: 0;
  opacity: 0.8;
}


@keyframes bar-width {
  0% {
    transform: scale(0, 1);
  }

  100% {
    transform: scale(1, 1);
  }
}

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

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

  table {
    width: calc(95%);
  }

  .leaderboard-name {
    width: 0;
  }

  .leaderboard-count {
    display: none;
  }

  .bar-group:hover {
    transform: scale(1, 1);
    filter: brightness(100%);
  }

  .mobile-only {
    display: block;
  }

}

@media screen and (min-width: 769px) {
  .mobile-only {
    display: none;
  }
}