* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(
        to bottom right,
        rgb(77, 77, 77),
        rgb(0, 0, 0)
    );
    overflow: hidden;
    cursor: move;
    -webkit-user-select: none;
    user-select: none;
}

.container {
    width: 600px;
    height: 600px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
}

.box {
    position: absolute;
    width: 350px;
    height: 350px;
    transform-style: preserve-3d;
    transition: all 1s ease-out;
}

.box div {
    width: 350px;
    height: 350px;
    position: absolute;
    background: #fff;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(calc(350px / 4), 1fr));
    gap: 4px;
    padding: 4px;
}

.top {
    bottom: 175px;
    transform: rotateX(90deg);
}

.bottom {
    top: 175px;
    transform: rotateX(-90deg);
}

.left {
    right: 175px;
    transform: rotateY(-90deg);
}

.right {
    left: 175px;
    transform: rotateY(90deg);
}

.front {
    transform: translateZ(175px);
}

.back {
    transform: translateZ(-175px);
}

.box div span {
    height: calc(350px / 3 - 6px);
    background: var(--clr);
    border-radius: 10px;
    position: relative;
    z-index: -1;
    overflow: hidden;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 2rem;
    background-size: 100%;
}

.box div > span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: -1;
}

.box div > span::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    top: 0;
    left: 0;
    background: linear-gradient(#ffffff10 90%, transparent 50%);
    z-index: -1;
    backdrop-filter: blur(2px);
    transform: rotate(-40deg);
}

.nameLetters {
    font-size: 3.5rem !important;
    font-weight: 700;
    z-index: 10000 !important;
    font-family: sans-serif;
    user-select: none;
    pointer-events: none;
}

@media (max-width: 600px) {
    .container {
        zoom: 0.5;
    }
}
