﻿.max-intensity-pga-wrapper {
  position: absolute;
  top: 10rem;
  color: var(--light);
  font-size: 11px;
  font-weight: 500;
  display: flex;
  margin: 4px;
  border-radius: 5px;
  flex-direction: column;
  flex-wrap: wrap;
  text-align: center;
  pointer-events: none;
  transition: 0.3s cubic-bezier(0.41, -0.86, 0.76, 1.89);

  .rts-info-box {
    background-color: #505050c7;
    color: var(--light);
    font-size: 11px;
    border: 2px solid #00000008;
    border-radius: 5px;
    z-index: 1000;
    text-align: center;
    font-weight: 500;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    width: 100px;
    margin-top: 5;
  }

  .rts-info-item {
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
}

.max-station-intensity {
  height: 85px;
  width: 85px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 50px;
  margin-top: 5;
  border-radius: 12px;
  font-weight: bold;
}

.max-intensity-text {
  font-size: 14px;
}

.max-pga {
  border-radius: 5px;
  background: #505050c7;
  margin-top: 3px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  text-align: center;
  border: 1px solid #515151;
}

.max-intensity {
  padding: 8px;
  border-radius: 5px;
  background: #505050c7;
  border: 1px solid #515151;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.max-station-pga {
  border-radius: 0px;
  font-size: 12px;
  margin-top: 5;
  height: 20px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.max-pga-text {
  font-size: 14px;
}

.rts-intensity-list-box:has(.rts-intensity-list:empty) {
  display: none;
}

.report-wrapper.hidden ~ .rts-intensity-list-wrapper {
  transform: translateX(158%);
}

.rts-intensity-list-wrapper {
  position: absolute;
  display: flex;
  bottom: 3px;
  max-height: 300px;
  width: auto;
  right: 20rem;
  /* min-height: 180px; */
  transition: transform 0.6s ease;
  pointer-events: none;
  flex-direction: column;
  gap: 5px;

  .rts-intensity-list-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    color: var(--light);
    z-index: 1001;
    justify-content: flex-end;
    min-width: 199px;

    .rts-intensity-list-container {
      display: flex;
      flex-direction: column;
      gap: 5px;
      min-height: 0;
      padding: 6px;
      border-radius: 5px;
      background-color: #505050c7;

      /**標題**/
      .rts-intenisty-list-text {
        font-size: 14px;
        font-weight: 700;
        text-align: center;
      }

      /**列表**/
      .rts-intensity-list {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-height: 0;
        border-radius: 4px;
        overflow-y: hidden;

        &:hover {
          overflow-y: auto;
        }

        /**物件**/
        .rts-intensity-item {
          display: flex;
          background-color: #383838;
          border-radius: 5px;
          border: 1px solid #27272778;

          /**震度**/
          .rts-intensity {
            font-family: Manrope, sans-serif;
            width: 26px;
            min-width: 26px;
            min-height: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: bold;
            border-radius: 5px;
          }

          /**位置**/
          .rts-loc {
            font-size: 14px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            align-items: center;
            width: 100%;
          }
        }
      }
    }
  }
}
