body {
  font-family: Arial, Helvetica, sans-serif;
  background-image: url('Images/chessBg1.png');
}
h1 {
  color: white;
}

#formDiv {
  margin: auto;
  color: white;
  padding: 20px;
  width: 400px;
  text-align: center;
  background-image: url('Images/formBg.jpg');
  background-size: 480px;
  box-shadow: 0 4px 8px 0 rgba(255, 255, 255, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.nameInput {
  width: 250px; 
  display: flex; 
  margin: 10px auto; 
  border: solid silver; 
  border-radius: 10px; 
  padding: 5px;
}
input[type='text']{
  border: solid silver;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  color: white;
}
input[type='text']:focus{
  border: solid silver;
  outline: none;
  background: white;
  color: black;
}
input[type='submit'] {
  padding: 5px 10px 5px 10px;
  background: silver;
  font-size: 15px;
  border-radius: 5px;
  font-weight: bold;
}

.boardContainer {
  display: grid;
  grid-template-columns: auto auto auto auto auto auto auto auto;
  background-image: url('Images/boardRope.jpg');
  grid-gap: 2px;
  height: 500px;
  width: 500px;
}
#ruleDiv {
  grid-column: 1/3;
}
#head {
  grid-column: 1/3; 
  margin: auto; 
  margin-bottom: 10px;
}
.boardBlock {
  height: 60px;
  width: 60px;
  display: block;
}
.chessPiece {
  position: absolute;
  padding: 5px;
  z-index: 2;
}
.deadPiece {
  position: relative;
  z-index: 2;
}
.square {
  position: absolute;
  opacity: 50%;
  z-index: 1;
}
#pname {
  float:left; 
  font-size: 30px; 
  grid-column: 1/3;
}
.showGame {
  width: 750px;
  display: grid;
  grid-template-columns: 500px 300px;
  color: white;
  margin: auto;
}
.initGameCls {
  display: none;
}

#trashDiv {
  height: 500px;
  width: 220px;
  margin: auto;
  border: solid grey;
}

.initialPromotionDisplay {
  display: none;
}
.pawnPromotion {
  display: block;
  position: fixed;
  left: 10%;
  right: auto;  
  top: 40%;
  z-index: 3;
  border: solid silver;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px;
}
.promotionPiece {
  border: solid silver;
  border-radius: 5px;
  width: 60px;
  height: 70px;
  padding: 5px;
  color: white;
  margin: 5px;
  display: inline-block;
}

.matchEnd {
  display: none;
}
.showMatchEnd {
  margin: auto;
  color: white;
  padding: 20px;
  width: 400px;
  text-align: center;
  background-image: url('Images/formBg.jpg');
  background-size: 400px;
  box-shadow: 0 4px 8px 0 rgba(255, 255, 255, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#credit {
  width: 300px;
  height: 120px;
  display: block;
  margin: auto;
}

@media only screen and (max-width: 500px) {
  .showGame{width: 350px; grid-template-columns: auto;}
  .boardContainer{width: 350px; height: 350px; background-size: 350px;}
  .boardBlock{width: 42px; height: 42px;}
  .square{width: 42px; height: 42px;}
  .chessPiece{width: 38px; height: 38px;}
  #trashDiv{grid-column: 1/2; height: 300px; width: 350px; margin-bottom: 1vh;}
  #pname{grid-row: 4/5;}
  #formDiv{width: 300px;}
}
