/* Decoration */
.decoration-symbols {
    display: grid;
    grid-template-columns: 5% 40% 10% 40% 5%;
    grid-template-rows: 100%;

    position: absolute;
    width: 100%;
    height: 100%;
    align-items: center;
    user-select: none;
    pointer-events: none;
    opacity: 1;
}

.spin-symbol-container {
    display: grid;
    width: 100%;
    grid-area: 1 / 4 / 2 / 5;

    position: relative;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    z-index: -2;
}

.spin-symbol-container img {
    position: relative;
    width: 85%;
}

.spin-container {
    display: grid;
    justify-items: center;
    transform-style: preserve-3d;
}

#spin-symbol {
    transform-origin: center;
}

.arrow-symbol-container {
    height: 100%;
    width: 100%;
    grid-area: 1 / 2 / 2 / 3;

    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow-symbol-container img {
    transition: all 0.3s ease-out;
}

#double-left {
    position: absolute;
    left: 0;
}

#double-right {
    position: absolute;
    right: 0;
}

#text-gap {
    --gap-px: 20px;
    position: relative;
    display: block;
    width: var(--gap-px);
    transition: all 0.25s ease-out;
}

/* Corners */
.corner-symbol-container {
    position: absolute;
    transition: all 0.25s ease-out;
    transform: scale(1.15);
}

#top-corner {
    position: absolute;
    width: auto;
    top: 0;
    left: 0;
    transform-origin: top left;
    transition: all 0.25s ease-out;
    backface-visibility: hidden;
}

#bottom-corner {
    position: absolute;
    width: auto;
    bottom: 0;
    right: 0;
    transform: scaleX(-1) scaleY(-1) translate(100%, 100%);
    transform-origin: bottom right;
    transition: all 0.25s ease-out;
    backface-visibility: hidden;
}

/* Animations */
.rotate-symbol {
    animation: rotateSymbolAnimation 0.5s linear;
}

.fade-corner {
    animation: fadeCornerAnimation 0.5s linear;
}

@keyframes rotateSymbolAnimation {
    from {
        transform: rotateX(0deg);
    }

    to {
        transform: rotateX(360deg);
    }
}

@keyframes fadeCornerAnimation {
    0% {
        opacity: 1;
    }

    40% {
        opacity: 0;
    }

    60% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}