#puyo-canvas {
  background: white;
}

#next-puyo-canvas {
  background: white;
}

body {
  color: #000;
  font-family: "Days One", sans-serif;
  background: #99FFFF;
}

header {
  display: flex;
  color: #8d8d8d;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: space-between;
}

header > ul {
  display: flex;
  justify-content: space-around;
  margin-top: 5px;
}

header > ul > li {
  margin-right: 15px;
  transition: color 0.2s;
}

header > ul > li:hover {
  color: #6f6f6f;
}

main {
  font-family: "Days One", sans-serif;
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
}

footer {
  margin-top: 20px;
  color: #8d8d8d;
  display: flex;
  justify-content: center;
}

footer > ul {
  display: flex;
}

footer > ul > li {
  margin-right: 15px;
  transition: color 0.2s;
}

footer > ul > li:hover {
  color: #6f6f6f;
}

button {
  color: #F36;
  transition: color 0.2;
}

button:hover {
  color: #FF3366;
}

.whole-container {
  font-family: "Days One", sans-serif;
  font-family: 'Chewy', cursive;
  /*background: #faebd7;*/
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
}

.name {
  margin-left: 15px;
  margin-top: 5px;

}

.title {
  font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
  margin-bottom: 35px;
  margin-top: 15px;
  display: flex;
  justify-content: center;
  font-size: 55px;
  font-weight: 900;
  color:#F36;
}

.title:hover {
  text-decoration: underline;
}

.instruction-container {
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.instruction-content {
  position: relative;
  width: 100%;
  margin-top: 25px;
}

.play-symbol {
  text-align: center;
  vertical-align: middle;
  font-weight: 900;
  width: 100%;
  font-size: 14px;
}

.drop-down-instruction {
  display: none;
  position: absolute;
  background: #FFCC66;
  border-radius: 20px;
  padding: 19px;
  max-width: 250px;
  left: 50%;
  margin-left: -125px;
}

.instruction-content:hover .drop-down-instruction {
  display: block;
}

.keys-instruction {
  background: #FFCC66;
  border-radius: 39px;
  padding: 19px;
  max-width: 230px;
}

.puyo-container {
  max-width: 400px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.game-info-container {
  max-width: 400px;
  width: 100%;
}

.score-board {
  padding: 10px 20px;
  background: #FFCC66;
  border-radius: 11px;
}

.keys-instruction {
  background: #FFCC66;
  border-radius: 20px;
  padding: 10px 25px 20px 25px;
}

.keys-instruction > li:first-child {
  vertical-align: middle;
  text-align: center;
}

.buttons {
  display: flex;
  margin-bottom: 20px;
}

.stats {
  display: flex;
}

.next-text {
  text-align: center;
}

.next-piece-board {
  margin-bottom: 5px;
  width: 50px;
  display: flex;
  flex-direction: column;
}

.score-board {
  margin-left: 20px;
  font-size: 24px;
  align-self: flex-start;
}

#puyo-canvas {
  border: 10px inset #f39;
}

#next-puyo-canvas {
  border: 5px inset #F39;
  width: 100%;
}

#pause-button {
  margin-top: 10px;
}

#mute-button {
  margin-top: 10px;
}

#restart-button {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  align-items: center;
}

#red-color {
  color: red;
  font-size: 9px;
}

/* Modal styling */
.modal {
  color: #8d8d8d;
  display: block;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background: #faebd7;
    margin: 20% auto;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #faebd7;
    max-width: 500px;
    width: 70%;
}

.modal-content > h3 {
  text-align: center;
  text-decoration: underline;
}

.modal-content > p {
  margin-left: 17px;
  font-size: 14px;
}

.enter-to-play {
  text-align: center;
}

.modal-content > p > span {
  padding: 5px;
  border-radius: 4px;
  background: white;
}

.end-modal-content {
  display: none;
  background: #faebd7;
  margin: 20% auto;
  text-align: center;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #faebd7;
  max-width: 500px;
  width: 70%;
}

.end-modal-content > p {
  font-size: 14px;
  margin-top: 20px;
}

.end-modal-content > p > span {
  padding: 5px;
  border-radius: 4px;
  background: white;
}

audio {
  transition: all 2s;
}
