/* 정의 */
:root {
  /* --point-color: #16131F; */
  --point-color: #4b475a;
  --btn-color: #0E0C15;
}


/* 브랜드 색상 */
.text-gray-100 {
  color: #F2F1F3;
}

/* 아주 살짝 따뜻함이 감도는 밝은 회색 */
.text-gray-200 {
  color: #E3E2E6;
}

.text-gray-300 {
  color: #C8C6CC;
}

.text-gray-400 {
  color: #929099;
}

.text-gray-500 {
  /* color: #605E66;   교체 */  
  color: #676274;
}

/* 중간 회색 */
.text-gray-600 {
  /* color: #2a292e;
  color:#484452;  교체 본문 기본색 */
  color:#4A4541;
}

/* 말씀해주신 기준점 (보라빛이 숨어있는 딥 그레이) */
.text-gray-700 {
  color: #201D2A;
}

.text-gray-800 {
  color: #17151E;
}

.text-gray-900 {
  color: #16131F;
}

.border-gray-600 {
  border-color: #2a292e !important;
}


body {
  /* font-family: 'Inter', sans-serif; */
  overflow: hidden;
  color: #0c0c0c;
  background-color: #EBEBEB;
  font-variation-settings: "wdth" 100, "opsz" 10;
  letter-spacing: -0.02em;
  height: 100vh; /* 기존 유지 (구형 브라우저용 폴백) */
  height: 100dvh; /* 지원 브라우저에서 이 값으로 덮어씀 → 여백 문제 해결 */
  margin: 0 .8rem;
  padding: 0;
}



#file-name-indicator {
  display: flex;
  align-items: flex-start;
  pointer-events: none;
  color: #999;
  font-weight: 700;
}

.stats-row {
  display: flex;
  gap: 12px
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 400;
  color: #6b7280;
  /* text-transform: uppercase; */
  letter-spacing: .1px;
}

.stat-value{
  color:#AC71FF

}

.bottom-floating-bar {
  background: #FCFCFC;
  display: flex;
  flex-direction: column;
}


aside {
  /* background-color: #FCFCFC */
  background-color: #ffffff80;
  border:1px solid rgb(255, 255, 255);
  flex-shrink: 0;

}
input[type="range"] + span{
  display: inline-block;
  font-size: 11px; 
  text-align: left;
  width: 16px;
  color: #676274;
}

/* 슬라이더 관련 스타일 */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  /* background: #e7e5eb; */
  background: #dbd9df;
  border-radius: 2px;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0; margin: 0;
}



input[type="range"].slider-h {
  width: 64px;
  height: 8px;
}
input[type="range"].slider-h.w80{
  width:80px;
}
input[type="range"].slider-h.w76{
  width:76px;
}


input[type="range"].slider-v {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 8px;
  height: 62px;
  height: 54px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 9px;
  height: 16px;
  border-radius: 3px;
  background: #9e9caf;
  border: 1px solid #a3a3a3;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.12);
}

input[type="range"].slider-v::-webkit-slider-thumb {
  width: 16px !important;
  height: 9px !important;
}

input[type="range"].slider-v::-moz-range-thumb {
  width: 16px !important;
  height: 9px !important;

}

input[type="range"]::-moz-range-thumb {
  width: 9px;
  /* height: 20px; */
  border-radius: 3px;
  background: #AFAFB7;
  border: none;
}


/* #hero-viewport {
  position: relative;
  width: 100%;
  height: 780px;
  background: #f8f9fa;
  overflow: hidden;
} */

/* 테스트 추가 */
#hero-viewport {
  position: relative;
  /* min-width: 600px; */
  width: 100%;
  height: 780px;
  overflow: hidden;
  animation: gradientFlow 12s ease infinite;
}


@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/*  */


#preview-container {
  position: absolute; 
  inset: 0;
  z-index: 5;
}


#ui-overlay { 
  position: absolute;
  z-index: 10;
  width: 100%;
  height: 100%;

  padding: 6% 14% ;
  /* padding-bottom:4%; */
  pointer-events: none;
  display: flex;
  justify-content: center;
  /* 가로: flex-start | center | flex-end */
  align-items: center;
  /* 세로: flex-start | center | flex-end */
}

/* 미리보기(새 탭)일 때만 */
body.is-preview {
    height: 830px !important; /* 높이*/
}
  /*   body.is-preview #ui-overlay  {
  padding: 2.4% 14% ;
    padding-bottom: 4%;  높이
  }*/

aside { 
  border-radius: 20px;
}

 /* 편집보드에서 미세조정  */
.editmode .font-heading{
    /* font-size: clamp(4rem, 8vw, 6.2rem); */
    /* font-size: clamp(4rem, 8vw, 5rem);
    line-height: .95; */
  }
  /* .editmode  #ui-overlay {
    padding: 3% 14% ;
  } */

  .editmode  #ui-overlay  .text-box{
    /* max-width:680px */
    /* max-width:800px; */
    max-width: 700px; /* 원하는 최대 너비 하나만 남기기 */
    width: 100%;       /* 800px 미만 화면에서는 화면에 맞게 줄어들도록 설정 */
  
    /* 텍스트 자동 줄바꿈 핵심 속성 */
    word-break: break-all;   /* 단어 단위가 아닌 글자 단위로 강제 줄바꿈 (영어/숫자 유용) */
    overflow-wrap: break-word; /* 텍스트가 박스를 넘치면 다음 줄로 넘김 */
    

  
  }



.inter{
  font-family: 'Inter';
  }

  .tight{
    letter-spacing: -.3rem;
  }

.font-heading {
  /* font-family: 'Pretendard', sans-serif; */
  /* font-family: 'Inter', sans-serif; */
  font-family: 'Google Sans Flex', sans-serif;
  font-size: clamp(3rem, 8vw, 4rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.22rem;

 margin-bottom: 32px;
 word-break: keep-all;       /* 한글 단어가 중간에서 잘리지 않고 공백 기준으로 줄바꿈 */
 overflow-wrap: break-word;   /* 영문이나 긴 링크가 영역을 벗어날 경우 단어 단위 */
}


.hero-description {
  font-size: 1.25rem;
  line-height: 1.3; 
  opacity: 0.85;              /* 헤드라인보다 살짝 낮춰서 위계 형성 */
  margin-bottom: 48px;
}

/* ===== CTA 버튼 ===== */
.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding: 1.2rem 2rem;
  border-radius: 9999px;      /* 알약 형태 */
  background-color: #4a4a4a;  /* 예시 색상 (원하면 변경) */
  color: #fff;
  text-decoration: none;
  transition: all 0.25s ease;
  line-height: 1;
}

.hero-button:hover {
  background-color: #333;
  transform: translateY(-2px);
}

/* */
.mb-7{
  margin-bottom: 1.7rem;
}
#hero-desc{
/* width: fit-content; */

}
.editmode:hover {
  border: 1px dashed #9ca3af;
}

.editmode h1:hover,
.editmode p:hover {
  border-style: dashed;
  border-color: rgb(116, 116, 116);
  border-radius: 0.25rem
}

.editmode button:hover {
  cursor: default;
}





/* 가이드 */
.guide-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
  z-index: 10;
  border:1px solid #ff5ae9;


  /* padding: 7% 14%;
  padding-bottom: 4%; */
  width:78%;
  height:86%;
  margin: auto
  
  /* 3D 캔버스 위에 보이도록, 필요시 값 조정 */
}

#hero-viewport.show-guides .guide-overlay {
  display: block;
}

.guide-line {
  position: absolute;  
}

.guide-line.v {
  top: 0;
  width: 1px;
  height: 100%;
}

.guide-line.h {
  left: 0;
  height: 1px;
  width: 100%;
}

/* 중앙선 - 진하게 */
.guide-line.center {
  background: #ff5ae9;
}



.asset-card {
  overflow: hidden;
  border: 1px solid rgb(255, 255, 255);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.2s ease;
}

.asset-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 4px transparent;
  transition: box-shadow 0.2s ease;
  pointer-events: none;
}

.asset-card:hover::after {
  border: 1px solid rgb(204, 204, 204);
  box-shadow: inset 0 0 0 2px #ffffff;
}

.asset-card.active {
  /* border: 1.8px solid var(--point-color); */
  border: 1.8px solid #ac71ff
}

/* FREE 라벨 스타일 */
.free-label {
  position: absolute;
  top: 2px;
  left:2px;
  z-index: 10;
  text-transform: uppercase;
  /* 텍스트 스타일 정의 */
  font-family: "inter";
  font-size: 8px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
  letter-spacing: .02rem;
  /* background-color: #2c306d90; */
  background: linear-gradient(90.13deg, #AC71FF 14.27%, #57B7E3 115.08%);

  /* background-color: #494949;  */
  
  /* 크기 및 여백 */
  padding: 2px  5px ;
  
  /* 카드 모서리 둥글기에 맞추기 (왼쪽 위는 카드 라운드 계승, 우측 아래만 둥글게) */
  /* border-radius: 8px 0 6px 0;  */
  border-radius: 99px;
  
  /* 레이아웃 정렬 및 터치 방지 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* 마우스 클릭이 라벨을 통과해 카드로 전달되도록 설정 */
}

.reset-btn {
  width: 16px;
  height: 16px;
  margin-left: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  /* background: #f0f0f0; */
  color: #999;
  border: 1px solid #b4b4b4;
  transition: all 0.2s;
  cursor: pointer;
}

.reset-btn:hover {
  background: #f0f0f0;

}

#loader {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.custom-checkbox {
  width: 30px;
  height: 14px;
  /* background: #E3E2E6; */
  background: #D3D0DA;  
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: 0.3s;
}

.custom-checkbox::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: 0.3s;
}

input:checked+.custom-checkbox {
  background: var(--point-color)
}

input:checked+.custom-checkbox::before {
  left: 18px;
}

.color-picker-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* width: 18px;
  height: 18px; */
  border-radius: 6px;
  border: 1px solid #b7b9bd;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 4px;

}

.color-picker-wrapper:hover {
  border-color: var(--point-color);
  transform: scale(1.05);
}

input[type="color"] {
  position: absolute;
  top: -4px;
  left: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  opacity: 1;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch,
input[type="color"]::-moz-color-swatch {
  border: none !important;
}



.btn-gradient {
  background: linear-gradient(90deg, #AC71FF, #7ADBFF);
  color: white;
  padding: 2px;
  border-radius: 0.5rem;
  display: inline-block;
  transition: transform 0.2s;
  cursor: pointer;
}

.btn-gradient p {
  background: #16131F;
  /* display: block; */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 8px;
  padding-right: 12px;
  border-radius: 0.45rem;
  font-weight: 600;

}


.btn-gradient:hover,
.btn-lavender:hover {
  transform: none;
  filter: brightness(1.15) contrast(1.1);
  opacity: 1;
  box-shadow: 0 0 20px rgba(172, 113, 255, 0.3);
  transition: all 0.3s ease;
}


.btn-gradient:hover p {
  background: transparent;
  color: black;
}

a {
  line-height: 0%
}

.btn-black, .btn-lavender,  .btn-skygray {
  padding: 10px 12px;
  background: #16131F;
  color: white;
  border-radius: 8px;
  line-height: 1;
  width: fit-content;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  flex-shrink: 0;
  /* font-size:13px; */
}

.btn-lavender{
  background-color: #AC71FF ;
  font-size:13px;
  line-height: 1;
}
.btn-skygray{
  background-color: #64ABE7;
}

.btn-black  span{
  width: fit-content;
}

.btn-black:hover {
  filter: brightness(1.3) contrast(1.1);
  /* width: fit-content; */
}



.bg-gradient-600 {
  display: inline-block;
  padding: 12px 14px;
  color: white;
  background: linear-gradient(90.13deg, #AC71FF 14.27%, #57B7E3 115.08%);
  border-radius: 8px;
  width: 100%;
  text-align: center;
}

/* 호버 효과 */
.bg-gradient-600:hover {
  filter: brightness(1.15) contrast(1.1);
  box-shadow: 0 0 12px rgba(172, 113, 255, 0.5);
}




.btn-two {
  color: white;
  padding: 15px 25px;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.21);
  border-bottom-color: rgba(0, 0, 0, 0.21);
  border-bottom-color: rgba(0, 0, 0, 0.34);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.34) inset, 0 2px 0 -1px rgba(0, 0, 0, 0.13), 0 3px 0 -1px rgba(0, 0, 0, 0.08), 0 3px 13px -1px rgba(0, 0, 0, 0.21);
}

.gradient-text {
  background: linear-gradient(45deg, #cca8ff, #ffffff, #7ADBFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glb-upload-btn {
  border-color: #5a5a5a;
}

.glb-upload-btn:hover {
  border-color: #AC71FF;
}

.glb-upload-btn:hover p {
  color: #AC71FF;
}

.glb-upload-btn img {
  content: url('/assets/images/ic-plus.svg')
}

.glb-upload-btn:hover img {
  content: url('/assets/images/ic-plus-hover.svg')
}

.tool-icon {
  width: 17px;
  height: auto;
}

.tool-title {
  /* font-size: 12px; */
  font-size: 11px;
  /* width:60px;  text-gray-600*/
  /* color: #2a292e;
  color:#2A2730; */
  color:#676274 !important;  
}



.view-sample-btn {
  font-size: 10px;
  color: #797979;
  color:#676274;
  border: 1px solid #b4b4b4;
  padding: 0 3px;
  border-radius: 4px;
  background: #ffffff90;
  border: 1px solid #ffffff;
  
}
/* 기본 상태: 포커스가 아닐 때도 부드러운 전환 효과를 위해 테두리 공간 선언 */
.custom-focus {
outline: none; /* 브라우저 기본 파란색 테두리 제거 */
border: 2px solid transparent;
border-radius: 3px;
transition: border-color 0.2s ease; /* 부드럽게 색상이 바뀌는 효과 */

}

/* 포커스 상태: 클릭하거나 선택했을 때 흰색 2px 테두리 활성화 */
.custom-focus:focus {
outline: none;
border-color: #ffffff;
border-width: 2px;
border-style: solid;
border-radius: 3px;
background-color: #ffffff36;
}

 /* .tooltip{ top:-32px;  border-radius: 16px; box-shadow: #0c0c0c;} */
/* 툴팁의 기본 그림자와 형태 보정 */
.tooltip {
box-shadow: 0 4px 12px rgba(12, 12, 12, 0.08); /* 부드러운 어두운 그림자 */
top:-40px; border-radius: 16px; 
}

/* 하단 중앙에 위치하는 말풍선 화살표 꼬리 */  
.tooltip::after {
content: "";
position: absolute;
top: 100%;             /* 툴팁 박스의 바로 아래 모서리에 부착 */
left: 50%;             /* 가로 방향 기준 중앙 정렬 */
transform: translateX(-50%);

/* 삼각형 화살표 형태 제작 */
border-width: 6px;     /* 화살표 꼭지점 크기 조정 */
border-style: solid;
border-color: #ffffff transparent transparent transparent; /* 위쪽(배경색과 동일)만 색상 부여 */
}

.w50-inlineblock {
  display: inline-block;
  width: 50px;
}
.w70-inlineblock {
  display: inline-block;
  width: 68px;
}

.lineheight-0 {
  line-height: 0
}
.w-150px{
  width: 150px;
}

#hero-btn:empty {
    display: none;
}

/* 메인 컨테이너나 드래그 가능한 영역 전체에 적용할 때 */
.viewer{
  cursor: grab;

}
/* 마우스를 클릭(드래그)하고 있는 순간 */
.viewer:active{
  cursor: grabbing !important;

}
/* 기본 돋보기 상태 */
.viewer.is-zooming-in {
  cursor: zoom-in;
}

/* 스크롤(휠) 내릴 때 등 축소 모양으로 바꿀 클래스 */
.viewer.is-zooming-out {
  cursor: zoom-out;
}

.p-6r4 {
  padding: 1.5rem;
  padding-right: .7rem;
}
.pr-0{
  padding-right: 0 !important
}

.pr-1{
  padding-right: .3rem !important
}

.w60-inlineblock {
  display: inline-block;
  width: 60px;
}

.tool-title + div span{ 
  font-size: 11px;  color:#676274;}

  span{ display: inline-block}

/* 추가 260917 */
.view-sample-btn {
  font-size: 10px;
  /* color: #797979; */
  /* color:#4A4541; */
  border: 1px solid #b4b4b4;
  padding: 0 3px;
  border-radius: 4px;
  background: #ffffff90;
  border: 1px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); 
}


.shift-presets{
  border-radius: 10px;
  padding: 8px 8px;
  /* background: #e7e5eb; */
  background: #e7e5eb70;
  border: 1px solid #e7e5eb90;
  /* background: #d8d8d8; */
} 
#shift-value{
  /* text-align: left; */
}
.h-fit { 
  height: fit-content ;
}
.w30-inlineblock {
  display: inline-block;
  width: 30px;
}
.mx-5 {
  margin-left:1.25rem;
  margin-right: 1.25rem;;
}
aside{
  /* background-color: #F3F0FF; */
  /* background-color: #ffffff80; */
  border:1px solid rgb(255, 255, 255); 
  height: 90vh;
}
label{
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.04); 
  color:#4A4541 !important;
  text-transform: uppercase;
  font-size: 11px !important;
  font-weight: 600;
}

button{
  font-size: 12px;
}
.w-12 {
  width: 12rem;
}
/* 3x3 그리드 컨테이너 */
.align-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding:6px;
  /* background-color: #5f6870;  */
  border-radius: 8px;
  /* width: max-content; */
  background: #e7e5eb70;
  border: 1px solid #e7e5eb90;
}
.p-x-24{
  padding-left: 24px; padding-right: 24px;
}
/* 개별 버튼 기본 스타일 */
.align-btn {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  /* width: 36px;
  height: 36px; */
  /* border: 1px solid rgb(201, 201, 201); */
  border-radius: 6px;
  transition: all 0.15s ease;
  background-color: #ffffff80;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); 
}
.view-sample-btn {
  font-size: 10px;
  /* color: #797979; */
  color:#676274;
  border: 1px solid #b4b4b4;
  padding: 0 3px;
  border-radius: 4px;
  background: #ffffff90;
  border: 1px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); 
}



.align-btn svg {
  width: 24px;   /* 크기가 지정되어 있지 않다면 크기도 잡아줍니다 */
  height: 24px;
  stroke: currentColor;      /* 글자 색상을 따라가도록 함 */
  stroke-width: 1;           /* 선 두께 */
  stroke-linecap: round;     /* 선 끝을 둥글게 */
  stroke-linejoin: round;    /* 꺾이는 부분을 부드럽게 */
  fill: none;                /* 채우기 없음 (선만 보이게) */
  overflow: visible;
}

.align-btn svg line {
  stroke-width: 1px ; /* 원하시는 두께로 설정 (예: 1px) */
}



/* 마우스 호버(올렸을 때) 효과 */
.align-btn:hover {
  background-color: rgba(122, 31, 31, 0.04);
}
.align-btn:hover svg {
  stroke: #475569; /* 조금 더 진한 회색으로 변경 */
}

/* ★ 활성화(클릭되어 선택됨) 상태 스타일 */
.align-btn.active {
  background-color: #ffffff; 
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.align-btn.active svg {
  stroke: #505050; /* 브랜드 메인 컬러 (파란색) */
}
.align-btn.active svg .box-guide {
  opacity: 0.15; /* 활성화 시 점선은 더 연하게 숨김 */
}

  /* 모바일전체 */
@media (max-width: 640px) and (orientation: portrait) {

  #ui-overlay{ 
    padding:0 2%;
  }
  .text-box {
     position: fixed;
     top: 100px;
     text-align: center !important;
     width: 100%;
    }
    .text-box h1.mb-6{
      margin-bottom: 3px !important;
    }
    .text-box h1 + p{ 
      font-size: .9rem; 
      /* padding: 0 1%;
      box-sizing: border-box; */
      /* width: 90%;
      margin: auto; */
    }
    .hero-button{
      display: none;
    }  
    .font-heading {
      margin-bottom: 0;
      letter-spacing: -2px;
      line-height: 1.1;
    }

}
@media (max-width: 900px) and (orientation: landscape) {
    aside { overflow-y: auto !important; max-height: 100dvh !important; }
    body { overflow: auto !important; }
    .font-heading {
      font-size: clamp(1.8rem, 6vw, 3rem);
      margin-bottom: 0;
    }

    .stats-row{
        display: none !important
    }
    .w-150px{ width: fit-content}

    /* .btn-black{padding: 6px 8px} */

    .p-6{
      padding: .8rem;
    }
    .justify-between.re{
        justify-content: flex-end;
    }
    .m-displayNone{
                display: none;
    }
    .m-w-120px{
      width: 120px;
    }
    .m-w-160px{
      width: 160px;
    }


}