* {
  position: relative;
}

body,
html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
}

.toggle {
  font-family: sans-serif;
  top: 0;
  height: 50px;
  background: #ccc;
  display: flex;
  color: #222;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.wrapper {
  width: 100%;
  height: 100%;
  background: #b2b2b2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.textCube {
  width: 400px;
  height: 400px;
}

.textCube .face {
  width: 100%;
  height: 100%;
  background: #1d1d1d;
  color: #eee;
  display: flex;
  align-items: center;
  justify-content: start;
  overflow: hidden;
}

.textCube h1 {
  margin: 0;
  width: fit-content;
  white-space: nowrap;
  font-family: Impact;
  font-size: 250px;
}

.textCube .side {
  background: #090909;
  color: #717171;
}

/* Build cube with fancy class */

.fancy .side {
  transform-origin: 100% 50%;
  transform: translate(-100%, -100%) rotateY(-45deg);
}

.fancy .textCube {
  perspective: 800px;
  /* transform: translateY(-20%) perspective(600px) rotateX(15deg); */
}
