@charset "UTF-8";

#recentColor,
.header ul {
  display: flex;
}

.footer-menu,
#setting .size,
#delete .size,
#palette .palette-cnt,
#palette,
#pen .size,
.side {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header .title.change div,
.header .title.change {
  display: flex;
  align-items: center;
}

#recentColor,
.header ul {
  display: flex;
}

.footer-menu,
#writing .size,
#setting .size,
#delete .size,
#palette .palette-cnt,
#palette,
#pen .size,
.side {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header .title.change div,
.header .title.change {
  display: flex;
  align-items: center;
}

.sub-wrapper {
  padding: 50px;
}

@media (max-width: 768px) {
  .sub-wrapper {
    padding: 6.5vw;
  }
}

@media (max-width: 480px) {
  .sub-wrapper {
    padding: 30px;
  }
}

.header {
  position: absolute;
  right: 40px;
  top: 40px;
  z-index: 99;
}

.header ul {
  flex-direction: column;
  align-items: flex-end;
}

.header img {
  width: 30px;
}

.header a {
  display: block;
  width: 100%;
  height: 100%;
}

.header .title {
  font-size: 28px;
  font-weight: 400;
}

.header .title.change {
  gap: 20px;
  padding: 10px 15px;
  border: 3px solid;
  border-radius: 5px;
  -o-border-image: linear-gradient(to bottom, #f8f8f8, #A9A9A9) 1;
  border-image: linear-gradient(to bottom, #f8f8f8, #A9A9A9) 1;
  /* border-radius가 적용되도록 마스크 설정 */
  -webkit-mask-image: radial-gradient(circle, white 100%, transparent 100%);
  mask-image: radial-gradient(circle, white 100%, transparent 100%);
}

.header .title.change div {
  gap: 10px;
}

.header .title.change div button {
  background: none;
  outline: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #777;
}

.header .range40 #range {
  background: linear-gradient(to right, #a9a9a9 0%, #a9a9a9 45%, #d3d3d3 45%, #d3d3d3 100%);
}

.header #range {
  width: 90%;
  height: 3px;
  background: linear-gradient(to right, #a9a9a9 0%, #a9a9a9 55%, #d3d3d3 55%, #d3d3d3 100%);
  border-radius: 8px;
  outline: none;
  transition: background 450ms ease-in;
  -webkit-appearance: none;
}

.header #range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #D3D3D3, #A9A9A9);
  cursor: pointer;
  border: none;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}

.header #range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #D3D3D3, #A9A9A9);
  cursor: pointer;
  border: none;
}

.header #color {
  border: none;
  background: none;
  padding: 0;
  width: 20px;
  /* 크기 조절 */
  height: 20px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.header #color::-webkit-color-swatch-wrapper {
  padding: 0;
}

.header #color::-webkit-color-swatch {
  border: none;
}

.header #color::-moz-color-swatch {
  border: none;
}

@media (max-width: 768px) {
  .header .title {
    font-size: 3.6vw;
  }
}

@media (max-width: 480px) {

  .header {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 99;
  }

  .header .title {
    font-size: 17px;
  }
}

@media (max-width: 400px) {
  .header img {
    width: 25px;
  }
}

.sub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sub .title {
  font-size: 28px;
  font-weight: 400;
}

.sub p {
  font-size: 24px;
  line-height: 50px;
}

.sub p .intro-img {
  width: 80px;
}

@media (max-width: 768px) {
  .sub .title {
    font-size: 18px;
  }

  .sub .word-title {
    font-size: 15px;
  }

  .sub p {
    font-size: 3vw;
    line-height: 6.5vw;
  }

  .sub p .intro-img {
    width: 10.4vw;
  }
}

@media (max-width: 480px) {
  .sub p {
    font-size: 14px;
    line-height: 31px;
  }

  .sub p .intro-img {
    width: 50px;
  }
}

.sub.sub40 {
  top: 35% !important;
}

.side {
  display: none !important;
  position: fixed;
  bottom: calc(30px + 70px);
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 1280px) {
  .side {
    /* width: 100vw; */
  }
}

@media (max-width: 480px) {
  .side {
    bottom: calc(30px + 50px);

  }
}

.removeAll {
  margin-bottom: 5px;
}

.removeAll a {
  width: fit-content;
  display: flex;
}

@media screen and (max-width: 480px) {
  .removeAll img {
    width: 20px;
  }
}

#writing .size {
  display: flex;
  justify-content: space-around;
}

.side.open {
  display: block !important;
}

#pen .size {
  padding: 20px 0;
  background: #fafafa;
  width: 450px;
  margin: 0 auto;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

@media (max-width: 480px) {
  #pen .size {
    width: 300px;
    padding: 10px 0;
  }
}

#palette .palette-cnt {
  padding: 10px 0;
  background: #fff;
  width: 450px;
  margin: 0 auto;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

@media (max-width: 480px) {
  #palette .palette-cnt {
    padding: 5px;
    width: 300px;
  }
}

#recentColor {
  flex-wrap: wrap;
  gap: 20px;
}

#recentColor li {
  width: 30px;
  height: 30px;
  border: 1px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
}

@media (max-width: 480px) {
  #recentColor {
    gap: 15px;
  }

  #recentColor li {
    width: 20px;
    height: 20px;
  }
}

#delete .size {
  padding: 20px 0;
  background: #fafafa;
  width: 450px;
  margin: 0 auto;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

@media (max-width: 480px) {
  #delete .size {
    width: 300px;
    padding: 10px 0;
  }
}

#deleteSize {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 90%;
  height: 10px;
  border-radius: 100px;
  background: linear-gradient(90deg, #d9d9d9, #eeeeee);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
  outline: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

#deleteSize:active {
  background: linear-gradient(90deg, #c6c6c6, #e0e0e0);
}

#deleteSize::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  background: linear-gradient(145deg, #5c5c5c, #777777);
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

@media (max-width: 480px) {
  #deleteSize::-webkit-slider-thumb {
    width: 17px;
    height: 17px;
  }
}

#deleteSize::-moz-range-thumb {
  width: 26px;
  height: 26px;
  background: linear-gradient(145deg, #5c5c5c, #777777);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
  -moz-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

@media (max-width: 480px) {
  #deleteSize::-moz-range-thumb {
    width: 17px;
    height: 17px;
  }
}

#deleteSize:hover::-webkit-slider-thumb,
#deleteSize:hover::-moz-range-thumb {
  background: linear-gradient(145deg, #404040, #5a5a5a);
  transform: scale(1.15);
}

#setting .size,
#writing .size {
  padding: 20px 0;
  background: #fafafa;
  margin: 0 auto;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

#setting .size {
  width: 450px;
}

#writing .size {
  width: 200px;
}

@media (max-width: 480px) {

  #setting .size,
  #writing .size {
    padding: 10px 0;
  }

  #setting .size {
    width: 300px;
  }

  #writing .size {
    width: 150px;
  }
}

.setting-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 50px;
}

.setting-list a {
  font-family: "Noto Sans KR", sans-serif;
}

@media (max-width: 480px) {
  .setting-list {
    gap: 8px 20px;
  }

  .setting-list a {
    font-size: 14px;
  }
}

.footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  /* width: 100vw; */
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 999;
}

.footer a {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.footer a.active {
  opacity: 1;
}

/* @media (max-width: 1280px) {
  .footer {
    width: 100vw;
  }
} */

.footer-menu {
  gap: 10px;
  background: #fff;
  border-radius: 5px;
  width: 450px;
  padding: 10px 0;
  margin: 0 auto;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
}

.footer-menu img {
  width: 35px;
}

@media (max-width: 480px) {
  .footer-menu {
    width: 300px;
    padding: 5px 0;
  }

  .footer-menu img {
    width: 20px;
  }
}

#writing img {
  width: 20px;
  height: 20px;
  display: block;
}

/* 푸터 말풍선아이콘 모달 */
.hs-modal { 
  position: fixed; inset: 0;
  display: none; align-items: center; justify-content: center;
  z-index: 9999;
}
.hs-modal.is-open { display: flex; }
.hs-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
}
.hs-modal__panel {
  position: relative; max-width: 680px; width: calc(100% - 32px);
  max-height: min(85vh, 820px); overflow: auto;
  background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.2);
  padding: 28px 24px 24px;
  transform: translateY(10px); opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}
.hs-modal.is-open .hs-modal__panel { transform: translateY(0); opacity: 1; }

.hs-modal__title {
  margin: 0 0 16px; font-size: 20px; line-height: 1.4; font-weight: 700;
}
.hs-modal__close {
  position: absolute; top: 8px; right: 8px;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: #f2f3f5; cursor: pointer; font-size: 20px; line-height: 1;
}
.hs-modal__close:hover { background: #e9eaee; }

.hs-checklist { 
  margin: 0; padding: 0 0 0 1.2em; 
  font-size: 16px; line-height: 1.7;
}
.hs-checklist li + li { margin-top: .25em; }

/* 스크롤 잠금 */
body.hs-modal-open { overflow: hidden; }
