/*-------------*
 * page layout *
 *-------------*/

:root {
  --background-color: black;
  --main-color: #ADD8E6;
}

body {
  background-color: var(--background-color);
  margin: 1%;
}

.nav {
  width: min(50rem, 100%);
  margin: auto;
}


/*------*
 * text *
 *------*/

@font-face {
  font-family: 'Roboto Mono';
  src: local('Roboto Mono'), url(RobotoMono-Regular.ttf) format('truetype');
}

body {
  font-family: 'Roboto Mono', monospace;
  color: var(--main-color);
}

a {
  color: var(--main-color);
}


/*------------*
 * animations *
 *------------*/

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { background: var(--main-color);; }
  20%, 24%, 55%                     { background: rgba(173, 216, 230, .75); }
}

@keyframes glow {
  0%   { box-shadow: 0 0 0; }
  100% { box-shadow: 0 0 1em 0 var(--main-color); }
}

@keyframes flash {
  50%   { opacity: .6; }
}


/*-------*
 * forms *
 *-------*/

input {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  border: 1px solid #666;
  border-radius: .5em;
  padding: .5em;
  font-family: 'Roboto Mono', monospace;
}

label {
  display: block;
  margin-bottom: .5em;
}


/*--------*
 * legacy *
 *--------*/

form#auth {
  display: inline-block;
}
.grid {
  display: grid;
  width: 100%;
  grid-template-columns: 49.5% 49.5%;
  grid-gap: 10pt 1%;
}
.panel {
  border-width: 0px 1px;
  border-stlye: solid;
  border-radius: .3em;
  padding: 0 10pt 0 10pt;
}
.panel.wide {
  grid-column: 1/-1;
}
.panel.red {
  border-color: #500;
  color: #f88;
  background-color: #400;
  margin-bottom: 15pt;
}
.panel form {
  margin: 5pt;
}
.red label {
  display: revert;
}
.red button {
  background: #700;
  border: 1px solid #800;
  border-radius: .3em;
  color: #f99;
  text-transform: uppercase;
  cursor: pointer;
  margin: 0 0.5em;
  padding: .2em .5em;
  display: revert;
  width: revert;
}
form#auth input {
  background: #600;
  border: 1px solid #700;
  border-radius: 1px;
  font-family: 'Roboto Mono', monospace;
  color: #f99;
  width: revert;
  padding: revert;
}


/*---------*
 * buttons *
 *---------*/

button, a.button {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 1em 0;
  padding: .5em .5em .5em 2.5em;
  background: var(--main-color);;
  border: 1px solid #eef;
  border-radius: .5em;
  font-family: 'Roboto Mono', monospace;
  font-size: 10pt;
  color: #000;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

button:hover, a.button:hover {
  animation: flicker 2s, glow 1s ease;
  box-shadow: 0 0 1em 0 #FFF;
}

button.disabled, a.button.disabled {
  background: #999;
  border-color: #CCC;
  color: #222;
  cursor: not-allowed;
}

button.disabled:hover, a.button.disabled:hover {
  animation: none;
  box-shadow: revert;
}

button .icon, a.button .icon {
  position: absolute;
  left: .5em;
  top: 0;
  height: 100%;
  width: 1.5em;
  background-position: center center;
  background-repeat: no-repeat;
}

button .icon.access, a.button .icon.access {
  left: revert;
  right: .5em;
}


/*-------*
 * icons *
 *-------*/

.icon.chat          { background-image: url(/public/message-solid-full.svg) }
.icon.delete        { background-image: url(/public/trash-can-solid-full.svg) }
.icon.exit          { background-image: url(/public/door-open-solid-full.svg) }
.icon.droplet       { background-image: url(/public/droplet-solid-full.svg) }
.icon.earth         { background-image: url(/public/earth-africa-solid-full.svg) }
.icon.home          { background-image: url(/public/house-solid-full.svg) }
.icon.submit        { background-image: url(/public/paper-plane-solid-full.svg) }
.icon.train         { background-image: url(/public/train-solid-full.svg) }
.icon.access.denied { background-image: url(/public/lock-solid-full.svg) }
