/* https://elevenbeans.github.io/2017/06/22/Yin-and-Yang-by-CSS/ */
/* loading.css */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading p {
    font-size: 2em;
    color: #333;
}

.yinyang {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(to bottom, black 0%, black 50%, white 50%, white 100%);
    display: block;
    box-shadow: 6px 6px 27px 4px rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: 5s rotate linear infinite;
}

.yinyang:after,
.yinyang:before {
    content: '';
    display: block;
    border-radius: 50%;
}

.yinyang:after {
    width: 50%;
    height: 50%;
    background: radial-gradient(ellipse at center, black 0%, black 25%, white 25%, white 100%);
    animation: inner-size 3s ease-in-out infinite;
    animation-delay: -1.5s;
}

.yinyang:before {
    width: 50%;
    height: 50%;
    background: radial-gradient(ellipse at center, white 0%, white 25%, black 25%, black 100%);
    animation: inner-size 3s ease-in-out infinite;
}

@keyframes inner-size {

    0%,
    100% {
        width: 50%;
        height: 50%;
    }

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

@keyframes rotate {
    to {
        transform: rotate(-360deg)
    }
}