﻿html {
    font-size: 20px;
}

body {
    font-family: Microsoft JhengHei !important;
}

/*.icon_hover_red:hover {
    border-color: transparent;
}
*/
.modal {
    z-index: 9999;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 3px solid;
    border-radius: 10px;
    padding: 15px;
    display: none;
    max-width: 90%;
    /*max-height: 80%;*/
}

.modal_header {
    font-size: 24px;
    text-align: center;
    margin: 10px 30px;
}

.modal_body {
    /*width: 500px;*/
    width: 1000px;
    max-width: 100%;
    max-height: 80dvh;
    /*max-height: 420px;*/
    margin-top: 20px;
    overflow-y: auto;
    /* Hide scrollbar for IE, Edge and Firefox */
    /*-ms-overflow-style: none;*/ /* IE and Edge */
    /*scrollbar-width: none;*/ /* Firefox */
}

/* width */
/*::-webkit-scrollbar {
    width: 30px;
}*/

/* Track */
/*::-webkit-scrollbar-track {
    background: #f1f1f1;
}*/

/* Handle */
/*::-webkit-scrollbar-thumb {
    background: #888;
}*/

/* Handle on hover */
/*::-webkit-scrollbar-thumb:hover {
        background: #555;
    }*/

@media only screen and (max-width: 600px) {
    .modal {
        width: 85%;
        max-width: 85%;
    }

    .modal_body {
        min-width: unset;
        width: unset;
    }

    #modal_div.has_ply_and_content .modal {
        max-height: 600px;
    }

    #modal_div.has_ply_and_content .modal_body {
        display: block !important;
        /*height: 600px !important;*/
        max-height: 600px !important;
    }

    #modal_div.has_ply_and_content .modal_ply_viewer {
        width: 100% !important;
        height: 50% !important;
        position: relative;
    }

    #modal_div.has_ply_and_content .modal_content {
        width: 100% !important;
    }
}

/* ply + content */

#modal_div.has_ply_and_content .modal {
    width: 800px;
}

#modal_div.has_ply_and_content .modal_body {
    display: flex;
    width: 100%;
    height: 500px;
}

#modal_div.has_ply_and_content .modal_ply_viewer {
    width: 60%;
    height: 100%;
    position: relative;
}

#modal_div.has_ply_and_content .modal_content {
    width: 40%;
    overflow-y: auto;
}

/* only ply */

#modal_div.only_ply .modal {
    width: 800px;
}

#modal_div.only_ply .modal_body {
    width: 100%;
    height: 500px;
}

#modal_div.only_ply .modal_ply_viewer {
    height: 100%;
    position: relative;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.modal_body::-webkit-scrollbar {
    /*display: none;*/
}

.modal_body .modal_block_row {
    margin: 5px 0px;
}

.modal_close_button {
    width: 35px;
    height: 35px;
    padding: 0;
    top: -10px;
    right: -10px;
    /*position: absolute;*/
    /*color: white;*/
    font-size: 20px;
    line-height: 12px;
    /*border: none;*/
    /*background-color: #ef2d5e;*/
    border-radius: 25px;
    /*font-weight: medium;*/
}

    .modal_close_button:hover {
        background-color: #b32146;
        cursor: pointer;
    }

.modal_mask {
    z-index: 9998;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.4;
    filter: alpha(opacity=40);
    display: none;
}

/* youtube */

.modal_block_item .videobox {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

    .modal_block_item .videobox iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url(https://cdn.glitch.com/38612bac-2c10-43d7-9b3c-dc184441450c%2Floading.gif?v=1612243265740) center center no-repeat;
    }

/* owl_image */

.owl_image {
    width: 100%;
}

.owl-item {
    width: 100%;
}

/* ckeditor */
.ck-content * {
    word-wrap: break-word; /*設定斷行*/
}

.ck-content .text-tiny {
    font-size: 0.7em;
}

.ck-content .text-small {
    font-size: 0.85em;
}

.ck-content .text-big {
    font-size: 1.4em;
}

.ck-content .text-huge {
    font-size: 1.8em;
}

/* glb model viewer */

.modal_model_viewer {
    width: 500px;
    height: 250px;
}

/* button */
.modal_block_item.__button_row {
    display: flex;
    justify-content: space-evenly;
}

.modal_block_item .__modal_button {
    align-items: center;
    border-radius: 5px;
    margin: 10px;
    background-color: #f0aa00;
    color: black;
    padding: 7px;
    border: 0;
    min-width: 100px;
    font-size: 1rem;
    /*font-size: 16px;*/
    font-weight: 700;
}

/* floorplan */

@media only screen and (max-width: 600px) {
    .floorPlan_map {
        height: 0px;
        width: 100%;
        position: fixed;
        /*z-index: 9997;*/
        bottom: 0;
        left: 0;
        background-color: rgba(0,0,0,0.5);
        overflow-x: hidden;
        transition: 0.5s;
        display: flex;
        z-index: 9998;
    }

        .floorPlan_map.open {
            /*height: 300px;*/
            height: 100%;
            padding: 10px 0 10px 0;
        }

    .floorPlan {
        top: 100px;
        bottom: unset;
    }
}

@media only screen and (min-width: 601px) {
    .floorPlan_map {
        display: none;
        z-index: 9997;
        position: absolute;
        bottom: 130px;
        left: 70px;
        width: 310px;
        height: 310px;
        background-color: white;
        border: 3px solid;
        border-radius: 10px;
        transition: 0.5s;
    }

        .floorPlan_map.open {
            display: block;
        }
}

.__marker_div {
    width: 300px;
    height: 300px;
}

.__marker_text {
    width: 70px;
    text-align: center;
}

.__marker_div img.marker_img {
    content: url('/arplatform/css/images/marker.png');
}

.__marker_div img.red_marker {
    content: url('/arplatform/css/images/marker_red.png');
}

/* sceneList */

.edit_view_div {
    padding: 0;
    width: 100%;
}

/* share_project */

#share_div .modal_body {
    max-width: 400px;
}

/* ar_enter */

.ar_enter {
    position: absolute;
    right: 61px;
    bottom: 270px;
}

    .ar_enter button {
        font-size: 20px;
        font-weight: 700;
    }

@media only screen and (max-width: 600px) {
    .ar_enter {
        top: 200px;
        bottom: unset;
    }
}

/* vr_enter */

.vr_enter {
    position: absolute;
    right: 61px;
    bottom: 320px;
}

    .vr_enter button {
        font-size: 20px;
        font-weight: 700;
    }

@media only screen and (max-width: 600px) {
    .vr_enter {
        top: 250px;
        bottom: unset;
    }
}

/* 頁面上的 icon */
.view_icon {
    width: 55px;
    height: 55px;
}

    .view_icon .icon_button {
        width: 55px;
        height: 45px;
        position: absolute;
        border-radius: 8px;
        cursor: pointer;
        z-index: 9997;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .view_icon .icon_button img {
            width: 35px;
        }

    .view_icon span.material-icons {
        font-size: 40px;
    }

/* 模型檢視 使用 model viewer */
.model_viewer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.animeControl {
    position: absolute;
    left: 5px;
    top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}

.animeLabel {
    margin: 0px 5px 0px 0px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }

/* coupon phone country icon*/
.receive_coupon_dom .country_code_select option::before {
    /*content: 'abcxxx';*/
    /*background-image: url(attr(flag));*/
}

.swal2-container {
    z-index: 99999 !important;
}

._right_bottom_toolbar {
    position: absolute;
    right: 10px;
    bottom: 160px;
    display: flex;
    flex-direction: column-reverse;
}

._left_bottom_toolbar {
    position: absolute;
    left: 10px;
    bottom: 160px;
    display: flex;
    flex-direction: column-reverse;
}

@media only screen and (max-width: 600px) {
    ._right_bottom_toolbar {
        top: 50px;
        bottom: unset;
    }

    ._left_bottom_toolbar {
        top: 50px;
        bottom: unset;
    }
}

/* 加載動畫 */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top: 5px solid #3498db;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    animation: center_spin 1s linear infinite;
}

/* 旋轉動畫 */
@keyframes center_spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


