@import url(./component/button.css);
@import url(./component/chip.css);
@import url(./component/nav.css);
@import url(./component/report.css);
@import url(./component/report-intensity-marker.css);
@import url(./component/report-list.css);
@import url(./component/report-marker.css);

body {
  user-select: none;
  margin: 0;
  font-family: "Lato", "Noto Sans TC", sans-serif;
  text-rendering: optimizeLegibility;
  overflow: hidden;

  --surface-hsl: 0deg 0% 25%;
  --surface-variant-hsl: 0deg 0% 20%;
  --background-hsl: 0deg 0% 13%;
  --background-variant-hsl: 0deg 0% 16%;
}

@font-face {
  font-family: "Material Symbols Rounded";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../font/material-symbols-rounded.woff2") format("woff2");
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga";
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

.tos {
  visibility: visible;
  position: absolute;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(18px);
  background-color: rgb(0 0 0 / 100%);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  flex-direction: column;
  opacity: 1;
  transition: opacity 3s;
}

.tos_exptech {
  text-align: center;
  height: 25px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 0.5em;
  color: #ffffff36;
}

.tos_sure {
  border: 1px solid #ffffff14;
  border-radius: 5px;
  width: 225px;
  height: 35px;
  text-align: center;
  margin-top: 1em;
  align-items: center;
  justify-content: space-around;
  cursor: pointer;
  background: #00000085;
  display: flex;

  &:hover {
    background: #1c599485;
  }
}

.tos_title {
  font-size: 38px;
  font-weight: 700;
  margin-top: 0.2em;
}

.tos_wrapper {
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #ffffff14;
  width: 40em;
  height: 0;
  opacity: 0;
  transition: opacity 3s;
}

.tos_body li {
  list-style-type: decimal;
}

.map {
  height: 100%;
  width: 100%;
  background-color: #1f2026;
}

.info-box {
  transition-property: opacity, translate;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0.3, 0, 0.8, 0.15);
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 20vw;
  min-width: 300px;
  max-width: 320px;
  margin: 8px;
  padding: 8px;
  border-radius: 10px;
  background-color: #505050c7;
  color: white;
  white-space: nowrap;
  z-index: 1001;

  >.info-title-box

  /* 標題 */ {
    display: flex;
    padding: 0 8px;
    line-height: 14px;
    font-size: 14px;
    font-weight: 700;

    /* 標題左邊 */
    > .info-title-box-type {
      flex: 1;
    }
  }

  >.info-body-box

  /* 中間 */ {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    border-radius: 10px;
    background-color: #383838;
    padding: 8px;

    > .info-body-title-box {
      display: flex;
      height: 72px;
      gap: 8px;
      opacity: 0;

      > .info-body-title-title-box,
      > .info-body-title-body-box {
        padding: 8px;
        border-radius: 12px;
      }

      > .info-body-title-title-box {
        width: 75px;
        aspect-ratio: 1;
        line-height: 56px;
        font-size: 56px;
        font-family: "Open Sans", sans-serif;
        font-weight: 800;
        text-align: center;
      }

      > .info-body-title-body-box {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
        background-color: #222;

        > .info-body-location-text {
          line-height: 20px;
          font-size: 20px;
          font-family: "Noto Sans TC";
          font-weight: 700;
        }

        > .info-body-eq-box {
          display: flex;
          padding: 4px;

          > .info-body-magnitude,
          > .info-body-depth {
            position: relative;
            display: flex;
            gap: 4px;
            height: 28px;
            isolation: isolate;
          }

          >.info-body-magnitude::after,
          >.info-body-depth::before

          /*! 背景文字 */ {
            position: absolute;
            content: attr(data-background-text);
            padding: 0 6px;
            line-height: 28px;
            font-size: 28px;
            font-weight: 700;
            opacity: 0.15;
            z-index: -1;
          }

          >.info-body-magnitude::before,
          >.info-body-depth::after

          /*! 色條樣式 */ {
            content: "";
            display: block;
            width: 4px;
            border-radius: 30px;
          }

          > .info-body-magnitude > .info-body-magnitude-value,
          > .info-body-depth > .info-body-depth-value {
            font-weight: 700;
            line-height: 28px;
          }

          > .info-body-magnitude > .info-body-magnitude-value::before,
          > .info-body-depth > .info-body-depth-value::after {
            display: inline-block;
            opacity: 0.75;
            line-height: 28px;
            font-weight: 400;
          }

          > .info-body-magnitude {
            flex: 1;
            font-size: 28px;

            &:before

            /*! 規模色條顏色 */ {
              background-color: #c800c0;
            }

            > .info-body-magnitude-value {
              &:before {
                margin-right: 4px;
                content: "𝖬";
                font-size: 16px;
              }
            }
          }

          > .info-body-depth {
            &:before

            /*! 背景文字位置 */ {
              right: 0;
            }

            &:after

            /*! 深度色條顏色 */ {
              background-color: #ff1f00;
            }

            > .info-body-depth-value {
              font-size: 20px;
              line-height: 36px;

              &:after {
                margin-left: 4px;
                content: "㎞";
                font-size: 12px;
              }
            }
          }
        }

        > .info-nsspe {
          font-weight: 700;
          line-height: 20px;
          margin-top: 0.5em;
          font-size: 17px;
        }

        > .info-nsspe-title {
          margin-right: 0.3em;
        }
      }
    }

    > .info-body-footer {
      display: flex;
      align-items: center;
      padding: 0 4px;
      line-height: 12px;
      font-size: 12px;
      opacity: 0;

      > .info-body-footer-title {
        opacity: 0.75;
        font-size: 11px;
        flex: 1;
      }

      > .info-body-footer-value-container {
        display: flex;
        align-items: center;
        gap: 8px;
        font-family: "Open Sans", sans-serif;

        > .info-body-footer-value-time {
          line-height: 16px;
          font-size: 14px;
          font-weight: 500;
        }

        > .info-body-footer-value-name {
          opacity: 0.75;
          line-height: 16px;
        }
      }
    }
  }

  >.info-body-box>.cancel-box

  /*! 取消覆蓋 */ {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    gap: 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background-color: rgb(0 0 0 / 40%);
    color: white;
    text-shadow: 2px 2px black, -2px -2px black, -2px 2px black, 2px -2px black;
    backdrop-filter: blur(1px);
    z-index: 1001;
    opacity: 0;

    > .cancel-title {
      display: flex;
      justify-content: space-between;
      width: 30%;
      line-height: 36px;
      font-weight: 900;
      font-size: 36px;
    }

    > .cancel-body {
      line-height: 14px;
      font-weight: 500;
      font-size: 14px;
    }
  }

  &.cancelled>.info-body-box>.cancel-box

  /*! 顯示取消覆蓋 */ {
    display: flex;
  }
}

.list-box {
  visibility: hidden;
  width: 277px;
  height: calc(100% - 166px);
  bottom: 0;
  right: 0;
  border-radius: 5px;
  position: absolute;
  margin: 4px;
  z-index: 1000;
  overflow-y: hidden;
}

.list-box:hover {
  overflow-y: auto;
}

.list-box:hover > .list-item {
  margin-right: 0;
}

.list-item {
  border-radius: 10px;
  background-color: #464646;
  height: 41px;
  width: 272px;
  display: flex;
  align-items: center;
  margin-bottom: 7px;
  margin-right: 3px;
}

.list-intensity-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  width: 41px;
  height: 41px;
  font-size: 27px;
  font-family: "OpenSans-Bold";
}

.list-info-box {
  display: flex;
  justify-content: space-between;
  width: 236px;
  align-items: center;
  color: white;
}

.list-mag-box {
  width: 63px;
  color: white;
  display: flex;
  align-items: flex-end;
  padding-right: 13px;
  justify-content: right;
}

.list-mag-text {
  font-family: "OpenSans-Bold";
}

.intensity-container.hidden {
  display: none !important;
}

.intensity-container {
  visibility: unset;
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 8px;
  bottom: 0;
  right: 0;
  height: calc(100vh - 170px);
  width: calc(20vw + 16px);
  max-width: 335px;
  min-width: 320px;
  margin: 8px;

  > .realtime-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    color: white;
    z-index: 1001;

    > .realtime-container {
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-height: 0;
      padding: 12px;
      border-radius: 10px;
      background-color: #383838ba;

      > .realtime-header {
        font-size: 18px;
        font-weight: 700;
      }

      > .realtime-list {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-height: 0;
        border-radius: 10px;
        overflow-y: hidden;

        &:hover {
          overflow-y: auto;
        }

        > .realtime-item {
          display: flex;
          background-color: #282828;
          border-radius: 17px;

          > .realtime-intensity {
            width: 44px;
            height: 23px;
            border-radius: 17px;
            font-family: "Open Sans", sans-serif;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
          }

          > .realtime-location {
            padding-left: 8px;
            font-size: 13px;
            font-weight: 500;
            display: flex;
            align-items: center;
          }
        }
      }
    }
  }

  > .local-box {
    display: flex;
    gap: 3px;
    padding: 8px;
    padding-left: 12px;
    border-radius: 10px;
    background-color: #383838ba;
    color: #fff;
    z-index: 1001;

    > .local-title {
      opacity: 0.6;
      writing-mode: vertical-rl;
      /*text-orientation: upright;*/
      font-size: 12px;
      text-align: center;
    }

    > .local-container {
      position: relative;
      flex: 1;
      display: flex;
      gap: 8px;
      border-radius: 12px;
      background-color: #505050;

      > .local-intensity {
        width: 61px;
        aspect-ratio: 1;
        padding: 8px;
        border-radius: inherit;
        box-shadow: 4px 0 4px rgb(0 0 0 / 20%);
        line-height: 44px;
        font-family: "Open Sans", sans-serif;
        font-size: 44px;
        font-weight: 800;
        text-align: center;
      }

      > .wave-timer-container {
        flex: 1;
        display: grid;
        grid-template-columns: 1fr 1fr;

        > .wave-timer {
          display: flex;
          flex-direction: column;
          gap: 2px;
          padding: 4px;

          > .wave-timer-name {
            font-size: 14px;
            opacity: 0.6;
          }

          > .wave-timer-value {
            line-height: 26px;
            font-size: 26px;
            font-weight: 700;
            text-align: center;
          }
        }
      }

      >.local-number

      /*! 右上角報號 */ {
        position: absolute;
        right: 0;
        translate: 25% -25%;
        width: 20px;
        aspect-ratio: 1;
        border-radius: 10px;
        background-color: #999;
        color: #000;
        text-align: center;
        line-height: 20px;
        font-family: "Open Sans", sans-serif;
        font-size: 12px;
        font-weight: 700;
      }
    }
  }
}

.report-title-box {
  height: 35px;
  margin-left: 15px;
  margin-right: 15px;
  color: white;
  display: flex;
  justify-content: space-between;
  font-size: 24px;
  font-family: "NotoSansTC-Black";
  line-height: 1;
  margin-top: 11px;
}

.report-body-box {
  background-color: #202020;
  height: 175px;
  width: 324px;
  border-radius: 17px;
  margin-left: 8px;
  color: white;
  line-height: 1.2;
}

.list-box {
  visibility: hidden;
  background-color: #464646;
  height: calc(100% - 241px);
  width: 340px;
  position: absolute;
  bottom: 0;
  right: 0;
  margin: 5px;
  border-radius: 5px;
  z-index: 1000;
  color: white;
}

.report-item-list {
  margin-top: 10px;
  margin-left: 18px;
  border-radius: 17px;
  width: 251px;
  height: calc(100% - 101px);
  overflow-y: hidden;
  background-color: #202020;
  overflow-y: hidden;
  padding-left: 27px;
  padding-right: 27px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.report-area-box {
  margin-right: 3px;
}

.report-item-list:hover {
  overflow-y: auto;
}

.report-item-list:hover > .report-area-box {
  margin-right: 0;
}

.city-box {
  display: flex;
  width: 246px;
  height: 23px;
  background-color: #414141;
  border-radius: 17px;
  margin-bottom: 5px;
}

.city-intensity {
  width: 44px;
  height: 23px;
  border-radius: 17px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-family: "OpenSans-ExtraBold";
}

.city-location {
  font-size: 13px;
  font-family: "NotoSansTC-Bold";
  padding-left: 8px;
  display: flex;
  align-items: center;
}

.city-list {
  margin-left: 28px;
  width: 218px;
}

.town-box {
  display: flex;
  background-color: #313131;
  border-radius: 17px;
  margin-bottom: 5px;
}

.town-intensity {
  width: 39px;
  height: 23px;
  border-radius: 0px 17px 0px 11.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-family: "OpenSans-ExtraBold";
}

.town-location {
  font-size: 13px;
  font-family: "NotoSansTC-Bold";
  padding-left: 8px;
  display: flex;
  align-items: center;
}

.time {
  color: red;
  font-size: 15px;
  z-index: 1001;
}

.connect-wrapper {
  position: absolute;
  bottom: 0.3em;
  left: 0;
  margin: 1px;
  padding: 1px;
  border-radius: 5px;
  color: red;
  border: 2px solid #00000008;
  background-color: #00000075;
  pointer-events: none;
  display: flex;
  align-items: center;
  z-index: 1001;
  margin-left: 5px;
}

.icon {
  color: red;
  z-index: 1000;
}

.leaflet-tooltip {
  padding: 0;
  border: unset;
  border-radius: 8px;
  box-shadow: 4px 0 4px rgb(0 0 0 / 26%);
  background-color: #000000b8;
}

.leaflet-tooltip-left::before {
  border-left-color: inherit;
}

.progress-tooltip {
  width: 6px;
  height: 50px;
  display: grid;
  align-items: flex-end;
  border: 2px solid white;
  border-radius: 5px;
}

.progress-tooltip::before {
  display: none;
}

.pga_dot {
  max-height: 7px;
  max-width: 7px;
  border-radius: 50%;
}

body:has(#report-panel.show) .pga_dot {
  opacity: 0;
}

.dot {
  display: grid;
  align-items: center;
  border: 2px solid black;
  border-radius: 50%;
  text-align: center;
  font-weight: 900;
  font-size: 12px;
  /*max-height: 15px;*/
  /*max-width: 15px;*/
}

.nsspe_dot {
  border: 2px solid white;
  border-radius: 50%;
  max-height: 20px;
  max-width: 20px;
}

.dot_max {
  display: grid;
  align-items: center;
  border: 2px solid #ff0080;
  border-radius: 50%;
  text-align: center;
  font-weight: 900;
  font-size: 12px;
  /*max-height: 15px;*/
  /*max-width: 15px;*/
}

.report_station_box {
  padding: 8px;
  border-radius: inherit;
  color: white;
  font-family: var(--system-font);
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  background-color: #00000069;
}

.tooltip-location {
  font-weight: bold;
  font-size: 18px;
}

.tooltip-uuid {
  margin-left: 4px;
  opacity: 0.6;
  font-size: 14px;
}

.tooltip-fields {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  margin-top: 4px;
}

.tooltip-field-name {
  margin-right: 4px;
  opacity: 0.6;
  font-size: 13px;
}

.tooltip-field-value {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.max-pga {
  position: absolute;
  left: 5px;
  top: 5px;
  background-color: #00000075;
  width: 60px;
  color: white;
  font-size: 11px;
  border: 2px solid #00000008;
  padding: 3px;
  border-radius: 5px;
  z-index: 1000;
  text-align: center;
  font-weight: 500;
  pointer-events: none;
}

#max-pga,
#station-max-pga {
  margin-top: 5px;
  border-radius: 5px;
  padding: 2px;
}

.station-max-pga {
  position: absolute;
  left: 80px;
  top: 5px;
  background-color: #00000075;
  width: 60px;
  color: white;
  font-size: 11px;
  border: 2px solid #00000008;
  padding: 3px;
  border-radius: 5px;
  z-index: 1000;
  text-align: center;
  font-weight: 500;
  pointer-events: none;
}

.rts-info-box {
  position: absolute;
  left: 155px;
  top: 5px;
  background-color: #00000075;
  width: 60px;
  color: white;
  font-size: 11px;
  border: 2px solid #00000008;
  padding: 3px;
  border-radius: 5px;
  z-index: 1000;
  text-align: center;
  font-weight: 500;
  pointer-events: none;
}

.rts-info-body {
  display: flex;
  justify-content: space-between;
}

/**地震速報、海嘯警報下方警語**/

.warning-alert {
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1001;
  position: fixed;
  top: calc(100vh - 0.5rem);
  transform: translate(-50%, -100%);
  pointer-events: none;
}

.warning-alert .tsunami-warning {
  border: 4px solid #5cadff;
  border-radius: 100px;
  box-shadow: 0 0 10px 0px #5cadff;
  background-color: rgb(12 12 12 / 14%);
  backdrop-filter: blur(5px);
  display: grid;
  width: 480px;
  margin-top: 15px;
  height: auto;
}

.warning-alert .tsunami-content .nav-item-icon {
  color: #5cadff;
  font-size: 3rem;
  order: -1;
  margin-right: 1vw;
  margin-left: 1vw;
  height: 48px;
  width: 48px;
}

.warning-alert .tsunami-title {
  color: #5cadff;
  font-size: 25px;
  font-weight: 700;
  order: 1;
}

.warning-alert .tsunami-area {
  color: #fff;
  font-weight: 100;
  order: 2;
}

.warning-alert .tsunami-content {
  display: flex;
  flex-direction: inherit;
  align-items: center;
  position: relative;
}

.warning-alert .tsunami-title,
.tsunami-area {
  width: 100%;
}

.warning-alert .earthquake-warning {
  border: 4px solid #ffd640;
  border-radius: 100px;
  box-shadow: 0 0 10px 0px #ffd640;
  background-color: rgb(12 12 12 / 14%);
  backdrop-filter: blur(5px);
  display: grid;
  width: 430px;
  margin-top: 5px;
  height: auto;
}

.warning-alert .earthquake-content .nav-item-icon {
  color: #ffd640;
  font-size: 3rem;
  order: -1;
  margin-right: 1vw;
  margin-left: 1vw;
  height: 48px;
  width: 48px;
}

.warning-alert .earthquake-title {
  color: #ffd640;
  font-size: 25px;
  font-weight: 700;
  order: 1;
}

.warning-alert .earthquake-area {
  color: #fff;
  font-weight: 100;
  order: 2;
}

.warning-alert .earthquake-content {
  display: flex;
  flex-direction: inherit;
  align-items: center;
  position: relative;
}

.warning-alert .earthquake-title,
.earthquake-area {
  width: 100%;
}

@media (max-width: 1110px) {
  .warning-alert {
    transform: translate(-50%, -95%) scale(0.9);
  }
}

@media (max-width: 1010px) {
  .warning-alert .warning-alert {
    transform: translate(-50%, -90%) scale(0.8);
  }
}

@media (max-width: 910px) {
  .warning-alert {
    transform: translate(-75%, -110%) scale(0.8);
  }

  .warning-alert .earthquake-warning {
    width: 410px;
  }

  .warning-alert .tsunami-warning {
    width: 460px;
  }
}

/**電視或曲面螢幕**/
@media (min-width: 1920px) {
  .warning-alert .earthquake-content .nav-item-icon,
  .warning-alert .tsunami-content .nav-item-icon {
    margin-right: 0vw;
    margin-left: 0vw;
  }

  .warning-alert .earthquake-content,
  .warning-alert .tsunami-content {
    justify-content: center;
    padding: 5px;
  }
}

/**海嘯警報(進入頁面後顯示)**/
.warning-message {
  left: 39rem;
  display: none;
  flex-direction: column;
  align-items: center;
  z-index: 1001;
  position: absolute;
  top: calc(5rem);
  transform: translate(-230%, 0);
  pointer-events: none;
  height: 100%;
}

.tsunami-title-container {
  display: flex;
  align-items: center;
  height: 42px;
}

.warning-message .tsunami-warning {
  border: 3px solid #ff0000;
  border-radius: 15px;
  background-color: rgb(0 0 0 / 58%);
  display: grid;
  width: 235px;
  margin-top: 5px;
  height: 6rem;
}

.warning-message .tsunami-content .nav-item-icon {
  color: #ffd640;
  font-size: 2.3rem;
  order: -1;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  height: 48px;
  width: 48px;
  align-items: center;
  justify-content: center;
  display: flex;
}

.warning-message .tsunami-warning .tsunami-content .nav-item-icon:nth-child(2) {
  font-size: 16px;
  right: 2.1rem;
  top: 0.8rem;
  position: relative;
  color: #fff;
  height: unset;
  width: unset;
}

.warning-message .tsunami-title {
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  align-items: center;
  display: flex;
  justify-content: center;
  position: fixed;
}

.warning-message .tsunami-description {
  color: #fff;
  font-weight: bold;
  text-align: center;
  display: flex;
  font-size: 16px;
}

.warning-message .tsunami-title,
.tsunami-description,
.tsunami-nhk-title {
  width: 100%;
}

.warning-message .tsunami-container .tsunami-content {
  display: grid;
  justify-content: center;
}

/**海嘯報告**/
.tsunami-report-container {
  visibility: unset;
  position: absolute;
  display: none;
  flex-direction: column;
  gap: 8px;
  bottom: 0;
  right: 0;
  height: calc(100vh - 265px);
  width: calc(18vw + 16px);
  min-width: 290px;
  margin: 8px;
}

.tsunami-report-container .tsunami-report-box {
  display: flex;
  flex-direction: column;
  min-height: 0;
  color: white;
  z-index: 1001;
  border-radius: 15px;
}

.tsunami-report-container .tsunami-report-box .tsunami-container {
  display: inline-table;
  min-height: 0;
  padding: 12px;
  border-radius: 10px;
  background-color: #383838ba;
}

.tsunami-report-container .tsunami-header {
  font-size: 18px;
  font-weight: 700;
}

.tsunami-report-container .tsunami-container .tsunami-content {
  font-size: 18px;
  font-weight: 700;
  background: #212121;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 10px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 150px;
  border-radius: 10px;
  overflow-y: hidden;

  &:hover {
    overflow-y: auto;
  }
}

.tsunami-report-container .tsunami-text {
  font-size: 15px;
  text-align: start;
}

.tsunami-report-container .tsunami-warning-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 12px;
  border-radius: 10px;
  background-color: #383838ba;
  margin-top: 1vw;
}

.tsunami-report-container .tsunami-area-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  border-radius: 10px;
  overflow-y: hidden;

  &:hover {
    overflow-y: auto;
  }
}

.tsunami-report-container .tsunami-arrival-height {
  width: 60px;
  height: 49.27px;
  border-radius: 15px;
  font-family: "Open Sans", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 30px;

  &:after {
    content: "m";
    font-size: 13px;
    margin-top: 0.7rem;
    margin-left: 0.1vw;
  }
}

.tsunami-arrival-info {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.tsunami-area-item.lift {
  flex-direction: row-reverse;
}

.lift .tsunami-arrival-height {
  width: 100px;
  border-radius: 10px;

  &:after {
    font-size: 0.7em;
  }
}

.lift .tsunami-height-number {
  font-size: 1.3em;
}

.lift .nav-item-icon {
  left: 0.9rem !important;
  font-weight: bold;
}

.tsunami-report-container .tsunami-area-item {
  display: flex;
  background-color: rgb(40, 40, 40);
  border-radius: 17px;
  align-content: center;
  align-items: center;
}

.tsunami-report-container .tsunami-arrival-time {
  font-weight: bold;
  margin-left: auto;
  left: -1vw;
  position: relative;
}

.tsunami-report-container .tsunami-arrival-height .nav-item-icon {
  margin-left: -1rem;
  left: 0.7rem;
  position: relative;
  bottom: 0.8rem;
  width: 16px;
}

.tsunami-report-container .tsunami-arrival-area {
  padding-left: 1rem;
  font-size: 19px;
  font-weight: bold;
  display: flex;
  align-items: center;
  height: 20px;
}

.tsunami-report-container .tsunami-height-six-above {
  border: 1px solid #c800c8;
  color: white;
  background-color: #c800c8;
  box-sizing: border-box;

  &:after {
    margin-left: 0.1rem;
  }
}

.tsunami-report-container .tsunami-height-six {
  border: 1px solid #9600ff;
  color: white;
  background-color: #9600ff;
  box-sizing: border-box;
}

.tsunami-report-container .tsunami-height-three {
  border: 1px solid #ff0000;
  color: white;
  background-color: #ff0000;
  box-sizing: border-box;
}

.tsunami-report-container .tsunami-height-one {
  border: 1px solid #ffc800;
  color: #313131;
  background-color: #ffc800;
  box-sizing: border-box;
}

.tsunami-nhk-warning {
  border-radius: 15px;
  width: 300px;
  margin-top: 5px;
  height: 6rem;
  display: flex;
  flex-direction: column;
  z-index: 9999999;
  position: fixed;
  bottom: 15.5rem;
  left: 0.5rem;
}

.tsunami-nhk-title {
  color: #fff;
  font-size: 16px;
  align-items: center;
  display: flex;
  justify-content: center;
  background: #000;
  font-weight: 100;
}

.tsunami-nhk-mag {
  color: #fff;
  font-size: 16px;
  font-weight: 100;
  align-items: center;
  display: flex;
  justify-content: center;
  background: #f00;
  width: 100%;
}

.tsunami-nhk-type {
  background: #fb0202;
  width: 90px;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000,
    -1px 1px 0 #000;
}

.tsunami-1m {
  background: #ffc800;
}

.tsunami-3m {
  background: #ff0000;
}

.tsunami-6m {
  background: #9600ff;
}

.tsunami-6m-height {
  background: #c800c8;
}

.tsunami-lift {
  background: #00c8c8;
}

.tsunami-nhk-area {
  background-color: rgb(0 0 0 / 58%);
  display: flex;
  justify-content: space-around;
}

.tsunami-nhk-item {
  color: #fff;
  border: 1px solid rgb(0 0 0 / 58%);
  margin-bottom: 1.5px;
}

.arrival {
  border-radius: 5px;
  border: 1px solid #fff;
  width: 45px;
  text-align: center;
  left: 20px;
  position: relative;
}

.height-one {
  border: 1px solid #ffc800;
  background: #ffc800;
  width: 55px;
  text-align: center;
  left: 12px;
  position: relative;
}

.height-three {
  border: 1px solid #ff0000;
  background: #ff0000;
  width: 55px;
  text-align: center;
  left: 12px;
  position: relative;
}

.height-six {
  border: 1px solid #9600ff;
  background: #9600ff;
  width: 55px;
  text-align: center;
  left: 12px;
  position: relative;
}

.height-six-plus {
  border: 1px solid #c800c8;
  background: #c800c8;
  width: 55px;
  text-align: center;
  left: 12px;
  position: relative;
}

.height-lift {
  border: 1px solid #00c8c8;
  background: #00c8c8;
  width: 55px;
  text-align: center;
  left: 12px;
  position: relative;
}

.tsunami-nhk-area > .area {
  max-width: 150px;
  text-align: center;
}

.cancel .info-body-box {
  background-color: unset;
}

.tsunami-info-value {
  font-size: 17px;
  font-weight: bold;
}

.tsunami-info-title {
  opacity: 0.75;
  line-height: 16px;
}

.tsunami-info-container {
  display: flex;
  gap: 8px;
  font-family: "Open Sans", sans-serif;
  flex-direction: column;
  margin-left: 0.8em;
}

.tsunami-info-body {
  display: grid;
  align-items: center;
  padding: 0 4px;
  line-height: 12px;
  font-size: 12px;
  gap: 10px;
}

.tsunami-info-body-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  border-radius: 5px;
  background-color: #383838;
  padding: 8px;
  margin-top: 0.5em;
}

.tsunami-info-body-box .cancel-box {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  gap: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background-color: rgb(0 0 0 / 40%);
  color: white;
  backdrop-filter: blur(1px);
  z-index: 1001;
  opacity: 0;
}

.tsunami-info-body-box .cancel-title {
  display: flex;
  justify-content: space-between;
  width: 30%;
  line-height: 36px;
  font-weight: 900;
  font-size: 36px;
}

.tsunami-info-title-box {
  display: flex;
  padding: 0 8px;
  line-height: 14px;
  font-size: 18px;
  font-weight: 700;
}

#info-title-box-type {
  flex: 1;
}

#tsunami-info-box {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 18vw;
  min-width: 277px;
  margin: 8px;
  padding: 8px;
  border-radius: 10px;
  background-color: #464646;
  color: white;
  white-space: nowrap;
  z-index: 1001;
  display: none;
}

#tsunami-info-box.warning-1 {
  background-color: #ff0000;
}

#tsunami-info-box.warning-2 {
  background-color: #ff9900;
}

#tsunami-info-box.warning-3 {
  background-color: #ffc800;
}

#tsunami-info-box.warning-4 {
  background-color: #1e9632;
}

.warning-2 .tsunami-info-title-box {
  color: #313131;
}

.warning-3 .tsunami-info-title-box {
  color: #313131;
}

#tsunami-info-title-box-type {
  flex: 1;
}

.tsunami-info-item {
  display: flex;
  align-items: center;
}

.tsunami-info-coordinate {
  line-height: 16px;
}

.tsunami_coordinate {
  margin-right: 10px;
  opacity: 0.75;
}

.tsunami_mag {
  font-size: 20px;
  color: #fff;
}

.tsunami_m {
  margin-right: 2px;
  opacity: 0.75;
}

.tsunami-info-item-branch {
  display: flex;
}

.tsunami-info-item-branch .tsunami-info-item {
  margin-right: 50px;
}

.tsunami_depth {
  font-size: 20px;
  color: #fff;
  margin-right: 2px;
}

.tsunami_km {
  margin-right: 2px;
  opacity: 0.75;
}

.tsunami-info-unit {
  font-weight: bold;
  font-size: 11px;
  position: relative;
  right: 1vh;
}

.tsunami-info-item.unit {
  justify-content: end;
  margin-top: -8px;
}

.int {
  width: 44px;
  height: auto;
  border-radius: 0px 15px 0px 10px;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-version {
  display: none;
  bottom: 4em;
  left: 55px;
  margin: 1px;
  display: flex;
  align-items: stretch;
  margin-left: 5px;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  position: absolute;
  background-color: #00000075;
  width: 110px;
  color: white;
  font-size: 11px;
  border: 2px solid #00000008;
  padding: 3px;
  border-radius: 5px;
  z-index: 1000;
  text-align: center;
  font-weight: 500;
  pointer-events: none;
}

.app-version-body {
  display: flex;
  justify-content: space-between;
}

.app-version.new {
  border: 2px solid transparent;
  transition: border-color 0.3s ease-in-out;
  animation: new_version 3s infinite;
}

@keyframes new_version {
  0% {
    border-color: transparent;
  }
  50% {
    border-color: #fff900;
  }
  100% {
    border-color: transparent;
  }
}

.stop_replay_wrapper {
  position: absolute;
  bottom: 0.3em;
  left: 11.5em;
  margin: 2px;
  display: none;
  z-index: 1001;
  margin-left: 5px;
  font-weight: bold;
}

.marker-icon {
  width: 40px;
  height: 40px;
  background-image: url("../resource/image/cross.png");
  background-size: cover;
}

.time-label {
  color: #fff;
  top: -10px;
}

.buy-vip {
  color: #ffd63a;
  cursor: pointer;
}
