html, body {
  height: 100%;
  width: 100%;
  background-color: #111524;
  color: #e6e6e6;
}

*:focus {
    outline: none;
}

* {
  margin: 0;
  padding: 0;
  font-weight: 100 !important;
}

.header{
  width: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #1f1f1f;
  text-align: center;
  height: 30px;
  font-size: 13px;
  color: #d6d6d6;
}

.menu{
  background-color: #1f1f1f;
  width: 100%;
  font-size: 20px;
}

.topHalf{
  width: 100%;
  height: 90%;
  font-size: 20px !important;
  font-family: calibri !important;
}

.converterWindow{
  width: 100%;
  height: 100%;
  background-color: #1f2332;
  overflow: auto;
}

.outWindow{
  width: 27%;
  padding-left: 2%;
  float: left;
  height: 100%;
  border-bottom: 1px solid white; 
  background-color: #151823;
  overflow: auto;
}

.bottomHalf{
  width: 96%;
  display: inline-block;
  padding-left: 2%;
  padding-top: 10px;
  max-height: 35%;
  overflow: auto;
  font-size: 20px !important;
  font-family: calibri !important;
}

.recursionWindow{
  width: 70%;
  float: left;
  border-right: 1px solid white;  
  background-color: #1f2332;
  border-bottom: 1px solid white;
  overflow: auto;
}

.stackDiv{
  width: 27%;
  padding-left: 2%;
  float: left; 
}

.stackTable{
  width: 100%;
  border-collapse: collapse;
  background-color: #151823;
}

.stackTable th,tr{
  border-top: 1px solid white;
  border-left: 1px solid white;
  border-bottom: 1px solid white;
  text-align: center;
  width: 50%;
  white-space: nowrap;
}

.battleshipTable{
  border-collapse: collapse;  
}

.battleshipTable td{
  border: 1px solid white;
  text-align: center;
  width: 40px;
  height: 40px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.columnsTable{
  margin: auto;
  min-height: 30px;
  border-collapse: collapse;
  transform: translateX(-7px);
}

.columnsTable td{
  border: 1px solid white;
  width: 30px;
  writing-mode: vertical-rl;
}

.binaryDigitsTable{
  margin: auto;
  min-height: 30px;
  border-collapse: collapse;
  transform: translateX(-7px);
}

.binaryDigitsTable td{
  border: 1px solid black;
  background-color: white;
  width: 30px;
  height: 50px;
  color: black;
}

.binaryInput{
  width: 90%;
  text-align: center;
  font-size: 35px;
  font-family: monospace;
  letter-spacing: 12px;
  font-variant-numeric: tabular-nums;
  overflow: auto;
  margin: auto;
  background-color: white;
}

.binaryInput:focus{
  outline: none;
}

.bitLengthInput{
  width: 70px;
  text-align: center;
  font-size: 16px;
}

.bitLengthInput:focus{
  outline: none;
}

.addup{
  width: 90%;
  text-align: center;
  font-size: 30px;
  overflow: auto;
  margin: auto;
}
.explanation{
  margin: auto;
  margin-top: 10px;
  margin-bottom: 10px;
  width: 90%;
  text-align: center;
  font-size: 20px;
  overflow: auto;
  background-color: black;
  border: 1px solid white;
}

.finalAnswer{
  margin: auto;
  margin-top: 10px;
  margin-bottom: 10px;
  width: 90%;
  text-align: center;
  font-size: 30px;
  overflow: auto;
  background-color: #00db25;
  color: black;
  border: 1px solid white;
}

.footer{
  font-size: 13px !important;
  margin: auto;
  text-align: center;
  float: none;
  width: 100%;
  height: 2%;
  position: fixed; 
  bottom:0%;
  color: white;
  background-color: #080808;
}

.runButton{
  background-color: #1c2333;
  border: 2px solid #4CAF50;
  color: white;
  padding: 4px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 13px;
  margin-left: 4px;
  transition-duration: 0.4s;
  cursor: pointer;  
  width: 100px;
}

.runButton:hover {
  background-color: #4CAF50;
}

.resetButton{
  background-color: #1c2333;
  border: 2px solid #ff0000;
  color: white;
  padding: 4px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 13px;
  margin-left: 4px;
  transition-duration: 0.4s;
  cursor: pointer;  
  width: 100px;
}

.resetButton:hover {
  background-color: #ff0000;
}

.methodButon{
  background-color: #1c2333;
  border: 2px solid #f0c800;
  color: white;
  padding: 4px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 13px;
  margin-left: 4px;
  transition-duration: 0.4s;
  cursor: pointer;  
  width: 150px;
}

.methodButon:hover {
  background-color: #f0c800;
  color: black;
}

.addRowButon{
  background-color: #1c2333;
  border: 2px solid #00ecf0;
  color: white;
  padding: 4px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 13px;
  margin-left: 4px;
  transition-duration: 0.4s;
  cursor: pointer;  
  width: 50px;
}

.addRowButon:hover {
  background-color: #00ecf0;
  color: black;
}

.dropbtn {
  background-color: #1c2333;
  border: 2px solid #1f1cd9;
  color: white;
  padding: 4px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 13px !important;
  font-family: Arial !important;
  margin-left: 4px;
  transition-duration: 0.4s;
  cursor: pointer;  
  width: 100px;
}

.dropdown {
  position: relative;
  display: inline-block;
}


.dropdown {
  position: relative;
  display: inline-block;
  
}

.dropdown-content {
  display: none;
  position: absolute;
  transform: translateX(-60px);
  background-color: #08066f;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: white;
  padding: 6px 8px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #312dfb;
  color: white;
}

.dropdown:hover .dropdown-content {display: block;}

.dropdown:hover .dropbtn {background-color: #1f1cd9;}

.warnings{
  position: fixed;
  width: 200px;
  top: 50%;
  left: 50%;
  padding: 20px;
  margin-top: -150px; /* Negative half of height. */
  margin-left: -100px; /* Negative half of width. */
  background-color: #17161d;
  border: 1px solid black;
  color: white;
  display: none;
  font-size: 20px;
  font-family: calibri;
  text-align: center;
  z-index: 10;
}

.copyButton{
  margin-left: 10px;
  margin-right: 10px;
  background-color: #00db6a;
  border: 1px solid black;
  border-radius: 5px;
  font-size: 30px;
  line-height: 30px;
  cursor: pointer;
}

.dropDownPick{
  background-color: #3d3941;
  border: none;
  color: #d6d6d6;
  padding: 4px 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 13px;
  transition-duration: 0.4s;
  cursor: pointer;
}

.dropDownPick:hover {
  background-color: #171717;
  color: #ffffff;
}

.showResultOfEachCalculationDiv{
  position: absolute;
  right: 10%;
  top: 10%;
  font-size: 25px;
  background-color: black;
  border: 1px solid white;
  display: none;
}

.ocean{
  --size: 5px;
  --b: 1px;
  --p: 2.5px;
  --R: calc(5.59px + var(--b)/2);
  
  --_g: #3341ff00 calc(99% - var(--b)),#3341ff calc(101% - var(--b)) 99%,#3835f300 101%;
  -webkit-mask:
    radial-gradient(var(--R) at left 50% bottom calc(-1*var(--p)),var(--_g)) 
      calc(50% - 2*var(--size)) calc(50% - var(--size)/2 - var(--b)/2)/calc(4*var(--size)) calc(var(--size) + var(--b)),
    radial-gradient(var(--R) at left 50% top    calc(-1*var(--p)),var(--_g)) 
      50%                       calc(50% + var(--size)/2 + var(--b)/2)/calc(4*var(--size)) calc(var(--size) + var(--b));
  background: #578fff;
}

.ship{
  background: repeating-linear-gradient(
  45deg,
  #2d3e31,
  #2d3e31 5px,
  #232325 5px,
  #232325 10px
  );
}

.explosion{
  background: repeating-linear-gradient(
  45deg,
  #b72501,
  #b72501 5px,
  #d69d00 5px,
  #d69d00 10px
  );
}

.missedTarget{
  --size: 5px;
  --b: 1px;
  --p: 2.5px;
  --R: calc(5.59px + var(--b)/2);
  
  --_g: #3341ff00 calc(99% - var(--b)),#3341ff calc(101% - var(--b)) 99%,#3835f300 101%;
  -webkit-mask:
    radial-gradient(var(--R) at left 50% bottom calc(-1*var(--p)),var(--_g)) 
      calc(50% - 2*var(--size)) calc(50% - var(--size)/2 - var(--b)/2)/calc(4*var(--size)) calc(var(--size) + var(--b)),
    radial-gradient(var(--R) at left 50% top    calc(-1*var(--p)),var(--_g)) 
      50%                       calc(50% + var(--size)/2 + var(--b)/2)/calc(4*var(--size)) calc(var(--size) + var(--b));
  background: #001d57;
}

.highScore{
  width: 30%;
  background-color: #222;
  border: 2px solid yellow;
  font-size: 20px;
  text-align: center;
  padding: 20px;
  position: absolute;
  top: 40%;
  left: 35%
}

.binaryGameTopCell{
  width: 65px;
  height: 65px;
  border: 2px solid #7a3cec;
  font-size: 30px;
}

.binaryGameRightSideCell{
  width: 65px;
  height: 65px;
  background-color: #231c31;
}

.binaryGameCenterCells{
  width: 65px;
  height: 65px;
}

.binaryGameLeftSideCell{
  width: 65px;
  height: 65px;
  background-color: #231c31;
  font-size: 25px;
}

.goButton{  
  width: 100%;
  height: 100%;
  font-size: 30px;
  color: #00e08a;
  background: none;
  border: 1px solid #00e08a;
  border-radius: 5px;
  cursor: pointer;
}
.goButton:hover{  
  color: black;
  background-color: #00e08a;
}

.bitFlipButton_0{  
  width: 90%;
  height: 90%;
  font-size: 30px;
  color: #ff1900;
  border: 2px solid #ff9500;
  border-radius: 5px;
  background: none;
  cursor: pointer;
}

.bitFlipButton_1{  
  width: 90%;
  height: 90%;
  font-size: 30px;
  color: #2bff00;
  border: 2px solid #ff9500;
  border-radius: 5px;
  background: none;
  cursor: pointer;
}

.bitFlipButton_0:hover{
  color: #a6ff00; 
  border: 2px solid #a6ff00; 
}

.bitFlipButton_1:hover{
  color: #a6ff00; 
  border: 2px solid #a6ff00; 
}

.bitFlipButton_fixed{  
  width: 90%;
  height: 90%;
  font-size: 30px;
  color: #2e89ff;
  border: 2px solid #5f6361;
  border-radius: 5px;
  background: none;
}

.binaryGameTable{
  margin: auto; 
  width: 650px; 
  background-color: #332550;
}

.binaryGameErasedCell{
  width: 65px;
  height: 65px;; 
}

.binaryGameInput{
  width: 90%;
  height: 90%;
  text-align: center;
  font-size: 25px;
  color: black;
  background-color: #c4becf;
  border: 2px solid #ff9500;
  border-radius: 5px;
}

.binaryGameInput:focus{
  outline: none;
}

.binaryGameInputNormalised{
  width: 95%;
  height: 95%;
  text-align: center;
  font-size: 25px;
  color: black;
  background-color: #c4becf;
  border: 1px solid #ff9500;
  border-radius: 3px;
}

.binaryGameInput:focus{
  outline: none;
}

.closeButton{
  width: 25px;
  height: 25px;
  color: white;
  background-color: #ff2e2e;
  border: 1px solid black;
  border-radius: 5px;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.closeButton:hover, a:active{
  background-color: #ac0606;
}

.arrowContainer{  
  transform: translateY(-45px);
}

#arrow {
  width: 30px;
  height: 100px;
  transform-origin: bottom center;
}

#goalie{
  width: 70px; 
  height: 85px; 
  margin: auto; 
  transform: translateY(-100px);
  opacity: 0;
}

.head{
  background-color: #e0ac69;
  margin: auto;
  height: 50px;
  width: 50px;
  border-radius: 50%; 
  transform: translateY(-100px);
}

.body_me{
  background-color: #5e5bf5;
  margin: auto;
  height: 65px;
  width: 65px;
  border-radius: 10px 10px 0 0;  
}

.body_opponent{
  background-color: #f83a3a;
  margin: auto;
  height: 65px;
  width: 65px;
  border-radius: 10px 10px 0 0;  
}

.legs{
  background-image:
    linear-gradient(
      to bottom, 
      #ffbb00,
      #ffbb00 50%,
      #e0ac69 15%
    );
  margin: auto;
  height: 15px;
  width: 60px; 
  transform: translateY(-52px);
}

.boots{
  background-color: #000000;
  margin: auto;
  height: 7px;
  width: 70px;
  border-radius: 2px;  
  transform: translateY(-52px);
}

.hand-left_me{
  background-image: 
    linear-gradient(
      to bottom, 
      #5e5bf5,
      #5e5bf5 30%,
      #e0ac69 15%,
      #e0ac69 80%,
      #009194 80%
    );
  margin: auto;
  height: 70px;
  width: 10px;
  border-radius: 5px 0 0 0;  
  transform: translate(-35px,-135px);
  transform-origin: top right;
}

.hand-right_me{
  background-image:
    linear-gradient(
      to bottom, 
      #5e5bf5,
      #5e5bf5 30%,
      #e0ac69 15%,
      #e0ac69 80%,
      #009194 80%
    );
  background-color: #e0ac69;
  margin: auto;
  height: 70px;
  width: 10px;
  border-radius: 0 5px 0 0; 
  transform: translate(35px,-205px); 
  transform-origin: top left;
}

.hand-left_opponent{
  background-image: 
    linear-gradient(
      to bottom, 
      #f83a3a,
      #f83a3a 30%,
      #e0ac69 15%,
      #e0ac69 80%,
      #510094 80%
    );
  margin: auto;
  height: 70px;
  width: 10px;
  border-radius: 5px 0 0 0;  
  transform: translate(-35px,-135px);
  transform-origin: top right;
}

.hand-right_opponent{
  background-image:
    linear-gradient(
      to bottom, 
      #f83a3a,
      #f83a3a 30%,
      #e0ac69 15%,
      #e0ac69 80%,
      #510094 80%
    );
  background-color: #e0ac69;
  margin: auto;
  height: 70px;
  width: 10px;
  border-radius: 0 5px 0 0; 
  transform: translate(35px,-205px); 
  transform-origin: top left;
}


.footballPitch{
  width: 900px; 
  height: 450px;
  margin: auto; 
  margin-top: 60px;
  background-color: #00c70d; 
  border-top: 10px solid white;
  position: relative; 
  display: flex; 
  flex-direction: column; 
  justify-content: flex-end; 
  align-items: center;
}

.footballPitchBox{
  width: 80%; 
  height: 200px;
  margin: auto; 
  background-color: #00c70d; 
  border-bottom: 10px solid white;
  border-right: 10px solid white;
  border-left: 10px solid white;
  transform: translateY(-15px);
}

.goalNet{  
  border-top: 5px solid white;
  border-right: 5px solid white;
  border-left: 5px solid white;
  transform: translateY(-60px);
  width: 60%;
  height: 50px;
  margin: auto;  
  background-size: 10px 10px;
  background-image: repeating-linear-gradient(45deg, #ffffff 0, #ffffff 1px, #1f2332 0, #1f2332 50%);
}

.penaltyPoint{
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: white;
  transform: translateY(80px);
}

.football{
  opacity: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
	background:
  radial-gradient(circle farthest-side at 0% 50%,#fff 23.5%,rgba(240,166,17,0) 0)11px 15px,
  radial-gradient(circle farthest-side at 0% 50%,#000 24%,rgba(240,166,17,0) 0)9px 15px,
  linear-gradient(#fff 14%,rgba(240,166,17,0) 0, rgba(240,166,17,0) 85%,#fff 0)0 0,
  linear-gradient(150deg,#fff 24%,#000 0,#000 26%,rgba(240,166,17,0) 0,rgba(240,166,17,0) 74%,#000 0,#000 76%,#fff 0)0 0,
  linear-gradient(30deg,#fff 24%,#000 0,#000 26%,rgba(240,166,17,0) 0,rgba(240,166,17,0) 74%,#000 0,#000 76%,#fff 0)0 0,
  linear-gradient(90deg,#000 2%,#fff 0,#fff 98%,#000 0%)0 0 #fff;
  background-size: 20px 30px;
  transform: translateY(135px);
  z-index: 2;
}

.multiplayerEndScreen{
  position: fixed;
  width: 300px;
  height: 200px;
  top: 50%;
  left: 50%;
  padding: 20px;
  margin-top: -150px; /* Negative half of height. */
  margin-left: -100px; /* Negative half of width. */
  background-color: #17161d;
  border: 3px dotted #04ff00;
  color: white;
  display: none;
  font-size: 20px;
  font-family: calibri;
  text-align: center;
  z-index: 10;
}