/* 3Dモデル表示時のUI */
#page-nation-label {
    display: none;
    position: absolute;
    top: 72vh;
    left: 50vw;
    text-align: center;
    padding: 1vw 0;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 73vw;
    font-size: 2vw;
    background: #ffffff;
}

#sound-btn {
    display: none;
    position: absolute;
    top: 80vh;
    left: 50vw;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 73vw;
    font-size: 5vw;
    background: #05C7E6;
    color: #fff;
    border: solid 1px #fff;
    padding: 2vw 3vw;
    font-weight: normal;
}

/* 3Dモデル表示時のUI 終了*/


/* スキャン時のUI */
#scanning-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: transparent;
    z-index: 2;
}

@media (min-aspect-ratio: 1/1) {
    #scanning-overlay .inner {
        width: 50vh;
        height: 50vh;
    }
}

@media (max-aspect-ratio: 1/1) {
    #scanning-overlay .inner {
        width: 80vw;
        height: 80vw;
    }
}

#scanning-overlay .inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    background:
        linear-gradient(to right, #80eafb 10px, transparent 10px) 0 0,
        linear-gradient(to right, #80eafb 10px, transparent 10px) 0 100%,
        linear-gradient(to left, #80eafb 10px, transparent 10px) 100% 0,
        linear-gradient(to left, #80eafb 10px, transparent 10px) 100% 100%,
        linear-gradient(to bottom, #80eafb 10px, transparent 10px) 0 0,
        linear-gradient(to bottom, #80eafb 10px, transparent 10px) 100% 0,
        linear-gradient(to top, #80eafb 10px, transparent 10px) 0 100%,
        linear-gradient(to top, #80eafb 10px, transparent 10px) 100% 100%;
    background-repeat: no-repeat;
    background-size: 40px 40px;
}

#scanning-overlay.hidden {
    display: none;
}

#scanning-overlay img {
    opacity: 0.6;
    width: 60%;
    align-self: center;
}

#scanning-overlay .inner .scanline {
    position: absolute;
    width: 100%;
    height: 10px;
    background: #80eafb;
    animation: move 2s linear infinite;
}

@keyframes move {

    0%,
    100% {
        top: 0%
    }

    50% {
        top: calc(100% - 10px)
    }
}

/* スキャニングUI 終了 */