:root {
  --nav-btn-size: 40px;
}

body {
  font-family: sans-serif;
  -webkit-user-select: none;
  /* Safari */
  -ms-user-select: none;
  /* IE 10 and IE 11 */
  user-select: none;
  /* Standard syntax */
}

.fullscreen-button:hover {
  transform: scale(1.1);
}

.navigator {
  inset: 0 auto 0 20px;
  margin: 2em auto;
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.rotate-btn {
  height: 60px;
  width: 60px;
  font-size: small;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 50px;
  cursor: pointer;
}
.rotate-btn:hover > img {
  transform: scale(1.05);
}
.rotate-btn > img {
  display: block;
  transition: transform 0.2s;
  width: 100%;
  height: 100%;
  border: 2px solid #de9696;
  border-radius: 5px;
  margin-bottom: 0.5em;
}
.rotate-btn > img.img-2 {
  display: none;
}
.rotate-btn.deactivate .img-1 {
  display: none;
}
.rotate-btn.deactivate .img-2 {
  display: block;
  border-color: black;
}
.rotate-btn.deactivate::after {
  content: "WITH ROTATION";
  color: black;
}
.rotate-btn::after {
  color: #de9696;
  content: "WITHOUT ROTATION";
}

.container {
  width: 200px;
  height: 200px;
  position: relative;
  perspective: 1000px;
  transform: scale(50%);
}
.container:hover .nav-btn {
  opacity: 0.8;
}

.nav-btn {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  color: white;
  cursor: pointer;
  min-width: 40px;
  min-height: 40px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.1;
}
.nav-btn > img {
  height: var(--nav-btn-size);
  width: var(--nav-btn-size);
  transition: 0.2s linear;
}
.nav-btn > img:hover {
  transform: scale(1.2);
}
.nav-btn.top {
  inset: -70px 0 auto 0;
}
.nav-btn.top > img {
  transform: rotate(180deg);
}
.nav-btn.right {
  inset: 0 -70px 0 auto;
}
.nav-btn.right > img {
  transform: rotate(-90deg);
}
.nav-btn.bottom {
  inset: auto 0 -70px 0;
}
.nav-btn.left {
  inset: 0 auto 0 -70px;
}
.nav-btn.left > img {
  transform: rotate(90deg);
}

#cube {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transform: translateZ(-100px);
  transition: transform 1s;
}
#cube.drag {
  transition: none;
}
#cube .face {
  width: 196px;
  height: 196px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  border: 2px solid rgba(180, 180, 180, 0.95);
  font-size: xx-large;
  font-weight: bolder;
  background-color: rgba(180, 180, 180, 0.95);
  cursor: pointer;
  transition: background-color 0.2s;
}
#cube .face:hover {
  background-color: rgba(222, 150, 150, 0.95);
}
#cube .front {
  transform: rotateY(0deg) translateZ(100px);
}
#cube .back {
  transform: rotateX(180deg) translateZ(100px);
}
#cube .back > span {
  transform: rotate(180deg);
}
#cube .back > span.flip {
  transform: rotate(0);
}
#cube .right {
  transform: rotateY(90deg) translateZ(100px);
}
#cube .left {
  transform: rotateY(-90deg) translateZ(100px);
}
#cube .top {
  transform: rotateX(90deg) translateZ(100px);
}
#cube .bottom {
  transform: rotateX(-90deg) translateZ(100px);
}

#cube.front {
  transform: translateZ(-100px) rotateY(0deg);
}

#cube.back {
  transform: translateZ(-100px) rotateX(-180deg);
}

#cube.right {
  transform: translateZ(-100px) rotateY(-90deg);
}

#cube.left {
  transform: translateZ(-100px) rotateY(90deg);
}

#cube.top {
  transform: translateZ(-100px) rotateX(-90deg);
}

#cube.bottom {
  transform: translateZ(-100px) rotateX(90deg);
}

#preload {
  position: fixed;
  inset: 0;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
}
#preload > div {
  height: 300px;
  width: 300px;
  position: relative;
}
#preload > div img {
  position: absolute;
  height: 100%;
  width: 100%;
  opacity: 0;
}

@media screen and (max-width: 768px) {
  .navigator {
    inset: auto 0 0 0;
    flex-direction: row;
    justify-content: center;
  }
  .navigator .container {
    margin-right: -50px;
    margin-left: 50px;
    margin-bottom: -10px;
    transform: scale(0.4);
  }
  .navigator .rotate-btn {
    margin-bottom: 0;
  }
}

/*# sourceMappingURL=main.css.map */
