/* Load fonts */
@font-face {
  font-family: "Tomorrow Regular";
  src: url(/assets/Tomorrow-Medium-794d4a265c6eafb5c387a726714bc51774cd9364136347b0b6f19ff9fd0bc03f.ttf) format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Tomorrow Bold";
  src: url(/assets/Tomorrow-Bold-861c95c5179bcfc68e4e72651ef9fc6670eb033592a6e8f26f988148e54b8ba7.ttf) format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Overpass Regular";
  src: url(/assets/Overpass-Regular-b582f0066678c37d3cb13e34d14d459ce022ac66ddbd28c312b81e178938d2c2.ttf) format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --bggrey:  #5a5a5a;
  --bgwhite: #fafafa;
  --bgred:   #cc0000;
  --grey:  #5a5a5a;
  --lgrey: #5a5a5a66;
  --white: #fafafa;
  --black: #0d0d0d;
  --tblack: #22222266;

  --red: hsl(0, 100%, 40%);
  --dred: hsl(0, 100%, 25%, 0.4);
  --yellow: hsla(45, 100%, 40%);
  --dyellow: hsl(45, 100%, 25%, 0.4);
  --green: hsl(80, 100%, 40%);
  --dgreen: hsl(80, 100%, 25%, 0.4);
  --skyblue: hsl(182, 100%, 40%);
  --dskyblue: hsl(182, 100%, 40%, 0.4);
  --orange: hsl(20, 100%, 40%);
  --dorange: hsl(20, 100%, 40%, 0.4);
  --purple: hsl(280, 100%, 40%);
  --dpurple: hsl(280, 100%, 40%, 0.4);
  
  --overlay-margin: 7px;
}

html, body {
  height: 100%;
  width: 100%;
  position: fixed;
  margin: 0px;
}
body {
  background: linear-gradient(-45deg,
    var(--bgred) 10%,
    var(--bgwhite) 10%,
    var(--bgwhite) 14%,
    var(--bggrey) 14%,
    var(--bggrey) 20%,
    var(--black) 20%
  );
}
* {
  color: var(--white);
  box-sizing: border-box;
}
h1, h2, h3, summary {
  font-family: "Tomorrow Regular", sans-serif;
}
h1 {
  text-align: center;
  font-style: normal;
  font-size: 45px;
}
h2 {
  font-style: normal;
  font-size: 35px;
}
h3, summary {
  font-style: normal;
  font-size: 25px;
}
hr {
  width: 100%;
  color: var(--grey)
}
code {
  background: grey;
  padding: 1px;
}
summary {
  cursor: pointer;
  margin-bottom: 10px;
  width: 100%;
}
details {
  border-left: 4px solid var(--grey);
  padding-left: 10px;
  margin-bottom: 15px;
}
p,span,div,button,textarea,input,li {
  font-family: "Overpass Regular", sans-serif;
  font-style: normal;
  font-size: 20px; 
}
strong {
  font-size: 22px;
}
button, input[type=submit], select {
  background: var(--grey);
  transition: background 0.25s linear;
  padding: 10px;
  font-size: 17px;
  font-weight: bolder;
}
input[type=radio] {scale: 1.6}
input[type=submit] {width: 100%;}
button:hover:not(:disabled), input[type=submit]:hover:not(:disabled), input[type=radio]:hover {background: var(--dred);}
input:disabled {background: rgb(160, 160, 160);}
input {
  background: var(--grey);
  color: var(--white);
  font-size: 20px;
  padding: 5px;
}
input:not(input[type="radio"]) {
  width: 100%;
}
label, input[type=submit]{
  font-weight: bolder;
}
button, input, select, .dialog {
  border-radius: 5px;
  border: 2px solid black;
}
form {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  padding: 10px;
  /* border: 4px solid var(--lgrey); */
  border-radius: 10px;
  justify-content: left;
}
form input {
  margin-bottom: 20px;
}
table {
  border-collapse: collapse;
  overflow-x: auto;
  width: 100%;
  margin-bottom: 10px;
}
table input[type=checkbox] {
  height: 40px;
  width: 100%;
}
td, th {
  text-align: left;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: var(--black);
}
tr:nth-child(even) {
  background-color: var(--lgrey);
}

.content-box, .content {
  display: flex;
  flex-direction: column;
  justify-content: left;
}
/* Fits the whole page and contains everything */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}
/* Main box, small border with red box shadow */
.content-box, .content-grid {
  background-color: var(--black);
  border-radius: 10px;
  margin-top: 30px;
  border: 2px solid var(--grey);
  width: 85%;
  padding: 20px;
  box-sizing: border-box;
  box-shadow: -10px 10px 5px var(--dred);
  overflow-y: auto;
  max-height: 75vh;
}
.content-grid {
  display: grid;
  grid-template-rows: auto;
  gap: 10px;
}

/* For blocks of text on screen */
.content {
  /* border-left: 4px solid var(--grey);
  border-right: 4px solid var(--grey);
  border-right: 1px solid var(--lgrey); */
  border-radius: 5px;
  background: var(--tblack);
  box-shadow: -7px 7px 5px 2px var(--lgrey);
  padding: 30px;
  max-width: 40vw;
}
.content-grid-item {
  background: var(--lgrey);
  padding: 20px;
}
.split {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  justify-content: space-around;
  width: 80%;
  gap: 20px;
}
.split img {
  height: 100%;
  max-height: 400px;
  width: 100%;
  object-fit: cover;
  overflow: hidden
}
.sbs-grid-template {grid-template-columns: 0.5fr 1fr 0.5fr;}

#dialog {
  width: 100%;
  max-width: 50%;
  padding: 10px;
  margin-top: 20px;
  box-sizing: border-box;
  transition: opacity 2s;
}
.nav {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: left;
  list-style: none;
  overflow-x: auto;
  background: black;
  width: 100%;
  padding: 5px;
  margin: 0px;
}
.nav img {height: 100%; width: 50px}
.nav li button {
  border: none;
  border-radius: unset;
  margin-right: 10px;
  background: black;
  transition: background 0.5s;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.action-button {
  padding: 4px;
  width: 50px;
  height: 50px;
}
.action-button img {width: 100%;}
.input-overlay {
  display: flex;
  justify-content: left;
  position: absolute;
  top: 0px;
  left: 0px;
  margin: var(--overlay-margin);
}
.input-overlay * {
  color: rgba(255, 255, 255, 0.75);
}
.input-overlay span:first-child {
  opacity: 0;
}
.info {
  list-style-type: none;
  padding: 5px;
}
.info li {
  border: 2px solid var(--grey);
  background: var(--tblack);
  padding: 3px;
}
.value-list {
  width: 100%;
  padding: 5px;
}
.value-list li {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

/* Helpers */
.notouchies, .content img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}
.scroll-x {overflow-x: auto;}
.center {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.text-center {text-align: center;}
.inline {
  display: flex;
  flex-direction: row;
  margin-top: 0px;
}
.inline * {
  margin-bottom: 0px;
}
.center-button {
  display: flex;
  align-items: center;
  justify-content: center;
}
.min {
  width: min-content;
}
.selected {border-bottom: 5px solid grey !important;}
.big {font-size: 30px !important;}
.spaced {margin: 10px 0px 10px 0px;}

/* Makes an element stand out */
.ok, .warn, .error, .note-box {border-radius: 10px;}
.ok {
  border: var(--green) 2px solid;
  box-shadow: 0px 0px 20px var(--dgreen);
  background: var(--dgreen);
}
.warn {
  border: var(--yellow) 2px solid;
  box-shadow: 0px 0px 20px var(--dyellow);
  background: var(--dyellow);
}
.error {
  border: var(--red) 2px solid;
  box-shadow: 0px 0px 20px var(--dred);
  background: var(--dred);
}

.note-box p {margin-top: 15px;}
.note-box {
  padding: 10px;
  border: var(--skyblue) 2px solid;
  box-shadow: 0px 0px 20px var(--dskyblue);
  background: var(--dskyblue);
}
.note-box::before {
  content: "NOTE:";
  font-weight: bolder;
  margin-bottom: 10px;
}
/* Tool Tips */
.tooltip {
  position: relative;
}
.tooltip .tooltiptext {
  background-color: var(--grey);
  color: var(--white);
  visibility: hidden;
  width: 120px;
  text-align: center;
  border-radius: 5px;
  padding: 3px;
  position: absolute;

  top: -0.5rem;
  left: 120%;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
  word-wrap: anywhere;
}
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 0.5rem;
  right: 100%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent var(--grey) transparent transparent;
}
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Mobile 'support' */
@media only screen and (max-width: 900px) {
  .content {
    border: none;
    width: auto;
    overflow-x: auto;
    max-width: 100%;
  }
  .content-box, .content-grid {
    width: 100%;
    max-height: 90vh;
    margin-top: 0px;
  }
  .split {
    grid-template-columns: none;
    width: 100%;
  }
  .content-grid {
    display: block;
  }
  .content-grid-item {
    margin-top: 10px;
  }
}
