.toggleSettingBtn {
  height: 40px;
  width: 40px;
  position: fixed;
  right: 0;
  top: 80px;
  z-index: 600;
  background-color: #f9f9f9;
  border-radius: 10px 0 0 10px;
  box-shadow: 0 0 15px #3333337c;
}
body:has(.settingModal.showSettingModal) .toggleSettingBtn {
  display: none;
}
.settingModal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 990;
  background-color: #333333b2;
  transition: opacity 0.3s;
  display: none;
  animation: fadein 0.3s ease-out;
}
.settingModal.showSettingModal {
  display: -webkit-flex;
  display: flex;
}
.settingMenu {
  background-color: #efefef;
  padding: 15px 15px 25px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  max-height: 80dvh;
  grid-template-rows: auto 1fr;
}
.settingMenuHeader {
  align-items: center;
  border-bottom: 1px solid #11111125;
  padding-bottom: 20px;
}
.settingTitle {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}
.settingMenuCloserBtn {
  height: 30px;
  width: 30px;
  border-radius: 7px;
  color: #333;
  background-color: #1111110a;
  font-size: 15px;
}
.settingMenuList {
  margin-top: 10px;
  gap: 15px;
  max-height: 90%;
  overflow-y: auto;
  padding: 0 5px 20px;
}
.settingMenuItem {
  grid-template-columns: auto 80px;
  gap: 10px;
}
.settingMenuTitle {
  width: fit-content;
  font-size: 15px;
  font-weight: 500;
  color: #555;
}
.settingMenuSizeInput {
  font-size: 16px;
  text-align: left;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  border: none;
  background-color: #11111112;
  border-radius: 5px;
  min-height: 35px;
  width: 100%;
}
.settingMenuItem.gridSettingMenuItem {
  justify-content: space-between;
  margin-top: 10px;
}
.settingInputColor {
  width: 80px;
}
.settingModal:has(.inputListener.focus) {
  opacity: 0;
}
.fontSizeChangeDisplay {
  position: fixed;
  right: 15px;
  bottom: 15px;
  background-color: #fff;
  padding: 7px 15px;
  border-radius: 7px;
  z-index: 999;
  box-shadow: 0 0 15px #33333362;
  display: none;
  width: 40%;
  max-width: 135px;
}
.fontSizeChangeText {
  color: #333;
  font-size: 15px;
  gap: 10px;
  justify-content: space-between;
}
.settingModal:has(.inputListener.focus) + .fontSizeChangeDisplay {
  display: -webkit-flex;
  display: flex;
}
.directionItem {
  padding-top: 10px;
  border-top: 1px solid #11111120;
}
.directionGrid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.directionBtn {
  color: var(--clr3);
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.25s, color 0.25s;
  padding-top: 5px 10px;
  border-radius: 5px;
  min-height: 35px;
  border: 1px solid #11111120;
}
.directionBtn.activeDirectionBtn {
  background-color: var(--clr3);
  color: var(--clrF);
  border: none;
}
.submitSettingBtn {
  background-color: dodgerblue;
  min-height: 38px;
  border-radius: 5px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  margin-top: 15px;
}
@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.settingMenuPartDiv {
  padding: 10px 0 0;
}
.toggleSettingMenuPartBtn {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  gap: 10px;
}
.toggleSettingMenuPartBtn svg {
  transition: transform 0.3s;
  font-size: 1.2em;
}
.toggleSettingMenuPartBtn.toggle svg {
  transform: rotate(180deg);
}
.menuSettingHolderList {
  overflow-y: hidden;
  max-height: 0;
  transition: max-height 0.3s;
}
.toggleSettingMenuPartBtn.toggle + .menuSettingHolderList {
  max-height: 800px;
  overflow-y: auto;
}
.menuSettingList {
  margin-top: 10px;
  gap: 10px;
}
@media screen and (min-width: 868px) {
  .settingModal {
    right: 0;
    left: unset;
    top: 0;
    height: 100vh;
    height: 100dvh;
    width: 300px;
  }
  body.ltr .settingModal {
    right: unset;
    left: 0;
  }
  .settingModal:has(.inputListener.focus) {
    opacity: 1;
  }
  .settingMenuList {
    padding: 0 0 20px;
    margin-top: 10px;
    gap: 10px;
  }
  .settingMenu {
    height: 100%;
    max-height: 100%;
    width: 100%;
    max-width: unset;
    border-radius: 0;
  }
  body:has(.settingModal.showSettingModal) .menuContent {
    width: calc(100% - 110px - 300px);
    margin-left: 120px;
    margin-right: 300px;
  }
  body.ltr:has(.settingModal.showSettingModal) .menuContent {
    margin-right: 0;
    margin-left: 420px;
  }
  body.ltr:has(.settingModal.showSettingModal) nav {
    left: 300px;
  }
  .settingMenuHeader {
    align-items: center;
    border-bottom: none;
    padding: 10px 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 0 15px #3333330e;
  }
  .settingMenuPartDiv,
  .directionItem {
    padding: 10px 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 0 15px #3333330e;
    margin-top: 0;
    border-top: none;
  }
  /* .settingMenuCloserBtn,
  .toggleSettingBtn {
    display: none;
  } */
}
