@font-face {
  font-family: degularText;
  src: url('fonts/DegularText-Medium.otf') format('opentype');
}

@font-face {
  font-family: degularText;
  src: url('fonts/DegularText-Bold.otf') format('opentype');
  font-weight: bold;
}

@font-face {
  font-family: degularText;
  src: url('fonts/DegularText-MediumItalic.otf') format('opentype');
  font-style: italic;
}

@font-face {
  font-family: degularDisplay;
  src: url('fonts/DegularDisplay-Black.otf') format('opentype');
}

@font-face {
  font-family: degularRegular;
  src: url('fonts/Degular-Regular.otf') format('opentype');
}

/* Set base color variables */
:root {
    --text-color: #A0A0A0;
    --text-highlight-color: #ca9e67;
    --link-hover-color: #fcf5ee;
    --background-color: #1e1e1e;
    --background-color-transparent: rgba(30,30,30,0.5);
    --background-color-light: #2e2e2e;
    --success: #00ff00;
    --warning: rgb(201, 201, 42);
    --error: red;
    --wtsd-red-darker: #be1622;
    --wtsd-red: #e30613;
}

/* Reset some default styles */

html {
  height: 100%;
}

h1,
p {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--background-color);
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  min-height: 95vh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  font-style: normal;
}

nav {
  background-color: #222;
  padding: 10px;
  gap: 5px;
  border-bottom: 2px solid var(--text-highlight-color);
}

nav::after {
  content: "";
  clear: both;
  display: table;
}

nav .title {
  font-weight: 300;
  font-size: 48px;
}

.highlighted {
    color: var(--text-highlight-color);
}

a {
  color: var(--text-highlight-color);
  text-decoration: none;
  margin-right: 20px;
}

a:hover {
  font-weight: bold;
  color: var(--link-hover-color);
}

.content-title {
  font-size: 28px;
  font-weight: bold;
}

.right {
  float: right;
  padding: 10px;
}

.navlink {
  width: 12em;
}

.center {
  float: center;
}

.centered {
  margin: auto;
  justify-content: center;
  align-items: center;
}

.content {
  flex: 1;
  background-color: #111;
  padding: 20px;
}

.content::after {
  content: "";
  clear: both;
  display: table;
}

.padded {
  padding: 5px;
}

h1 {
  font-size: 36px;
  color: var(--text-highlight-color);
}

h2 {
  font-size: 28px;
  color: var(--text-highlight-color);
}

.event-title {
  margin-block-start: 0;
  margin-block-end: 0.4em;
}

hr {
  color: var(--text-highlight-color);
  border: 1px solid var(--text-highlight-color);
}

.splash-image {
  display: block;
  margin: auto;
  max-width: 35%;
}

.about {
  font-style: italic;
}

.info {
  margin-top: 10px;
  color: #888;
}

#content {
  margin-top: 20px;
}

body p {
  margin-bottom: 5px;
  line-height: 1.2;
}

fieldset {
  border-color: var(--text-highlight-color);
  border-style: dotted;
  border-width: 1px;
}

.wtsd-table {
  border-color: var(--text-highlight-color);
  border-style: dotted;
  border-width: 1px;
  border-collapse: collapse;
  width: 100%;
  margin-top: 5px;
  padding: 5px;
}

.wtsd-table th{
  border-color: var(--text-highlight-color);
  color: var(--text-highlight-color);
  background-color: var(--background-color-light);
  padding: 5px;
  text-align: left;
}

.wtsd-table tr{
  border-color: var(--text-highlight-color);
  border-top-style: dotted;
  border-top-width: 1px;
  
}
.wtsd-table td {
  padding-left: 5px;
  padding-right: 5px;
}

.form-control {
  font-family: system-ui, sans-serif;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.1;
  display: grid;
  grid-template-columns: 1em auto;
  gap: 0.5em;
}

.form-control + .form-control {
  margin-top: 1em;
}

.form-control--disabled {
  color: var(--text-color);
  cursor: not-allowed;
}

input[type="checkbox"] {
  /* Add if not using autoprefixer */
  -webkit-appearance: none;
  /* Remove most all native input styles */
  appearance: none;
  /* For iOS < 15 */
  background-color: var(--background-color-light);
  /* Not removed via appearance */
  margin: 0;

  font: inherit;
  color: var(--text-highlight-color);
  width: 1.15em;
  height: 1.15em;
  border: 1px solid var(--text-highlight-color);
  border-radius: 0.15em;

  display: grid;
  place-content: center;
}

input[type="checkbox"]::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  transform: scale(0);
  transform-origin: bottom left;
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--text-highlight-color);
  /* Windows High Contrast Mode */
  background-color: var(--background-color-light);
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}

input[type="checkbox"]:focus {
  outline: max(2px, 0.15em) solid var(--link-hover-color);
  outline-offset: max(2px, 0.15em);
}

input[type="checkbox"]:disabled {
  color: var(--text-color);
  cursor: not-allowed;
}


/* Create three equal columns that floats next to each other */
.column {
  float: left;
  width: 30%;
  padding: 15px;
}

.small-bordered-btn {
  border-color: var(--text-highlight-color);
  color: var(--text-highlight-color);
  border-style: dotted;
  border-width: 1px;
  background-color: var(--background-color-light);
  padding: 2px;
  margin: 2px;
}

.small-bordered-btn:hover {
  border-style: solid;
  border-width: 2px;
  margin-top: 1px;
  margin-bottom: 1px;
  padding-left: 1px;
  padding-right: 1px;
  color: var(--link-hover-color);
  font-weight: bold;
}

.large-bordered-btn {
  border-color: var(--text-highlight-color);
  color: var(--text-highlight-color);
  border-style: dotted;
  border-width: 1px;
  background-color: var(--background-color-light);
  padding: 10px;
  margin: 5px;
  position: relative;
  width: 12em;
}

.large-bordered-btn:hover {
  border-style: solid;
  border-width: 2px;
  margin-top: 4px;
  margin-bottom: 4px;
  padding-left: 9px;
  padding-right: 9px;
  color: var(--link-hover-color);
  font-weight: bold;
}

.bordered {
  border-color: var(--text-highlight-color);
  border-style: dotted;
  border-width: 1px;
  background-color: var(--background-color-light);
  padding: 10px;
  margin: 5px;
  position: relative;
}

.bordered-selectable:hover {
  border-style: solid;
  border-width: 2px;
  margin-top: 4px;
  margin-bottom: 4px;
  padding-left: 9px;
  padding-right: 9px;
}

button.bordered-selectable:hover {
  color: var(--link-hover-color);
  font-weight: bold;
}

.flexwrap-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
@media screen and (max-width: 768px) {
  .content { padding: 10px; }

  nav .title { font-size: 28px; }

  .column {
    float: none;
    width: 100%;               /* was 80% */
  }

  .right {
    float: none;
    display: block;
    padding: 0;
  }

  .large-bordered-btn,
  .navlink {
    width: 100%;               /* was 12em */
    margin: 5px 0;
  }

  a { margin-right: 10px; }

  .wtsd-table, .wtsd-table tbody, .wtsd-table tr, .wtsd-table td {
    display: block;
    width: 100%;
  }
  .wtsd-table thead { display: none; }   /* hide header row */
  .wtsd-table tr { margin-bottom: 10px; padding: 5px 0; }
  .wtsd-table td {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 5px;
  }
  .wtsd-table td::before {
    content: attr(data-label);
    color: var(--text-highlight-color);
    font-weight: bold;
  }

  .splash-image {
    max-width: 80%;
  }
}

/* Glitch box effect */

.box {
  position: relative;
  z-index: 1
}

.linkbox {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

ul {
  margin-block-start: 0.2em;
  margin-block-end: 0.2em;
}
/* Forms */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--text-highlight-color);
}

.form-field .hint {
  font-size: 12px;
  color: #888;
}

.form-field.checkbox {
  flex-direction: row;
  align-items: center;
}

input[type="text"],
input[type="number"],
input[type="datetime-local"],
textarea {
  background-color: var(--background-color-light);
  color: var(--text-color);
  border: 1px solid var(--text-highlight-color);
  padding: 8px;
  font-family: inherit;
  font-size: 14px;
}

input:focus,
textarea:focus {
  outline: none;
  border-style: dashed;
  color: var(--link-hover-color);
}

.button {
  background-color: var(--background-color-light);
  color: var(--text-highlight-color);
  border: 1px solid var(--text-highlight-color);
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
}

.button:hover {
  color: var(--link-hover-color);
  font-weight: bold;
}

.question-row {
  display: flex;
  gap: 10px;
}

.question-row input {
  flex: 1;
}

#form-status.success { color: var(--success); }
#form-status.error { color: var(--error); }

.ms-box { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; border: 1px solid #888; padding: 4px; }
.ms-box input { flex: 1; min-width: 120px; border: none; outline: none; }
.ms-chip { background: #ddd; border-radius: 12px; padding: 2px 8px; cursor: default; margin-right: 4px; }
.ms-chip a { margin-left: 6px; cursor: pointer; text-decoration: none; }
.ms-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid #888; max-height: 200px; overflow-y: auto; }
.ms-list li { padding: 4px 8px; cursor: pointer; color: #000; }
.ms-list li.active, .ms-list li:hover { background: #cde; }

@media screen and (max-width:768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  padding: 8px 20px;
  text-align: center;
  font-size: 12px;
  background-color: var(--background-color);
}

.site-footer a {
  color: #888;
  text-decoration: none;
  margin: 0 8px;
}

.site-footer a:hover {
  color: #bbb;
  text-decoration: underline;
}
