@font-face {
  font-family: 'Inconsolata';
  src: url('../fonts/inconsolata/Inconsolata-Regular.ttf');
  font-weight: normal;
}
@font-face {
  font-family: 'Inconsolata';
  src: url('../fonts/inconsolata/Inconsolata-Bold.ttf');
  font-weight: bold;
}


/* Section Elements */
:root {
  background-color: #00001a;

  font-family: Inconsolata, Lucida Console, Monaco, Courier New, monospace;
  font-weight: normal;
  color: lightskyblue;
}
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;

  padding: 1em;
  border-top: aqua 1px solid;
  background-color: #00001a;
}


/* Text Elements */
h1 {
  font-size: 3em;
  text-align: center;
  margin: 20px 0;
}
h2 {
  font-size: 1.5em;
  margin: 10px 5px;
}
h3 {
  font-size: 1em;
  margin: 5px 5px;
}
p {
  font-size: 14px;
  margin: 5px 5px
}
p .error {
  color: red;
}
code {
  background-color: rgba(3, 15, 34, 0.63);
}


/* Input Elements */
button {
  padding: 10px;
  background-color: #00001a;

  border: aqua 3px solid;

  font-family: Inconsolata, Lucida Console, Monaco, Courier New, monospace;
  font-weight: normal;
  font-size: 20px;
  color: lightskyblue;

  cursor: pointer;
}
button:hover {
  background-color: aqua;

  font-weight: bold;
  color: #00001a;
}
button:active {
  background-color: darkcyan;
}
button:disabled,
button:disabled:hover,
button:disabled:active{
  background: transparent;
  border-color: #4f4f4f;
  color: #424242;
  font-weight: normal;
  cursor: not-allowed;
}
/* https://css-tricks.com/styling-cross-browser-compatible-range-inputs-css/ */
input[type=range] {
  -webkit-appearance: none;
  margin: 18px 0;
  width: 100%;
  background: transparent;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: #031425;
  border-radius: 1px;
}
input[type=range]::-webkit-slider-thumb {
  border: 3px solid aqua;
  height: 36px;
  width: 16px;
  border-radius: 10px;
  background: #031425;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -14px;
}
input[type=range]::-moz-range-progress {
  background: lightskyblue;
  width: 100%;
  height: 8px;
  cursor: pointer;
}
input[type=range]::-moz-range-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: #031425;
  border-radius: 1px;
}
input[type=range]::-moz-range-thumb {
  border: 3px solid aqua;
  height: 36px;
  width: 16px;
  border-radius: 10px;
  background: #031425;
  cursor: pointer;
}
input[type=range]::-moz-range-thumb:hover {
  background: aqua;
}
input[type=range]::-ms-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  border-width: 16px 0;
  color: transparent;
}
input[type=range]::-ms-fill-lower {
  background: lightskyblue;
  border-radius: 3px;
}
input[type=range]::-ms-fill-upper {
  background: #031425;
  border-radius: 3px;
}
input[type=range]::-ms-thumb {
  height: 36px;
  width: 16px;
  border-radius: 10px;
  background: darkgray;
  cursor: pointer;
}
input[type=text] {
  position: relative;
  bottom: 0;
  right: 0;
  width: 100%;
  height: auto;
  background-color: #031425;
  border: none;
  color: white;
  font-family: Inconsolata, Lucida Console, Monaco, Courier New, monospace;
  border-top: aqua;

}


/* Modals */
/*https://www.w3schools.com/howto/howto_css_modals.asp*/
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}
.modal-content {
  background-color: #002e3e;
  margin: 15% auto;
  padding: 20px;
  border: 3px solid aqua;
  width: 80%;
  max-width: 800px;
}
.modal-content h2 {
  margin: 0;
}
.close {
  background-color: #3a0909;
  border: red solid 3px;
  color: red;
  float: right;
  font-weight: bold;
  vertical-align: baseline;
  text-align: center;
  width: 30px;
  height: 30px;
}
.close p {
  margin: -10px 0 0 -4px;
  font-size: 25px;

  top: 0;
  position: relative
}
.close:hover {
  color: #3a0909;
  background-color: red;
  text-decoration: none;
  cursor: pointer;
}
.close:focus {
  background-color: #bd0707;
}
.modal section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin: 25px;
}


/* Scenes */
#main-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;

  position: absolute;

  top: 40%;
  bottom: 50%;
  left: 10%;
  right: 10%;
}
.mainBtn {
  width: 100%;
  max-width: 150px;
}
.logo {
  max-width: 150px;
  width: 20%;
}

#game {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: 300px 200px;
  grid-template-areas:
    "connections camera   camera"
    "connections terminal map   ";
  visibility: hidden;
  grid-gap: 20px;
  margin: 20px;
  height: auto;
}
#game > div {
  border: aqua 3px solid;
  background-color: #002e3e;
  height: auto;
  /*height: 200px;*/
}
#connections {
  grid-area: connections;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
}
#connections > article {
  display: grid;
  padding: 10px;
  grid-template-areas:
  "img h2"
  "img p";
  border-top: 2px solid aqua;
  border-bottom: 2px solid aqua;
}
#connections > article:hover {
  background-color: #024a65;
}
#camera {
  grid-area: camera;
}
#terminal {
  grid-area: terminal;
}
#map {
  grid-area: map;
}