body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: hsl(240 10% 3.9%);
  background: hsl(0 0 100%);
  margin: 0;
}

*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
}

.full-screen {
  position: absolute;
  width: 100%;
  height: 100%;
}

.loadui {
    display: flex;
    flex-direction: column;
    text-align: center;
    z-index: 2;
    padding: 2rem 1rem;
    background-image: url(/bevel.svg);
    background-color: hsl(0 0 100%);
    background-position: center;
}

h4 {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
    margin: 0;
}

h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    margin: 0;
}

p {
    font-weight: 700;
    margin: 0;
}

.button {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.25rem;
    border-radius: calc(0.5rem - 2px);
    color: hsl(0 0 98%);
    background-color: hsl(240 5.9% 10% / 0.4);
}

.button:hover {
    background-color: hsl(240 5.9% 10% / 0.6);
}

.icon {
    width: 100%;
    height: 100%;
    color: inherit;
    background-color: currentColor;
    background-size: contain;
}

.cube-container {
    width: 168px;
    height: 168px;
    padding: 36px;
    margin: auto;
}

.cube {
    position: absolute;
    width: 96px;
    height: 96px;
    animation: cube 2s infinite ease;
    transform-style: preserve-3d;
}

.cube > div {
    width: 100%;
    height: 100%;
    position: absolute;
    border: 2px solid hsl(240 6% 10%);
    background-color: hsl(240 6% 10% / 30%);
}

.cube div:nth-of-type(1) {
    transform: translateZ(-48px);
}

.cube div:nth-of-type(2) {
    transform: rotateY(-270deg) translateX(50%);
    transform-origin: top right;
}

.cube div:nth-of-type(3) {
    transform: rotateY(270deg) translateX(-50%);
    transform-origin: center left;
}

.cube div:nth-of-type(4) {
    transform: rotateX(90deg) translateY(-50%);
    transform-origin: top center;
}

.cube div:nth-of-type(5) {
    transform: rotateX(-90deg) translateY(50%);
    transform-origin: bottom center;
}

.cube div:nth-of-type(6) {
    transform: translateZ(48px);
}

@keyframes cube {
    0% { transform: rotate(45deg) rotateX(-25deg) rotateY(25deg); }
    50% { transform: rotate(45deg) rotateX(-385deg) rotateY(25deg); }
    100% { transform: rotate(45deg) rotateX(-385deg) rotateY(385deg); }
}
