/*

Custom style

You can override the default class or style here

This file will not be overwritten by the updater

*/

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    --bs-table-color: var(--bs-body-color);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--bs-border-color);
    --bs-table-accent-bg: transparent;
    --bs-table-striped-color: var(--bs-body-color);
    --bs-table-striped-bg: rgba(0, 0, 0, 0.05);
    --bs-table-active-color: var(--bs-body-color);
    --bs-table-active-bg: rgba(0, 0, 0, 0.1);
    --bs-table-hover-color: var(--bs-body-color);
    --bs-table-hover-bg: rgba(0, 0, 0, 0.075);
    width: 100%;
    margin-bottom: 1rem;
    color: var(--bs-table-color);
    vertical-align: top;
    border-color: var(--bs-table-border-color);
}

table {
    caption-side: bottom;
    border-collapse: collapse;
}

.table>thead {
    vertical-align: bottom;
}

th {
    display: table-cell;
    vertical-align: inherit;
    font-weight: bold;
    text-align: -internal-center;
    unicode-bidi: isolate;
}

td {
    display: table-cell;
    vertical-align: inherit;
    unicode-bidi: isolate;
}

.td-ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 0;
}


/* TOP-PLAYERS */

@media only screen and (max-width: 640px) {
  .top-user {
    width: 80px;
    margin: 10px;
  }

  .leaderboard-cell.user-xp {
    margin-top: 12px;
    position: absolute;
    right: 20px;
  }

  .leaderboard-cell.rank {
    display: none;
  }

  .post-media .post-thumb {
    float: none;
    overflow: unset;
    margin-left: 0;
    margin-bottom: 20px;
    width: unset;
  }

  .post-media .post-thumb img {
    width: 100%;
    height: auto;
  }
}


.top-3 {
  text-align: center;
  margin-bottom: 40px;
  margin-top: 40px;
}

.top-user {
  display: inline-block;
  text-align: center;
  margin: 15px;
  position: relative;
  white-space: nowrap;
}

.top-number {
  width: 40px;
  color: #fff;
  border-radius: 50%;
  position: absolute;
  left: 20%;
  transform: translate(-50%, -50%);
}

.top-avatar img {
  border-radius: 50%;
  display: block;
}

.rank-1 .top-avatar img {
  width: 120px;
}

.leaderboard-table {
  clear: both;
  display: block;
  width: 100%;
}

.leaderboard-row {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 15px;
  margin-top: 15px;
  white-space: nowrap;
}

.leaderboard-cell {
  vertical-align: middle;
  padding: 0 10px;
  display: inline-block;
}

.leaderboard-user-avatar img {
  width: 50px;
  border-radius: 50%;
  display: block;
}

.leaderboard-cell.username {
  font-weight: bold;
  min-width: 160px;
}

.leaderboard-cell.rank {
  float: right;
}

.level-badge {
  float: left;
  margin-right: 10px;
}

.top-player-wrapper {
  margin-bottom: 20px;
}

.gamelist-widget .list-game {
  margin-bottom: 20px;
}
