﻿html, body {
    position: relative;
    height: 100%;
}

body {
    position: fixed;
    margin: 0px;
    overflow: hidden;
    background-color: #000000;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
}


#loader {
    position: fixed; /* 親要素からの相対位置 */
    /* 中心寄せ＆角度       */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}


/* 動作環境表記 */
.sys-requirements {
    position: fixed;
    display: block;
    bottom: 25px;
    padding: 0 30px;
    color: #fff;
    text-align: left;
    white-space: pre-line;
    font-size: 8px;
    font-weight: 300;
}


#loading_message {
    position: absolute; /* 親要素からの相対位置 */
    display: inline-block; /* インラインブロック化 */
    white-space: nowrap; /* 折り返ししない       */
    font-family: sans-serif;
    font-size: calc(4vw); /* 背景透かし文字サイズ */
    font-weight: bold; /* 太字                 */
    color: rgba(255, 255, 255, 0.70); /* 背景透かし文字色     */
    /* 中心寄せ＆角度       */
    top: 100px;
    /*left: 50%;*/
    transform: translate(-30%, 0%);
    z-index: 100;
    /*margin: 0 auto;*/
}


/* ############ */
/* ############  スリープモード  ###############  */
/* ############ */

#ui_sleep_mode {
    visibility: hidden;
}


#msg_sleep_mode {
    position: fixed;
    display: inline-block;
    width: 75%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
}


#bg_sleep_mode {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    z-index: 100;
}



@media screen and (orientation: landscape) {

    #msg_sleep_mode {
        position: fixed;
        display: inline-block;
        width: 45%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 101;
    }

    #bg_sleep_mode {
        position: fixed;
        top: 50%;
        left: 50%;
        width: 100vw;
        height: 100vh;
        -webkit-transform: translate(-50%,-50%);
        transform: translate(-50%,-50%);
        z-index: 100;
    }
}



/* ############ */
/* ############  ヨコ撮影禁止  ###############  */
/* ############ */

#rotate_smartphone {
    position: fixed; /* 親要素からの相対位置 */
    display: inline-block; /* インラインブロック化 */
    white-space: nowrap; /* 折り返ししない       */
    font-family: sans-serif;
    font-size: calc(5vw); /* 背景透かし文字サイズ */
    font-weight: bold; /* 太字                 */
    color: rgba(255, 255, 255, 0.70); /* 背景透かし文字色     */
    /* 中心寄せ＆角度       */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    visibility: hidden;
}

@media screen and (orientation: landscape) {
    /* 横向きの場合のスタイル */
    #rotate_smartphone {
        position: fixed; /* 親要素からの相対位置 */
        display: inline-block; /* インラインブロック化 */
        white-space: nowrap; /* 折り返ししない       */
        font-family: sans-serif;
        font-size: calc(3vw); /* 背景透かし文字サイズ */
        font-weight: bold; /* 太字                 */
        color: rgba(255, 255, 255, 1.0); /* 背景透かし文字色     */
        /* 中心寄せ＆角度       */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 200;
        visibility: hidden;
        text-align: center;
    }
}



/* ############ */
/* ############  カスタムエラーダイアログ  ###############  */
/* ############ */

#error_dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    width: calc(75vw);
    margin: 0px;
    padding: 30px 20px;
    text-align: center;
    color: #4E8AD3;
    /*border: 1px solid #aaa;*/
    border: solid 3px #4E8AD3;
    /*box-shadow: 2px 2px 4px #888;*/
    font-weight: bold;
    font-size: 20px;
    background-color: #ffffff;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    display: none;
}


.error_gps_dialog_button {
    font-size: 14px;
    font-weight: bold;
    padding: 10px 10px;
    color: #fff;
    border-style: none;
    /* ボタンの影の指定*/
    /*box-shadow: 2px 2px 3px 1px #666;*/
    /*-moz-box-shadow: 2px 2px 3px 1px #666;*/
    /*-webkit-box-shadow: 2px 2px 3px 1px #666;*/
    /* テキストの影の指定*/
    /*text-shadow: 1px 1px 2px #000;*/
    /* 背景色を明るい青色に指定 */
    background-color: #4E8AD3;
    /*background-color: #87cefa;*/
    /* 角丸の指定 */
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    text-align: center;
    margin: 0px 5px;
}

@media screen and (orientation: landscape) {

    /* 横向きの場合のスタイル */
    #error_dialog {
        position: fixed;
        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%,-50%);
        transform: translate(-50%,-50%);
        width: calc(60vw);
        margin: 0px;
        padding: 30px 20px;
        display: none;
        text-align: center;
        color: #4E8AD3;
        border: solid 3px #4E8AD3;
        /*box-shadow: 2px 2px 4px #888;*/
        font-weight: bold;
        font-size: 20px;
        background-color: #ffffff;
        -moz-border-radius: 10px;
        -webkit-border-radius: 10px;
        border-radius: 10px;
        display: none;
    }


    .error_gps_dialog_button {
        font-size: 18px;
        font-weight: bold;
        padding: 10px 10px;
        color: #fff;
        border-style: none;
        /* ボタンの影の指定*/
        /*box-shadow: 2px 2px 3px 1px #666;*/
        /*-moz-box-shadow: 2px 2px 3px 1px #666;*/
        /*-webkit-box-shadow: 2px 2px 3px 1px #666;*/
        /* テキストの影の指定*/
        /*text-shadow: 1px 1px 2px #000;*/
        /* 背景色を明るい青色に指定 */
        background-color: #4E8AD3;
        /*background-color: #87cefa;*/
        /* 角丸の指定 */
        -moz-border-radius: 5px;
        -webkit-border-radius: 5px;
        border-radius: 5px;
        text-align: center;
        margin: 0px 20px;
    }
}


/* ############ */
/* ############  overlay_rotate_smartphone  ###############  */
/* ############ */

#overlay_rotate_smartphone {
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    opacity: 0;
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    transition: all 0.3s ease-in-out;
    z-index: 0;
}

    #overlay_rotate_smartphone.active {
        opacity: 1;
        z-index: 100;
    }




/* ############ */
/* ############  dat.GUIレイアウト  ###############  */
/* ############ */

#iframe-goes-in-here {
    position: absolute;
    width: 50%;
    height: 200px;
    background-color: #000000;
    visibility:hidden;
}

    #iframe-goes-in-here iframe {
        width: 100%;
        height: 100%;
        position: relative;
        z-index: 1;
    }

#my-gui-container {
    position: absolute;
    /*dat.GUI位置調整*/
    top: 5px;
    left: 90px;
    z-index: 200;
}

/* ############ */




#divLayoutVideoCam {
    position: absolute;
    margin: 0px;
    /*    height: 100%;*/
}

