@keyframes gradient {
    0% {
        background-position: 0 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

.info {
    position: fixed;
    right: 8px;
    top: 8px;
    padding: 4px;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    animation: gradient 4s ease infinite;
    background-image: linear-gradient(
        -45deg,
        #ee775288,
        #e73c7e88,
        #23a6d588,
        #23d5ab88
    );
    background-size: 400% 400%;
    background-position: 0 0;
    box-sizing: border-box;
    transition: 0.4s;
    backdrop-filter: blur(8px);
    z-index: 9;
    overflow: hidden;
    color: white;

    * {
        transition: 0.6s;
    }

    a {
        text-decoration: underline;
        color: white;
        font-weight: 900;
    }

    .close {
        position: absolute;
        border-radius: 8px;
        background-color: rgb(0 0 0/20%);
        width: 36px;
        height: 36px;
        right: 0;
        top: 0;
        line-height: 36px;
        text-align: center;
        transform: scale(0);
        color: white;
        cursor: pointer;
        user-select: none;
    }

    .github {
        &Icon {
            position: absolute;
            right: 6px;
            top: 6px;
            cursor: pointer;
        }

        &Link {
            position: absolute;
            right: -196px;
            top: 26px;
        }
    }

    .bilibili {
        &Icon {
            position: absolute;
            right: -100px;
            top: 10px;
        }

        &Link {
            position: absolute;
            right: -196px;
            top: 16px;
        }
    }

    &.open {
        height: 100px;
        border-radius: 8px;

        @media screen and (max-width: 500px) {
            width: calc(100% - 16px);
        }
        @media screen and (min-width: 501px) {
            width: 500px;
        }

        .close {
            transform: scale(1);
        }

        .github {
            &Icon {
                right: calc(100% - 70px);
                top: 18px;
                width: 36px;
                height: 36px;
            }

            &Link {
                right: calc(100% - 200px);
                top: 26px;
            }
        }

        .bilibili {
            &Icon {
                height: 36px;
                right: 26px;
                top: 50px;
            }

            &Link {
                right: 110px;
                top: 58px;
            }
        }
    }
}
