*,
*:before,
*:after {
  box-sizing: border-box;
}

body {
  margin:0;
  padding:0;
  font-family: 'Atkinson Hyperlegible', serif;
}

#wrapper {
  padding-top: 200px;
  background-color: rgb(34, 34, 34);
  padding-bottom: 50px;
}

.viewport {
  perspective: 1200px;
  perspective-origin: 50% 600px;
  transform: scale(0.8, 0.8);
}

.cube {
  position: relative;
  margin: 0 auto;
  height: 600px;
  width: 600px;
  transform-style: preserve-3d;
  transform: rotateX(136deg) rotateY(1122deg);
  touch-action: none;
}

.cube>div {
  overflow: hidden;
  position: absolute;
  opacity: 1;
  height: 600px;
  width: 600px;
  background-image: url("/img/cubeside.png");
  -webkit-touch-callout: none;
  -moz-touch-callout: none;
  -ms-touch-callout: none;
  -o-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.cube>div>div.cube-image {
  font-family: 'Atkinson Hyperlegible', serif;
  width: 600px;
  height: 600px;
  transform: rotate(180deg);
  line-height: 14px;
  font-size: 12px;
  padding: 20px;
  text-align: left;
}

.cube>div>div.cube-image>h1 {
  color: #292929;
  transition: color 800ms;
  font-size: 70px;
  text-align: center;
}

.cube>div>div.cube-image.active>h1 {
  color: #2a5cc9;
  transition: color 800ms;
}

div.cube-image>p {
  font-size: 42px;
  line-height: 48px;
  padding: 20px;
}

/*
.cube>div:hover {
  cursor: pointer;
}

.cube>div:active {
  cursor: pointer;
}
*/

.cube>div:first-child {
  transform: rotateX(90deg) translateZ(300px);
  outline: 1px solid transparent;
}

.cube>div:nth-child(2) {
  transform: translateZ(300px);
  outline: 1px solid transparent;
}

.cube>div:nth-child(3) {
  transform: rotateY(90deg) translateZ(300px);
  outline: 1px solid transparent;
}

.cube>div:nth-child(4) {
  transform: rotateY(180deg) translateZ(300px);
  outline: 1px solid transparent;
}

.cube>div:nth-child(5) {
  transform: rotateY(-90deg) translateZ(300px);
  outline: 1px solid transparent;
}

.cube>div:nth-child(6) {
  transform: rotateX(-90deg) rotate(180deg) translateZ(300px);
  outline: 1px solid transparent;
}

object {
  opacity: 0.5;
}

object:hover {
  opacity: 1;
}

@media (max-width: 900px) {
  #wrapper {
    overflow: hidden;
  }
}

@media (max-width: 800px) {
  .viewport {
    transform: scale(0.6, 0.6);
  }
  #wrapper {
    padding-top: 100px;
    background-color: rgb(34, 34, 34);
    padding-bottom: 25px;
    height: 680px;
  }
}
@media (max-width: 600px) {
  .viewport {
    transform: scale(0.5, 0.5);
    position: relative;
    bottom: 0px;
  }
  #wrapper {
    padding-top: 0px;
    background-color: rgb(34, 34, 34);
    padding-bottom: 0px;
    height: 520px;
  }
}
@media (max-width: 450px) {
  .viewport {
    transform: scale(0.4, 0.4);
    bottom: 50px;
  }
  #wrapper {
    height: 420px;
  }
}

/* rest of landing page stuff */

main {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
}

h1.section {
  font-size: 48px;
}

.product {
  width: 300px;
  border: 1px solid black;
  height: 300px;
  margin-right: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 670px) {
  .product {
    width: 100%;
    margin-bottom: 10px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0.01;
  }
  to {
    opacity: 1;
  }
}

.fade-in1 {
  animation: fadeIn .9s ease-in both;
}