* {
  font-family: "FreeMono-monospace";
}
body {
  text-align: center;
  min-width: 1320px;
  background-color: #333333;
  color: white;
  user-select: none;
}

.enigma--settings {
  display: none;
  position: fixed;
  z-index: 2;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.enigma--settings > .content {
  font-size: 20px;
  position: relative;
  background-color: rgba(0, 0, 0, 0.836);
  margin: auto;
  padding: 0;
  width: 40%;
  min-width: 400px;
  color: white;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
}
.enigma--settings-table {
  border: 0.1px solid white;
}
.enigma--settings-table > tbody > tr > td {
  border: 0.1px solid #525252;

  color: white;
  text-align: center;
  font-size: 1 8px;
}

select {
  text-align: center;
  font-size: 20px;
  text-align-last: center;
  -webkit-appearance: none;
  width: 60%;
}
/* width */
::-webkit-scrollbar {
  width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  background: transparent;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}
/* Add Animation */
@-webkit-keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

/* The Close Button */
.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: rgb(185, 185, 185);
  text-decoration: none;
  cursor: pointer;
}

.enigma--settings > .content > .header {
  padding: 2px 16px;
  color: white;
}

.enigma--settings > .content > .body {
  padding: 2px 16px;
}

button {
  font-size: 10px;
  font-family: "Press Start 2P", cursive;
  text-decoration: none;
  width: 130px;
  height: 20px;

  margin-top: 20px;
}
.enigma {
  display: flex;
  justify-content: center;
  user-select: none;
}
.enigma--machine {
  background-image: url("images/metallic.jpg");
  background-repeat: no-repeat;
  background-size: 110%;
  width: 500px;
  height: auto;
  padding-top: 2%;
  margin-left: 1%;
  margin-right: 1%;
  margin-bottom: auto;
  border-radius: 40px;
  border-width: 15px;
  border-style: solid;
  border-image: url("images/wood.jpg") 30 round;

  /*  border-left: 15px solid #c19a6b;
  border-right: 15px solid #c19a6b;
  border-bottom: 10px solid #c19a6b;
  border-top: 10px solid #c19a6b;*/
  min-width: 490px;
}

.rotors {
  display: flex;
  width: 40%;
  margin: 0 auto;
  padding: 2%;
}
.rotor {
  margin: 0 auto;
  color: black;
  width: 23px;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(42, 42, 42, 1) 1%,
    rgba(245, 245, 245, 1) 28%,
    rgba(52, 52, 52, 1) 30%,
    rgba(216, 216, 216, 1) 31%,
    rgba(255, 255, 255, 1) 50%,
    rgba(212, 212, 212, 1) 67%,
    rgba(45, 45, 45, 1) 69%,
    rgba(226, 226, 226, 1) 70%,
    rgba(42, 42, 42, 1) 99%,
    rgba(0, 0, 0, 1) 100%
  );
  cursor: pointer;
}

.rotor > div {
  padding-top: 11px;
  padding-bottom: 11px;
  user-select: none;
}

.key-board,
.light-board {
  margin: auto;
  text-align: center;
  font-size: 14px;
}
.key-board,
.light-board,
.plug-board {
  padding: 2%;
}

@keyframes key-press {
  1% {
    top: 0.2em;
  }
}
.light-board {
  /*background-color: rgb(158, 158, 158);*/
  width: 80%;
  margin-bottom: 1%;
}
.key-row {
  display: inline-block;
  height: 3em;
  margin: 0.2em;
}

.key-board div > div[data-pressed],
.key-board div > div:active {
  top: 0.2em;
}

.plug-board > div > .key,
.key-board > div > .key,
.light-board > div > .key {
  border-radius: 50%;
  position: relative;
  text-align: center;
  color: #eee;
  float: left;
  margin: 0.2em;
  -webkit-user-select: none;
}

.key-board > div > .key {
  background: linear-gradient(
    135deg,
    #4c4c4c 0%,
    #595959 12%,
    #666666 25%,
    #474747 39%,
    #2c2c2c 50%,
    #000000 51%,
    #111111 60%,
    #2b2b2b 76%,
    #1c1c1c 91%,
    #131313 100%
  );
  border: 1px solid white;
  width: 3em;
  height: 3em;
  line-height: 3em;
  cursor: pointer;
  font-weight: bold;
}

.light-board > div > .key {
  /*background-color: rgb(239, 252, 57);*/
  background: rgb(255, 255, 255);
  border: 1px solid rgb(41, 41, 41);
  color: black;
  width: 2.5em;
  height: 2.5em;
  line-height: 2.5em;
  cursor: normal;
}
@keyframes light_yellow {
  0% {
    background: rgb(240, 255, 27);
  }
}
.plug-board {
  text-align: center;
}
.plug-board > div > div > div {
  border: 2px #aaaaaa solid;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background: rgb(68, 68, 68);
  margin: 0 auto;
}

.plug-board > div > .key {
  width: 2em;
  height: 2em;
}

.line {
  height: 4px;
  background-color: #333333;
  opacity: 0.5;
  box-shadow: 0px 0px 5px 4px rgba(51, 51, 51, 0.75);
}

.book {
  padding-top: 40px;
  width: 533px;
  height: 335px;
  background-image: url("images/paper.png");
  background-size: 100%;
  background-repeat: no-repeat;
  margin: auto;
  color: black;
}
.book > table {
  margin-left: 65px;
  /*margin: auto;*/
  color: black;
  padding-left: 5%;
}

.paper-description {
  color: black;
  text-align: left;
  text-decoration: underline;
  font-weight: bold;
  font-family: courier new;
  font-size: 13px;
}

.text-sheet {
  background-color: transparent;
  border: transparent;
  outline: transparent;
  resize: none;
  padding-right: 10%;
  height: 240px;
  max-height: 240px;
  width: 170px;
  font-family: courier new;
  font-size: 10pt;
}

