#progressbarArea {
    display: none;
    position: absolute;
    width: 180px;
    height: 90px;
    z-index: 50;
    text-align: center;
}

#progressbarArea #progressbarText {
    color: white;
}

#progressbarArea #progressbar {
    position: absolute;
    left: 60px;
    top: 32px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 8px solid red;
    border-right-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
        opacity: 0.2;
    }
    /*0%の時は20％の透明度*/
    50% {
        transform: rotate(180deg);
        opacity: 1.0;
    }
    /*50%の時は透明度なし*/
    100% {
        transform: rotate(360deg);
        opacity: 0.2;
    }
    /*100%の時に20％の透明度に戻る*/
}

.progressBg {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 40;
    background-color: rgba(30, 30, 30, 0.5);
}