table {
  width: 99%;
  margin: 0 0.5%;
}

th {
  height: 3em;
  padding: 6px;

  color: #fff;
}

td {
  line-height: 2em;
  text-indent: 5px;

  padding: 0.5rem;
}

tr {
  background: #00000066;
}

tr:nth-child(even) {
  background: #00000040;
}

tr:hover {
  background: #00000090;
}

#history-table {
  font-weight: bold;
}

#history-table tr:not(:first-child) td:nth-child(4),
#history-table tr:not(:first-child) td:nth-child(3) {
  color: #ffeb75;
}

#history-table tr.moved-up td:nth-child(4),
#history-table tr.moved-up td:nth-child(3) {
  color: #4eff4e;
}

#history-table tr.moved-down td:nth-child(4),
#history-table tr.moved-down td:nth-child(3) {
  color: #fb8080;
}

#editors li {
  display: inline-block;
  margin: 2px;
  overflow: hidden;
}

#editors ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-content: center;

  margin: 0% 5%;

  font-variant: small-caps;
}

.right p,
.right span,
#rules span {
  font-size: 0.8em;
  font-weight: normal;
}

#outofboundsad {
  width: 200px;
}

@media (max-width: 1359px) {
  #outofboundsad {
    display: none;
  }
}

@media (max-width: 1071px) {
  #rules,
  #discord {
    order: -1;
  }

  #discord {
    width: 100%;
  }

  #editors,
  #submit,
  #stats {
    min-width: 200px;
    width: 30%;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  #editors,
  #submit,
  #stats {
    width: 100%;
  }

  .video-link {
    display: none;
  }
}

.dropdown {
  background: #121212;
  text-align: center;

  margin-top: 1rem;
  border-radius: 4px;
}

.dropdown li {
  padding: 10px calc(10px + 0.52434444444444%);
  min-width: 200px;
  width: 200px;
  flex-grow: 1;

  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.dropdown i {
  font-variant: small-caps;
  font-size: 0.8em;
}

#lists.fade {
  border: 0px;
}

#lists .button {
  font-weight: 600;
  border: 1px solid #222;
  border-top: 0px;
}

#lists div:first-of-type .button {
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
  border-top-left-radius: 0px;

  border-right: 0px;
}

#lists div:not(:first-of-type):not(:last-of-type) .button {
  border-radius: 0px 0px 0px 0px;

  border-left: 0px;
  border-right: 0px;
}

#lists div:last-of-type .button {
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  border-top-right-radius: 0px;

  border-left: 0px;
}

#level-info span {
  margin: 5px 10px;
}

/* Stats viewer styles */

#stats-viewer-pagination li i {
  padding-left: 5px;

  color: #444;

  font-size: 70%;
  font-variant: small-caps;
}

/* Submission form styles */

#submission-form h3 {
  margin: 20px 0px 10px 0px;
}

#submission-form > p {
  margin: 5px 0;

  font-size: 90%;
  text-align: center;
}

.thumb {
  max-width: 30%;
  min-width: 30%;
  background: black;
  background-size: cover;

  border-radius: 4px;
}

/* copied from https://codepen.io/injms/pen/gemvi */
.play {
  background: #536778;
  border-radius: 50% / 10%;
  color: #ffffff;
  font-size: 0.5em; /* change this to change size */
  height: 3em;
  /*margin: 0px auto;*/
  padding: 0;
  position: absolute;
  text-align: center;
  text-indent: 0.1em;
  transition: all 150ms ease-out;
  width: 4em;
  opacity: 0.8;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.play:hover {
  background: darkorange;
}

.play::before {
  background: inherit;
  border-radius: 5% / 50%;
  bottom: 9%;
  content: "";
  left: -5%;
  position: absolute;
  right: -5%;
  top: 9%;
}

.play::after {
  border-style: solid;
  border-width: 1em 0 1em 1.732em;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.75);
  content: " ";
  font-size: 0.75em;
  height: 0;
  margin: -1em 0 0 -0.75em;
  top: 50%;
  position: absolute;
  width: 0;
}

.ct-series-a .ct-line,
.ct-series-a .ct-point {
  stroke: #0881c6;
}
