body {
  background-color: rgb(240, 240, 240);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
}

h1 {
  color: rgb(95, 167, 190);
  font-weight: 500;
  margin: 10px;
  font-size: 24px;
}

h3 {
  font-size: 16px;
  font-weight: 400;
  margin: 10px;
}

p {
  font-size: 16px;
  font-weight: 400;
  margin: 10px;
  text-align: center;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  color: #385185;
  border-radius: 5px;
  font-size: 16px;
  margin: 10px;
  padding: 10px 15px;
  box-shadow: 1px 1px 2px 2px gray;
}

button:hover {
  background-color: lightblue;
}

video {
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  max-height: 15%;
  width: 150px;
  height: 150px;
}

.divider {
  height: 1px;
  width: 100%;
  margin: 40px 0px;
  background-color: lightgray;
}

#game-div {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

#start-game-message{
  color: white;
  position: fixed;
  left: 45%;
}

.sideglow{
  display: block;
  height: 300px;
  align-self: center;
  width: 1px;
  background-color: rgba(0, 128, 0, 0.5);
}

.webcam-box {
  margin: 15px;
  z-index: 1;
}

.modal {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
}

.modal-content {
  position: static;
  background-color: rgb(240, 240, 240);
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 5px;
  width: 80%;
  max-width: 550px;

  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

#modal-init{
  display: flex;
}

#video-sample{
  margin: 0px 15px;
  border: 1px solid lightgray;
}

#video-sample video{
  width: 100%;
  height: 300px;
  max-height: 100%; 
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

#modal-loading{
  display: none;
}

#modal-win {
  display: none;
}

#modal-win ul {
  display: flex;
  flex-direction: row;
}

#modal-win li {
  margin: 15px;
  font-size: 16px;
}

.fas,
.far,
.fab {
  font-size: 25px;
  cursor: pointer;
  margin: 5px;
  color: black;
}

.fas:hover,
.far:hover,
.fab:hover {
  color: blue;
}

#button-tf-webcam {
  animation: shake 0.70s;
  animation-iteration-count: infinite;
}

@keyframes shake {
  0% {transform: rotate(0deg);}
  25% {transform: rotate(0.5deg);}
  50% {transform: rotate(0deg) scale(1.1);}
  75% {transform: rotate(-0.5deg);}
  100% {transform: rotate(0deg);}
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 510px;
  height: 500px;
  overflow: hidden;
}

.platform {
  height: 10px;
  width: 0;
  background: white;
  position: fixed;
  top: 67%;
  -webkit-animation: platform 2.5s ease-in-out infinite;
  animation: platform 2.5s ease-in-out infinite;
}

@keyframes platform {
  0% {
    left: 0;
    width: 100px;
  }

  50% {
    left: 400px;
    width: 100px;
  }

  100% {
    left: 0;
    width: 100px;
  }
}

.ball {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background: orange;
  position: fixed;
  top: 50%;

  -webkit-animation: ball 2.5s ease-in-out infinite;
  animation: ball 2.5s ease-in-out infinite;
}

@keyframes ball {
  0% {
    top: 25%;
    left: 0px;
  }
  25% {
    top: 65%;
  }
  50% {
    left: 500px;
    top: 25%;
  }
  75% {
    top: 65%;
  } 
  100% {
    left: 0px;
    top: 25%;
  }
}

#modal-loading-content{
  position: absolute;
  top: 30%;
  color: white;
}