/* フォトフレーム管理用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/save_yoko_bg.png);
    background-size: cover;
    background-position: center center;*/
    width: 100vw;
    height: 100vh;
    padding: 0;
    margin: 0;
    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: 52.3vw;
    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: white;
    z-index: 2200;
    display: none;
}

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

.overlay_cameranone {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 2300;
    display: none;
}
/*
.overlay_cameranone img {
    position: absolute;
    width: 90%;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2301;
}*/

/* 画像移動機能用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);
}

/* プレビュー画像 
.downloadPrompt {
    width: 80%;
    position: absolute;
    visibility: collapse;
    left: 10%;
    background-color: #FFF;
    font-weight: bolder;
    pointer-events: none;
    bottom: 5%;
}*/

/* シェア、削除ボタン 
.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: 27vw;
        height: 27vw;
        bottom: 5vw;
        margin: auto;
        left: 50%;
        transform: translateX(-50%);
        pointer-events: none;
    }

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

    .previewContainer {
        z-index: 1900;
        position: fixed;
        width: 70vw;
        height: auto;
        bottom: 30vw;
        margin: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .preview {
        width: 100%;
        height: auto;
        visibility: collapse;
        /* ボーダーが必要な場合 */
        border: 3px solid #ffffff;
        margin: -3px;
    }

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

@media (orientation: landscape) {
.overlay_landscape {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 2200;
    display: none;
}

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

    /* 横向き */
    .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: 24.3vh;
        height: 24.3vh;
        bottom: 3.7vh;
        margin: auto;
        left: 50%;
        transform: translateX(-50%);
        pointer-events: none;
    }

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

    .previewContainer {
        z-index: 1900;
        position: absolute;
        width: 63vw;
        top:50%;
        transform: translateY(-50%);
        height: 90dvh;
        margin: auto;
        margin-left: 15vw;
        }
    .downloadPrompt {
        position: relative;
        width: 100%;
        height: auto;
        left :0;
        visibility: collapse;
        pointer-events: none;
        margin-bottom: 5dvh;
    }
    
    .preview {
        width: 100%;
        height: auto;
        position: relative;
        visibility: collapse;
        /* ボーダーが必要な場合
        border: 3px solid #ffffff; 
        margin: -3px;*/
    }

    .actionContainer {
        z-index: 1901;
        position: fixed;
        /*display: flex;*/
        justify-content: space-evenly;
        visibility: collapse;
        width: 20vw;
        height: auto;
        top: 50%;
        transform: translateY(-50%);
        right: 0.8vw;
    }
    
    /* シェア、削除ボタン */
    .deletePhotoBtn {
        z-index: 100;
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 30dvh;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        top: 0;
        display: block;
    }

    #sharePhotoBtn {
        display: block;
        z-index: 100;
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 30dvh;
        padding-top: 10dvh;
        left: 50%;
        transform: translateX(-50%);
        position: relative;
    }
}