body {
  background-color: #d3b5e5;
  font-family: "Clear Sans", "Helvetica Neue", Arial, sans-serif;
  transition: background-color 0.3s ease-in-out;
}

.labels {
  margin: auto;
  margin-top: 10px;
  text-align: center;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: bold;
  color: #4a285d;
  word-wrap: break-word;
  margin-bottom: 50px;
  animation: fadeIn 1s ease-in-out;
}

.frame {
  margin: auto;
  padding: 5px 0px;
  width: 56px;
  border: 2px solid #4a285d;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn {
  display: block;
  margin: auto;
  margin-top: 10px;
  background-color: #4a285d;
  color: #d3b5e5;
  padding: 10px 5px;
  text-transform: uppercase;
  font-size: 10px;
  border: 0px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.btn:hover {
  background-color: #5a326d;
}

.btn-rounded {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: transform 0.2s ease-in-out;
}

.btn-rounded:hover {
  transform: scale(1.1);
}

.fa {
  font-size: 14px;
}

.flipx {
  transform: scaleX(-1);
}

#score {
  margin-top: 5px;
}

#outer-board {
  width: 365px;
  margin: auto;
}

#board {
  float: left;
  position: relative;
  background-color: #d3b5e5;
  width: 280px;
  height: 448px;
  margin: 10px auto;
  border: 2px solid #4a285d;
  animation: popIn 0.5s ease-out;
}

#stats {
  float: right;
  position: relative;
  background-color: #d3b5e5;
  width: 70px;
  height: 510px;
  margin: 10px auto;
  border: 2px solid #4a285d;
}

#banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 100px;
  background-color: #4a285d;
  color: #d3b5e5;
  z-index: 2;
  text-align: center;
  animation: slideDown 0.5s ease-in-out;
}

#message {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 23px;
  margin: 10px;
  margin-top: 20px;
}

#new-game {
  font-weight: 100;
  cursor: pointer;
}

.block,
.empty {
  position: absolute;
  background-color: #d3b5e5;
  width: 28px;
  height: 28px;
  transition: background-color 0.2s ease-in-out;
}

.empty {
  opacity: 0.2;
}

.inner-tile {
  position: absolute;
  background-color: #d3b5e5;
  border: 4px solid #4a285d;
  width: 14px;
  height: 14px;
  margin: 3px;
}

.inner-inner-tile {
  position: absolute;
  background-color: #4a285d;
  width: 8px;
  height: 8px;
  margin: 3px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translate(-50%, -60%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}
