/* フォトフレーム管理用CSS */
/* カメラボタン、写真、シェアボタンなど全フォトフレーム共通で使うものを記載 */

html {
    touch-action: manipulation;
    touch-action: pan-y;
    font-family: 'M PLUS Rounded 1c', "Hannari", sans-serif;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    touch-action: manipulation;
    touch-action: pan-y;
    font-family: 'M PLUS Rounded 1c', "Hannari", sans-serif;
}

/* 親要素CSS */
.photoframe {
    display: none;
}

.no-tap {
    pointer-events: none !important;
}

.no-longtap {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-touch-callout: none;
    -moz-user-select: none;
    user-select: none;
}

.photoframeVisible {
    visibility: visible !important;
}

.photoframe_collapse {
    visibility: collapse !important;
}

.recordDisplaynone {
    display: none !important;
}

/* オーバーレイ 2000～3000 */
.overlay_preview {
    visibility: collapse;
    display: block;
    justify-content: center;
    background-image: url(../img/icons/save_bg.png);
    background-size: cover;
    background-position: center center;
    width: 100dvw;
    height: 100dvh;
    padding: 0;
    margin: 0;
    background-color: #5dc1ff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1499;
}

.overlay_flash {
    display: none;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffffe1;
    z-index: 2000;
}

.overlay_videocreate {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff88;
    z-index: 2100;
    display: none;
}

.overlay_videocreate img {
    position: absolute;
    width: 30%;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2101;
}

.overlay_landscape {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: #646464;
    z-index: 2200;
    display: none;
}

.overlay_landscape img {
    position: absolute;
    width: 25%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}


/* 画像移動機能用CSS */

.drag-and-drop {
    cursor: move;
    z-index: 1;
}

.drag {
    z-index: 2;
}

.pinch {
    z-index: 2;
}

/* 撮影ボタン */
.cameraIcon {
    z-index: 3;
    position: absolute;
    width: 100%;
    height: 100%;
}

.switchCameraIcon {
    z-index: 3;
    position: absolute;
    width: 100%;
    height: 100%;
}

.outerCircle {
    z-index: 2;
    position: absolute;
    text-align: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: conic-gradient(#ff6600 0% 0%, #d9d9d900 0% 100%);
}

.innerCircle {
    z-index: 1;
    position: absolute;
    text-align: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #ffffff;
}

.outerCircle,
.inner {
    transition: transform 1s ease;
    transform: scale(0.5);
}

.outerCircle.expand,
.inner.expand {
    transform: scale(1.2);
}

/* プレビュー画像 */

/* シェア、削除ボタン */
.deletePhotoBtn {
    z-index: 100;
    height: 100%;
    width: auto;
    position: relative;
}

#sharePhotoBtn {
    z-index: 100;
    height: 100%;
    width: auto;
    position: relative;
}

/* UI 1500～1999 */
@media (orientation: portrait) {

    /* 縦向き */
    .cameraContainer {
        justify-content: center;
        align-items: center;
        width: 100vw;
        height: auto;
    }

    .cameraVideo {
        width: 100%;
        height: auto;
        overflow: hidden;
        z-index: 45;
    }

    .takePhotoBtn {
        z-index: 1500;
        position: fixed;
        width: 22vw;
        height: 22vw;
        bottom: 5vw;
        margin: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .switchCameraBtn {
        z-index: 1600;
        position: fixed;
        width: 12vw;
        height: 12vw;
        top: 4vw;
        right: 4vw;
    }

    .previewContainer {
        z-index: 1900;
        position: fixed;
    /*flex-direction: column;
    align-items: center;*/
        width: 65dvw;
        height: auto;
        max-height: 63dvh;
        margin: auto;    
        bottom: 27dvh; 
        left: 50%;
        transform: translateX(-50%);
    }

    .preview {
        width: 100%;
        height: auto;
        visibility: collapse;
        display: flex;
        margin: 0;
        bottom: 0;
        margin-top: 3dvw;
    }

    .actionContainer {
        z-index: 1901;
        position: fixed;
        display: flex;
        justify-content: space-evenly;
        visibility: collapse;
        width: 75vw;
        height: 23dvw;
        max-height: 13dvh;
        bottom: 5dvh;
        left: 12.5vw;
    }

    .downloadPrompt {
    width: 100%;
    position: absolute;
    /*display: flex;*/
    visibility: collapse;
    /*left: 10%;
    background-color: #333;*/
    font-weight: bolder;
    pointer-events: none;
    top: -13%;
    opacity: 1;/*
    margin-top: 7vh;
    margin-bottom: 5dvw*/
    }
    .limitUI{
        position: fixed;
        left: 16vw;
        width: 75vw;
        height: auto;
        bottom: -25vw;
        transition: bottom 0.5s ease-out;
        z-index: 2500;
    }
    .limitUI img{
        width: 100%;
        height: 100%;
    }

    .limitUI.visible {
        bottom: -1.7vw;
    }
    .overlay_cameranone {
    position: absolute;
    display: flex;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 2300;
    display: none;
}
}

@media (orientation: landscape) {

    /* 横向き */
    .cameraContainer {
        justify-content: center;
        align-items: center;
        width: 100vw;
        height: auto;
    }

    .cameraVideo {
        width: 100%;
        height: auto;
        overflow: hidden;
        z-index: 45;
    }

    .takePhotoBtn {
        z-index: 1900;
        position: fixed;
        width: 22vh;
        height: 22vh;
        bottom: 5vh;
        margin: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .switchCameraBtn {
        z-index: 1600;
        position: fixed;
        width: 12vh;
        height: 12vh;
        top: 4vh;
        right: 4vh;
    }

    .previewContainer {
        z-index: 1900;
        position: fixed;
    /*flex-direction: column;*/
    align-items: center;
        margin: 0;
        bottom: 27dvh;
        height: 50dvh;
        width: auto;
        margin: auto;    
        left: 50%;
        transform: translateX(-50%);
    }

    .preview {
        width: auto;
        height: 100%;
        visibility: collapse;
        margin-top: 1dvw;
    }

    .actionContainer {
        z-index: 1901;
        position: fixed;
        display: flex;
        justify-content: space-evenly;
        visibility: collapse;
        width: 25vw;
        height: 17vh;
        bottom: 3vh;
        left: 37.5vw;
    }

    .downloadPrompt {
    width: 50%;
    position: absolute;/*
    display: flex;*/
    visibility: collapse;
    left: 25%;
    /*background-color: #333;*/
    font-weight: bolder;
    pointer-events: none;
    top: -20%;
    opacity: 1;/*
    margin-top: 3vh;
    margin-bottom: 1vw*/
    }
    .limitUI{
        position: fixed;
        left: 27.5vw;
        width: 50vw;
        height: auto;
        bottom: -15vw;
        transition: bottom 0.5s ease-in-out;
        z-index: 2500;
    }
    .limitUI img{
        width: 100%;
    }

    .limitUI.visible {
        bottom: -1vw;
    }
    .overlay_cameranone {
    position: absolute;
    display: flex;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 2300;
    display: none;
}
}