.grid-left {
  padding-top: 3px;
}

#conditionInfo {
  margin-bottom: 0;
}

.info-wrap {
  /* position: sticky; */
  /* top: 60px; */
  /* z-index: 9; */
  /* z-index: 1; 쌓임 맥락에 의해 z-index가 1이면 하위 요소인 팝업과 모달창이 header와 nav를 감싸지 못하여 임시 제거 */
  /* background-color: var(--background-color); */
  padding-top: 3px;
}

.info-wrap .card {
  height: auto;
  /* max-height: 297px; */
  padding: 22px 0;
}

.info-wrap .condition-info {
  padding: 0 20px;
}

.info-wrap .condition-info h3 {
  font-size: 20px;
  font-weight: var(--weight-medium);
  color: var(--main-color-d1);
  line-height: 30px;
  padding-bottom: 8px;
}

.info-wrap .condition-info p {
  font-size: 14px;
  font-weight: var(--weight-regular);
  color: var(--main-color-d1);
  line-height: 21px;
  word-break: keep-all;
}

.info-wrap .condition-graph {
  width: 100%;
  height: 186px;
  margin-top: 15px;
  position: relative;
}

[dir='rtl'] .info-wrap .condition-graph {
  direction: ltr;
}

.list-wrap {
  padding: 9px 2px;
  margin-bottom: 13px;
}

.condition-list::-webkit-scrollbar {
  display: none;
}

.condition-list .condition-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 58px;
  border-radius: var(--border-radius-small);
  padding: 0 18px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.condition-list .condition-item.active {
  background-color: var(--select-color);
}

.condition-list .condition-item .condition-text {
  flex: 1;
  display: flex;
  align-items: center;
  height: 100%;
}

.condition-list .condition-item:not(:last-of-type) .condition-text {
  border-bottom: 1px solid;
  border-color: var(--border-color);
}

.condition-list .condition-item.active:not(:last-of-type) .condition-text {
  border-color: transparent;
}

.condition-item .condition-icon {
  width: 24px;
  height: 24px;
  padding: 2px;
  margin-right: 20px;
}

[dir='rtl'] .condition-item .condition-icon {
  margin-right: 0;
  margin-left: 20px;
}

.condition-item .condition-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(25%) sepia(100%) saturate(25%) hue-rotate(57deg) brightness(97%) contrast(94%);
}

.condition-item.active .condition-icon img {
  filter: invert(0%) sepia(98%) saturate(32%) hue-rotate(84deg) brightness(103%) contrast(100%);
}

.condition-item .condition-prop {
  flex: 1;
}

[dir='rtl'] .condition-item .condition-prop {
  flex: 1;
  display: flex;
}

.condition-item .condition-prop p {
  font-size: 14px;
  font-weight: var(--weight-regular);
  color: var(--main-color-d3);
  line-height: 24px;
  text-align: left;
}

[dir='rtl'] .condition-item .condition-prop p {
  text-align: right;
}

.condition-item .condition-val {
  flex: 1;
}

[dir='rtl'] .condition-item .condition-val {
  flex: 1;
  display: flex;
  justify-content: end;
}

.condition-item .condition-val p {
  font-size: 14px;
  font-weight: var(--weight-regular);
  color: var(--color-d5-text);
  line-height: 24px;
  text-align: right;
}

/* 그래프영역 */
.chartContainer {
  /* max-width: 700px; */
  margin: auto;
  position: relative;
  height: 100%;
}

#conditionGraph-chartIndex {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 156px;
}

#conditionGraph-y-label-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.conditionGraph-y-label {
  display: flex;
  flex-direction: row;
  border-top: 1px solid rgba(0, 0, 0, 0.3);
  font-size: 10px;
  color: var(--color-black);
  padding-left: 10px;
  opacity: 0.35;
}

/* .chartContainer:hover {
  overflow-x: scroll;
} */

/* .chartContainerBody {
  height: 200px;
} */

.chartContainer::-webkit-scrollbar {
  height: 8px;
}

.chartContainer::-webkit-scrollbar-thumb {
  background-color: lightgray;
  border-radius: 10px;
}

.chartContainer::-webkit-scrollbar-track {
  background-color: transparent;
  border-radius: 10px;
}

/* 월령 이미지 부분 */
.sun-graph-wrap {
  margin-top: 15px;
  background-image: url('../images/example/example-night-sky.jpeg');
}

#sun-graph {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.moon-phase-img {
  display: block;
  width: 100px;
  margin-top: 5px;
}

.moon-phase-text-wrap {
  display: flex;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.moon-phase-text {
  /* position: absolute;
  display: flex;
  flex-direction: column;
  color: #898989; */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  color: #898989;
  text-align: center;
  max-width: calc((100% - 140px) / 2);
}

.moon-phase-text.moonrise {
  align-items: flex-end;
  margin-right: 140px;
}

.moon-phase-text.moonset {
  align-items: flex-start;
}

.moon-phase-text > div {
  width: max-content;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.moon-description-icon {
  width: 13px;
  height: 13px;
}

.text-type {
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: break-word;
  width: 100%;
}

.text-time {
  color: var(--color-white);
  font-size: 14px;
  white-space: nowrap;
}

.headline {
  width: 100%;
  text-align: center;
  color: var(--color-white);
  font-size: 15px;
  font-weight: bold;
  word-break: keep-all;
  padding-left: 0;
  margin-bottom: 0;
}

/* 각 정보에 관한 설명 영역 */
.condition-description-btn {
  display: flex;
  align-items: center;
  margin: 0 20px;
}

.condition-description-btn:hover {
  cursor: pointer;
}

.condition-description-btn img {
  width: 24px;
  padding: 3px;
  object-fit: contain;
  margin-right: 6px;
}

[dir='rtl'] .condition-description-btn img {
  margin-right: 0px;
  margin-left: 6px;
}

.condition-description-btn span {
  font-size: 12px;
  font-weight: var(--weight-regular);
  color: #666666;
  line-height: 16px;
}

.condition-description-popup {
  position: fixed;
  top: 50%;
  left: 0;
  display: none;
  width: calc(767px * 0.9);
  transform: translateY(-50%);
  color: var(--main-color-d1);
  background-color: var(--card-color);
  border-radius: var(--border-radius-medium);
  padding: 20px;
  margin: 0 calc((100vw - (767px * 0.9)) / 2);
  z-index: 1001;
}

.condition-description-popup.on {
  display: block;
  max-width: 640px;
}

.popup-close-btn {
  width: 30px;
  height: 30px;
  /* padding: 3px; */
  /* object-fit: contain; */
}

.popup-info {
  width: 30px;
  padding: 3px;
  object-fit: contain;
  margin-right: 6px;
}

.popup-title-wrap {
  display: flex;
  justify-content: space-between;
  /* align-items: center; */
}

.popup-title-wrap > div {
  display: flex;
  align-items: center;
}

.popup-title {
  font-size: 16px;
  font-weight: var(--weight-medium);
  padding-bottom: unset;
}

.popup-close-btn {
  display: flex;
}

.popup-close-btn:hover {
  cursor: pointer;
}

.popup-content-wrap {
  margin-top: 10px;
}

.popup-content {
  font-size: 13px;
}

.popup-content:not(:last-child) {
  margin-bottom: 10px;
}

.popup-index-title {
  font-weight: var(--weight-medium);
  font-size: 14px;
  margin-bottom: 5px;
}

.popup-index-content {
  font-size: 13px;
}

.popup-index-content > ul {
  list-style: square;
  padding: 0 20px;
}

.modal-bg {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

.modal-bg.on {
  display: block;
}

/* 월령 */
#condition-moonPhaseContainer {
  padding: 0 20px;
  margin-bottom: 8px;
}

.moonPhaseRender {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

#moonPhaseDateContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
}
#moonPhaseName {
  font-size: 16px;
  font-weight: var(--weight-medium);
  color: #ffffff;
}

#moonPhaseDate {
  font-size: 14px;
  color: var(--main-color-d5);
}

.moonPhaseInfoRow {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

.moonPhaseInfoRow:last-child {
  margin-bottom: 0px;
}

.moonPhaseInfoRowTitle {
  font-size: 20px;
  font-weight: var(--weight-medium);
  color: var(--main-color-d1);
}

.moonPhaseInfoRowContents {
  font-size: 20px;
  color: var(--main-color-d5);
}
#moonPhaseInputContainer {
  width: 100%;
  position: relative;
}

.sliderInput {
  height: 12px;
  width: 100%;
  box-shadow: inset -1px 1px 5px 0 rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
}

.sliderInput[type='range']::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  background-color: var(--color-white);
  border: none;
  border-radius: 50%;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

#sliderDayContainer {
  display: flex;
  flex-direction: row;
  width: 100%;
}
#sliderDividedDayContainer {
  display: flex;
  flex-direction: row;
  width: 100%;
  margin: 10px 0;
  border-right: 2px solid var(--main-color-d5);
}
.dividedDay {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  height: 10px;
  /* width: 7%; */
  flex: 1;
}
.sliderDay {
  display: flex;
  justify-content: center;
  /* width: 7%; */
  flex: 1;
  font-size: 10px;
  color: var(--main-color-d5);
}
.dividedDay:nth-last-child(1) {
  flex: 1.1;
}
.sliderDay:nth-last-child(1) {
  flex: 1.1;
}
.thickLine {
  border-left: 2px solid var(--main-color-d5);
  flex: 1;
}

.card.moon {
  background-color: #171717;
}
.card.moon > div > h3 {
  font-size: 20px;
  font-weight: var(--weight-medium);
  color: #ffffff;
  line-height: 30px;
  padding-bottom: 8px;
}

.card.moon > div > p {
  min-height: 50px;
  font-size: 14px;
  font-weight: var(--weight-regular);
  color: #ffffff;
  line-height: 21px;
  word-break: keep-all;
}
.card.moon > .condition-description-btn > img {
  filter: invert(99%) sepia(0%) saturate(653%) hue-rotate(185deg) brightness(86%) contrast(91%);
}

/* 뉴스기사 */

#weatherConditionNewsList .card {
  padding: 20px 10px;
}

#weatherConditionNewsList .card > a:last-child .news-list-wrap {
  margin-bottom: 0;
}

#weatherConditionNewsList .news-list-wrap {
  /* display: flex; */
  justify-content: space-between;
  margin-bottom: 30px;
}

#weatherConditionNewsList .news-list-link {
  display: none;
}

#weatherConditionNewsList .news-list-wrap .news-title {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--main-color-d4);
  font-size: 14px;
  width: calc(100% - 0px);
  /* padding-left: 8px; */
}

#weatherConditionNewsList .news-list-wrap .news-title h3 {
  /* margin: 5px 0;
  font-size: 15px; */
  /* font-weight: 700; */
}

#weatherConditionNewsList .news-list-wrap .news-title span {
  color: #7d7d7d;
  font-size: 12px;
  font-weight: var(--weight-regular);
}

#weatherConditionNewsList .news-list-wrap .news-img-wrap {
  /* width: 130px; */
  width: 100%;
  object-fit: cover;
}

#weatherConditionNewsList .news-list-wrap .news-img-wrap img {
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-small);
  object-fit: cover;
  height: 50vw;
  max-height: 400px;
}

.list-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}

.news-title .content-title {
  line-height: 1.4;
  margin-top: 10px;
}

/* 반응형 */
/* 태블릿 */
@media all and (min-width: 1280px) {
  .info-wrap {
    position: unset;
  }
}

@media all and (min-width: 768px) {
  .grid-left {
    padding-top: 5px;
  }

  .info-wrap {
    position: unset;
    padding-top: 0;
  }

  .condition-description-popup {
    width: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }
  #weatherConditionNewsList .news-list-wrap .news-img-wrap img {
    height: 25vw;
    max-height: 200px;
  }
}

@media all and (max-width: 1080px) {
  @media (orientation: landscape) {
    .info-wrap {
      position: unset;
    }
  }
}

@media all and (max-width: 767px) {
  #conditionGraph {
    transform: translateX(-30px);
  }

  .condition-description-popup {
    width: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }
}

@media all and (max-width: 340px) {
  .card.moon > div > p {
    min-height: 64px;
  }
}

@media all and (max-width: 320px) {
  .headline {
    font-size: 14px;
  }

  .moon-phase-img {
    width: 80px;
  }

  .moon-phase-text {
    max-width: calc((100% - 100px) / 2);
  }

  .moon-phase-text.moonrise {
    margin-right: 100px;
  }

  .text-type {
    font-size: 12px;
  }

  .text-time {
    font-size: 12px;
  }
}

input[type='range'] {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

input[type='range']:focus {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* focus-visible 스타일 제거 */
input[type='range']:focus:not(.focus-visible) {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* 다크모드 */
@media (prefers-color-scheme: dark) {
  .condition-item .condition-icon img {
    /* filter: invert(99%) sepia(0%) saturate(653%) hue-rotate(185deg) brightness(86%) contrast(91%); */
    filter: invert(70%) sepia(0%) saturate(0%) hue-rotate(217deg) brightness(91%) contrast(83%);
  }

  .condition-item.active .condition-icon img,
  .condition-description-btn img,
  .condition-description-popup img {
    filter: invert(99%) sepia(0%) saturate(653%) hue-rotate(185deg) brightness(86%) contrast(91%);
  }

  .conditionGraph-y-label {
    border-color: var(--color-d4);
    color: #686868;
    opacity: 1;
  }
  #weatherConditionNewsList .news-list-wrap .news-title span {
    color: #8a8a8a;
  }
}

#condition-sunContainer {
  padding: 0 20px;
}
/* #sun-slider {
  height: 12px;
  width: 100%;
  box-shadow: inset -1px 1px 5px 0 rgba(255, 255, 255, 0.3);
  background-color: #aaa;
  border-radius: 10px;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
} */

#sun-slider {
  -webkit-appearance: none;
  z-index: 1;
  height: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  box-shadow: inset -1px 1px 5px 0 rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  cursor: pointer;
  outline: none; /* 포커스 효과 제거 */
  background: transparent;
}

/* 움직이는 부분의 색상 변경 */
#sun-slider::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  background-color: var(--color-white);
  border: none;
  border-radius: 50%;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

#sun-graph-canvas {
  width: 100%;
  height: 100%;
  overflow: auto;
  transition: background-color 0.5s ease;
}

.sunInfo {
  font-size: 14px;
  font-weight: var(--weight-regular);
  color: var(--main-color-d3);
}

#sunDate {
  font-size: 14px;
  font-weight: var(--weight-regular);
  color: var(--main-color-d3);
  text-align: center;
  margin-bottom: 10px;
}

.dayContainer {
  margin-bottom: 10px;
}

.sun-strong {
  font-size: 14px;
  font-weight: var(--weight-medium);
  color: var(--main-color-d3);
  margin-bottom: 10px;
}

.sun-graph-wrap {
  transition: 0.5s;
}

.sun-graph-wrap.show-background {
  /* background-image: url('../images/example/example-night-sky.jpeg'); */
  background-color: var(--color-d3);
}

.sun-graph {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50vw;
  height: 25vw;
  max-width: 330px;
  max-height: 165px;
  margin: 0 auto;
}

.sun-graph.change-to-moon {
  max-width: unset;
  max-height: unset;
  width: 100%;
  height: 165px;
}

.moon-phase-img {
  display: block;
  max-width: 100px;
}

.moon-phase-text-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  width: 100%;
}

.moon-phase-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: calc((100% - 140px) / 2);
  color: var(--color-l5-text);
  text-align: center;
}

.moon-phase-text.moonrise {
  /* right: 115%; */
  align-items: flex-end;
  margin-right: 140px;
}

.moon-phase-text.moonset {
  /* left: 115%; */
  align-items: flex-start;
}

.moon-phase-text > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 100%;
  width: max-content;
  /* width: 100%; */
  height: 100%;
}

.text-type {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: break-word;
  width: 100%;
  font-size: 13px;
  overflow: hidden;
}

.text-time {
  font-size: 14px;
  color: var(--color-white);
  white-space: nowrap;
}

.headline {
  width: 100%;
  font-size: 17px;
  font-weight: var(--weight-medium);
  color: var(--main-color-d1);
  text-align: center;
  word-break: keep-all;
  padding-left: 0;
  padding-right: unset;
  margin-top: 20px;
}

.headline.change-to-moon {
  margin-top: 0;
}

.headline.change-to-moon {
  color: var(--color-white);
}

/* 일출/일몰 월출/월몰 리스트 */
#sunInfo .hide {
  display: none;
}

.sun-info .info-item {
  font-size: 14px;
  font-weight: var(--weight-medium);
}

.sun-info .info-item:nth-child(n + 3) {
  border-top: 1px solid var(--border-color);
}

.sun-info .info-item.img,
.sun-info .info-item.img > div,
.sun-info .info-item.img .time-img {
  display: flex;
  align-items: center;
}

.sun-info .info-item.img .time-img {
  justify-content: center;
  width: 68px;
}

.sun-info .info-item.img .percent {
  /* justify-content: center; */
  justify-content: flex-end;
  width: 40px;
}

.sun-info .info-item.img img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0);
  padding: 2px;
  margin-right: 6px;
}

.sun-info .info-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--main-color-d1);
  padding: 13px 0;
}

.sun-info .info-item .date {
  flex: 1;
  min-width: 40px;
}

.sun-info .info-item .time {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

[dir='rtl'] .sun-info .info-item .time {
  justify-content: flex-start;
}

.sun-info .info-item .change-to-moon.time {
  justify-content: flex-start;
}

[dir='rtl'] .sun-info .info-item .change-to-moon.time {
  justify-content: flex-end;
}

.sun-info .info-item .time > time {
  display: flex;
  width: 68px;
}

.sun-info .info-item .time > time > em:last-of-type {
  padding-left: 3px;
}

.sun-info .info-item .percent {
  width: 40px;
  text-align: right;
}

[dir='rtl'] .sun-info .info-item .percent {
  text-align: left;
}

.sun-info .info-item .none-data > time {
  justify-content: center;
}

.sun-info .info-item .none-data > time > em:last-of-type {
  padding: 0;
}

.day-button-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 7px;
}

.day-button-wrap > button:first-child {
  margin-right: 8px;
}

[dir='rtl'] .day-button-wrap > button:first-child {
  margin-right: 0;
  margin-left: 8px;
}

/* 일출/일몰 월출/월몰 테이블 */
.sun-table-wrap {
  position: relative;
  max-height: 370px;
  /* background-color: var(--background-color); */
  transition: max-height 0.5s ease-in-out;
  /* padding: 10px 0; */
}

.sun-table-wrap.unfold {
  max-height: 590px;
}

table {
  font-size: 14px;
  font-weight: var(--weight-medium);
}

tr:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

th {
  text-align: center;
}

th.fourth-column img {
  width: 18px;
  height: 18px;
  vertical-align: super;
  transform: translateX(10px);
}

.column-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0);
  padding: 2px;
}

.rise-column-img.change-to-moon {
  content: url('../images/icons/moonrise.svg');
}

.set-column-img.change-to-moon {
  content: url('../images/icons/moonset.svg');
}

tr.hide {
  display: none;
}

td {
  width: 33%;
  color: var(--main-color-d1);
  text-align: center;
  padding: 10px 0;
}

td:first-child {
  padding-left: 4px;
}

td:last-child {
  padding-right: 4px;
}

td.change-to-moon:first-child,
td.change-to-moon:last-child,
th:first-child,
th:last-child {
  width: 20%;
}

td.change-to-moon:nth-child(2),
td.change-to-moon:nth-child(3),
th:nth-child(2),
th:nth-child(3) {
  width: 30%;
}

td > time,
td > span {
  white-space: nowrap;
  display: block;
  margin: 0 auto;
}

td:nth-child(1) > time {
  width: 65px;
  text-align: left !important;
}

td:nth-child(1) > time.is-not-korean {
  width: 58px;
}

td.change-to-moon > time,
td.change-to-moon > span {
  width: 74px;
  text-align: right;
}

td.change-to-moon > time.is-not-korean,
td.change-to-moon > span.is-not-korean {
  width: 67px;
}

td.none-data > time {
  text-align: center !important;
}

.table-button-wrap {
  /* position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%); */
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  /* width: max-content;
  margin: 0 auto; */
}

.table-button-wrap > button:first-child {
  margin-right: 8px;
}

[dir='rtl'] .table-button-wrap > button:first-child {
  margin-right: 0;
  margin-left: 8px;
}

.day-select-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  font-size: 15px;
  font-weight: var(--weight-regular);
  color: var(--main-color-d1);
  line-height: 36px;
  background-color: var(--main-color-l1);
  /* background-color: var(--select-color); */
  border: none;
  border-radius: 20px;
  padding: 0 18px;
}

.day-select-button.active {
  font-weight: var(--weight-medium);
  color: var(--main-color-l1);
  background-color: var(--main-color-d1);
}

.ad-img {
  width: 100%;
}

.menu-footer {
  color: var(--main-color-d1);
}

.reset-hide {
  display: none;
}

@media all and (min-width: 768px) {
  .grid-left {
    padding-top: 5px;
  }
}

@media all and (max-width: 767px) {
  .sun-graph {
    width: 80vw;
    height: 40vw;
  }
}

@media all and (max-width: 320px) {
  .headline {
    font-size: 14px;
  }

  .moon-phase-img {
    width: 80px;
  }

  .moon-phase-text {
    max-width: calc((100% - 100px) / 2);
  }

  .moon-phase-text.moonrise {
    margin-right: 100px;
  }

  .text-type {
    font-size: 12px;
  }

  .text-time {
    font-size: 12px;
  }

  .sun-table-wrap {
    height: 340px;
  }

  .sun-table-wrap.unfold {
    height: 540px;
  }

  .column-img {
    width: 20px;
    height: 20px;
  }

  th.fourth-column > img {
    width: 15px;
    height: 15px;
    transform: translateX(8px);
  }

  td {
    font-size: 13px;
  }

  td:nth-child(1) > time {
    width: 57px;
  }

  td:nth-child(1) > time.is-not-korean {
    width: 50px;
  }

  td.change-to-moon > time,
  td.change-to-moon > span {
    width: 53px;
  }

  td.change-to-moon > time.is-not-korean,
  td.change-to-moon > span.is-not-korean {
    width: 59px;
  }

  .table-button-wrap {
    bottom: 40px;
  }

  .day-select-button {
    width: 60px;
    font-size: 13px;
  }
}

@media (prefers-color-scheme: dark) {
  /*  .column-img {
    filter: brightness(2);
  }

   .column-img.change-to-moon {
    filter: invert(100%);
  }

   .fourth-column .column-img {
    filter: invert(100%);
  } */

  .sun-info .info-item.img img {
    filter: brightness(2);
  }

  .sun-info .info-item.img.moon img {
    filter: invert(79%) sepia(100%) saturate(0%) hue-rotate(118deg) brightness(113%) contrast(101%);
  }
  #sun-slider {
    box-shadow: inset -1px 1px 5px 0 rgba(255, 255, 255, 0.3);
  }
}

.sun.card .dividedDay:nth-last-child(1) {
  flex: 1;
}

.bg-black {
  background-color: #171717;
}
.add-filter {
  filter: invert(99%) sepia(0%) saturate(653%) hue-rotate(185deg) brightness(86%) contrast(91%);
}

.sun-sub-name {
  display: flex;
  gap: 4px;
  align-items: center;
}
.sun-sub-name img {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}
