#admin-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 64px;
}

#admin-header {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  width: 100%;
  max-width: 1024px;
  padding: 12px 24px;
  background-color: #120eb7;
  border: 4px solid #5050e7;
  border-radius: 256px;
  margin: 128px 0 64px 0;
  filter: drop-shadow(0px 32px 8px rgba(0, 0, 0, 0.4));
}

#admin-header-left {
  display: flex;
  font-size: 2rem;
  align-items: center;
}

#admin-error-message-container {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
}

.admin-error-message-box {
  border-radius: 16px;
  border: 3px solid #fff;
  padding: 16px 64px;
  background-color: #120eb7;
}

#admin-logo {
  width: 192px;
}

#admin-logo-img {
  width: 64px;
  transform: scale(8) translate(12px, -2px);
  margin-left: 0;
}

#admin-version {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  margin-left: 16px;
  line-height: 125%;
  display: none;
}

#admin-nav {
  display: flex;
}

#admin-nav a {
  display: flex;
  width: 48px;
  height: 48px;
  padding: 32px;
  margin-right: 8px;
  border-radius: 50%;
  font-size: 1.6rem;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  background-color: #0003;
  color: #ffff;
}

#admin-nav a:hover {
  background-color: #fff2;
}

#admin-nav a:last-child {
  margin-right: 0;
}

#admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 64px;
  margin: 32px 0;
  width: 100%;
  max-width: 1280px;
  border: 8px solid #ED6952FF;
  border-radius: 32px;
  background-color: #922926;
  filter: drop-shadow(0px 32px 8px rgba(0, 0, 0, 0.4));
  line-height: 100%;
}

#admin-footer {
  margin: 32px;
  text-align: center;
  line-height: 150%;
  font-size: 0.8rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "UNI North Regular", sans-serif;
  font-size: 2.5em;
  line-height: 100%;
  border-bottom: 4px solid #fff;
  padding-bottom: 8px;
  margin-bottom: 32px;
}

h2, h3 ,h4, h5, h6 {
  font-family: "Dosis", sans-serif;
}

h2 {
  font-size: 1.6rem;
}

#admin-main > h1 {
  display: flex;
  justify-content: center;
  text-align: center;
  position: absolute;
  left: 0;
  right: 0;
  border-bottom: 0;
  filter: none;
  transform: translateY(-118px);
  font-size: 4em;
}

.admin-section {
  margin-bottom: 64px;
}

.admin-section:last-child {
  margin-bottom: 0;
}

/* Tables */

table {
  display: grid;
  grid-row-gap: 4px;
}

td:first-child {
  border-top-left-radius: 32px;
  border-bottom-left-radius: 32px;
  padding-left: 32px;
}

td:nth-last-of-type(1) {
  border-top-right-radius: 32px;
  border-bottom-right-radius: 32px;
  padding-right: 32px;
}

tr.expandable:hover > td {
  border-top-color: #fff;
  border-bottom-color: #fff;
  background-color: #911;
  cursor: pointer;
}

tr.expandable:hover > td:first-child {
  border-left-color: #fff;
}

tr.expandable:hover > td:nth-last-of-type(1) {
  border-right-color: #fff;
}

th {
  padding: 16px;
  margin-bottom: 8px;
  text-align: left;
}

th:first-child {
  padding-left: 32px;
}

th:nth-last-of-type(1) {
  padding-right: 32px;
}

td {
  background-color: #0002;
  padding: 16px;
  display: flex;
  justify-content: start;
  align-items: center;
}

tr:nth-child(2n+1) > td {
  background-color: #0003;
}

thead, tbody, tr {
  display: contents;
}

td.admin-value {
  color: #ffeb00;
}

/* Stats */

.admin-stats-table {
  grid-template-columns: max-content 1fr;
}

/* Players */

.admin-player-table {
  grid-template-columns: 1fr 400px max-content max-content;
}

.admin-player-table-pagination {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: 32px;
}

.admin-player-table-pagination > a {
  margin: 0 16px;
}

.admin-player-avatar-icon {
  display: inline-block;
  align-items: center;
  justify-content: center;
  color: #fff;
  width: 32px;
  height: 32px;
  margin: 2px;
  border-radius: 50%;
  border: 2px solid #fff;
}

#admin-player-details {
  display: flex;
}

.admin-player-profile-details-card {
  margin-right: 32px;
}

.admin-player-profile-card {
  border: 6px solid #fff;
  border-radius: 32px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

.admin-player-profile-card img {
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  width: 384px;
  height: 384px;
}

.admin-player-profile-card-tag {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 13px 32px 16px 32px;
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
}

.admin-player-profile-card-tag-nameplate {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 16px 0;
  border-radius: 512px;
  width: 100%;
  text-align: center;
  font-size: 1.4rem;
}

.admin-player-profile-suspend {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.admin-player-profile-suspend-info {
  margin: 16px;
  background-color: #f00;
  padding: 16px 0;
  border-radius: 512px;
  line-height: 140%;
}

.admin-player-profile-suspend-buttons {
  display: flex;
  justify-content: center;
}

.admin-player-profile-suspend-reports {
  margin: 16px;
}

.admin-player-profile-suspend-buttons > form {
  margin-right: 8px;
}

.admin-player-profile-suspend-buttons > form:last-child {
  margin-right: 0;
}

.admin-player-profile-details {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.admin-player-profile-details h2 {
  font-family: "Dosis", sans-serif;
  font-size: 1.6rem;
}

.admin-player-details-match-table {
  grid-template-columns: max-content 1fr max-content max-content;
}

.admin-player-details-last-matches-more {
  margin-top: 32px;
  width: 100%;
  text-align: center;
}

.admin-player-details-last-matches-pagination {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: 32px;
}

.admin-player-details-last-matches-pagination > a {
  margin: 0 16px;
}

.admin-rank {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.admin-rank-icon {
  position: absolute;
  transform: scale(2.4) translateY(-1px);
}

.admin-rank > span {
  color: white;
  filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.6));
}

/* Matches */

.admin-match-stats-table {
  grid-template-columns: max-content 1fr;
}

.admin-match-table {
  grid-template-columns: 400px 1fr 1fr max-content;
}

.admin-match-table-pagination {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: 32px;
}

.admin-match-table-pagination > a {
  margin: 0 16px;
}

td.admin-icon-container {
  display: flex;
  padding-top: 0;
  padding-bottom: 0;
  align-items: center;
}

.admin-game-result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 8px;
  margin: 2px;
  border-radius: 50%;
  border: 2px solid #fff;
  font-size: 1rem;
}

.admin-game-result-icon > i {
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.admin-match-details {
  grid-column: 4 span;
  display: flex;
}

.admin-match-details > div {
  flex: 1;
  margin-right: 32px;
}

.admin-match-details > div:last-child {
  margin-right: 0;
}

.admin-match-result-header {
  display: flex;
  flex-direction: row;
  justify-content: center;
  font-size: 1.2rem;
  padding: 8px;
  margin: 10px;
}

.admin-match-result-header > i {
  margin-right: 8px;
}

.admin-game-result-header {
  display: grid;
  grid-template-columns: 1fr max-content;
  font-size: 1.2rem;
  padding: 8px;
}

.admin-game-result-header > div {
  display: flex;
  align-items: center;
}

.admin-game-result-header span.admin-game-result-icon {
  margin-right: 8px;
}

.admin-game-result-table {
  grid-template-columns: max-content 1fr max-content max-content;
  margin-bottom: 32px;
}

.admin-match-result-table {
  grid-template-columns: max-content 1fr max-content;
  margin-bottom: 32px;
}

/* Leaderboards */

.admin-leaderboards-container {
  grid-column: 4 span;
  display: flex;
}

.admin-leaderboards-container > div {
  width: max-content;
  margin-right: 32px;
}

.admin-leaderboards-container > div:last-child {
  flex: 1;
  margin-right: 0;
}

a.leaderboard-type-link {
  display: flex;
  align-items: center;
  padding-bottom: 4px;
  width: fit-content;
  margin-bottom: 8px;
}

a.leaderboard-type-link > span {
  color: #ffdd00;
  border: 0;
  padding: 0;
  margin-right: 8px;
}

.admin-leaderboards-table {
  grid-template-columns: max-content 1fr max-content;
}

.admin-leaderboard-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 4px solid #fff;
  font-size: 1.8rem;
}

.admin-leaderboard-header > span.admin-game-result-icon {
  margin-left: 16px;
  border: 0;
  font-size: 1.6rem;
}

/* Servers */

.admin-input {
  padding: 4px;
}

.admin-input > input {
  min-width: 24px;
  min-height: 24px;
}

.admin-input > input {
  padding: 2px 16px;
  font-size: 1rem;
}

input[type=submit] {
  font-family: "Dosis", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  padding: 8px 32px;
  background-color: #0003;
  border: 0;
  border-radius: 512px;
}

input[type=submit]:hover {
  background-color: #fff2;
}

input[type=submit]:hover {
  background-color: #fff2;
}

a.button {
  font-family: "Dosis", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  padding: 8px 32px;
  background-color: #0003;
  border: 0;
  border-radius: 512px;
  display: flex;
  justify-content: center;
  align-items: center;
}

a.button:hover {
  background-color: #fff2;
}

.admin-config-actions {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 32px;
}

.admin-config-actions > input, .admin-config-actions > a {
  margin-right: 8px;
}

.admin-config-actions > input:last-child, .admin-config-actions > a:last-child {
  margin-right: 0;
}

.admin-matchmaking-table {
  grid-template-columns: 480px 1fr 1fr max-content;
}

.admin-server-table {
  grid-template-columns: 480px 1fr 1fr max-content 1fr;
}

.admin-login {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.admin-login input {
  margin: 8px;
}

