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

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

html,
body {
  outline: none;
}

.content-loaded {
  background-color: unset;
  border-radius: unset;
}

/* === 通用 display === */
.block {
  opacity: 0.5;
  pointer-events: none;
}
.show {
  display: block !important;
}
.flex {
  display: flex;
}
.hide,
.none {
  display: none !important;
}

/* === 通用 UI === */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(73 73 73 / 90%);
  transition: 0.4s;
}
.slider.round {
  border-radius: 20px;
}
.slider.round:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 0.2rem;
  background-color: var(--light);
  transition: 0.4s;
  border-radius: 15px;
}
.switch {
  display: inline-block;
  width: 45px;
  height: 26px;
  position: sticky;
  left: 84vw;
}
.switch input {
  display: none;
}
.switch input:checked + .slider {
  background-color: var(--success);
  box-shadow: inset 0 0 3px rgb(0 0 0 /40%);
}
.switch input:checked + .slider:before {
  transform: translateX(18px);
}
.setting-wrapper {
  left: 0vw;
  height: 100%;
  min-height: 0;
  position: fixed;
  top: 0vw;
  width: 100%;
  z-index: 9999;
  transition: opacity 0.3s ease;
}
.setting-container {
  display: flex;
  flex-direction: inherit;
  height: 100%;
  min-height: 0;
}
.setting-header,
.setting-content {
  width: 21vw;
  color: var(--light);
}
.setting-buttons {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}
.button {
  border-radius: 10px;
  border: 1px solid #ffffff24;
  padding: 5px;
  width: 155px;
  height: 35px;
  text-align: center;
  cursor: pointer;
  align-items: center;
  display: flex;
  justify-content: center;
  -webkit-app-region: no-drag;
  margin: 10px;
}
.button:hover {
  background: #1c1c1e78;
}
.button.on {
  background: #1c1c1e;
}
.button span {
  font-size: 16px;
  font-weight: bold;
  opacity: 1;
  color: var(--light);
}
.setting-title span {
  font-size: 24px;
  font-weight: 500;
}
.setting-options-page {
  align-items: center;
  display: none;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 12px 12px 12px 12px;
}
.setting-options-page.active {
  display: flex;
}
.setting-page-header-title {
  font-size: 25px;
  font-weight: bold;
  padding-top: 1vw;
  position: relative;
  bottom: 0.5rem;
  z-index: 1;
}
.setting-content {
  background-color: rgb(49 49 49);
  flex: 1;
  border: 1px solid #ffffff42;
  border-left: none;
  -webkit-app-region: drag;
}
.setting-item-wrapper {
  position: absolute;
  top: 3.5rem;
  width: auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  overflow-y: scroll;
  height: calc(100% - 85px);
  padding-bottom: 1.5rem;
  -webkit-app-region: no-drag;
  outline: unset;

  &:hover {
    overflow-y: auto;
  }
}
.setting-item-content {
  width: 76vw;
  margin-top: 3vw;
}
.setting-item-title {
  font-size: 18px;
  margin-right: 15;
}
.description {
  font-size: 14px;
  font-weight: unset;
  color: #ababab;
}
.setting-option {
  display: grid;
  background-color: #1c1c1e;
  border-radius: 10px;
  margin-top: 3vh;
  height: auto;
}
.setting-item-content
  div
  div:not(
    .select-items,
    .select-wrapper,
    .condition-items,
    .extended-info,
    .extended-list-button,
    .extended-latest-button
  ) {
  padding: 13px;
  display: flex;
  align-items: center;

  &:not(:last-child) {
    border-bottom: 1px solid var(--dark);
    border-color: rgb(255 255 255 / 2%);
  }
}
.select-option-selected {
  background-color: rgb(255 255 255 / 6%);
}
.setting-item {
  display: flex !important;
  justify-content: space-between !important;
  flex-direction: row;
}
.setting-info div div {
  flex-direction: column;
  padding: 10px;
  width: 100%;
}
.select-wrapper {
  padding-top: 0px !important;
}

/* === 一般 === */
.realtime-station .town div {
  justify-content: flex-start !important;
}
.location {
  cursor: pointer;
  border: unset !important;
  border-color: unset !important;
}
.graphics .setting-option .selected-btn,
.general .setting-option .selected-btn {
  font-size: 25px;
  width: 45px;
  height: 26px;
  position: sticky;
  left: 84vw;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  display: flex;
}
.select-items {
  position: relative;
  color: var(--light);
  width: 100%;
  overflow-y: auto;
  padding: 13px;
  display: grid;
  scroll-snap-type: y mandatory;
  scroll-padding: 0.5em;
  overscroll-behavior: contain;
  align-items: center;
  border-right: 1px solid var(--dark);
  border-color: rgb(255 255 255 / 2%);
}
.local div,
.city div,
.town div,
.station div,
.intensity div,
.effect div {
  color: var(--light);
  cursor: pointer;
  user-select: none;
  justify-content: center !important;
  scroll-snap-align: start;
  align-items: center;
  text-align: center;
}
.local div:hover,
.city div:hover,
.town div:hover,
.station div:hover,
.intensity div:hover,
.effect div:hover,
.select-option-selected {
  background-color: rgb(255 255 255 / 6%);
}
.station span:first-child {
  width: auto !important;
  margin-right: 4px;
}
.SE-Net {
  color: #ffc756;
  margin-right: 10px;
  font-size: 12px !important;
}
.MS-Net {
  color: #56deff;
  margin-right: 10px;
  font-size: 12px !important;
}
.select-arrow-active {
  border-color: var(--dark) transparent transparent transparent;
}
.select-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  display: flex;
  justify-content: space-around;
}
.select-wrapper.select-show-big {
  height: 1000px;
  max-height: 14rem;
  border-top: 1px solid var(--dark);
  border-color: rgb(255 255 255 / 2%);
}
.select-items.station {
  max-height: 14.4em;
  width: 100%;
}
.warning-intensity,
.estimate-intensity {
  border: 1px solid #ffffff36;
  width: 35px;
  display: inline-flex;
  text-align: center;
  border-radius: 5px;
  height: 24px;
  justify-content: center;
}
.warning-realtime-station .select-items,
.warning-estimate-intensity .select-items,
.map-display-effect .select-items {
  width: 100%;
  justify-content: center;
  display: block;
}
.intensity div {
  justify-content: center !important;
  font-weight: 100;
  font-family: auto;
}
.setting-header {
  background-color: hsl(0deg 0% 32.55%);
  border: 1px solid #ffffff42;
  border-right: none;
  z-index: 2;
  -webkit-app-region: drag;
}
.windows-wrapper {
  position: absolute;
  right: 0.8em;
  display: flex;
  justify-content: space-between;
  width: 4rem;
  flex-direction: row;
  flex-wrap: wrap;
  top: 0.6em;
  font-weight: bold;
  -webkit-app-region: no-drag;
  z-index: 1002;
}
.reset-button {
  border-radius: 5px;
  border: 1px solid #ffffff24;
  width: auto;
  height: 3px;
  cursor: pointer;
  color: var(--danger);
  justify-content: center;
}
.reset-button:hover {
  background: #48484d;
}
.reset-setting + .switch {
  width: auto;
}
.disabled {
  background: #0000008c;
  color: #ffffff70;
  pointer-events: none;
}

/* === 音效 === */
.special-text {
  color: var(--warning);
}
.selected-btn.on {
  transform: rotate(180deg);
}

/* === 關於 === */
.app-version,
.system-os,
.system-cpu {
  padding: 0;
  color: #adadad;
  font-weight: bold;
  font-size: 15px;
}
.responsive-image {
  max-width: 100%;
  height: auto;
  pointer-events: none;
}

/* === 關於 === */
.info .setting-option div {
  align-items: flex-start !important;
}
.setting-option li {
  list-style-type: square;
}

/* === 擴充 === */
.extended .setting-option {
  color: var(--light);
  padding: 2px !important;
  display: none;
}
.extended-latest-button {
  font-size: 12px;
  color: grey;
}
.extended-info {
  color: var(--danger);
  height: auto;
}
.extended-info .material-symbols-rounded {
  border-bottom: unset !important;
  border-color: unset !important;
  padding: 5px 5px 5px 5px;
}
.setting-option .extended-info-warning {
  font-size: 15px;
  justify-content: center;
}
.extended-setting-button,
.extended-download-button,
.extended-update-button {
  border-radius: 5px;
  border: 1px solid #ffffff24;
  width: auto;
  height: 3px;
  cursor: pointer;
  color: var(--warning);
  margin-left: 5px;
}
.extended-setting-button:hover,
.extended-download-button:hover,
.extended-update-button:hover {
  background: #48484d;
}
.extended-list {
  justify-content: space-between;
  padding: 0 !important;
  width: 100%;
}
.extended-list-descriptions {
  padding: 0;
  color: lightgray;
  font-size: 15px;
  font-weight: 400;
}
.extended-info {
  .setting-option {
    margin-top: 0;
  }

  .switch {
    left: unset;
  }
}
.extended-list-box {
  width: 80%;
  border-bottom: unset !important;
  padding: 2 !important;
  justify-content: space-between;
}
.extended-header-title-box,
.extended-list-author-version {
  width: 75%;
  border-bottom: unset !important;
  padding: 0px !important;
  margin-top: 5;
  color: grey;
}
.extended-list-author-version span:first-child {
  border: 1px solid #ffffff29;
  border-radius: 5px;
  padding: 5;
  font-size: 12px;
}
.author {
  padding: 0 !important;
  width: 150px;
  display: flex !important;
  justify-content: space-between;
  max-width: 115px;
}
.extended-version {
  border: 1px solid #ffffff29;
  border-radius: 5px;
  padding: 5;
  font-size: 12px !important;
  margin-left: 5;
}
.extended-list-left,
.extended-list-description-box,
.extended-list-title-box {
  flex-direction: column;
  padding: 3px !important;
  border-bottom: unset !important;
  width: auto;
  align-items: unset !important;
  min-width: 20%;
}
.extended-list-buttons {
  width: auto;
  flex-direction: row;
  padding: 0 !important;
  justify-content: space-around;
  margin-right: 3px;
  margin-left: 3px;
}
.wave-container:first-child {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.wave-container:last-child {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.extended .open {
  pointer-events: auto;
}
.extended-store-info {
  color: var(--danger);
  height: auto;
}
.store-container {
  display: block !important;
  position: relative;
  overflow: hidden;
  padding: 5px !important;
  width: 100%;
}
.store .switch {
  width: auto;
}
.extended-top-buttons {
  display: flex;
  margin-top: 5px;
  justify-content: center;
}
.extended-list-button {
  border: 1px solid var(--light);
  border-radius: 5px;
  padding: 7px;
  display: flex;
  align-items: center;
  margin: 10px;
  cursor: pointer;
  background: #00ffea00;
  opacity: 0.5;
}
.extended-list-button:hover {
  background: #7cc7f68a;
  opacity: 0.7;
}
.extended-list-button.active {
  background: #7cc7f6;
  opacity: 1;
  color: var(--dark);
}
.extended-store-list .wave-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent 0%,
    transparent 35%,
    rgb(0 149 255 / 8%) 50%,
    transparent 65%,
    transparent 100%
  );
  animation: slide 2s linear infinite, fadeIn 0.5s ease-in;
  pointer-events: none;
}
.extended-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  color: var(--danger);
  padding: 0 !important;
  cursor: pointer;
  display: none !important;
}
.wave-container:hover .extended-remove {
  display: flex !important;
}
.extended-info:not(:has(.wave-container)) {
  text-align: center;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* === 確認彈窗 === */
.confirm-wrapper {
  display: grid;
  position: fixed;
  width: 100%;
  bottom: -100%;
  transition: bottom 0.3s ease;
  z-index: 1001;
  height: 100%;
  align-items: end;
}
.confirm-content {
  display: flex;
  flex-direction: column;
  justify-items: center;
  align-items: center;
  background-color: hsl(240deg 3% 11% / 80%);
  backdrop-filter: blur(12px);
  padding: 15px;
  border-width: 1px 0px 0px 0px;
  border-color: #ffffff1c;
  border-style: solid;
  border: 1px solid #ffffff42;
  justify-content: flex-end;
  height: auto;
}
.confirm-content span {
  color: var(--light);
}
.confirm-btn div {
  border-radius: 5px;
  border: 1px solid #ffffff24;
  padding: 5px;
  width: 5rem;
  height: 1.5rem;
  text-align: center;
  margin-right: 0.5vw;
  margin-left: 0.5vw;
  cursor: pointer;
  align-items: center;
  display: flex;
  justify-content: center;
}
.confirm-btn div:hover {
  background: #48484d;
}
.confirm-btn {
  display: flex;
  margin-top: 1vw;
  color: var(--light);
}
.confirm-btn span {
  font-size: 15px;
}

/* === 視窗按鈕 === */
.minimize,
.close {
  margin-top: 2px;
  color: var(--light);
  align-items: center;
  justify-content: center;
}
.minimize:hover {
  background: #868484;
}
.close:hover {
  background: var(--danger);
}
.windows-buttons {
  border: 1px solid #616161;
  width: 25px;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  display: flex;
}

/* === 訊息 === */
.message-wrapper {
  display: flex;
  position: fixed;
  width: 100%;
  bottom: 0%;
  transition: bottom 0.3s ease;
  z-index: 1001;
  height: 100%;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
}
.message-content {
  color: var(--light);
  display: flex;
  flex-direction: column;
  justify-items: center;
  align-items: center;
  backdrop-filter: blur(12px);
  padding: 10px;
  border-style: solid;
  border-radius: 13px;
  border: 1px solid #ffffff42;
  justify-content: flex-end;
  height: auto;
  width: auto;
  min-width: 100px;
  bottom: 20px;
  position: fixed;
  font-size: 18px;
  font-weight: bold;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  background-color: hsl(121.85deg 100% 57.58% / 44%);
}
.message-content.success,
.message-content.success-download,
.message-content.success-copy {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
