*,
*::after,
*::before {
  box-sizing: border-box;
}

* {
  /* firefox */
  scrollbar-color: rgb(85, 85, 85) rgb(46, 46, 46);
}

::-webkit-scrollbar-thumb {
  background: rgb(85, 85, 85);
}

::-webkit-scrollbar-track {
  background: rgb(46, 46, 46);
}

body {
  margin: 0;
  font-size: 16px;
  font-family: monospace;
  background-color: rgb(26, 26, 26);
  color: rgb(221, 221, 221);
}

a {
  text-decoration: none;
}

div#wrapper {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  perspective: 7px;
}

mark {
  background-color: rgb(0, 255, 255);
}

/* header */

header {
  display: flex;
  justify-content: center;
  padding-top: 9px;
}

div#logoContainer {
  display: inline-block;
  padding: 10px;
}

pre#skullLeft {
  font-size: 6.66px;
  color: rgb(0, 255, 255);
}

pre#skullRight {
  font-size: 6.66px;
  color: rgb(0, 255, 255);
  transform: scaleX(-1);
}

div#textContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 1px;
}

div#serverNameText {
  display: flex;
  justify-content: center;
  font-size: 16px;
  color: rgb(0, 255, 255);
}

div#someText {
  display: flex;
  justify-content: center;
  font-size: 14px;
  padding-top: 6px;
}

div#menu {
  display: flex;
  justify-content: center;
  gap: 10px;
}

div#menu a {
  color: rgb(0, 255, 255);
}

div#menu a:hover {
  color: rgb(128, 255, 255);
}

/* section */

section {
  padding-top: 30px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  z-index: -1;
}

img#bgImage {
  position: absolute;
  height: 100%;
  transform: translateZ(-6px) scale(0.9);
  object-fit: cover;
  z-index: -1;
  opacity: 0.666;
  filter: grayscale(0.666);
}

div#contentContainer {
  overflow-x: auto;
}

div#contentContainer a {
  color: rgb(182, 182, 182);
}

div#contentContainer a div {
  text-align: center;
}

div#contentContainer a:hover {
  color: rgb(236, 236, 236);
}

button#sortButton {
  padding-right: 3px;
  padding-bottom: 0px;
  background-color: transparent;
  background-repeat: no-repeat;
  border: none;
  cursor: pointer;
  overflow: hidden;
  outline: none;
  font-size: 18px;
  color: rgb(104, 127, 148);
}

@media screen and (max-width: 1023px) {
  button#sortButton {
    font-size: 22px;
  }
}

/* table general */

table {
  width: 100%;
  border-radius: 5px;
  border-collapse: collapse;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

td {
  padding: 5px 10px;
  color: rgb(221, 221, 221);
  background-color: rgba(166, 166, 166, 0.27);
}

thead th {
  padding: 5px 10px;
  color: rgb(221, 221, 221);
  /* background-color: rgb(34, 37, 51); */
  background-color: rgb(40, 43, 51);
  text-align: center;
  white-space: nowrap;
}

thead th:first-child {
  padding-top: 6px;
}

thead th a {
  color: rgb(221, 221, 221) !important;
}

thead th a:hover {
  color: rgb(0, 255, 255) !important;
}

tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

tbody td {
  position: relative;
}

tbody td:hover {
  color: rgb(6, 6, 6);
}

tbody td:hover::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -9999px;
  bottom: -9999px;
  background-color: rgba(255, 255, 255, 0.02);
  z-index: -1;
}

/* profile */

table#profileTotal th,
table#profileWeapons th {
  padding: 10px 5px;
}

table#profileTotal td {
  padding: 10px 4px;
}

table#profileTotal,
table#profileWeapons {
  text-align: center;
}

div#profilePlayerName {
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 0px 20px 20px 20px;
  font-size: 20px;
}

div#profilePlayerSkill {
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 0px 20px 5px 20px;
  font-size: 16px;
}

div#profilePlayerTime {
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 0px 20px 25px 20px;
  font-size: 16px;
}

div#profilePlayerName div#profilePlayerNameWrapper {
  position: relative;
  background-color: rgba(40, 43, 51, 0.27);

  padding: 13px 13px 11px 13px;
  border-radius: 5px;
}

div#profilePlayerName div#profilePlayerNameWrapper::before,
div#profilePlayerName div#profilePlayerNameWrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px;
}

div#profilePlayerName div#profilePlayerNameWrapper::before {
  left: -20px;
  border-color: transparent rgba(40, 43, 51, 0.27) transparent transparent;
}

div#profilePlayerName div#profilePlayerNameWrapper::after {
  right: -20px;
  border-color: transparent transparent transparent rgba(40, 43, 51, 0.27);
}

div#profileWeaponsHeader {
  text-align: center;
  padding: 15px;
  font-size: 16px;
}

div#profileMedalsHeader {
  text-align: center;
  padding: 15px;
  font-size: 16px;
}

div#profileMedalsContainer {
  max-width: 777px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

div#profileMedalContainer {
  flex-basis: 16.666%;
  padding: 10px;
  text-align: center;
  position: relative;
}

img#profileMedalImage {
  max-width: 66.6px;
}

div#profileMedalDataWrapper {
  padding-top: 6.66px;
}

/* medal tooltip */

div#profileMedalContainer::before,
div#profileMedalContainer::after {
  --scale: 0;
  --arrowSize: 10px;
  --tooltipColor: rgb(34, 37, 51);

  position: absolute;
  top: 0.4rem;
  left: 50%;
  transform: translateX(-50%) translateY(var(--translateY, 0))
    scale(var(--scale));
  transition: 150ms transform;
  transform-origin: bottom center;
}

div#profileMedalContainer::before {
  --translateY: calc(-100% - var(--arrowSize));

  content: attr(tooltip);
  color: rgb(236, 236, 236);
  padding: 6px 3px;
  border-radius: 5px;
  font-size: 15px;
  word-wrap: break-word;
  text-align: center;
  width: max-content;
  max-width: 100%;
  background: var(--tooltipColor);
}

div#profileMedalContainer:hover::before,
div#profileMedalContainer:hover::after {
  --scale: 1;
}

div#profileMedalContainer::after {
  --translateY: calc(-1 * var(--arrowSize));

  content: "";
  border: var(--arrowSize) solid transparent;
  border-top-color: var(--tooltipColor);
  transform-origin: top center;
}

/* info */

div#infoWrapper {
  max-width: 666px;
  min-width: 333px;
  padding: 0px 36px;
  line-height: 22px;
}

/* footer */

footer {
  display: flex;
  justify-content: center;
  padding: 60px 10px 30px 10px;
}

footer a {
  color: rgb(0, 255, 255);
}

footer a:hover {
  color: rgb(128, 255, 255);
}

span#footerText {
  padding: 0px 8px;
  font-size: 14px;
}

/* colorized text */

.text-black {
  color: rgb(0, 0, 0);
  color-scheme: only light;
}
.text-red {
  color: rgb(255, 85, 85);
}
.text-lime {
  color: rgb(26, 255, 26);
}
.text-yellow {
  color: rgb(255, 255, 0);
}
.text-blue {
  color: rgb(41, 127, 255);
}
.text-cyan {
  color: rgb(0, 255, 255);
}
.text-pink {
  color: rgb(255, 100, 194);
}
.text-white {
  color: rgb(255, 255, 255);
}
.text-orange {
  color: rgb(255, 165, 0);
}

