@font-face {
  font-family: "Roboto";
  src: url(../files/irwip-Roboto-Regular.woff2);
}

@font-face {
  font-family: "Noto Sans";
  src: url(../files/irwip-NotoSans-Regular.woff2);
}

@font-face {
  font-family: "Noto Sans TC";
  src: url(../files/irwip-NotoSansTC-Regular.woff2);
}

/*Main Page*/
body {
    background-color: #ffffff;
    background-image: url(../images/backdrop_01.jpg);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

P{
    color:#666666;
    font-family: "Roboto","Noto Sans", sans-serif;
    font-weight:bold;

}

a{
  font-family: "Roboto","Noto Sans", sans-serif;
  font-weight: bold;
}

.table>:not(caption)>*>* {
  padding: .5rem .2rem;
  background-color: var(--bs-table-bg);
  border-bottom-width: 0px;
  box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
}

.nav-link {
  background-color:#004B87 !important;
  color:#ffffff;
}

.nav-link:hover {
  
  color:#ffffff;
}

.nav-link.active{
  background-color: #F6A300 !important;
  color: #ffffff !important;
}

#data-table{
  opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.8s;
}
@keyframes fadeInOpacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#daily-data-table{
  opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.8s;
}

@keyframes fadeInOpacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/*highchart*/
.highcharts-figure,
.highcharts-data-table table {
    /* min-width: 500px; */
    min-width:350px;
    max-width: auto;
    margin: 0.5em auto;
}

#container-info-summary {
  height: auto;
}

#container-24h-TempRH {
    height: 310px;
    box-shadow: 3px 3px 5px #cccccc;
    border: #cccccc solid 1px;
	border-radius: 6px;

  opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.5s;
}
@keyframes fadeInOpacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#container-HKHI {
    height: 310px;
    box-shadow: 3px 3px 5px #cccccc;
    border: #cccccc solid 1px;
	border-radius: 6px;

  opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.5s;
}
@keyframes fadeInOpacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#container-wind {
    height: 310px;
    box-shadow: 3px 3px 5px #cccccc;
    border: #cccccc solid 1px;
	border-radius: 6px;

  opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.5s;
}
@keyframes fadeInOpacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#container-wind-arrow,#container-wind-dir {
    height: 310px;
    box-shadow: 3px 3px 5px #cccccc;
    border: #cccccc solid 1px;
	border-radius: 6px;

  opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.5s;
}
@keyframes fadeInOpacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#container-Rainfall {
  height: 250px;
  box-shadow: 3px 3px 5px #cccccc;
  border: #cccccc solid 1px;
  border-radius: 6px;

  opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.5s;
}
@keyframes fadeInOpacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#container-Lightning {
  height: 250px;
  box-shadow: 3px 3px 5px #cccccc;
  border: #cccccc solid 1px;
  border-radius: 6px;

  opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.5s;
}
@keyframes fadeInOpacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#container-mslp {
  height: 310px;
  box-shadow: 3px 3px 5px #cccccc;
  border: #cccccc solid 1px;
  border-radius: 6px;

  opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.5s;
}
@keyframes fadeInOpacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#container-visibility {
  height: 310px;
  box-shadow: 3px 3px 5px #cccccc;
  border: #cccccc solid 1px;
  border-radius: 6px;

  opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.5s;
}
@keyframes fadeInOpacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#container-grass {
  height: 310px;
  box-shadow: 3px 3px 5px #cccccc;
  border: #cccccc solid 1px;
  border-radius: 6px;

  opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.5s;
}
@keyframes fadeInOpacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#container-fc-Temp {
  height: 300px;
  box-shadow: 3px 3px 5px #cccccc;
  border: #cccccc solid 1px;
  border-radius: 6px;

  opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.5s;
}
@keyframes fadeInOpacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#container-fc-humi {
  height: 300px;
  box-shadow: 3px 3px 5px #cccccc;
  border: #cccccc solid 1px;
  border-radius: 6px;

  opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.5s;
}
@keyframes fadeInOpacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#container-fc-Wind {
  height: 300px;
  box-shadow: 3px 3px 5px #cccccc;
  border: #cccccc solid 1px;
  border-radius: 6px;

  opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.5s;
}
@keyframes fadeInOpacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#container-fc-TempRH {
  height: 300px;
  box-shadow: 3px 3px 5px #cccccc;
  border: #cccccc solid 1px;
  border-radius: 6px;

  opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.5s;
}
@keyframes fadeInOpacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#container-fc-DailyMinMaxTemp {
  height: 300px;
  box-shadow: 3px 3px 5px #cccccc;
  border: #cccccc solid 1px;
  border-radius: 6px;

  opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.5s;
}
@keyframes fadeInOpacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.highcharts-selection-marker{
  fill:rgba(0,75,135,0.1);
}

.highcharts-data-table table {
    background-color:#ffffff;
    font-family: "Roboto","Noto Sans", sans-serif;
    border-collapse: collapse;
    border: 1px solid #ebebeb;
    margin: 10px auto;
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.highcharts-data-table table:focus-visible{
    border: 1px solid #ebebeb;
}

.highcharts-data-table caption {
    text-align: center;;
    padding: 1em 0;
    font-size: 14px;
    color: #555;
}

.highcharts-data-table th {
    color:#333333;
    font-weight: 600;
    padding: 0.5em;
}

.highcharts-data-table td,
.highcharts-data-table th,
.highcharts-data-table caption {
    padding: 0.5em;
}

.highcharts-data-table thead tr,
.highcharts-data-table tr:nth-child(even) {
    background: #eeeeee;
}

.highcharts-data-table tr:hover {
    background: #cbdffa;
}

.highcharts-point{
    transform: translate(-10px 10px);
}


  .container .row .col figure> div {
    display: none;
    position: relative;
    top: 0;
    left: 0;
  }
  
  .container .row .col figure> div:first-child {
    display: block;
  }

  
/*switch button*/
  .tempRH-switch-button {
   position: relative;
   align-items: center;
   background-color: #0095ff;
   border: 1px solid transparent;
   border-radius: 6px;
   box-shadow: rgba(255, 255, 255, .4) 0 1px 0 0 inset;
   box-sizing: border-box;
   color: #fff;
   cursor: pointer;
   display: inline-block;
   font-family: "Roboto","Noto Sans", sans-serif; 
   font-size: 16px;
   font-weight: 400;
   margin-top:5px;
   outline: none;
   padding: 8px .8em;
   text-align: center;
   text-decoration: none;
   user-select: none;
   -webkit-user-select: none;
   touch-action: manipulation;
   vertical-align: baseline;
   white-space: nowrap;
  }

.tempRH-switch-button:hover,
.tempRH-switch-button:focus {
  background-color: #0095ff;
}

.tempRH-switch-button:focus {
  box-shadow: 0 0 0 4px rgba(0, 149, 255, .15);
}

.tempRH-switch-button:active {
  background-color: #0064bd;
  box-shadow: none;
}


/*Element select button*/
.selection-button {
    position: relative;
    align-items: center;
    background-color: #ffffff;
    border: 2px solid #cccccc;
    border-radius: 6px;
    box-shadow: rgba(255, 255, 255, .4) 0 1px 0 0 inset;
    box-sizing: border-box;
    color: #004b87;
    cursor: pointer;
    display: inline-block;
    font-family: "Roboto","Noto Sans", sans-serif; 
    font-size: 16px;
    font-weight: 600;
    margin-top:5px;
    margin-right:5px;
    outline: none;
    padding: 6px 16px;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    white-space: nowrap;
    width: fit-content;
   }
 
 .selection-button:hover,
 .selection-button:focus {
   background-color: #004B87;
   color:#FFF;
 }
 
 .selection-button:focus {
   box-shadow: 0 0 0 4px rgba(0, 149, 255, .15);
 }
 
 .selection-button:active {
   background-color: #004B87;
   color:#fff;
   box-shadow: none;
 }
 

 /*Element Dropdown*/
 /* Dropdown Button */
.dropbtn {
  background-color: #ffffff;
  font-family: "Roboto","Noto Sans",sans-serif;
  color: #004B87;
  padding: 6px 50px;
  /*
  margin-top:5px;
  margin-bottom:5px;
  */
  font-size: 14px;
  font-weight:bold;
  border: 1px solid #004B87;
  border-radius: 6px;
  cursor: pointer;

  @media (max-width: 576px) {
    margin-top:5px;
  }

}

/* Dropdown button on hover & focus */
/*.dropbtn:hover, .dropbtn:focus {
  background-color: #004B87;
  color:#ffffff;
}*/

#actual-dropdown {
  display: none;
}

.toggleCheckbox {
  display: none;
}

.toggleContainer {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;/*fit-content;*/
  float:none;/*right;*/
  border: 1px solid #004B87;
  border-radius: 6px;
  background: #fff;
  font-weight: bold;
  color: #666666;
  cursor: pointer;
}

.toggleContainer::before {
  content: '';
  position: absolute;
  width: 50%;
  height: 100%;
  left: 0%;
  border-radius:6px;
  background: #f6A300;
  transition: all 0.3s;
}

.toggleContainer div {
  padding: 6px 26px;
  text-align: center;
  z-index: 1;
  margin-bottom:  2px;
  margin-top: 2px;
}

.toggleCheckbox:checked + .toggleContainer::before {
  left: 50%;
}

.toggleCheckbox:checked + .toggleContainer div:first-child{
  font-family: "Roboto","Noto Sans",sans-serif;
  color: #004B87;
  text-shadow: 0px 0px 0px transparent;
  font-size: 14px;
  transition: color 0.3s;
}
.toggleCheckbox:checked + .toggleContainer div:last-child{
  color: #ffffff;
  font-family: "Roboto","Noto Sans",sans-serif;
  text-shadow: 1px 1px 3px #333333;
  font-size: 14px;
  transition: color 0.3s;
}
.toggleCheckbox + .toggleContainer div:first-child{
  color: #ffffff;
  font-family: "Roboto","Noto Sans",sans-serif;
  text-shadow: 1px 1px 3px #333333;
  font-size: 14px;
  transition: color 0.3s;
}
.toggleCheckbox + .toggleContainer div:last-child{
  font-family: "Roboto","Noto Sans",sans-serif;
  color: #004B87;
  font-size: 14px;
  transition: color 0.3s;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
  float:left;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  border-radius: 6px;;
  min-width: 240px;
  Max-height:200px;
  box-shadow: 0px 8px 16px 0px #3333334d;
  z-index: 1;
  overflow:hidden;
  overflow-y: auto;
}

/* Links inside the dropdown */
.dropdown-content a {
  font-size:14px;
  color: #004B87 !important;
  padding: 8px 12px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #004B87;
  color:#ffffff !important;
}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {
  display:block;
}


/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #999; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #666;
}

.fa-location-dot{
  color:#fff;
}

#stationName{
  font-family:"Roboto","Noto Sans",sans-serif;
  font-size:16px;
  color: #FFF;
  font-weight:bold;
  filter: brightness(0) saturate(100%) invert(90%) sepia(60%) saturate(0%) hue-rotate(298deg) brightness(111%) contrast(101%);
}

/*Panel Hourly table*/
#container-fc-hourlychart table{
  font-family:"Roboto","Noto Sans",sans-serif;
  background-color: transparent;
}

#container-fc-hourlychart table thead{
  background-color: #004B87;
  color:#ffffff;
  font-size:0.8rem;
  font-weight: bold;
  text-align: center;
}

#dateDropdown{
  font-family:"Roboto","Noto Sans",sans-serif;
  font-size:0.9rem;
  font-weight:bold;
  color:#333333;
  padding:0.1rem 0.3rem;
}

#container-fc-hourlychart table tbody{
  font-size:0.8rem;
  font-weight:bold;
}

.fixed-content {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%; /* 讓fixed-content佔整個螢幕寬度 */
  height: auto; /* 讓fixed-content佔30%螢幕高度 */
  background-color: #004B87; /* 為了示範，設置背景顏色 */
}

.other-content {
  margin-top: auto; 
}

#info{
  opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 10s;
}
@keyframes fadeInOpacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


#container-fc-hourlychart table .div-truncate{
  color:#004B87;
  position: sticky;
  left:0;
  margin-top: 0.5rem;
  z-index: 999;
  /* font-size:0.8rem; */
  /* font-weight:bold; */
}

#container-fc-hourlychart table .text-truncate{
  background-color: #004B87;
  color:#ffffff;
  position: sticky;
  left:0;
  z-index: 999;
  /* font-size:0.8rem; */
  /* font-weight:bold; */
}

#container-fc-dailychart table .text-truncate{
  background-color: #004B87;
  color:#ffffff;
  position: sticky;
  left:0;
  z-index: 999;
  /* font-size:0.8rem; */
  /* font-weight:bold; */
}

#ts-icon{
  filter: brightness(0) saturate(100%) invert(99%) sepia(100%) saturate(0%) hue-rotate(313deg) brightness(105%) contrast(100%);
}

#container-fc-hourlychart table img{
  width:20px;
  height:20px;
}

#container-fc-hourlychart table tr>td,tr>th {
  border-left: 1px solid #cccccc;
  border-right: 1px solid #cccccc;
}

#container-fc-hourlychart table thead>tr:first-of-type {
  border-top: 1px solid #cccccc;
}

#container-fc-hourlychart table tr:last-of-type {
  border-bottom: 1px solid #cccccc;
}

/*Panel Daily table*/
#container-fc-dailychart{
  font-family:"Roboto","Noto Sans",sans-serif;
  background-color: #ffffffd8;
}

#container-fc-dailychart table thead{
  background-color: #004B87;
  color:#ffffff;
  font-size:0.8rem;
  font-weight: bold;
}

#container-fc-dailychart table tbody{
  font-size:0.8rem;
  font-weight:bold;
}

#container-fc-dailychart table tr td:first-child { 
  background-color:#004B87; 
  color:#ffffff;
}

#container-fc-dailychart table tr:nth-child(2) td:nth-child(n+2) { 
  color:#BE4B48;
}

#container-fc-dailychart table tr:nth-child(3) td:nth-child(n+2) { 
  color:#2670C5;
}

#container-fc-dailychart table tr>td,tr>th {
  border-left: 1px solid #cccccc;
  border-right: 1px solid #cccccc;
}

#container-fc-dailychart table thead>tr:first-of-type {
  border-top: 1px solid #cccccc;
}

#container-fc-dailychart table tr:last-of-type {
  border-bottom: 1px solid #cccccc;
}

.fixed-header{
  font-family: "Roboto","Noto Sans",sans-serif;
  color:#333333;
  font-size: 14px;
}

@media (max-width: 370px){
  .fixed-header{
  font-size: 12px !important;
  /*max-width: 85%;
  padding-right: 20%;*/
  }
}


/*RWD*/
@media screen and (max-width: 1024px) {
  #stationName{
    font-size:14px;
  }

  .dropbtn{
    padding:6px 40px;
    font-size:12px;
  }

  .toggleContainer div {
    padding: 6px 15px;
}
}

@media screen and (max-width: 800px) {
  .dropdown{
    float:none;
  }

  .toggleContainer{
    /*float:none;
    display: inline-flex;*/
  }

.toggleContainer div {
    padding: 3px 18px;
    text-align: center;
    z-index: 1;
    font-size:12px !important;
}
  
  .dropbtn{
    padding:3px 40px;
    font-size:12px;
  }

  #stationName{
    font-size:14px;
  }

  .switch {
    width:50px!important;
    height: 22px!important;
  }

  .slider:before {
    height: 16px!important;
    width: 16px!important;
    left: 4px!important;
  }
}

html {
  overscroll-behavior: none !important;
}

.timeline-container {
  height: 35px;
  position: relative;
  width: 100%;
  min-width: 250px;
  display: none;
  margin-left: 10px;
  box-shadow: 0 0 0 2px rgb(0 0 0 / 15%);
  padding: 8px 15px;
  box-sizing: border-box;
  backdrop-filter: blur(16px) saturate(180%);
  background-color: rgba(83, 83, 83, 0.8);
  border-radius: 2px;
}

.dropdown {
  position: relative;
  display: inline-block;
  float: none;
  vertical-align: top;
}

.col-12.col-sm-6.col-md-6 {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.timeline {
  position: relative;
  height: 100%;
  width: auto; 
  max-width: 100%; 
}

.line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  opacity: 0.7;
  background: #fff;
  transform: translateY(-50%);
}

.dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.time {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #fff;
}

.image-container {
  position: absolute;
  width: 30px;
  height: 30px;
  top: 0%;
  transform: translateX(-50%);
}

.overlap-img {
  position: relative;
  width: 30px;
  height: 30px;
  object-fit: cover;
}

.overlap-img.top {
  z-index: 2;
  width: 22px;
  height: 22px;
  top: -65%;
}

.overlap-img.bottom {
  z-index: 1;
  top:-8%;
}

.switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 26px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 6px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #F6A300;
}

input:focus + .slider {
  box-shadow: 0 0 5px #000000;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

#stationDiv {
  @media (min-width: 576px) {
    min-height: 44px;
    line-height: 44px;
  }
}