body {
    background: #222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
    background-image: url('bggrid.png');
    background-repeat: repeat;
    background-size: 160px;
    background-position: 0px 0px;
}

h1 {
    color: white;
    text-align: center;
}

.content{
    backdrop-filter: blur(10px);
    backdrop-filter: grayscale(50%) blur(10px);
    margin: 5em auto;
    border-radius: 2em;
    min-width: 50em;
    max-width: 75em;
    padding: 1em;
    box-shadow: 0 0 20px 5px #111;
}
.perspBox {
    overflow: hidden;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.niceBoxCont {
    position: absolute;
    top: 400px;
    left: 400px;
    transform: rotateX(55deg) rotateZ(45deg);
}

.niceBoxTop {
    width: 5em;
    height: 5em;
    margin: auto;
    padding: 0.5em;
    border-radius: 1em;
    position: absolute;
    z-index: 5;
    top: 12;
    left: 12;
    background-color: cyan;
}

.niceboxTopAnim {
    animation: niceboxTopAnim 4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes niceboxTopAnim {
    0% {
        top: 12px;
        left: 12px;
        opacity: 0;
        transform: scale(0%, 0%);
    }

    5% {
        opacity: 1;
        top: 12px;
        left: 12px;
    }
    10%{
        transform: scale(100%, 100%);
    }
    15% {
        top: 0;
        left: 0;
    }
    85% {
        top: 0;
        left: 0;
    }
    90%{
        transform: scale(100%, 100%);
    }
    95% {
        top: 12px;
        left: 12px;
        opacity: 1;
        transform: scale(100%, 100%);
    }
    100% {
        top: 12px;
        left: 12px;
        opacity: 0;
        transform: scale(0%, 0%);
    }
}

.niceBoxSide {
    width: 5em;
    height: 5em;
    margin: auto;
    padding: 0.5em;
    border-radius: 1em;
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    background-color: blue;
}

.niceBoxSideAnim {
    animation: niceBoxSideAnim 4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes niceBoxSideAnim {
    0% {
        opacity: 0;
        transform: scale(0%, 0%);
    }

    5% {
        opacity: 1;
    }
    10%{
        transform: scale(100%, 100%);
    }
    90%{
    }
    95% {
        transform: scale(100%, 100%);
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(0%, 0%);
    }
}

.colorTop1 {
    background-color: rgb(255, 0, 127);
}

.colorSide1 {
    background-color: rgb(200, 0, 87);
}

.colorTop2 {
    background-color: rgb(0, 255, 127);
}

.colorSide2 {
    background-color: rgb(0, 200, 87);
}

.colorTop3 {
    background-color: rgb(0, 127, 255);
}

.colorSide3 {
    background-color: rgb(0, 87, 200);
}

.colorTop4 {
    background-color: rgb(255, 255, 127);
}

.colorSide4 {
    background-color: rgb(200, 200, 87);
}