

* {
  box-sizing: border-box;
  --primary: #448aff;
}

:root {
  --primary-container: #83b9ff;

  --surface: #212121; 
  --surface-container: #424242; 
  --surface-container-high: #6d6d6d; 

  --on-surface: #fafafa;
  --on-surface-variant: #f5f5f5; 
  --outline: #bdbdbd; 
  --outline-variant: #9e9e9e;

  --border: #616161; 
  --button-text1: #bdbdbd; 
  --button-text1-hover: #8d8d8d; 
  --button-text2: #fafafa; 
  --button-text2-hover: #ffffff; 

  --theme-toggle-image: 'dark_mode';
}

:root.theme-light {
  --primary-container: #005ecb;

  --surface: #fafafa;
  --surface-container: #f5f5f5;
  --surface-container-high: #c2c2c2;

  --on-surface: #212121; 
  --on-surface-variant: #424242; 
  --outline: #616161; 
  --outline-variant: #757575; 

  --border: #e0e0e0; 
  --button-text1: #9e9e9e;
  --button-text1-hover: #707070;
  --button-text2: #212121; 
  --button-text2-hover: #000000; 

  --theme-toggle-image: 'light_mode';
}

p small {
  color: var(--outline-variant);
} blockquote p {
  color: var(--outline-variant);
}

code {
  padding: 2px 4px;
  border-radius: 0.3rem;
} code, pre {
  background-color: var(--surface-container);
} pre code {
  padding: 0px 0px;
}

header li:last-child {
  border-right: 0px;
}

footer button {
  height: 40px;
  padding: 0;
  background: var(--surface-container);
  border-radius: 5px;
  border: 1px solid var(--border);
  width: 40px;
  color: var(--button-text2);
  justify-content: center;
  cursor: pointer;
} footer button:hover {
  color: var(--button-text2-hover);
} footer button:active {
  background-color: var(--surface-container-high);
}

#theme-toggle:after {
  content: var(--theme-toggle-image);
}


body {
  background-color: var(--surface);
  padding: 50px;
  font: 14px/1.5 -apple-system, 'Lexend', sans-serif;
  color: var(--outline);
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--on-surface);
  margin: 0 0 20px;
}

p, ul, ol, table, pre, dl {
  margin: 0 0 20px;
}

h1, h2, h3 {
  line-height: 1.1;
}

h1 {
  font-size: 28px;
  font-weight: 500;
}

h2 {
  color: var(--on-surface);
  font-weight: 500;
}

h3, h4, h5, h6 {
  color: var(--on-surface);
  font-weight: 500;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-container);
}

a small {
  font-size: 11px;
  color: var(--outline-variant);
  margin-top: -0.3em;
  display: block;
}

a:hover small {
  color: var(--on-surface-variant);
}

.wrapper {
  width: 860px;
  margin: 0 auto;
}

.button {
  background-color: var(--surface-container);
  border: 1px solid var(--border);
  border-radius: 5px;
  font: 18px/1.5 -apple-system, 'Lexend', sans-serif;
  color: var(--on-surface);
  height: 40px;
  width: 100%;
  margin-bottom: 5px;
  justify-content: center;
  display: block;
  font-size: 14px;
  cursor: pointer;
}

.button.invite {
  background-image: 
    url("../img/button-bg.png"), 
    linear-gradient(to right, rgba(255, 0, 255, 0.9), rgba(255, 155, 0, 0.9), rgba(0, 255, 255, 0.9));
  border: 1px solid black;
  text-shadow:-1px -1px 0 black, 1px -1px 0 black, -1px  1px 0 black, 1px  1px 0 black;
}

.button.discord {
  background-color: rgba(90, 100, 240, 0.3);
  border: 1px solid rgba(90, 100, 240, 1.0);
}

.button.beer {
  background-color: rgba(255, 255, 0, 0.3);
  border: 1px solid rgba(255, 255, 0, 1.0);
}

.button.portal {
  background-color: rgb(0, 255, 0, 0.3);
  border: 1px solid rgb(0, 255, 0, 1.0);
}

.col-row {
  display: flex;
  gap: 20px;
}

.col-3 {
  flex: 1 1 0;
  min-width: 30%;
  text-align: center;
}

.has-tooltip {
  position: relative;
  cursor: help;
  color: var(--on-surface);
  border-bottom: 1px dotted rgba(200, 220, 255, 0.5);
  display: inline-block;
}

.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 8px);
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  background: var(--surface-container);
  color: rgb(255, 255, 0);
  border: 1px solid rgba(255, 255, 0, 0.8);
  padding: 6px 9px;
  font-size: .75rem;
  border-radius: 6px;
  z-index: 60;
}

.has-tooltip:hover::after,
.has-tooltip:focus::after {
  visibility: visible;
  opacity: 1;
}

blockquote {
  border-left: 4px solid var(--border);
  margin: 0;
  padding: 0 0 0 20px;
  font-style: italic;
}

code, pre {
  font-family: Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal, Consolas, Liberation Mono, DejaVu Sans Mono, Courier New, monospace;
}

pre {
  padding: 8px 15px;
  background: var(--surface-container);
  border-radius: 5px;
  border: 1px solid var(--border);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 5px 10px;
  border-bottom: 1px solid var(--border);
}

dt {
  color: var(--on-surface-variant);
  font-weight: 500;
}

th {
  color: var(--on-surface-variant);
}

img {
  max-width: 100%;
}

header {
  width: 270px;
  float: left;
  position: fixed;
  -webkit-font-smoothing: subpixel-antialiased;
}

header ul {
  list-style: none;
  height: 40px;
  padding: 0;
  background: var(--surface-container);
  border-radius: 5px;
  border: 1px solid var(--border);
  width: 270px;
}

header li {
  width: 89px;
  float: left;
  border-right: 1px solid var(--border);
  height: 40px;
}

header li:first-child a {
  border-radius: 5px 0 0 5px;
}

header li:last-child a {
  border-radius: 0 5px 5px 0;
}

header ul a {
  line-height: 1;
  font-size: 11px;
  color: var(--button-text1);
  display: block;
  text-align: center;
  padding-top: 6px;
  height: 34px;
}

header ul a:hover {
  color: var(--button-text1-hover);
}

header ul a:active {
  background-color: var(--surface-container-high);
}

strong {
  color: var(--on-surface);
  font-weight: 500;
}

header ul li + li + li {
  border-right: none;
  width: 89px;
}

header ul a strong {
  font-size: 14px;
  display: block;
  color: var(--button-text2);
}

section {
  width: 500px;
  float: right;
  padding-bottom: 50px;
}

small {
  font-size: 11px;
}

hr {
  border: 0;
  background: var(--border);
  height: 1px;
  margin: 0 0 20px;
}

footer {
  width: 270px;
  float: left;
  position: fixed;
  bottom: 50px;
  -webkit-font-smoothing: subpixel-antialiased;
}

@media print, screen and (max-width: 960px) {
  div.wrapper {
    width: auto;
    margin: 0;
  }

  header, section, footer {
    float: none;
    position: static;
    width: auto;
  }

  header {
    padding-right: 320px;
  }

  footer {
    padding-right: 60px;
  }

  section {
    border-width: 1px 0;
    padding: 20px 0;
    margin: 0 0 20px;
  }

  header a small {
    display: inline;
  }

  header ul {
    position: absolute;
    right: 50px;
  }

  .opc-buttons {
    position: absolute;
    right: 58px;
    top: 52px;
    width: 270px;
  }

  footer button {
    position: fixed;
    right: 50px;
    bottom: 52px;
  }
}

@media print, screen and (max-width: 720px) {
  body {
    word-wrap: break-word;
  }

  header {
    padding: 0;
  }

  header ul, header p.view {
    position: static;
  }

  .opc-buttons {
    position: static;
    width: 100%;
  }

  pre, code {
    word-wrap: normal;
  }
}

@media print, screen and (max-width: 480px) {
  body {
    padding: 15px;
  }

  header ul {
    width: 99%;
  }

  header li, header ul li + li + li {
    width: 33%;
  }

  footer button {
    position: fixed;
    right: 25px;
    bottom: 26px;
  }
}

@media print {
  body {
    padding: 0.4in;
    font-size: 12pt;
  }
}