@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;
  height: 100%;
}
body {
  height: 85%;
}
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;
  width: 100%;
  height: auto;
  background-color: #031425;
  border: none;
  color: white;
  font-family: Inconsolata, Lucida Console, Monaco, Courier New, monospace;
}


/* 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;
}
.disconnected-modal .modal-content {
  background-color: #002e3e;
}
.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: flex;
  flex-direction: column-reverse;
  visibility: hidden;
  width: 100%;
  height: 100%;
}
#ui {
  display: flex;
  flex-direction: row;
}
#ui > div {
  border: aqua 3px solid;
  background-color: #002e3e;
  height: auto;
}
#stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#terminal {
  position: relative;
  width: 50%;
  height: 100%;
  padding: 20px;
  margin: 0 auto;
}
#game-space {
  width: 100%;
  height: 100%;
  border: transparent;
}
.connection-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px;
  position: absolute;
  border: aqua 3px solid;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  background-color: #031425;
}