/* map */
#map{
    position: relative;
}

.locationSwiper{
    min-height: 200px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background-color: #d8e4f595;

    box-shadow: 0px -5px 5px #00407750;

    cursor: auto;
}

.mapFuncBox{
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1000;
}

.map-icon-marker{
    height: 20px;
    width: 20px;
    margin: auto;
}

.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;
}

.spacing {
    border-color: var(--black);
}

.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;
}

/* switch */
#map-section .btn-AEDMarkerSwitch,
#map-section .btn-lifeJacketMarkerSwitch,
#map-section .btn-rescueEquipmentMarkerSwitch{
    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-AEDMarkerSwitch.checked,
#map-section .btn-lifeJacketMarkerSwitch.checked,
#map-section .btn-rescueEquipmentMarkerSwitch.checked
 {
    margin: 1rem;
    color: white !important;
    filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.5));
}

#map-section .btn-AEDMarkerSwitch.checked {
    background-color: var(--main-red);
}

#map-section .btn-lifeJacketMarkerSwitch.checked {
    background-color: var(--main-yellow);
}

#map-section .btn-rescueEquipmentMarkerSwitch.checked {
    background-color: #198754;
}

/* 地圖下方功能 */
.btn-toggleFuncBox{
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;

    filter: drop-shadow(0px -5px 5px #00407750);
}

.mapDownFuncBox{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    min-height: 10%;
    z-index: 1001;
    
    transition: bottom .3s ease;

    cursor: auto;
}

.mapDownFuncBox.active .mapDownFuncBoxInner{
    box-shadow: 0px -5px 5px #00407750;

}

/* 地圖下方緊急求助電話 */
.emergencyNumberBox{
    background-color: #d8e4f595;
}

.emergencyNumber-112,
.emergencyNumber-118{
    color: var(--main-orange) !important;
}

.emergencyNumber-112:hover,
.emergencyNumber-118:hover{
    color: var(--main-darker-orange) !important;
}

.emergencyNumber-110{
    color: var(--main-blue) !important;
}

.emergencyNumber-110:hover{
    color: var(--main-darker-blue) !important;
}

.emergencyNumber-119{
    color: var(--main-red) !important;
}

.emergencyNumber-119:hover{
    color: var(--main-darker-red) !important;
}