/* キャプチャーボタン */
.capture-btn-wrapper {
    position: fixed;
    display: flex;
    width: 100%;
    bottom: 5%;
    justify-content: center;
    z-index: 200;
    -webkit-touch-callout: none;
    user-select: none;
}

.capture-btn-wrapper.preview {
    display: none;
}

#capture-btn,
#stop-btn {
    border: 5px solid #FFF;
    background: transparent;
    border-radius: 100%;
    width: 150px;
    height: 150px;
    cursor: pointer;
    padding: 0;
    display: block;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

#stop-btn {
    display: none;
}

#stop-btn.now-recording {
    display: block;
    opacity: 0;
    position: absolute;
    z-index: 2;
    border: 5px solid rgba(255, 255, 255, 0.5);
}


#capture-btn.now-recording {
    border: 5px solid rgba(255, 255, 255, 0.5);
    width: 220px;
    height: 220px;
    transition: 1s;
    background: rgba(255, 255, 255, 0.5);
}

#capture-btn.now-capture {
    border: none;
    transition: 1s;
    background: rgba(255, 255, 255, 0.5);
}


.capture-btn-inner-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.capture-btn-inner {
    bottom: 8%;
    left: 50%;
    display: block;
    width: 80%;
    height: 80%;
    border-radius: 100%;
    transition: 0.3s;
    background: #FFF;
}

.capture-btn-inner.preview {
    width: 50%;
    height: 50%;
}

.capture-btn-inner.now-capture {
    width: 70%;
    height: 70%;
}


.capture-btn-inner.rec-start {
    width: 70%;
    height: 70%;
    background: red;
}

.capture-btn-inner.now-recording {
    width: 30%;
    height: 30%;
    border-radius: 10px;
    background: red;
}

/* プレビュー時ボタン */
.pic-preview-btn-wrapper,
.movie-preview-btn-wrapper {
    display: none;
}

.pic-preview-btn-wrapper.preview,
.movie-preview-btn-wrapper.preview {
    display: flex;
    position: absolute;
    bottom: 10%;
    width: 100%;
    justify-content: space-between;
    z-index: 4;
}

#pic-preview-back-btn,
#movie-preview-back-btn {
    position: relative;
    background: transparent;
    padding-left: 40px;
    border: none;
    display: flex;
    align-items: center;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

#pic-preview-back-btn::before,
#movie-preview-back-btn::before {
    content: "";
    display: block;
    position: absolute;
    width: 30px;
    height: 30px;
    border-top: 5px solid #FFF;
    border-right: 5px solid #FFF;
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
}

#pic-preview-share-btn,
#movie-preview-share-btn {
    background: #FB4030;
    border: none;
    color: #FFF;
    border-radius: 50px;
    padding: 20px 40px;
    font-size: 48px;
}

/* カメラ切り替えボタン */
.camera-switcher-btn-wrapper {
    position: fixed;
    display: flex;
    bottom: 6.5%;
    right: 0;
    justify-content: end;
    z-index: 201;
    transform: scale(1.25);
    transform-origin: center;
    opacity: 0.9;
}

.camera-switcher-btn-wrapper.preview {
    display: none;
}

#camera-switcher {
    border: none;
    background: transparent;
    margin-right: 50px;
}

.camera-switcher-inner {
    display: inline-block;
    vertical-align: middle;
    color: #FFF;
    line-height: 1;
    position: relative;
    width: 100px;
    height: 100px;
    background: url("./assets/return.png");
    background-repeat: no-repeat;
    /* transform: rotate(45deg); */
    background-size: cover;
}

/* スペアボタン */
#spare-btn {
    visibility: hidden;
}