:root {
  --bg: #22152a;
  --bg-alt: #291933;
  --fg: #ffffff;
  --title: #9f7afd;
  --nav: #e31c66;
  --accent: #584166;
  --font-name: "Squic", sans-serif;
  --font-reg: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  --font-header:
    "Pixellari", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  --font-mono: "Lucida Console", Monaco, monospace;
}

@font-face {
  font-family: "Squic";
  src: url("/static/fonts/SQUIC.woff2");
}

@font-face {
  font-family: "Pixellari";
  src: url("/static/fonts/Pixellari.woff2");
}

html {
  width: 100%;
  height: 100%;
}

body {
  font-family: var(--font-reg);
  background-color: var(--bg);
  color: var(--fg);
  margin: 0;
  font-size: 1.2rem;
  min-height: 100%;
  overflow-x: hidden;
}

a {
  color: #8be9fd;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-family: var(--font-header);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.8rem;
}

hr {
  color: var(--accent);
}

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header>div:nth-child(1),
header>div:nth-child(3) {
  width: 7rem;
}

header h3 {
  color: white;
  font-family: var(--font-name);
  font-size: 4rem;
  letter-spacing: 0.5rem;
  margin: 0;
  text-shadow:
    5px 0px 1px #fd4ffe,
    -5px 0px 1px #09ffff,
    0px 0px 50px black;
}

header h3 a {
  color: white;
  text-decoration: none;
}

header h3 a:hover {
  text-decoration: none;
}

button {
  background-color: var(--bg-alt);
  border: var(--accent) 1px solid;
  border-radius: 5px;
  padding: 0.3em;
}

button:active {
  background-color: var(--accent);
}

table {
  width: 100%;
  border-spacing: 0;
  border: 2px var(--accent) solid;
  border-radius: 5px;
}

thead th {
  text-align: start;
}

thead th,
tbody td {
  padding: 1rem;
  border: 0;
  border-bottom: 1px var(--accent) solid;
}

tbody tr:last-child td {
  border-bottom: 0;
}

@media screen and (max-width: 760px) {
  table {
    border: none;
  }

  table thead {
    display: none;
  }

  table tbody {
    display: flex;
    flex-direction: column;
  }

  table tbody tr,
  table tbody td {
    display: block;
    border: 0;
  }

  table tbody td {
    padding: 1rem;
    font-weight: bold;
  }

  table tbody td:before {
    content: attr(data-name);
    width: 9rem;
    display: inline-block;
    text-transform: capitalize;
    font-weight: normal;
  }

  table tbody td.col-right {
    position: absolute;
    right: 0.5rem;
  }

  table tbody td.col-1 {
    top: 1.3rem;
  }

  table tbody td.col-2 {
    bottom: 1.3rem;
  }

  table tbody tr {
    position: relative;
    width: 100%;
    border: 2px solid var(--accent);
    border-radius: 5px;
    margin-bottom: 1rem;
  }

  table tbody tr:last-child {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 600px) {
  table tbody td.col-right {
    position: relative;
    text-align: start;
    top: 0;
    bottom: 0;
    right: 0;
  }
}

main > a {
  margin-top: 1rem;
}

.signin-btn {
  margin-right: 1rem;
}

.signout-btn {
  margin-right: 1rem;
}

.signin-form {
  display: flex;
  flex-direction: column;
  min-width: 15rem;
  max-width: 30rem;
  width: 100%;
}

.signin-form input {
  margin-bottom: 1rem;
}

.icon {
  fill: var(--fg);
  vertical-align: middle;
}

.col-right {
  text-align: end;
}

.tooltip-container {
  position: relative;
}

.tooltip-text {
  visibility: hidden;
  font-size: 0.9rem;
  width: 5rem;
  background-color: var(--accent);
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 3.6rem;
  right: -0.5rem;
  margin-left: 1rem;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-top-color: var(--accent);
  border-bottom: 0;
  margin-left: -10px;
  margin-bottom: -10px;
}

.tooltip:hover+.tooltip-text {
  visibility: visible;
}

#error-banner {
  display: hidden;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #600;
}

#error-banner h1 {
  font-size: 1.5rem;
}

#error-banner h1,
#error-banner p {
  margin: 0.5rem 0;
}
