body {
  margin: 0;
  padding: 0;
  font-family: sans-serif !important;
  color: rgba(255, 255, 255, 0.75);
  background-color: rgba(0, 0, 0, 0.836);
}

h3 {
  font-size: 26pt;
  -webkit-margin-before: 1em;
  -webkit-margin-after: 15px;
  -webkit-margin-start: 0px;
  -webkit-margin-end: 0px;
  font-weight: bold;
  margin: 0px 0px 10px;
}

a {
  text-decoration: none;
  color: rgba(56, 232, 255, 0.788);
}

#wrapper {
  width: 625px;
  margin: 0px auto;
}

#info-box {
  width: 545px;
  margin: 0 auto;
}

#mode-button {
  margin-left: 9px;
}

#reset-button {
  margin-left: 118px;
}

#mode-button,
#reset-button {
  display: inline-block;
  width: 150px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: 5px;
  font-weight: bold;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  font-size: 15pt;
  color: rgba(0, 0, 0, 0.836);
}

#mode-button:hover,
#reset-button:hover {
  opacity: 0.8;
}

#play-box {
  clear: both;
  height: 545px;
  width: 545px;
  margin: 30px auto 15px auto;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

#grid {
  width: 100%;
  height: 100%;
  position: relative;
}

.row {
  height: 105px;
}

.row .grid-cell {
  width: 103px;
  height: 103px;
  float: left;
  margin: 1px;
  border-radius: 5px;
}

.light-grid-cell {
  background-color: rgba(0, 0, 0, 0.05);
}

.dark-grid-cell {
  background-color: rgba(124, 0, 0, 0.7);
}

#cells-container {
  padding: 10px;
}

#tiles-container {
  position: absolute;
}

.tile {
  position: absolute;
  width: 103px;
  height: 103px;
  border-radius: 5px;
  cursor: pointer;
  transition-property: transform;
  transition-duration: 0.5s;
  -webkit-transition-property: transform;
  -webkit-transition-duration: 0.5s;
}

.tile:hover {
  opacity: 0.8;
}

#instructions {
  width: 550px;
  margin: 40px auto 0px auto;
  font-size: 15pt;
  padding-bottom: 25px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.75);
}

footer {
  width: 500px;
  margin: 20px auto 20px auto;
  font-size: 15pt;
  text-align: center;
}

#sign {
  display: block;
  clear: both;
}

#play-box {
  position: relative;
}

.disable-select {
  user-select: none; /* supported by Chrome and Opera */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
}

/* Directions */
.move-left {
	transform: translate(-115px, 0px);
	-webkit-transform: translate(-115px, 0px);
}

.move-right {
	transform: translate(115px, 0px);
	-webkit-transform: translate(115px, 0px);
}

.move-up {
	transform: translate(0px, -115px);
	-webkit-transform: translate(0px, -115px);
}

.move-down {
	transform: translate(0px, 115px);
	-webkit-transform: translate(0px, 115px);
}

@media screen and (max-width: 630px) {
  body {
    padding: 20px;
    margin: 0px;
  }
  #wrapper {
    width: 280px;
    margin: 0 auto;
  }
  #info-box {
    width: 280px;
    margin: 0 auto;
  }
  #mode-button {
    margin-left: 14px;
  }
  #reset-button {
    margin-left: 28px;
  }
  #mode-button,
  #reset-button {
    display: inline-block;
    width: 105px;
    height: 35px;
    font-size: 11pt;
    line-height: 35px;
  }
  #play-box {
    height: 280px;
    width: 280px;
  }
  #cells-container {
    padding: 5px;
  }
  .row {
    height: 54px;
  }
  .row .grid-cell {
    width: 52px;
    height: 52px;
  }
  .tile {
    width: 52px;
    height: 52px;
  }
  #instructions,
  footer {
    margin: 15px 0;
    width: 280px;
    clear: both;
    font-size: 12pt;
  }
  h3 {
    font-size: 22pt;
  }
  #instructions {
	text-align: justify;
	font-size: 12pt;
    margin-top: 20px;
  }
}
