html,
body {
    margin: 0;
    padding: 0;
    background-color: white;
    transition: background-color 0.3s 0.4s;
    color: rgb(0 0 0 / 60%);
}

a {
    color: currentColor;
    text-decoration: inherit;
}

#root {
    transition: opacity 0.5s;
}

#loading {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 32px;
    overflow: visible;
}

@keyframes move {
    0% {
        left: 0;
        top: 0;
        height: 50%;
        width: 50%;
    }

    12.5% {
        left: 0;
        top: 0;
        height: 50%;
        width: 100%;
    }

    25% {
        left: 50%;
        top: 0;
        height: 50%;
        width: 50%;
    }

    37.5% {
        left: 50%;
        top: 0;
        height: 100%;
        width: 50%;
    }

    50% {
        left: 50%;
        top: 50%;
        height: 50%;
        width: 50%;
    }

    62.5% {
        left: 0;
        top: 50%;
        height: 50%;
        width: 100%;
    }

    75% {
        left: 0;
        top: 50%;
        height: 50%;
        width: 50%;
    }

    87.5% {
        left: 0;
        top: 0;
        height: 100%;
        width: 50%;
    }
}

@keyframes wave {
    0% {
        transform: translateY(30px);
    }

    100% {
        transform: translateY(-30px);
    }
}

.loadingBlock {
    position: absolute;
    transition: 0.6s;
    border-radius: 12px;
    left: 0;
    top: 0;
    height: 50%;
    width: 50%;
    animation: move 1s infinite ease-in-out;
}

.loadingBlockContainer {
    width: 64px;
    height: 64px;
    position: relative;
}

#loading.error .loadingBlock,
#loading.success .loadingBlock {
    animation-play-state: paused;
}

.loadingBlock1 {
    background-color: #8dac8588;
}

#loading.error .loadingBlock1 {
    transform: rotate(75deg) translateX(30px);
    animation: wave 1s infinite alternate;
}

#loading.success .loadingBlock1 {
    transform: rotate(75deg) translateX(200px) scale(4);
    transition-delay: 0.1s;
}

.loadingBlock2 {
    background-color: #8dac8566;
    animation-delay: 0.375s;
}

#loading.error .loadingBlock2 {
    transform: rotate(175deg) translateX(10px);
}

#loading.success .loadingBlock2 {
    transform: rotate(175deg) translateX(200px) scale(2);
    transition-delay: 0.05s;
}

.loadingBlock3 {
    background-color: #8dac8544;
    animation-delay: 0.75s;
}

#loading.error .loadingBlock3 {
    transform: rotate(225deg) translateX(20px);
}

#loading.success .loadingBlock3 {
    transform: rotate(225deg) translateX(200px) scale(3);
}

#loadingTips {
    font-size: 0.8em;
    line-height: 1.8;
    text-align: center;
    transition: 0.3s;
}

#loading.success #loadingTips {
    transform: translateY(300px);
    opacity: 0;
}

#backHomeTip {
    visibility: hidden;
}
