@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro");
* {
  box-sizing: border-box;
}

html {
  display: flex;
  height: 100%;
  width: 100%;
}

body {
  position: relative;
  margin: auto;
}

main {
  position: relative;
  padding: 4rem;
}
main .shadow,
main .cylinder,
main .chessboard {
  transition: 0.45s all 0.45s;
}
main.active .shadow,
main.active .cylinder,
main.active .chessboard {
  opacity: 0;
  transition: 0.45s;
}
main.active .cylinder {
  -webkit-transform: translateY(-15%);
          transform: translateY(-15%);
}
main.active .shadow {
  -webkit-transform: translateY(-15%) skew(10deg);
          transform: translateY(-15%) skew(10deg);
}
main.active .chessboard-transparent {
  -webkit-transform: scale(1.35);
          transform: scale(1.35);
  transition: 0.45s -webkit-transform 0.95s;
  transition: 0.45s transform 0.95s;
  transition: 0.45s transform 0.95s, 0.45s -webkit-transform 0.95s;
}
main.active .chessboard-transparent .same {
  color: #3e3e3e;
  transition: 0.45s color 0.45s;
}
main.active .chessboard-transparent .cell-a {
  -webkit-transform: translateY(200%);
          transform: translateY(200%);
  transition: 0.45s color 0.45s, 0.45s -webkit-transform 0.45s;
  transition: 0.45s transform 0.45s, 0.45s color 0.45s;
  transition: 0.45s transform 0.45s, 0.45s color 0.45s, 0.45s -webkit-transform 0.45s;
}

.container {
  position: relative;
  margin: 0 auto;
  width: 680px;
}
@media screen and (max-width: 1000px) {
  .container {
    width: 75vw;
  }
}

.text {
  text-align: center;
  font-size: 1.75rem;
  margin: 4.25rem 0 0;
  letter-spacing: 2px;
  font-family: 'Source Sans Pro', sans-serif;
}
.text .button-reveal {
  cursor: pointer;
  font-size: 1rem;
  padding: 0.75rem 1rem;
}

.chessboard,
.chessboard-transparent {
  position: relative;
  -webkit-transform: perspective(2040px) rotateX(50deg) rotate(30deg);
          transform: perspective(2040px) rotateX(50deg) rotate(30deg);
}

.chessboard {
  /*
  box-shadow: $color-emperor 1px 1px 0,
    $color-emperor 2px 2px 0,
    $color-emperor 3px 3px 0,
    $color-emperor 4px 4px 0,
    $color-emperor 5px 5px 0,
    $color-emperor 6px 6px 0,
    rgba($color-black, 0.15) 20px 20px 25px;
  */
}
.chessboard .cell:nth-child(even) .item {
  background: #787877;
}
.chessboard .cell .item {
  background: #cdcdcd;
}

.chessboard-transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.45s -webkit-transform;
  transition: 0.45s transform;
  transition: 0.45s transform, 0.45s -webkit-transform;
}
.chessboard-transparent .cell {
  transition: 0.45s;
}
.chessboard-transparent .cell.cell-a {
  color: #505050;
}
.chessboard-transparent .cell.cell-b {
  color: #3e3e3e;
}
.chessboard-transparent .cell.same {
  text-align: center;
  font-size: 3rem;
  line-height: calc(680px / 5);
  background: #787877;
}
@media screen and (max-width: 1000px) {
  .chessboard-transparent .cell.same {
    font-size: 2rem;
    line-height: calc(90vw / 5);
  }
}

.shadow {
  position: absolute;
  top: 38%;
  left: 0%;
  height: 29%;
  width: 94%;
  border-radius: 100%;
  -webkit-transform: rotate(-10deg);
          transform: rotate(-10deg);
  -webkit-filter: blur(22px);
          filter: blur(22px);
  background: rgba(0, 0, 0, 0.425);
  z-index: 0;
}

.cylinder {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 28%;
}
.cylinder .circle {
  position: relative;
  height: 14%;
  border-radius: 100%;
  background: #7fa684;
  z-index: 1;
}
.cylinder .rectangle {
  position: relative;
  height: 38%;
  -webkit-transform: translateY(-17%);
          transform: translateY(-17%);
  background: linear-gradient(to right, #215433 58%, #cadbc8 100%);
}
.cylinder .rectangle::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: -20%;
  height: 40%;
  border-radius: 100%;
  background: linear-gradient(to right, #215433 58%, #cadbc8 100%);
}

.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap: 0;
  max-width: 680px;
  margin: 0 auto;
  grid-template-columns: repeat(5, 1fr);
}
@media screen and (max-width: 1000px) {
  .row {
    max-width: 75vw;
  }
}
.row .cell {
  position: relative;
  grid-column: span 1;
}
.row .cell .item {
  height: calc(680px / 5);
}
@media screen and (max-width: 1000px) {
  .row .cell .item {
    height: calc(90vw / 5);
  }
}
