/* map */
#map{
    position: relative;
    height: 80vh !important;
}

.locationSwiperBox{
    width: 100%;
    
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

/* .mapDownFuncBoxInner{
    background-color: #d8e4f595;
    box-shadow: 0px -5px 5px #00407750;
} */

.tab-content{
    background-color: #d8e4f595;
    box-shadow: 0px -5px 5px #00407750;
}

#story-wrapper .story-inner .nav-link{
    color: white;
    background-color: #ffffff50;
}

#story-wrapper .story-inner .nav-link.active{
    color: var(--main-blue);
    background-color: white;
}

.storySwiper,
.foodSwiper,
.tourSwiper{
    display: flex;
    
    min-height: 200px;
    width: 100%;
    cursor: auto;
}

.locationSwiperBox.active .album-nav{
    filter: drop-shadow(0px -6px 3px #00407770);
}

/* 地圖下方功能 */
.btn-toggleFuncBox{
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;

    filter: drop-shadow(0px -5px 5px #00407750);
}

.btn-toggleFuncBox.showBtn{
    position: absolute;
    z-index: 401;
    bottom: 0;
    transition: bottom .3s ease;
}

.locationSwiperBox .album-link.nav-link{
    border-radius: .5rem .5rem 0 0 !important;
    background-color: #d8e4f595;
}

.locationSwiperBox .album-link.nav-link:hover{
    border-radius: .5rem .5rem 0 0 !important;
    background-color: var(--main-light-blue);
    color: white;
}

.mapFuncBox{
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1000;
}

.btn-storyAlbum,
.btn-foodAlbum,
.btn-tourAlbum{
    border: none;
    background-color: transparent;
}

.storyAlbum-img{
    border: 5px solid white;
    filter: drop-shadow(0 0 .5rem rgba(0, 0, 0, 0.5));
}

.hintBox{
    width: 80%;
    opacity: 0;
    transition: opacity .3s ease;

    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, 0%);
    z-index: 1001;
    
    filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.5));
}

.hintBox.active{
    opacity: 1;
}

.hintBox span{
    background-color: #ffffff;
}

.storyContentBox{
    white-space: pre-line;
}

.characters.active{
    right: 0;
}

.characters{
  position: absolute;
  right: -100%;
  bottom: 0;
  z-index: 1000;
  /* width: 30%;
  height: 30%; */
  display: flex;
  flex-direction: row;
  justify-content: end;

  transition: all .3s ease;
}

.character{
    height: 220px;
}

.btn-toggleCharacter {
    color: white;
    filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease
}

.characters .btn-toggleCharacter{
    padding: 0 !important;
    width: 40px;
    height: 40px;
}

.btn-toggleCharacter.btn-mapFunc{
    opacity: 0;
    transition: opacity .3s ease, all .3s ease;
}

.btn-toggleCharacter.btn-mapFunc.visible{
    opacity: 1;
}

.btn-toggleCharacter.btn-mapFunc .map-icon-marker{
    width: 40px;
    height: 44px;
}

/* 對話視窗 */
/* CSS talk bubble */
.talk-bubble {
    display: inline-block;
    position: relative;
	width: 190px;
	height: auto;
    filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.5));
}

@media screen and (max-width: 1200px) {
  .talk-bubble {
    width: 150px;
  }

  .character {
    height: 180px;
  }
}

@media screen and (max-width: 768px) {
  .talk-bubble {
    width: 120px;
  }
}

/* Right triangle, right side slightly down*/
.tri-right.border.right-in:before {
	content: ' ';
	position: absolute;
	width: 0;
	height: 0;
    left: auto;
	right: -40px;
    top: 30px;
	bottom: auto;
	border: 20px solid;
	border-color: #666 transparent transparent #666;
}
.tri-right.right-in:after{
	content: ' ';
	position: absolute;
	width: 0;
	height: 0;
    left: auto;
	right: -20px;
    top: 38px;
	bottom: auto;
	border: 12px solid;
	border-color: rgba(255, 255, 255, 1) transparent transparent rgba(255, 255, 255, 1);
}

.tri-left.left-in:after {
  content: " ";
  position: absolute;
  width: 0;
  height: 0;
  left: -20px;
  right: auto;
  top: 20px;
  bottom: auto;
  border: 12px solid;
  border-color: rgba(255, 255, 255, 1) transparent transparent rgba(255, 255, 255, 1);
  transform: rotate(180deg);
}

/* talk bubble contents */
.talktext{
    text-align: left;
    line-height: 1.5em;
    background-color: rgba(255, 255, 255, 1);
}

/* remove webkit p margins */
.talktext p{
    line-height: 1;
    -webkit-margin-before: 0em;
    -webkit-margin-after: 0em;
}

.album-link  span{
    line-height: 2;
}

.album-link-icon-box{
    width: 30px;
    height: 30px;
}

#pills-story-tab .album-link-icon-box{
    background-color: var(--main-green);
}

#pills-food-tab .album-link-icon-box{
    background-color: var(--main-orange);
}

#pills-tour-tab .album-link-icon-box{
    background-color: var(--main-yellow);
}

.album-link-icon{
    width: 20px;
}

/**/
.mapDownFuncBox{
    transition: bottom .3s ease;
}

/* swiper */
.storyImgSwiper{
    height: 500px;
}

.storyAlbumSwiper,
.foodAlbumSwiper,
.tourAlbumSwiper {
    height: 180px;
    position: relative;
    padding: 20px 50px 25px;
    box-sizing: content-box;
}

.map-icon-marker{
    height: 20px;
    width: 20px;
    margin: auto;
}

/* switch */
#map-section .btn-storyMarkerSwitch,
#map-section .btn-foodMarkerSwitch,
#map-section .btn-tourMarkerSwitch{
    margin: 1rem;
    color: white !important;
    filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.5));
    background-color: var(--gray);
}

#map-section .btn-storyMarkerSwitch.checked,
#map-section .btn-foodMarkerSwitch.checked,
#map-section .btn-tourMarkerSwitch.checked
 {
    margin: 1rem;
    color: white !important;
    filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.5));
}

#map-section .btn-storyMarkerSwitch.checked {
    background-color: var(--main-green);
}

#map-section .btn-foodMarkerSwitch.checked {
    background-color: var(--main-orange);
}

#map-section .btn-tourMarkerSwitch.checked {
    background-color: var(--main-yellow);
}

.albumText {
    white-space: nowrap;         
    overflow: hidden;              
    text-overflow: ellipsis;      
}

.btn-storyAlbum.onActive,
.btn-foodAlbum.onActive,
.btn-tourAlbum.onActive,
.btn-storyAlbum:hover,
.btn-foodAlbum:hover,
.btn-tourAlbum:hover{
    background-color: var(--main-light-blue) !important;
}

.btn-storyAlbum.onActive .albumText,
.btn-foodAlbum.onActive .albumText,
.btn-tourAlbum.onActive .albumText,
.btn-storyAlbum:hover .albumText,
.btn-foodAlbum:hover .albumText,
.btn-tourAlbum:hover .albumText{
    color: white !important;
}

/* 座標詳情 */
.infoBox .nav-link{
    color: var(--gray) !important;
}

.infoBox .nav-link.active{
    color: var(--main-light-blue) !important;
}

.infoBox {
  height: 100%;
  width: 50%;
  overflow: hidden;
  cursor: auto;

  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 1001;
  filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.5));
}

.infoBoxInner {
  background-color: white;
  height: 100%;
  overflow: hidden;
}

@media (max-width: 1400px) {
  .infoBox{
    width: 50%;
  }
}

@media (max-width: 992px) {
  .infoBox {
    width: 75%;
  }
}

@media (max-width: 940px) {
  .g-biological-main-img.preview-img > img {
    height: inherit;
  }
}

@media (max-width: 768px) {
  .infoBox {
    width: 100%;
  }
}

.infoContent{
  overflow: auto;
}

.infoTitle .title {
  color: var(--main-blue);
}

.infoBox .areaTitle{
  color: var(--main-light-blue);
}

.detailTextBox .g-biological-sub:nth-child(odd) {
  background-color: var(--light-gray);
}

.detailTextBox .g-biological-sub:nth-child(even) {
  background-color: #ffffff;
}


.story-map .leaflet-popup-content {
  min-width: 40rem;
  max-width: 40rem;
}

@media screen and (max-width: 960px) {
  .story-map .leaflet-popup-content {
    min-width: 50vw;
    max-width: 50vw;
  }
}


/* img */
.img.maker-img,
.img.storyMedia-img {
  display: inline-block;
  width: 100%;
  height: 100%;
  position: relative;
  vertical-align: top;
  background: #ced4da;
  overflow: hidden;
}

.vid.storyMedia-box,
.img.storyMedia-box{
  padding: 0rem 4rem;
}

.img.maker-img:before,
.img.storyMedia-img:before {
  content: "";
  display: block;
}

.img.maker-img:before{
  padding-top: 150px;
}

.img.storyMedia-img:before {
  padding-top: 250px;
}

.vid.storyMedia-box{
  height: 250px;
}

.vid.storyMedia-box video{
  height: 250px;
}

.img.maker-img img ,
.img.storyMedia-img img{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.img.maker-img:after ,
.img.storyMedia-img:after {
  display: block;
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}