body {
    font-family: helvetica;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#main-canvas {
    height: 100vh;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-size: contain;
    position: absolute;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: chartreuse;
    font-size: 40px;
    font-weight: bold;
    animation: swing .5s linear infinite alternate;
    transform-origin: 50%;
}

@keyframes swing {
    0% {
        transform: translate(-50%, -50%) rotate(10deg);
    }

    50% {
        transform: translate(-50%, -50%) rotate(0);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-10deg);
    }
}

.lds-hourglass {
    position: absolute;
    top: 40%;
    left: 45%;
    width: 100px;
    height: 100px;
    color: chartreuse;
}

.lds-hourglass:after {
    content: " ";
    display: block;
    border-radius: 50%;
    width: 0;
    height: 0;
    margin: 8px;
    box-sizing: border-box;
    border: 32px solid #0f0;
    border-color: #0f0 transparent #0f0 transparent;
    animation: lds-hourglass 1.2s infinite;
}

@keyframes lds-hourglass {
    0% {
        transform: rotate(0);
        animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    }

    50% {
        transform: rotate(900deg);
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }

    100% {
        transform: rotate(1800deg);
    }
}