@import url("../font.css");
@import url("./eew/eew.css");
@import url("./report/box.css");
@import url("./max/box.css");
@import url("./intensity_color/box.css");
@import url("./rts_intensity_list/box.css");
@import url("./nav_bar/box.css");
@import url("./eew/rwd.css");
@import url("./warning_message/box.css");
@import url("../root/index.css");
@import url("../text/index.css");

body {
  user-select: none;
  margin: 0;
  font-family: Manrope, "Noto Sans TC", sans-serif;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

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

::-webkit-scrollbar-button {
  background: transparent;
  border-radius: 4px;
}

::-webkit-scrollbar-track-piece,
::-webkit-scrollbar-track {
  box-shadow: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgb(0 0 0 / 40%);
  border: 1px solid #393939;
}

.map {
  height: 100%;
  width: 100%;
  outline: none;
}

.maplibregl-canvas:focus,
.maplibregl-canvas-container:focus {
  outline: none !important;
}

.connect {
  border-radius: 5px;
  border: 2px solid #00000008;
  background-color: #505050c7;
  display: flex;
  align-items: center;
  z-index: 1001;
  padding: 3px;
  pointer-events: none;
  min-width: 145px;
  justify-content: space-around;

  #time {
    font-weight: bold;
  }

  .time-error {
    color: var(--danger);
  }

  .time-normal {
    color: var(--light);
  }

  .time-replay {
    color: var(--warning);
  }
}
.current-version-view {
  top: 0.3em;
  right: 350px;
  font-size: 15px;
  position: absolute;
  color: #ffffff4f;
  transition: transform 0.6s ease;
}

.report-wrapper.hidden ~ .current-version-view {
  transform: translateX(320px);
}

.version-check {
  bottom: 3.5em;
  left: 55px;
  margin: 1px;
  margin-left: 5px;
  position: absolute;
  background-color: #505050c7;
  width: auto;
  color: var(--light);
  border: 2px solid #00000008;
  padding: 3px;
  border-radius: 5px;
  z-index: 1000;
  text-align: center;
  font-weight: 500;
  font-size: 13px;
  min-height: 20px;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-around;
  display: none;

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

    .version-check-box {
      display: flex;
      flex-direction: row;
    }

    .version-check-text {
      margin-right: 10px;
    }

    .current-version {
      margin-right: 5;
    }

    .new-version {
      min-width: 25px;
      margin-left: 5;
    }
  }
}

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

@keyframes new-version {
  0% {
    border-color: transparent;
  }

  50% {
    border-color: var(--warning);
  }

  100% {
    border-color: transparent;
  }
}
