body{
  background-color: rgb(255, 255, 204);
}
.game{
  display: flex;
  justify-content: space-around;
}
.header{
  display: flex;
  justify-content: center;
}
h1{
  font-family: "Covered By Your Grace", sans-serif;
  font-size: 48px;
  margin-top: 0;
  margin-bottom: 0;
  color: rgb(13, 42, 86);
}
h2{
  font-family: "Handlee", sans-serif;
  text-align: center;
  color: rgb(185, 17, 15);
  margin-bottom: 0;
}
.instructions-slide h2{
  font-family: "Handlee", sans-serif;
  text-align: center;
  color: rgb(13, 42, 86);
}
.level{
  margin: 0 auto;
  font-size: 36px;
}
.complete{
  margin: 0 auto;
  opacity: 0;
}
/*grid design*/
.container-player, .container-com{
  width: 500px;
  height: 500px;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.row{
  width: 500px;
  height: 100px;
  display: flex;
  justify-content: center;
  flex-direction: row;
}
.cell{
  width: 80px;
  height: 80px;
  border: 5px solid rgb(255, 255, 255);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Handlee", sans-serif;
  font-size: 40px;
}
.animate{
  box-shadow: 5px 5px rgb(100, 119, 141);
  z-index: 10;
  transition: 0.2s;
}
/*grids color*/
.grid-range-5{
  background-color: rgb(51, 153, 51);
  color: white;
}
.grid-range-4{
  background-color: rgb(185, 17, 15);
  color: white;
}
.grid-range-3{
  background-color: rgb(85, 39, 144);
  color: white;
}
.grid-range-2{
  background-color: rgb(13, 42, 86);
  color: white;
}
.grid-range-1{
  background-color: rgb(2, 97, 234);
  color: white;
}
.grid-range-0{
  background-color: rgb(226, 174, 21);
  color: white;
}
/*buttons design*/
.buttons{
  display: flex;
  justify-content: center;
}
.button{
  font-family: "Handlee", sans-serif;
  font-size: 24px;
  padding: 5px 50px;
  margin: 20px;
  background-color: rgb(32, 197, 181);
  color: white;
  border-radius: 10px;
}
.button:hover{
  background-color: rgb(185, 17, 15);
  cursor: pointer;
}
.game-slide{
  display: none;
  text-align: center;
}
.instructions-slide{
  display: block;
  margin-top: 80px;
}
/*input form design*/
form{
  text-align: center;
}
.code{
  width: 250px;
  padding: 10px 20px;
  font-family: "Handlee", sans-serif;
  font-size: 16px;
}
.code::-webkit-input-placeholder{
  font-family: "Handlee", sans-serif;
}
.code::-moz-placeholder{
  font-family: "Handlee", sans-serif;
}
.code:-moz-placeholder{
  font-family: "Handlee", sans-serif;
}
.code:-ms-input-placeholder{
  font-family: "Handlee", sans-serif;
}
#code-btn{
  font-size: 14px;
}
.incorrect{
  font-family: "Handlee", sans-serif;
  font-size: 20px;
  color: rgb(185, 17, 15);
  display: none;
}
/*modal box to prompt player when too many wrong moves are made*/
.modal{
  display: none;
  position: fixed;
  z-index: 11;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
}
.modal-content{
  background-color: rgb(255, 255, 204);
  padding: 5px;
  margin: 5% auto;
  width: 80%;
}
.modal h2{
  font-family: "Handlee", sans-serif;
  text-align: center;
  color: rgb(13, 42, 86);
  margin-bottom: 10px;
}
.instructions-animate{
  width: 80%;
  margin-bottom: 10px;
}
.close{
  float: right;
  font-size: 24px;
  color: rgb(13, 42, 86);
}
.close:hover,
.close:focus{
  color: rgb(185, 17, 15);
  cursor: pointer;
}
/*responsive design*/
@media only screen and (max-width: 1000px) {
  .container-player, .container-com{
    width: 400px;
    height: 400px;
  }
  .row{
    width: 350px;
    height: 80px;
  }
  .cell{
    width: 60px;
    height: 60px;
    border: 2px solid rgb(255, 255, 255);
    font-size: 24px;
  }
  .modal h2{
    font-size: 20px;
  }
}
@media only screen and (max-width: 650px) {
  .instructions-slide{
    margin-top: 80px;
  }
  .game{
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  h1{
    font-size: 24px;
  }
  h2{
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 0;
  }
  .instructions-slide h2{
    margin-bottom: 20px;
  }
  .level{
    font-size: 24px;
  }
  .container-player, .container-com{
    width: 250px;
    height: 250px;
    margin-bottom: 10px;
  }
  .row{
    width: 250px;
    height: 50px;
  }
  .cell{
    width: 45px;
    height: 45px;
    border: 1px solid rgb(255, 255, 255);
    font-size: 18px;
    border-radius: 5px;
  }
  .buttons{
    margin-top: 10px;
  }
  .button{
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 0;
    padding: 5px 10px;
  }
  #play{
    padding: 5px 50px;
  }
  form{
    margin-top: 40px;
  }
  #code-btn{
    margin-top: 10px;
  }
  .modal-content{
    margin: 25% auto;
  }
  .modal h2{
    font-size: 14px;
  }
}
