
*{
  box-sizing: border-box;
}

@font-face{
  font-family: Humbolt;
  src: url(../assets/fonts/Humbolt/humbolt.ttf);
}

a{
  text-decoration: none;
}

audio{
  display: none;
}

body{
  background: url(../assets/images/canvas-1.jpg);
}

button{
  border: 0;
  padding: 5px 10px;
  text-transform: capitalize;
  border-radius: 7px;
  min-width: 40px;
  box-shadow: 0 2px 2px grey;
  border-width: 2px;
  border-style: solid;;
  transition: 0.35s;
}

button:hover{
  transform: scale(1.09);
}

button:active{
  transform: scale(0.89);
  transition: 0.1s;
}

h1,h2,h3,h4,h5,h6{
  font-family: Courier, monospace;
}

#board{
  margin: 100px auto;
  border-radius: 15px;
  color: white;
  user-select: none;
  -o-user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  border-collapse: collapse;
  animation: fadeIn 0.5s;
}

#board td{
  font-family: humbolt;
  height: 150px;
  width: 150px;
  border-width: 3px;
  border-style: solid;
  border-bottom: 0px;
  /*padding: 10px;*/
  font-size: 60px;
  border-radius: 5px;
}

#boardContainer{
  display: none;
}

#board td{
  border-top: 0px;
}

#board td:last-child{
  border-right: 0px;
}

#board td:first-child{
  border-left: 0px;
}

#board tr{
  position: relative;
}

/*horizontal lines*/
#board tr:not(:first-child)::after{
  content: "";
  height: 2px;
  width: 100%;
  background-color: black;
  position: absolute;
  top: -1px;
}

#board tr:nth-child(2)::after{
  right: 0px;
  animation: slideToRight 1s ease-in-out;
}

#board tr:last-child::after{
  left: 0px;
  animation: slideToLeft 0.5s ease-in-out;
}

#miscSettings button{
  margin: 0 auto;
  margin-bottom: 10px;
  width: 100%;
  max-width: 200px;
  display: block;
}

#modal{
  top: 0;
  right: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  position: fixed;
  background-color: rgba(0,0,0,0.75);
}

#pauseMenu{
  background: black;
  box-shadow: 0 0px 10px rgba(255,255,255,0.3);
  text-shadow: none;
}

#pauseMenu fieldset{
  border-width: 1px;
  border-radius: 3px;
  margin-bottom: 20px;
  border-color: white;
}

#pauseMenu legend{
  background: white;
  color: black;
  padding: 10px;
  border-radius:3px;
}

#playAgainMenu{
  display: none;
}

#playAgainMenu button{
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  margin-bottom: 10px;
}

#playersLead{
  color: yellow;
}


#scores{
  top: 10px;
  left: 5px;
  z-index: 3;
  width: 100%;
  border: none;
  margin: auto;
  padding: 10px;
  position: static;
  text-align: center;
  border-radius: 5px;
  border-collapse: collapse;
}

#scores, .robotMessage{
  background: rgba(255,255,255, 0.5);
  border-color: white;
}

#scores th:last-child, #scores td:last-child {
  border-left: 3px solid white;
}


#scores th{
  border-bottom: 3px solid white;
}

#pauseMenu fieldset{
  background: black;
}

#pauseBtn, .close-btn{
  top: 15px;
  right: 5px;
  z-index: 10;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  position: fixed; 
}

#pauseBtn{
}

#pauseMenu{
  display: none;
  font-family: Tahoma ,sans-serif;
}

#chooseMarkMenu, #playAgainMenu{
  max-height: 260px;
}

.black{
  background: black
}

.close-btn{

}


.modal-item{
  position: relative;
  left: 0;
  top: 12.5%;
  width: 75%;
  max-width: 450px;
  height: 80%;
  max-height: 460px;
  margin: auto;
  padding: 20px;
  border-radius: 15px;
  animation: popOut 0.35s;
}

.rounded-borders{
  border-radius: 5px;
}

.overflow{
  overflow: auto;
}

.overflow-x{
  overflow-x: auto;
}

.overflow-y{
  overflow-y: auto;
}

@keyframes fadeIn{
  from{
    opacity: 0
  }
  to{
    opacity: 1
  }
}

@keyframes flash{
  0%{background: limegreen;}
  20%{background: transparent;}
  40%{background: limegreen;}
  60%{background: transparent;}
  80%{background: limegreen;}
  100%{background: transparent;}
}

@keyframes popOut{
  
  from{ transform: scale(0.3) }

  90%{ transform: scale(1.3) }

  95%{ transform: scale(1.1); }

  to{ transform: scale(1) }

}

@keyframes slideToLeft{
  from{
    left: -500px;
  }
  to{
    left: 0px;
  }
}

@keyframes slideToRight{
  from{
    right: -500px;
  }
  
  80%{
    right: 100px;
  }

  to{
    right: 0px;
  }
}

@media (max-width: 600px){

  #chooseMark button{
    display: block;
    margin: 10px auto;
  }

  #board td{
    font-size: 50px;
    height: 33vw;
    width: 33vw;
  }

  #board{
    margin-top: 60px;
    margin-bottom: 50px;
    animation: fadeIn 0.45s;
  }

  #pauseMenu{
    padding: 10px !important;
  }

  /* remove the animation for those two board pieces */
  #board tr:not(:first-child)::after{
    all: initial;
  }


  #board tr:nth-child(2)::after{
    all: initial;
  }

  #board tr:last-child::after{
    all: initial;
  }

  /* restore borders */
  #board tr{
    border-bottom-width: 3px;
    border-bottom-style: solid;
  }

  #board tr:last-child{
    border-bottom: none;
  }


}

@media (max-width: 350px) {
  #board td{
    font-size: 40px;
  }
}
@media (max-width: 235px) {
  #board td{
    font-size: 25px;
  }
}