/* BIM模型 */
.viewer3Dcontainer {
    width: 100%;
    height: 98vh;
}
#viewer3d .adsk-viewing-viewer {
    height: calc(100% - 55px) !important;
    bottom: 0px;
}
#viewer3d .viewcube {
    top: 70px;
    right: 5px;
}
#viewer3d .homeViewWrapper {
    margin: 110px 0 0 -20px;
}
/* 頁面背景 */
.dimension-bg{
    background: url('/Pics/bim_background.png') no-repeat center center / cover;
}
.gis-bg {
    background: url('/img/gismap.png') no-repeat center center / cover;
}
/* 館別資訊 */
.spacecontainer{
    width: 95%;
    /* position: absolute; */
    margin-top: 3vh;
    z-index: 1000;
    margin-left: 2.5%;
    color: #01599a;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.spacecontainer h1 {
    font-size: 4vh;
    font-weight: 700;
    text-shadow: #28304c 1px 1px 4px;
    margin-top:0;
    color: #fff;
}
.spacecontainer p{
    color: #10a182;
    font-size: 3vh;
    font-weight: 600;
    display: block;
    /* text-shadow: #28304c 0px 0px 3px; */
}
.spacecontainer span{
    color: #24c7a4;
}
.building-name .text-name-rwd{
    display: none;
}

/* 空間別選單 */
.spacebtn{
    background-color: rgba(209,236,242,.35);
    border-radius: 1vh;
    padding: 0.5vh 1.5vh;
    box-shadow: 0 0 1vh 0.1vh rgba(255, 255, 255, .5);
    height: 50%;
}
.spacebtn .btn-group{
    margin: 4px;
    display: inline-block !important;
    text-align: center;
}
.spacebtn .btnhover:after{
    content:"";
    position: absolute;
    top: -1px;
    left: -1px;
    background-color: rgba(101,156,204,.45);
    width: 4.5vh;
    height: 4.5vh;
    border-radius: 50%;
    opacity: 0;
    display: none;
    transition:.3s;
    -webkit-transition: .3;
    -moz-transition: .3;
    -ms-transition: .3;
    -o-transition: .3;
}
.spacebtn .btn-group .btn1{
    background-image: url(/Pics/1fa.png);
}
.spacebtn .btn-group .btn2{
    background-image: url(/Pics/2fa.png);
}
.spacebtn .btn-group .btn3{
    background-image: url(/Pics/3fa.png);
}
.spacebtn .btn-group .btn4{
    background-image: url(/Pics/stair.png);
}
.spacebtn .btn-group .btn5{
    background-image: url(/Pics/4fa.png);
}
.spacebtn .btn-group .btn6{
    background-image: url(/Pics/5fa.png);
}
.spacebtn .btn-group .btn7{
    background-image: url(/Pics/file-room.png);
}
.spacebtn .btn-group .btn8{
    background-image: url(/Pics/education.png);
}
.spacebtn .btn-group .btn1, .spacebtn .btn-group .btn2, .spacebtn .btn-group .btn3, 
.spacebtn .btn-group .btn4, .spacebtn .btn-group .btn5, .spacebtn .btn-group .btn6,
.spacebtn .btn-group .btn7, .spacebtn .btn-group .btn8, .spacebtn .btn-group .btn1a,
.spacebtn .btn-group .btn2a, .spacebtn .btn-group .btn3a, .spacebtn .btn-group .btn0a, .spacebtn .btn-group .btn7a {
    border-radius: 50%;
    background-size: 58%;
    width: 4.5vh;
    height: 4.5vh;
    float: none;
    position: relative;
    font-size: 1.8vh;
    font-weight: 900;
    padding: 0;
    color:#013e39;
    background-color: #003A66;
    background-repeat: no-repeat;
    background-position: center center;
}
.spacebtn .btn-group .icon-text{
    font-size: 1.6vh;
    color: #fff;
    padding-bottom: 1vh;
    font-weight: 400;
}
.icons-btn .btn-group > .btn:last-child:not(:first-child),
.icons-btn .btn-group > .dropdown-toggle:not(:first-child) {
    border-radius: 50%;
}
.spacebtn .btnhover:hover:after{
    opacity: 1;
    display: block;
}
.spacebtn .btn-group .dropdown-menu-right {
/* height: 250px;
position: absolute;
top: 100%;
z-index: 1000;
display: none;
float: left;
min-width: 160px; 
border-radius: 4px; */

/* max-height: 30vh; */
overflow-y: auto;
overflow-x: hidden;
padding: 0.5vh 0;
margin: 0.2vh 0 0;
font-size: 1.8vh;
text-align: left;
list-style: none;
background-color: #fff;
background-clip: padding-box;
border: 0.1vh solid rgba(0, 0, 0, 0.15);
}
.spacebtn .btn-group .dropdown-menu-right .btn {
border-right: transparent 100px solid;
border-radius: 0;
}

.spacebtn .btn-group .dropdown-menu-right:focus{
    border: none;
    outline: none;
}
.spacebtn .btn-group .dropdown-menu-right .btn{
    width: 100%;
    text-align: left;
    background-color: #fff;
    margin: 0px;
}
.spacebtn .btn-group .dropdown-menu-right .btn:hover{
    background-color: #d4e8ff;
    border-radius: 0;
}

/* selectHide */
body .spacebtn .btn-group .selectHide{
    position: absolute;
    right: 0;
    top: 0;
    font-size: 25px;
    opacity: 0;

    height: 4.2vh;
    width: 4.2vh;
    border-radius: 5vh;
    z-index: 1000;
}
body .spacebtn .btn-group .selectHide:focus{
    font-size: 1.8vh;
    opacity: 1;
    height: 50vh !important;
    width: 25vh !important;
    /* transform: translateY(50px);
    height: auto;
    width: auto; */

    min-width: 160px;
    outline: 0px;
    border-radius: 4px;
    width: auto;
    height: 250px;
    top: 4.25vh;
}
.btn:hover{
    color: inherit;
}
.spacebtn .btn {
    padding: 0.5vh 1.2vh;
}

/* iot icon */
.spacebtn .btn-group .dropdown-menu-right .iot_icon img{
    width: 20px;
    margin-left: 5px;
    margin-bottom: 5px;
}
.spacecontainer select option{
    display: block;
}
.iot_icon{   
    width: fit-content !important;
    background-image: url("/img/icons/iot-icon.png");
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: right;
    padding-right: 2.5rem;
    
}
.spacecontainer select .iot_icon:active{
    background-image: url("/img/icons/iot-icon.png");
}
.spacebtn .btn-group .dropdown-menu-right .btn{
    border-right: transparent 0 solid;
    border-radius: 0;
    font-size: 1.7vh;
}

/* iot icon */
.spacebtn .btn-group .btn:active{
    box-shadow: none;
}
.spacebtn .btn-group .dropdown-menu-right .btn:focus, .btn:active:focus{
    outline: none;
}
.spacebtn .btn_disappear .icon-text{
    color: #b4cae9;
}
.spacebtn .btn_disappear .btn:after{
    background-color: rgba(113, 182, 209, 0.9);
    opacity: 1;
    display: block;
    width: 44px;
    height: 44px;
    top: -2px;
    left: -2px;
}

/* 模型圖 */
.model-img{
    width: 100%;
    padding-top: 8%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.model-img img{
    width: 100%;
    max-width: 1000px;
}
@media(max-width:1024px){
    .spacecontainer{
        align-items: center;
    }
    .spacecontainer h1 {
        font-size: 4vh;
    }
    .spacecontainer p{
        font-size: 3vh;
    }
    .showData, .colorName {
        font-size: 12px !important;
    }
}
@media(max-width:768px){
    body {
        overflow: auto !important;
        min-height: 100vh !important;
    }
    .viewer3Dcontainer {        
        height: auto;
    }
    .viewer3Dcontainer .spacecontainer {
        position: relative;
        width: 100%;
        text-align: center;
        padding-top: 22px;
        padding-bottom: 10px;
        height: auto;
        padding-left: 0px;
        background-color: rgb(250 255 254 / 93%);
        margin:0px;
    }
    .viewer3Dcontainer .spacebtn {
        text-align: center;
        width: 100%;
        background-color: #fff;
        box-shadow: none;
        padding-bottom: 8px;
        border-radius: 0;
        border-top: 1px dashed rgba(74,82,111,.5);
        padding-top: 8px;
        margin:0px;
    }
    .viewer3Dcontainer .spacebtn .btn-group {
        margin: 6px;
    }
    .viewer3Dcontainer #viewer3d .adsk-viewing-viewer {
        height: 70vh !important;
        position: relative;
        width: 100%;
        overflow-y: hidden !important;
    }
    .viewer3Dcontainer #viewer3d .viewcube {
        top: -5px;
    }
    .viewer3Dcontainer #viewer3d .homeViewWrapper {
        margin: 18px 0 0 -20px;
    }
    .building-name{
        width: 100%;
    }
    .spacebtn .btn-group .icon-text{
        font-size: 15px;
        color: #626985;
    }
    .spacebtn .btn_disappear .icon-text{
        color: #ebf2f7;
    }
    .spacebtn .btn_disappear .btn:after{
        background-color: rgb(256, 256, 256, .7);
    }
    .spacecontainer h1{
        color: #013e39;
        text-shadow: none;
    }
    .spacecontainer p {
        color: #7a9e98;
        font-weight: 500;
    }
    .spacecontainer span {
        color: #b1c3c3;
    }
    .building-name .text-name{
        display: none;
    }
    .building-name .text-name-rwd{
        display: block;
        margin: auto;
        padding-bottom: 5px;
    }
    .showData {
        position: absolute;
        top: 172px !important;
    }
}

/* 彈出視窗 */
.modal-body{
    padding: 0;
}
.modal{
    z-index:10050; 
}
.modal-backdrop.show {
    opacity: 0.6;
    z-index:10040; 
}
.modal-title{
    display: inline-block;
    font-size: 15px;
}
.modal .table tr th,.modal .table tr td{
    text-align: left;
    font-size: 1.9vh;
    border-top: none;
}
.modal .table tr{
    font-weight:600;
}
.modal .table tr th{
    font-weight: 600;
    color: #02233d;
    border-bottom: 1px solid rgb(136 186 173 / 54%);
    border-right: 1px solid rgb(136 186 173 / 54%);
    padding: 1.5vh;
    background-color: #ecf1ed;
    /* padding-left: 23px; */
    width: 42.5%;
    text-align: right;
}
.modal .table tr td{
    font-weight: 500;
    padding: 1vh;
    border-bottom: 1px solid rgb(136 186 173 / 54%);
    padding-left: 2.3vh;
}
.modal .form-control{
    font-size: 1.9vh;
    margin-bottom:1rem;
}
/* 彈出視窗樣式 */
.modal-body{
    max-height: 70vh;
    overflow: auto;
    background-color: #fffffff0;
}
.modal-body .table{
    margin: 0;
}
.modal-fix .form-info{
    background-color: rgba(237,245,255,.43);
    padding: 20px 20px 10px 20px;
    border-bottom: 1px dashed #cacbcc;
}
.modal-fix .form-write{
    background-color: #ffffff80;
    padding: 10px 20px 20px 20px;
}
.modal-fix .form-group .sys-name{
    color: #092250;
    font-weight: 500;
}
.modal-content{
    background-color: #fff0;
    color: #343434;
    width: 65%;
    max-width: 65%;
    margin: auto;
    margin-top: 15%;
}
.modal-header {
    border-bottom: 1px solid #106a56;
    background-color: #124986;
    color: #fff;
    border-radius: none;
    padding: 10px 10px 10px 23px;
}
.close{
    color: #fff;
    text-shadow: 0 1px 0 #fff;
}
.close:focus{
    outline: none;
    border: none;
}
.modal-footer {
    border-top: 1px solid #103b6a;
    background-color:#124986;
    border-radius: none;
    padding: 12px;
}
.body-content .modal-footer .btn{
    font-size:1.7vh;
    padding: 0.5vh 1vh;
}
@media(max-width:576px){
    .modal-content{
        width: 80%;
        max-width: 80%;
    }
}

/* property-button */
.space-toolbtn .property_icon {
    position: absolute;
}
.space-toolbtn .adsk-control .btn-primary{
    background-color: #2e2e2e;
    border: none;
    padding: 6px;
    margin: 4px;
}
.space-toolbtn .adsk-control .btn-primary:after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    border-radius: 5px;
    background-color: rgba(256,256,256,.2);
    display: none;
}
.space-toolbtn .adsk-control .btn-primary:hover:after{
    display: block;
}
.space-toolbtn .adsk-control .btn-primary img {
    width: 24px;
    padding: 3px;
}
/* 屬性按鈕定位 */
#itemRepairExample{
    z-index: 1000;
    position: absolute;
    right: 27%;
    bottom: 1%;

}
#itemRepairExample .btn{
    background: none;
}

.selectSpace {
    position: absolute;
    top: 58px;
    right: 0.5%;
    margin-top: 35px;
    font-size: 18px;
    /* height: 565px; */
    /* overflow-y: scroll;
    width: 220px; */
}
.selectSpace select {
    width: 280px;
    height: 38px;
    padding: 0 12px;
}
.selectSpace .selectFloor {
    background-color: #01599A;
    color: white;
}
/* .selectSpace table {
    width: 200px;
}
.selectSpace thead th {
    background-color: #01599A;
    color: white;
}
.selectSpace button {
    width: 200px;
    text-align: left;
    padding: 3px 10px;
} */

.showData {
    position: absolute;
    top: 148px;
    right: 0.5%;
    font-size: 16px;
    height: 78%;
    overflow-y: auto;
}
.showData table {
    /* width: 200px; */
    background-color: #efefef;
    text-align: left;
    min-width: 305px;
    margin-top: 5px;
}
.showData span, .mouseOverData span {
    font-weight: 900;
    color: #01599A;
}
.showData .red, .colorName .red {
    color: rgb(192, 0, 0);
}
.showData .yellow, .colorName .yellow {
    color: rgb(255, 217, 0);
}
.showData .lightYellow, .colorName .lightYellow {
    color: rgb(252, 233, 140);
}
.showData .green, .colorName .green {
    color: rgb(71, 160, 19);
}
.showData .blue, .colorName .blue {
    color: rgb(0, 155, 211);
}
.showData .lightBlue, .colorName .lightBlue {
    color: rgb(161, 193, 235);
}
.showData .brown, .colorName .brown {
    color: rgb(122, 95, 43);
}
.showData .grey, .colorName .grey {
    color: grey;
}
.showData thead th, .colorName thead th {
    background-color: #01599A;
    color: white;
    padding: 3px 15px;
}
.showData tbody td, .colorName tbody td {
    padding: 3px 10px;
    border-bottom: 0.5px solid lightsteelblue;
}

.colorName {
    position: absolute;
    bottom: 0.8%;
    left: 0.5%;
    font-size: 14px;
}
.colorName table {
    background-color: #efefef;
    text-align: left;
}

.mouseOverButton button {
    font-size: 18px;
    color: black;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: none;
    box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.4);

    /* position: absolute;
    left: 500px; */
}
.mouseOverData {
    display: none;
    font-size: 18px;
    background-color: rgba(235,242,253,.8);
    box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.4);
    padding: 10px;
    max-width: 250px;
    position: absolute;
    /* left: 540px; */
}
.mouseOverButton button:hover + .mouseOverData {
    display: block;
}




/* modal */
.modal,
.modal-box {
  z-index: 1500;
}
.modal-sandbox {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: transparent;
}
.modal {
  display: none; 
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: rgba(0,0,0,.6);
  overflow: auto;
}
.modal-box {
  position: relative;
  width: 40%;
  max-width: 60vh;
  margin: 8vh auto;
  animation-name: modalbox;
  animation-duration: .4s;
  animation-timing-function: cubic-bezier(0,0,.3,1.6);
}
.modal-header {
  background: #003A66;
  color: #ffffff;
}
.modal-header .close{
    margin-bottom: 0;
    line-height: 1.2;
    opacity: .3;
    font-weight: 400;
    font-size: 3.2vh;
}
.modal-header h1 {
    font-size: 2.2vh;
    margin: 0.8vh 0 0 0;
}
.modal-body {
  background: #ecf1ed;
}

/* Close Button */
.close-modal {
  text-align: right;
  cursor: pointer;
  /* float: right; */
  /* margin: 0 10px 18px 0; */
}

/* Animation */
@-webkit-keyframes modalbox {
  0% {
    top: -250px; 
    opacity: 0;
  }
  100% {
    top: 0; 
    opacity: 1;
  }
}

@keyframes modalbox {
  0% {
    top: -250px; 
    opacity: 0;
  }
  100% {
    top: 0; 
    opacity: 1;
  }
}

p {
  line-height: 1.4em;
}

body {
  background: #B0BEC5;
}
.close-btn {
    padding: 10px 20px;
    font-size: 16px;
    /* margin: 0 20px 20px 0 !important; */
}
.modal-trigger, button {
  top: 50%;
  /* left: 50%; */
  /* padding: 20px 40px; */
  background: transparent;
  color: #ffffff;
  /* border: 1px solid #ffffff; */
  text-decoration: none;
}
.modal-trigger {
  position: absolute;
  top: 94vh;
  left: 140vh;
  /* -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  transition: ease .2s; */
}
.modal-trigger img {
    width: 4.5vh;
}
button {
  border: 1px solid #333333;
  outline: none;
  color: #333333;
}
@media (max-width: 1920px) and (min-width: 1680px) {
  .modal-box{
    width: 30%;
  }
}
@media (max-width: 768px) {
  .modal-box{
    width: 60%;
  }
}
@media (max-width: 576px) {
  .modal-box{
    width: 80%;
  }
}

body .container {
    width: 100%;
}

#modal-name .form-control {
    margin-bottom: 0;
    height: 3.8vh;
}
.btn-repair {
    background-color: #cc5639 !important;
    border: solid 2px #cc5639 !important;
    color: #ffffff !important;
}
.btn-repair:hover {
    background-color: #9b3516 !important;
    border: solid 2px #9b3516 !important;
}

/* .btn-word {
    font-size: 1.7rem;
    background-color: #003A66;
    color: white;
    height: 37px;
}
.btn-word:hover, .btn-word:focus {
    background-color: rgb(101, 156, 204);
    color: #003A66;
} */
.spacebtn .btn-group .btn1a{
    background-image: url(/Pics/001.png);
}
.spacebtn .btn-group .btn2a{
    background-image: url(/Pics/002.png);
}
.spacebtn .btn-group .btn3a{
    background-image: url(/Pics/003.png);
}
.spacebtn .btn-group .btn0a{
    background-image: url(/Pics/B1.png);
}
.spacebtn .btn-group .btn7a{
    background-image: url(/Pics/RF.png);
}