/* 디버깅용 전체 테두리 */
/* {
  border: 1px solid pink;
}
*/

body {
  background-color: whitesmoke;
  color: black;
  margin: 18px;
  overflow-y: scroll;
  overflow-x: auto; /* 가로 스크롤 절대 방지 */
  scroll-behavior: smooth;
  }
a{
  color: black;
  text-decoration: none;
}
a:hover{
  color: lightslategrey;
}

.wrapper {
  min-width: 1100px;  /* 너비가 1000px 이하로 줄지 않음 */
}

.noto-sans-kr-<uniquifier> {
  font-family: "Noto Sans KR", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}


#main-title{
  font-size: 8px;
  padding-left: 0px;
}
#main-announcement{
 font-size: 13px;
  display: flex;
  justify-content: flex-end;
  align-items: padding-left;
  margin-bottom: 5px;
}
#main-moving{
  font-size: 13px;
  display: flex;
  justify-content: flex-end;
  align-items: padding-left;
  margin-bottom: 10px;
}

#main{
  display: grid;
  grid-template-columns: 300px 1fr;
}
#grid{
  display: grid;
  grid-template-columns: 200px 1fr;
}
#main-container{
padding: 30px;
}
#menu {
  display: block;
  padding: 0;
}

#menu details {
  font-size: 14px;
  position: relative; /* 자유 배치를 위한 준비 */
}

.block1 {
  margin-top: 10px;
}

.block2 {
  margin-top: 10px;
  text-alignt: left;
}

.block3 {
  margin-top: 80px;
}
details summary {
  cursor: pointer;
  padding: 8px 2px;
  background-color: none;
  transition: background-color 0.3s, font-size 0.5s;
}

details summary:hover {
  background-color: gainsboro;
}

details[open] summary {
  font-size: 1.01em; /* 선택된 항목 글자 크게 */
}

details ul {
  padding-left: 0px;
  margin: 3px 10 10px;
}

details ul li {
  padding: 2px 0;
}
#footer style{
  margin: 0px;
  margin-top: 0px;
}

.intro-text-wrapper{
  margin: 10px;
}

/* 반응형 3 → 2 → 1열 */
.gallery-container {
  display: grid;
  gap: 12px;
  padding: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* 디테일 뷰 스타일 */
.detail-view {
  padding: 26px 0px;
  text-align: center;
}

.detail-image {
  width: 90%;
  max-width: 800px;
  height: auto;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.detail-caption {
  margin: 10px;
  margin-bottom: 210px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

/* 라임색 스크롤바 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: rgba(173,255,47,0.6); border-radius:4px; }
::-webkit-scrollbar-track { background: transparent; }

.tag-box{
  margin: 0px;
}

.tag-container {
  margin: 10px 0;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  border: 1px solid rgb(207, 207, 207);
  border-radius: 54%;
  padding: 8px 10px;
  background-color: ghostwhite;
  color: dimgrey;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.tag.selected {
  background-color: rgba(173,255,47,0.6); /* 옅은 라임색 */
  color: dimgrey;
}

.tag-box p {
  margin-left: 20px 
}

.letters-list {
  position: relative; /* 자식 절대위치 기준 */
  width: 100%;
  max-width: 100vw;
  height: 600px;
  background-color: transparent;
  border: 0px solid transparent;
  overflow: visible; /* 확장 시 자식 잘림 방지 */
}

#rally{
  font-size: 20px;
  margin: 0px;
  padding: 0px;
  border: 0px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

#rally-count{
  font-size: 13px;
  margin: 0px;
  padding: 0px;
  border: 0px;
}

/* 원형 기본 스타일 */
.circle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 3.3s ease;
  box-shadow: 0 0 5px rgba(0,0,0,0.15);
  will-change: width, height, left, top, border-radius;
  background-color: gray; /* JS에서 덮어쓰기 */
  z-index: 1;
}

.circle-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  color: dimgrey;
  font-size: 14px;
  pointer-events: none; /* 숫자가 클릭 방해 안 하도록 */
  transition: opacity 0.3s ease;
}

.circle.expanded .circle-label {
  opacity: 0;  /* 확장(호버) 시 숫자 사라짐 */
}

.letters-list {
  background-image: url('images/grid-pattern.png'); /* 이미지 경로 */
  background-repeat: no-repeat;                   /* 반복 안 함 */
  background-size: cover;                         /* 영역 꽉 채우기 */
  background-position: center center;             /* 중앙 정렬 */
}

#worksop-container{
  font-size: 14px;
  margin: 0px;
  padding: 0px;
  border: 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
}

#worksop-container p{
  font-size: 15px;
}

#workshop-ideas-text {
  padding: 10px;
  margin-right: 40px;
  text-align: center;
}

.table {
    width: 100%;
    border-collapse: collapse; /* 셀 테두리 겹침 */
  }

.th, td {
    border: 0.8px solid #ccc;
    padding: 9px 12px;
    text-align: center;
  }

.thead {
    background-color: #faceb1;
  }
.tbody tr:nth-child(even) {
    background-color: #fafafa; /* 짝수행 배경색 */
  }
.tbody tr:hover {
  background-color: #ff26de; /* 마우스 올리면 하이라이트 */
}

td {
  border-bottom: 3px dotted currentColor;
  transition: border-color 0.6s ease;
  cursor: pointer; /* 호버 시 커서 변환 (선택사항) */
  text-align: center;
  vertical-align: middle;
}

td:hover {
  animation: shake 0.4s ease-in-out;
  border-bottom-color: #ff6600; /* 호버 때 밑줄 색상 변경 (원하면) */
}

.teg-upcoming{
  border-bottom: none !important; /* 점선 밑줄 없애기 (혹시 기본 스타일 덮기 위해) */
  background-color: #dfff00;       /* 레몬 라임색 (밝은 노란-초록색) */
  color: dimgray;                  /* 글씨색 */
  border: 1px solid #ccc;
  border-radius: 9999px;           /* 타원형 (완전 둥근) */
  padding: 6px 10px;               /* 안쪽 여백으로 타원 형태 살리기 */
  display: table-cell;           /* 텍스트 크기만큼만 영역 잡기 */
  vertical-align: center;
  text-align: center;
  margin: 0 auto;           /* 텍스트 크기만큼만 영역 잡기 */
  margin: 0 auto;                  /* 필요시 중앙 정렬 */
  line-height: 1.2;
}

.teg-ongoing {
  border-bottom: none !important; /* 점선 밑줄 없애기 (혹시 기본 스타일 덮기 위해) */
  background-color: #ff8000;       /* 레몬 라임색 (밝은 노란-초록색) */
  color: snow;                  /* 글씨색 */
  border: 1px solid #ccc;
  border-radius: 9999px;           /* 타원형 (완전 둥근) */
  padding: 6px 10px;               /* 안쪽 여백으로 타원 형태 살리기 */
  display: table-cell;           /* 텍스트 크기만큼만 영역 잡기 */
  vertical-align: center;
  text-align: center;
  margin: 0 auto;         /* 텍스트 크기만큼만 영역 잡기 */
  margin: 0 auto;                  /* 필요시 중앙 정렬 */
  line-height: 1.2;
}
.teg-finish {
  border-bottom: none !important; /* 점선 밑줄 없애기 (혹시 기본 스타일 덮기 위해) */
  background-color: #91e83f;       /* 레몬 라임색 (밝은 노란-초록색) */
  color: dimgray;                  /* 글씨색 */
  border: 1px solid #ccc;
  border-radius: 9999px;           /* 타원형 (완전 둥근) */
  padding: 6px 10px;               /* 안쪽 여백으로 타원 형태 살리기 */
  display: table-cell;           /* 텍스트 크기만큼만 영역 잡기 */
  vertical-align: center;
  text-align: center;
  margin: 0 auto; 
  line-height: 1.2;
}


.shake-text {
  display: inline-block;
  border-bottom: 3px dotted currentColor;
  transition: border-color 0.6s ease;
  cursor: pointer;
}

.shake-text:hover {
  border-bottom-color: #ff6600;
  animation: tilt 0.4s ease-in-out 10;
  color: #ff8000 ;
}

@keyframes tilt {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
  75% { transform: rotate(-4deg); }
  100% { transform: rotate(0deg); }
}




.scroll-top {
      width: 40px;
      height: 40px;
      background: rgba(255, 255, 255, 0.3); /* 반투명 흰색 */
      border-radius: 50%;
      border: 1.5px solid lightgray; /* 유리 테두리 */
      box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.6); /* 볼록 유리 효과 */
      backdrop-filter: blur(2px); /* 뒷배경 흐림: glassmorphism 핵심 */
      -webkit-backdrop-filter: blur(2px); /* Safari 지원 */
      position: fixed;
      bottom: 20px;
      right: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 1000;
      transition: all 0.8s ease;
    }

    .scroll-top:hover {
      transform: scale(1.5);
      box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.7);
    }

    .scroll-top::before {
  content: '';
  display: inline-block;
  padding: 8px;
  transform: rotate(-135deg);
  
  border-style: solid;
  border-width: 0 4px 4px 0;
  border-color: transparent lightgray lightgray transparent;
}


#design-title{
  margin-bottom: 200px;
}



td, .design-table {
  animation: none !important;
}

.design-table {
  max-width: 100vw;
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.scrollable-image-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
}

.scrollable-image-row img {
  max-height: 60px;
  height: auto;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}


.scrollable-image-row {
  scrollbar-width: auto; /* Firefox */
}

.scrollable-image-row::-webkit-scrollbar {
  height: 8px;
}

.scrollable-image-row::-webkit-scrollbar-thumb {
  background-color: Gainsboro ;
  border-radius: 4px;
}

.design-table thead th {
  visibility: hidden; /* 화면에 보이지 않지만 공간 유지됨 */
}

.design-table {
  border-collapse: collapse;
  width: 100%;
}

/* 헤더 셀: 텍스트만 숨기고 공간 유지 */
.design-table thead th {
  color: transparent;
  background: transparent;
  border: none;
  padding: 12px 16px;
  font-size: 0;         /* 텍스트 높이 제거 */
  line-height: 0;
  height: 1px;
}

/* 셀 스타일 */
.design-table td {
  padding: 12px 16px;
  text-align: left;
  border: none;
}

/* 행 아래 5px 진한 회색 선 */
.design-table tbody tr td {
  border-bottom: 1px solid #666666;
}


.col-name {
  font-size: 14px;
  font-weight: bold;
}

.col-caption {
  font-size: 13px;
}

.col-tag {
  font-size: 13px;
}

.design-table tbody tr:hover {
  background-color: #fbfcfc ;
}

/* 확대 모달 배경 */
.image-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  display: none; /* 숨김 */
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

/* 모달 열리면 flex로 보여줌 */
.image-modal.active {
  display: flex;
}

/* 이미지 확대 */
.image-modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 0px;
  user-select: none;
}
.modal-content-wrapper {
  position: relative;
  display: inline-block;
}
/* 좌우 화살표 버튼 */
.image-modal .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 60px;
  padding: 20px;
  color: white;
  font-size: 28px;
  cursor: pointer;
  background: transparent;
  border-radius: 40px;
  text-align: center;
  line-height: 0;
  font-weight: bold;
  transition: background-color 0.3s ease;
  user-select: none;
  z-index: 10;
}
.image-modal .arrow:hover {
  background: transparent;
}
.image-modal .arrow.left {
  left: -30px; /* 이미지 왼쪽 밖으로 배치 */
}

.image-modal .arrow.right {
  right: -30px; /* 이미지 오른쪽 밖으로 배치 */
/* 이미지에 호버 시 살짝 확대 */
.scrollable-image-row img:hover {
  transform: scale(1.05);
  transition: transform 0.7s ease;
  cursor: pointer;
}


.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-inner {
  display: flex;
  width: 90vw;
  height: 90vh;
  background: transparent;
}

.modal-image {
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-text {
  width: 20%;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px;
  box-sizing: border-box;
  gap: 10px;
  font-family: 'Gowun Dodum', sans-serif;
}


