/* @import url(//fonts.googleapis.com/earlyaccess/notosanstc.css); */
/* @import url('https://fonts.googleapis.com/css?family=Fira+Sans'); */
body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans TC', sans-serif;
    overflow: hidden;
}

* { box-sizing: border-box; }

.leaflet-control-attribution {
    font-size: 1.1rem !important;
}

svg.hk01logo_black {
    height: 1.1rem;
    margin: 0 0.25rem 0;
}

.icon {
    display: inline-flex;
    align-self: center;
}

.icon.baseline svg, .icon img {
    top: .15em;
    position: relative;
}

#welcomeModal .close {display: none;}

.inline_img {
    height: 1rem;
    margin: 0 5px;
}

#mapid {
    height: 100vh;
}


.card--mobile {
    position: fixed;
    z-index: 5010;
    visibility: visible;
    opacity: 1;
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
    /* border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important; */
    line-height: 1.8rem;
}





@media only screen and (max-width: 700px) {
    .card--mobile {
        bottom: 0;
        /* bottom: 50px; */
        height: 65%;
        /* height: calc(65% - 50px); */
        left: 0;
        right: 0;
        max-height: 100%;
        -webkit-transition: all .3s ease-in-out,top .3s ease-out; 
        transition: all .3s ease-in-out,top .3s ease-out;
    }

    /* .no-footer {
        bottom: 0;
        height: 65%;
    } */

    .card--expanded:not(.card--hidden):not(.no-footer) {
        /* bottom: 50px;
        height: calc(100% - 50px); */
        bottom: 0;
        height: 100%;
    }

    .card--expanded:not(.card--hidden).no-footer {
        bottom: 0;
        height: 100%;
    }

    .card--hidden {
        height: 0;
        visibility: hidden;
        -webkit-transition: all .3s ease-in-out,top .3s ease-out; 
        transition: all .3s ease-in-out,top .3s ease-out;
    }


    .card-footer {
        height: 30px;
        padding: 0.05rem 1.25rem;
        font-size: 0.9rem;
        background-color: #F8F8F8;
        visibility: visible;
        border: none;
        width: 100%;
        /* position: fixed; */
        position: relative;
        /* bottom:0; */
        z-index: 5020;
        -webkit-transition: all .3s ease-in-out,top .3s ease-out; 
        transition: all .3s ease-in-out,top .3s ease-out;
    }

    .hide {
        height: 0px;
        visibility: hidden;
        -webkit-transition: all .3s ease-in-out,top .3s ease-out; 
        transition: all .3s ease-in-out,top .3s ease-out;
    }

}


@media only screen and (min-width: 700px) and (max-width: 1024px) {
    .card--mobile {
        position: fixed;
        visibility: visible;
        width: 45%;
        max-width: 500px;
        height: calc(90% - 50px);
        top: 50px;
        left: 10px;
        opacity: 1;
        -webkit-transition: visibility 0s 0.33s, opacity 0.33s linear;
        transition: visibility 0s 0.33s, opacity 0.33s linear;
        font-size: 90%;
    }

    .card--hidden {
        visibility: hidden;
        opacity: 0;
        -webkit-transition: visibility 0s 0.33s, opacity 0.33s linear;
        transition: visibility 0s 0.33s, opacity 0.33s linear;
    }

    .card-footer {
        width: 100%;
        height: 50px;
        background-color: rgb(248, 248, 248);
        border: none;
        z-index: 5020;
    }

    .hide {
        display: none;
        -webkit-transition: all .3s ease-in-out,top .3s ease-out; 
        transition: all .3s ease-in-out,top .3s ease-out;
    }
}


@media only screen and (min-width: 1024px) {
    .card--mobile {
        position: fixed;
        visibility: visible;
        width: 35%;
        max-width: 500px;
        height: calc(90% - 50px);
        top: 50px;
        left: 10px;
        opacity: 1;
        -webkit-transition: visibility 0s 0.33s, opacity 0.33s linear;
        transition: visibility 0s 0.33s, opacity 0.33s linear;
        
    }

    .card--hidden {
        visibility: hidden;
        opacity: 0;
        -webkit-transition: visibility 0s 0.33s, opacity 0.33s linear;
        transition: visibility 0s 0.33s, opacity 0.33s linear;
    }

    .card-footer {
        width: 100%;
        height: 50px;
        background-color: rgb(248, 248, 248);
        border: none;
        z-index: 5020;
    }

    .hide {
        display: none;
        -webkit-transition: all .3s ease-in-out,top .3s ease-out; 
        transition: all .3s ease-in-out,top .3s ease-out;
    }

}




.card-header {
    padding: 0.5rem 0 0.5rem 1.25rem;
    background-color: white;
}

.card .card_control {
    float: right;
    padding: 0;
    background-color: transparent;
    border: 0;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .8;
    cursor: pointer;
}

.card #close-card {
    padding: 0 1rem 0 0rem; 
}


.card #cardName {
    display: block;
    margin: 0.6rem 0 0.6rem 1.25rem;
    font-weight: 500;
    font-size: 1.3rem
}

.card #nextBtn {
    padding: 0 0.6rem 0 0.0rem; 
}

.card #prevBtn {
    padding: 0 0.6rem 0 0.0rem; 
}
    
.card-header {
    font-size: 1.3rem;
    color: #777;

}
/* .left {
    position: absolute;
    top: 0.75rem;
    right: 2rem;
    z-index: 2;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .8;
    cursor: pointer;
} */

.card-body {
    overflow-y: auto;
    background: url(../images/hk01watermark.png);
    background-repeat: no-repeat;
    background-position: center;
    padding: 0 !important;
}


.card #cardType {
    margin: 0 0 1.2rem;
    padding: 6px 12px;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 300;
    /* display: none; //inline-block; */
    color: black;
}

.card .green {
    background: rgb(117, 234, 117);
}

.card .blue {
    background: rgb(138, 190, 245);
}

.card .red {
    background: rgb(250, 133, 112);
}

.container {
    margin-top:0.2rem;
}

.card .fas {
    margin-right: 1rem;
}

.card #cardDetail {
    margin-left: 2rem;
    margin-bottom: 0;
}

.card .remarks {
    font-size: 90%;
    margin-top:5px;
    line-height: 1rem;
}


.caption {
    display: inline-block;
    margin: 0rem 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1rem;
}

.credit {
    display: inline-block;
    font-size: 0.9rem;
    color: #666;
}

.flipRemind {
    color: red;
}

#prev {
    position: absolute;
    left: 2%;
}

#next {
    position: absolute;
    right: 2%;
}

.carousel-cell {
    width: 100%; /* full width */
    /* height: 200px; height of carousel */
  }

.carousel-cell img {
    display: block;
    width: 100%;
}


/* smaller, dark, rounded square */
.flickity-button {
    background: #333;
  }
  .flickity-button:hover {
    /* background: #F90; */
    background: #333;
  }
  
  .flickity-prev-next-button {
    width: 30px;
    height: 30px;
    border-radius: 5px;
  }
  /* icon color */
  .flickity-button-icon {
    fill: white;
  }


.leaflet-control-layers {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1rem;
    padding: .25rem .8rem;
}

.leaflet-control-layers label {
    margin-bottom: .25rem;
}

.modal {
    z-index: 5200 !important;
}