.tab-switch button{
  background: transparent;
  border:0;
}

/* map */
.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 0.3s ease;
}

.character {
  height: 160px;
}

.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 0.3s ease, all 0.3s ease;
}

.btn-toggleCharacter.btn-mapFunc.visible {
  opacity: 1;
}

.btn-toggleCharacter.btn-mapFunc .map-icon-marker {
  width: 40px;
  height: 44px;
}

.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 0.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;
}

.choosePositionBox{
  position: absolute;
  bottom: 0%;
  left: 50%;
  transform: translate(-50%, 0%);
  z-index: 1000;

  filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.5));

  opacity: 1;
}

.seaInfoBox .risk-statement {
    color: var(--main-red);
    display: flex;
    justify-content: start;
}

.btn-outside-link {
    color: var(--main-blue) !important;
}

.btn-outside-link:hover {
    color: var(--main-darker-blue) !important;
}

/* 海洋資訊 */
.lh-12 {
  line-height: 1.2;
}

.lh-14 {
  line-height: 1.4;
}

.seaInfoBox,
.uploadBox {
  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));
}

.seaInfoBoxInner,
.uploadBoxInner {
  background-color: white;
  height: 100%;
  overflow: hidden;
}

@media (max-width: 1400px) {
  .seaInfoBox,
  .uploadBox {
    width: 50%;
  }
}

@media (max-width: 992px) {
  .seaInfoBox,
  .uploadBox {
    width: 75%;
  }
}

@media (max-width: 940px) {
  .g-biological-main-img.preview-img > img {
    height: inherit;
  }
}

@media (max-width: 768px) {
  .seaInfoBox,
  .uploadBox {
    width: 100%;
  }
}

.seaInfoContent,
.uploadContent {
  overflow: auto;
}

.seaInfoTitle .uploadTitle {
  color: var(--main-blue);
}

.seaInfoBox .areaTitle,
.uploadBox .areaTitle {
  color: var(--main-light-blue);
}

.UploadedDetailTextBox .g-biological-sub:nth-child(odd) {
  background-color: var(--light-gray);
}

.UploadedDetailTextBox .g-biological-sub:nth-child(even) {
  background-color: #ffffff;
}

/* 上傳海洋生物*/
#btn-openUpload i {
  width: 20px;
  height: 20px;
  display: flex;
}

/* 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;
  }
}

@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;
}

/* 上傳區域 */
.uploadFileArea {
  border: 5px dashed var(--main-light-blue);
  cursor: pointer;
  background-color: #168eff20;
  transition: all 0.3s ease;
}

.uploadFileArea:hover {
  background-color: #168eff50;
}

/* .swal2-cancel{
    background-color: var(--main-blue);
    border-radius: .5rem;
    padding: .25rem .5rem;
    border: 0;
    color: white;
} */

#dropZone.border-primary {
  background-color: rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease;
}

/* switch */
#map-section .btn-areaInfoSwitch,
#map-section .btn-uploadMarkerSwitch {
  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-areaInfoSwitch.checked,
#map-section .btn-uploadMarkerSwitch.checked {
  margin: 1rem;
  color: white !important;
  filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.5));
}

#map-section .btn-areaInfoSwitch.checked {
  background-color: var(--main-green);
}

#map-section .btn-uploadMarkerSwitch.checked {
  background-color: var(--main-orange);
}

/* 登入 */
#btn-google-render {
  background-color: var(--main-light-blue);
}

#btn-google-render iframe,
#container-div {
  /* width: 100% !important; */
  margin: auto !important;
}

/* 統計圖表 */
#chart {
  border: 15px solid white;
  border-radius: 0 0 1rem 1rem;
  background-color: white;
  margin: 0 !important;
  padding-bottom: 4rem !important;
  width: 100%;
}

.charts-controls{
  border-radius: 1rem 1rem 0 0 ;
  border-top: 15px solid white;
  border-right: 15px solid white;
  border-left: 15px solid white;

  background-color: var(--main-bg-blue);
}

.chart-tabs {
  display: flex;
  list-style: none;
  padding: 0;
  /* margin-bottom: 1rem; */
}

.chart-tabs li {
  padding: 0.5rem 1rem;
  cursor: pointer;
  /* background: #eee; */
  border-radius: 4px;
  transition: all .3s ease;
}

.chart-tabs li:hover{
  background: var(--main-orange);
  color: white;
}

.chart-tabs li.active {
  background: var(--main-orange);
  color: white;
}

#chart2-controls,
#chart3-controls{
  width: 20rem;
}



.chart-image-canvas {
  pointer-events: none;
}

.chart-image-hover {
  position: absolute;
  width: 50px;
  height: 50px;
  transition: transform 0.2s ease;
  transform-origin: center bottom;
  border-radius: 1rem;
}

.chart-image-hover:hover {
  transform: scale(1.4);
  z-index: 10;
}

@media (max-width: 768px) {
  #chart2-controls,
  #chart3-controls{
    width: auto;
    border-top: 1px solid white;
  }

  .chart-image-hover{
    width: 30px;
    height: 30px;
  }
}