:root {
  /* Main wrapper width */
  --sidebar-width: 168px;
}

.stats-page-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  flex-shrink: 0;
  position: relative;

  font-size: 1rem;
}
.stats-page-wrapper.stats-player .sidebar.right {
  display: none;
}
.stats-page-wrapper.stats-elo .sidebar.right {
  display: block;
}

.stats-wrapper {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 10px auto;
  background-color: var(--background-light1);
  border-radius: var(--border-radius);
  overflow: hidden;
  min-width: 0;

  font-size: 1em;
}

@media screen and (max-width: 992px) {
  .stats-page-wrapper.stats-player .sidebar.right,
  .stats-page-wrapper.stats-elo .sidebar.right {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  .sidebar-collapser {
    display: flex;
  }

  .stats-page-wrapper .sidebar.left {
    position: absolute;
    left: -160px;
    top: 0;
    z-index: 1000;
    height: 100%;
    margin: 0;
    background-color: var(--background-dark6);
    box-shadow: 10px 0 8px rgba(0,0,0,.5);
    transition: left 0.3s ease;
  }

  /* Slide in when active */
  .stats-page-wrapper .sidebar.left.active {
    left: 0;
  }
  
  .stats-wrapper {
    overflow-x: auto;
    margin: 0;
    border-radius: 0;
  }
}

