﻿:root {
    --active: #11a79c;
}

body {
    margin: 0;
    height: 100%;
    font-family: arial, sans-serif;
}

#MapFrame {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    cursor: pointer;
    position: absolute;
    left: 0;
    top: 0;
}

    #MapFrame .innerFrame {
        xmargin: 0 auto;
        display: flex;
        width: 100%;
        height: 100%;
    }

    #MapFrame.down {
        cursor: move;
    }

    #MapFrame svg {
        height: 100%;
        margin: 0 auto;
        xbackground: pink;
    }

    #MapFrame .transformDamp svg {
        transition: transform 1s ease;
    }

    #MapFrame svg #breastfeeding.highlight,
    #MapFrame svg #restroom_handicap.highlight,
    #MapFrame svg #guide.highlight,
    #MapFrame svg #aed.highlight,
    #MapFrame svg #emergency_lift.highlight,
    #MapFrame svg #water.highlight,
    #MapFrame svg #atm.highlight,
    #MapFrame svg #selfpay.highlight,
    #MapFrame svg #recharge.highlight,
    #MapFrame svg #phone.highlight,
    #MapFrame svg #stair.highlight,
    #MapFrame svg #restroom.highlight,
    #MapFrame svg #transfer.highlight,
    #MapFrame svg #cancer_diag.highlight,
    #MapFrame svg #pay_makeappointment.highlight,
    #MapFrame svg #pay_makeappointment2.highlight,
    #MapFrame svg #check_in.highlight,
    #MapFrame svg .flashable.highlight,
    #MapFrame svg .flashable.highlight * {
        animation: flashstroke 1s ease infinite;
        animation-fill-mode: forwards;
        xpaint-order: markers stroke !important;
        stroke-linejoin: miter !important;
    }

    #MapFrame svg .highlight,
    #room g[data-isactive],
    #door_bg g[data-isactive] rect {
        xfill: #ffe680 !important;
        animation: flashstroke 1s ease infinite;
        animation-fill-mode: forwards;
        stroke-linejoin: miter !important;
    }

@keyframes flashstroke {
    0% {
    }

    50% {
        xfill: rgba(1,1,1,0);
    }

    100% {
        xfill: #11a79c;
        fill: var(--active);
    }
}

#text_room [data-isactive] text, #text_room text[data-isactive] {
    animation: flashstroketext 1s ease infinite;
    animation-fill-mode: forwards;
}

@keyframes flashstroketext {
    0% {
    }

    50% {
        xstroke: rgba(1,1,1,0);
    }

    100% {
        xstroke: #11a79c;
        stroke: var(--active);
    }
}

#fire_equip.highlight {
    display: inline !important;
}

svg text, #MapFrame, #angle-info {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body, #controls {
    position: relative;
}

#controls {
    z-index: 2;
}

#poi a,
#poif,
#rotateBtn,
#zoomIn,
#zoomOut {
    background: #f8f8f8;
    box-shadow: 0 0 5px rgba(59, 59, 59, 0.8);
}

#zoomIn,
#zoomOut {
    display: block;
    width: 30px;
    height: 30px;
    font-weight: bold;
    font-size: 1.3em;
    color: #3b3b3b;
    border: 0;
    right: 29px;
    position: absolute;
    z-index: 1;
    cursor: pointer;
}

#zoomIn {
    border-radius: 8px 8px 0 0;
}

#zoomOut {
    border-radius: 0 0 8px 8px;
}

    #zoomOut.disabled {
        color: #cacaca;
        cursor: default;
    }

#rotateBar {
    position: absolute;
    z-index: 1;
    right: 85px;
    bottom: 115px;
}

#searchRoom {
    position: absolute;
    left: 20%;
    top: 8px;
    z-index: 3;
    border: 1px solid #b2b2b2;
    width: 13em;
    height: 24px;
    border-radius: 18px !important;
    padding: 0.2em;
    background: white;
    box-shadow: 0 0 2px #3b3b3b;
    font-family: 'Noto sans TC','Microsoft JhengHei',Arial, Helvetica, sans-serif;
    font-size: 18px !important;
}

#xMapFrame {
    width: 50%;
    height: 50%;
}

/*color*/
#MapFrame {
    background: #CCE4F0;
}

#base {
    fill: aliceblue !important;
}

.door_bg rect {
    xfill: #ececec !important;
    fill: aliceblue;
    stroke: none;
}

.dc {
    display: none;
}
/*fontsize*/
svg .inside_wall {
    stroke-width: 1;
}

#outline_wall {
    stroke-width: 2;
}

#outline_building {
    stroke-width: 5;
}

#text_room text {
    font-size: 9px;
}

svg.scale2 #outlinec #outline_wall,
svg.scale2 #outlinec #outline_building2 {
    stroke-width: 2.5;
}

svg.scale2 .inside_wall {
    stroke-width: 1.5;
}

svg.scale2 #text_room text {
    font-size: 10px;
}

svg.scale1 #outline_building {
    stroke-width: 5;
}

svg.scale1 #outline_wall,
svg.scale1 #outline_building2 {
    stroke-width: 2.5;
}

svg.scale1 .inside_wall {
    stroke-width: 2;
}

svg.scale1 #text_room text {
    font-size: 14px !important;
    letter-spacing: 1px;
}

svg.scale1 #text_room .roomname,
svg.scale1 #text_room .dpt {
    display: none;
}

svg .show1x {
    display: none;
}

svg.scale1 .show1x {
    display: inline;
}

#poifx {
    display: none;
}

#poi,
#poif {
    position: absolute;
    z-index: 2;
    font-family: 'Noto sans TC','Microsoft JhengHei',Arial, Helvetica, sans-serif;
    font-size: 18px;
    color: #3b3b3b;
    border-radius: 10px;
    height: 100%;
    top: 0;
    left: 0;
    width: 12%;
    padding: 0;
    user-select: none;
}

#poi {
    top: 5px;
    width: 80%;
    height: auto;
    left: 10%;
    text-align: center;
    padding: 3px 3px 0;
}

    #poi a,
    #poif a {
        padding: 0.2em 1em;
        cursor: pointer;
    }

    #poi a {
        display: inline-block;
        font-weight: 700;
        margin: 0px 10px 8px 0px;
        border-radius: 8px;
        box-shadow: 0 0 3px #3b3b3b;
    }

#poif {
    overflow-y: scroll;
    background: rgba(236, 236, 236, 1);
    box-shadow: 5px 0px 5px rgba(0,0,0,0.3);
    border-radius: 0;
    min-width: 12rem;
}

.hide {
    display: none !important;
}

#poi > div > a.hide {
    display: inline-block !important;
    visibility: hidden;
}

#poif div {
    display: block;
    margin-top: 1em;
}

    #poif div:first-of-type {
        margin-top: 1.8em;
    }

#poif a {
    background: none !important;
    margin: 0.2em 0;
    display: block;
    border: 2px solid #d2d2d2;
    border-radius: 8px;
    font-weight: bold;
}

    #poi a.active,
    #poif a.active {
        background: #dddddd !important;
    }
    /*#poif div:nth-of-type(1) a{
    background:#eef4fa;
    background:#f5ffde !important;
    background:#eef4fa ;

}
#xpoif div:nth-of-type(2) a,
#poif div:nth-of-type(2) a {
    background:#fcdad6 !important;
}
#poif div a{
    xbackground:#fcfbd6;
    background:#eef4fa !important;
}*/

    #poif a:before {
        content: "";
        display: inline-block;
        width: 7px;
        height: 1em;
        position: relative;
        left: -3px;
        top: 3px;
        border-radius: 1px;
    }

    #poif a:before {
        background: #99c3ee;
    }

#poif div:nth-of-type(1) a:before {
    background: #a4cc46
}

#poif div:nth-of-type(2) a:before {
    background: #e54020;
}

#poi > div > a:last-of-type {
    padding-left: 0.3em;
    padding-right: 0.3em;
    border-radius: 100%;
    height: 1em;
    line-height: 0.3;
    position: relative;
    top: -5px;
    margin-right: 2em;
}

#zoomIn {
    bottom: 39px;
}

#zoomOut {
    bottom: 10px;
}

#footer {
    box-shadow: 0px 0px 5px #6c6c6c;
}

#poifCloseContainer {
    font-family: 'Noto sans TC','Microsoft JhengHei',Arial, Helvetica, sans-serif;
    font-size: 16px;
    display: block;
    text-align: right;
    position: absolute;
    width: 12%;
    min-width: 12rem;
    border-bottom: 1px solid #cecece;
    box-sizing: border-box;
    background: #ececec;
    z-index: 3;
    user-select: none;
}

    #poifCloseContainer .closeBtn {
        display: inline-block;
        cursor: pointer;
        padding: 0.2em 0.45em 0.3em;
        cursor: pointer;
        margin: 0.3em 0 0.3em 0;
        border-radius: 1em;
        line-height: 0.9em;
        font-weight: 700;
    }

#poif .closeBtn,
#searchContainer .closeBtn {
    display: inline-block;
    font-weight: bold;
    padding: 0.2em 0.45em 0.3em;
    cursor: pointer;
    margin: 0.5em 0.5em 0 0;
    border-radius: 1em;
    line-height: 0.9em;
}

#rotateBtn {
    position: absolute;
    z-index: 2;
    bottom: 115px;
    right: 29px;
    font-size: 1.2em;
    color: #3b3b3b;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
}

#searchBtn {
    display: inline-block;
    color: #ffffff;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
}

    #searchBtn i:before {
        font-size: 15px;
        position: relative;
        top: -1px;
        left: -1px;
    }

    #searchBtn a {
        background: #11a79c;
        border-radius: 2em;
    }

#redo {
    position: absolute;
    z-index: 2;
    right: 59px;
    bottom: 111px;
    color: #3b3b3b;
    padding: 6px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: none;
}
/*search container*/
#searchContainer {
    position: relative;
    font-family: 'Noto sans TC','Microsoft JhengHei',Arial, Helvetica, sans-serif;
    background: white;
    font-weight: 700;
    height: 7em;
    padding: 1em;
    box-shadow: -5px 5px 5px rgba(0,0,0,0.3);
    text-align: left;
    border-radius: 8px;
    z-index: 4;
    position: absolute;
    left: calc(50% - 200px);
    top: 30%;
    width: 400px;
    user-select: none;
}

#searchRoom {
    position: relative;
    display: block !important;
    font-size: 1em !important;
    box-shadow: none;
    border-radius: 3px !important;
    padding: 0.5em;
    left: unset;
    width: calc(100% - 1em);
}

#searchContainer .submit {
    margin-top: 1em;
    background: #11a79c;
    width: 100%;
    color: white;
    padding: 0.5em;
    font-size: 0.9em;
    font-weight: bold;
    position: relative;
    border: navajowhite;
    border-radius: 4px;
    cursor: pointer;
}


#searchContainer .closeBtn {
    position: absolute;
    float: right;
    top: 0;
    right: 0;
}

#backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    top: 0;
    z-index: 4;
}



#searchBtnMobile {
    display: none;
}

#MapFrame {
    touch-action: none;
}

#angle-info {
    color: #3b3b3b;
    font-family: 'Noto sans TC','Microsoft JhengHei',Arial, Helvetica, sans-serif;
    font-weight: 700;
    width: 5rem;
    font-size: 1.4rem;
    line-height: 1.3em;
    position: absolute;
    text-align: center;
    bottom: 10px;
    left: 0;
    z-index: 2;
    padding: 5px 5px 5px 0;
}

#MapContainer {
    background: #cce4f0;
    width: 100%;
    height: calc(100vh - 215px);
}
/* 1/15 */
#bkdrop {
    background: black;
    opacity: 0.7;
    position: fixed;
    top: 0;
    z-index: 801;
    height: 100%;
    width: 100%;
    display: none;
}

.closeBtn2 {
    display: none;
}

#searchContainer .resultNotFound {
    text-align: center;
}

    #searchContainer .resultNotFound br {
        display: block;
    }

#searchContainer .closeBtn3 {
    background: #11a79c !important;
    color: white;
    border: none !important;
    border-radius: 3px !important;
    min-width: 120px;
    font-size: 12pt !important;
    height: 30px;
    font-weight: 400;
    padding: 0;
    cursor: pointer;
}



#MapContainer #return {
    z-index: 1;
    bottom: 5px;
    padding: 7px !important;
    right: 5px;
    margin: 0px 10px 8px 0px;
    border-radius: 17px;
    width: 2em;
}
/* small screen */
@media screen and (max-width: 767px) {
    #angle-info {
        font-size: 1rem !important;
        width: 4rem;
    }

    #bkdrop {
        display: block;
    }

    #poifCloseContainer {
        display: none;
    }

    #searchBtnMobile {
        display: inline-block;
    }

    #poi {
        left: 5px;
        width: calc(100% - 16px);
        text-align: left;
    }

    #poif {
        z-index: 802;
        left: 5vw;
        padding: 1em;
        border-radius: 5px;
        top: 15px;
        width: 80vw;
        height: auto;
    }

        #poif div:first-of-type {
            margin-top: 0;
        }

        #poif a {
            border: 0;
            border-bottom: 1px solid #d2d2d2;
            border-radius: 0;
        }

    #searchBtn {
        display: none;
    }

    #poi, #poif, #searchBtnMobile {
        font-family: 'Noto sans TC','Microsoft JhengHei',Arial, Helvetica, sans-serif;
        font-size: 18px;
        color: #3b3b3b;
    }

    #searchBtnMobile {
        display: inline-block;
        color: #ffffff;
        font-size: 18px;
        border-radius: 8px;
        cursor: pointer;
        z-index: 2;
        bottom: 5px;
        position: absolute;
        left: calc(50% - 3em);
    }

        #poi a, #searchBtnMobile a {
            display: inline-block;
            font-weight: 700;
            margin: 0px 10px 8px 0px;
            border-radius: 8px;
            box-shadow: 0 0 3px #3b3b3b;
        }

        #searchBtnMobile a {
            background: #11a79c;
            border-radius: 2em;
        }

        #poi a, #poif a, #searchBtnMobile a {
            padding: 0.2em 1em;
            cursor: pointer;
        }

        #searchBtnMobile i::before {
            font-size: 15px;
            position: relative;
            top: -1px;
            left: -1px;
        }

    #searchContainer {
        z-index: 802;
        left: 5vw;
        width: 80vw;
        border-radius: 5px;
        background: white;
    }

        #searchContainer .closeBtn {
            display: none;
        }

    .closeBtn2 {
        display: inline-block;
    }

    #searchContainer .submit, #searchContainer .closeBtn2 {
        background: #989898 !important;
        color: white;
        border: none !important;
        border-radius: 3px !important;
        min-width: 120px;
        font-size: 12pt !important;
        height: 30px;
        font-weight: 400;
        padding: 0;
        cursor: pointer;
    }

    #searchRoom {
        background: white;
    }

    #searchContainer .submit {
        display: inline-block;
        width: auto;
        height: 30px;
        float: left;
        margin-top: 0;
        background: #26899c !important;
        margin-right: 5px;
    }


    svg #doorline * {
        stroke-width: 0.35px !important;
        fill: none !important;
    }

    svg #layer1 * {
        stroke-width: 0.7px !important;
    }

    svg .inside_wall:not(.highlight) *,
    svg #stair:not(.highlight) {
        stroke-width: 0.7px !important;
    }

    svg #restroom_handicap *,
    svg #outlinec * {
        stroke-width: 1.5px !important;
    }

    svg #outline_building {
        stroke-width: 3px !important;
    }



    svg.scale1 #doorline * {
        stroke-width: 0.5px !important;
        fill: none !important;
    }

    svg.scale1 #layer1 * {
        stroke-width: 1px !important;
    }

    svg.scale1 .inside_wall:not(.highlight) *,
    svg.scale1 #stair:not(.highlight) {
        stroke-width: 1px !important;
    }

    svg.scale1 #outlinec * {
        stroke-width: 1.5px !important;
    }

    svg.scale1 #outline_building {
        stroke-width: 3px !important;
    }

    /*svg.scale1 #text_room {
        stroke-width: 1px !important;
    }*/

    #MapContainer #return {
        bottom: 5px;
        left: unset;
        right: 5px;
        cursor: pointer;
        border-radius: 17px;
        padding: 7px !important;
        position: absolute;
        width: 2em;
        margin: 0px 10px 8px 0px;
        box-shadow: 0 0 3px #3b3b3b;
        z-index: 2;
    }

        #MapContainer #return .fas {
            margin-right: 0;
        }
}



#MapFrame, #MapContainer {
    background: none;
}

#檢驗科,
#耳鼻喉科 {
    fill: #d7eaee;
    fill: #cfcfcf;
    fill: #d7e9f2;
}

#皮膚科,
#眼科 {
    fill: #edeed2;
}

#內視鏡室 {
    xfill: #cddfd3;
    fill: #c4c4c4;
}

#勇源婦女健康中心, #產房 {
    fill: #f3dede;
}

#text_room {
    stroke: #ececec !important;
}

    #text_room .c1 {
        stroke: #f3dede !important;
    }

    #text_room .c2 {
        stroke: #edeed2 !important;
    }

    #text_room .c3 {
        stroke: #d7e9f2 !important;
    }

    #text_room .c4 {
        stroke: #c4c4c4 !important;
    }

    #text_room .cr {
        stroke: #f0f8ff !important;
    }

    #text_room [data-isactive] text,
    #text_room text[data-isactive] {
        xstroke: #ffe680 !important;
    }

#room g[data-isactive] {
    xfill: #ffe680 !important;
    id ="內視鏡室"
}

.c1 rect,
g[data-dg=c1],
#fillc [data-dg=c1] {
    fill: #f3dede;
}

.c2 rect,
g[data-dg=c2],
#fillc [data-dg=c2] {
    xfill: #edeed2 !important;
    fill: #edeed2;
}

.c3 rect,
g[data-dg=c3],
#fillc [data-dg=c3] {
    fill: #d7e9f2;
}

.c0 rect,
g[data-dg=c0],
#fillc [data-dg=c0] {
    fill: #ececec;
}

.c4 rect,
g[data-dg=c4],
#fillc [data-dg=c4] {
    xfill: #cddfd3;
    fill: #c4c4c4;
}

#searchContainer br {
    display: none;
}

.inputSection {
    position: relative;
}

#searchContainer .clearBtn {
    position: absolute;
    font-size: 0.7em;
    color: #6a6666;
    right: 1em;
    top: 21px;
    background: #d1d1d1;
    border-radius: 10px;
    padding: 0px 6px 3px;
    z-index: 12;
    cursor: pointer;
}

@media screen and (max-width: 767px) {
    #searchContainer br {
        display: block;
    }
}



#poi_legend {
    position: absolute;
    z-index: 3;
    width: 60%;
    left: 20%;
    background: #3d3c3c;
    color: white;
    bottom: 10px;
    height: 1.35em;
    box-shadow: 0 0 2px rgba(59, 59, 59, 0.8);
    padding: 6px;
    text-align: center;
    width: calc(100% - 12px);
    height: 3em;
    left: 0;
    bottom: 0;
    padding-top: 2em;
}

#poi_fire_legend {
    position: absolute;
    z-index: 2;
    left: 20%;
    bottom: 10px;
    font-size: 1em;
    color: #3b3b3b;
    padding: 6px;
    xborder-radius: 8px;
    box-shadow: 0 0 2px rgba(59, 59, 59, 0.8);
    background: #3d3c3c;
    color: white;
}

    #poi_fire_legend span {
        display: inline-block;
        margin: 0 10px;
        position: relative;
        padding-left: 20px;
    }

        #poi_fire_legend span:before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-left: 7px solid transparent;
            border-right: 7px solid transparent;
        }

        #poi_fire_legend span:first-child:before {
            border-bottom: 13px solid green;
        }

        #poi_fire_legend span:last-child:before {
            border-bottom: 13px solid red;
        }

@media screen and (max-width: 768px) {
    #poi_fire_legend {
        left: auto;
        right: 10px;
        top: 100px;
        bottom: auto;
        padding: 8px 12px;
        font-size: 0.9em;
        background: rgba(248, 248, 248, 0.9); /* 增加透明度 */
        background: rgba(61, 60, 60, 0.9);
    }

    svg #doorline * {
        stroke-width: 0.35px !important;
        fill: none !important;
    }

    svg #layer1 * {
        stroke-width: 0.7px !important;
    }

    svg .inside_wall:not(.highlight) *,
    svg #stair:not(.highlight) {
        stroke-width: 0.7px !important;
    }

    svg #restroom_handicap *,
    svg #outlinec * {
        stroke-width: 1.5px !important;
    }

    svg #outline_building {
        stroke-width: 3px !important;
    }
}

/*poif 分類*/
#poifCloseContainer .tabs {
    position: absolute;
    right: -32px;
    top: 1em;
    width: 1em;
    color: white;
    padding: 8px;
    z-index: 1;
    background: grey;
    line-height: 1.1em;
    border-radius: 0 3px 3px 0;
    box-shadow: 2px 0px 2px rgba(0,0,0,0.3);
    text-align: center;
    cursor: pointer;
}

    #poifCloseContainer .tabs:last-of-type {
        top: 9em;
    }

    #poifCloseContainer .tabs:nth-child(2).active {
        background: #6c3030;
    }

    #poifCloseContainer .tabs:nth-child(3).active {
        background: #02678b;
    }

#poif section div.green a:before {
    background: #a4cc46;
}

#poif section div.red a:before {
    background: #e54020;
}

#poif section div.blue a:before {
    background: #99c3ee;
}

@media screen and (max-width: 767px) {
    #poifCloseContainer {
        display: block;
        z-index: 999;
        border-bottom: none;
        width: 100%;
    }

        #poifCloseContainer .closeBtn {
            display: none;
        }

        #poifCloseContainer .tabs {
            position: fixed;
            z-index: 999994;
            left: 86vw;
        }

            #poifCloseContainer .tabs:nth-child(2) {
                top: 2em;
            }

            #poifCloseContainer .tabs:nth-child(3).active {
                background: #02678b;
            }

            #poifCloseContainer .tabs:last-of-type {
                top: 10em;
            }

    #poif {
        position: fixed;
        height: 90%;
        left: unset;
        right: 14vw;
        width: 70vw;
    }
}

#text_room text.show .roomname,
#text_room text.roomname.show,
#text_room text.dpt.show {
    display: block;
}

#poif section span {
    font-size: 0.9em;
    margin-left: 1.2em;
    display: block;
    font-weight: bold;
    margin-top: 1.5em;
    color: #808080;
    font-style: italic;
}

@media screen and (min-width: 1195px) {
    #MapFrame svg[data-overflow-visible=true]

{
    overflow: visible;
}
}

#angle-info {
    padding-right:0;
    padding-bottom:0;
    background:rgba(255,255,255,1);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 0 3px #3b3b3b;
}
#angle-info a {
    text-decoration: none;
    font-size:0.8em;
    padding:0px;
    margin-top:6px;
    color:#3b3b3b;
    border-top:1px solid #8b8b8b;
    display:block;
}
#angle-info a span {
    padding-left:3px;
}
#angle-info a span.left {
    position: absolute;
    left: 0;
    padding:  3px;
    top: 18px;
    display:none;
}
#angle-info a span.return {
    font-size: 0.8em;
}
#angle-info span {
    left:5px;
    position:relative;
}
#angle-info span span {
    position: relative;
    left: -8px;
}
@media screen and (max-width: 767px) {
#angle-info a span.return{
    font-size:1em;
}
}
