body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: 'Pretendard', 'Noto Sans KR', Arial, sans-serif;
  width: 100vw;

}

.wrapnav {background-color: rgba(34, 34, 34, 0.9) }

.nav {
  position: fixed;
  top: 0;
   width: 100%;
  backdrop-filter: blur(10px);
  background: rgba(30, 30, 60, 0.4); 
  border-bottom: 1px solid rgba(0, 255, 0, 0.3); 
  z-index: 10000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
  color: #00ff00;
  font-family: 'Pretendard', 'Noto Sans KR', Arial, sans-serif;
}

.nav-title {
  font-size: 26px;
  font-weight: bold;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.nav-menu a:not(.highlight):hover {
  background: #333;
  color: #00ff00;
}

.nav-menu a.highlight {
  color: #fff;
  background: #2b90ff;
}

.nav-menu a.highlight:hover {
  background:#00ff00;
  color: blue;
}


.wrap {
  width: 100vw; padding-top:0px;height: auto;
}
.wrapgrey {background-color: #555; padding-top: 0px;padding-bottom: 30px;height:auto;}

.wrapfixed1 {position: relative;
  background-color: #000; 
  background-size: 600px;
  background-position: center;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  z-index: 1;
}
section {
  width: 100vw;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: block;
  padding:0px;
}

section {
  scroll-snap-align: start;
}

.ogamdo-vertical-bg {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 800px;
  overflow: hidden;
}

.ogamdo4-bottom-bg {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
}

/* 타이틀 영역 */
.ogamdo-title-area {
  position: absolute;
  top: 2vw;
  right: 4vw;
  text-align: right;
  z-index: 10;
}
.ogamdo-title-main {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5em;
}
.ogamdo-title-sub {
  font-size: 1.08rem;
  font-weight: 400;
  color: #fff;
  opacity: 0.85;
  line-height: 1.5;
}

/* SVG 원과 선 */
.ogamdo-bg-svg {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  z-index: 1;
  pointer-events: none;
}
.ogamdo-bg-circle {
  stroke: #fff;
  stroke-width: 1.2;
  fill: none;
  opacity: 0.7;
}
.ogamdo-bg-line {
  stroke: #fff;
  stroke-width: 1;
  opacity: 0.7;
}

/* 세로 텍스트 */
.ogamdo-vtext {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.2em;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ogamdo-vtext span {
  writing-mode: vertical-rl;
  text-align: center;
  font-size: 1.05rem;
  letter-spacing: 0.07em;
  opacity: 0.93;
  white-space: pre-line;
  line-height: 1.2;
}
.ogamdo-vtext-left { left: 8vw; }
.ogamdo-vtext-right { right: 8vw; }
.ogamdo-vtext-center {
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3em;
  font-size: 1.2rem;
}


.ogamdo-horizontal-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2vh;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1.8em;
  z-index: 3;
 
}
.ogamdo-horizontal-text span {
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  opacity: 0.93;
}

@media (max-width: 900px) {
  .ogamdo-bg-svg { width: 90vw; height: 90vw; }
  .ogamdo-vtext-left,
  .ogamdo-vtext-right { left: 2vw; right: 2vw; }
  .ogamdo-horizontal-text { bottom: 3vh; }
}
@media (max-width: 600px) {
  .ogamdo-title-main { font-size: 1.3rem; }
  .ogamdo-title-sub { font-size: 0.85rem; }
  .ogamdo-horizontal-text span { font-size: 0.8rem; }
  .ogamdo-vtext span { font-size: 0.8rem; }
}

.torus-container {
  position: relative;
  width: 100vw;
  min-height: 100vh;
}

.ui-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.title-area {
  position: absolute;
  top: 3vh;
  right: 4vw;
  text-align: right;
  pointer-events: auto;
}

.title-area h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5em;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.title-area p {
  font-size: 1.1rem;
  opacity: 0.8;
  margin: 0;
}

.diagnosis-panel {
  position: absolute;
  bottom: 4vh;
  left: 4vw;
  background: rgba(0,0,0,0.7);
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 1.5em;
  font-family: 'Courier New', monospace;
  pointer-events: auto;
}

.diagnosis-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.diagnosis-date, .diagnosis-doctor {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0.3em 0;
}

.interaction-guide {
  position: absolute;
  bottom: 4vh;
  right: 4vw;
  text-align: right;
  font-size: 0.9rem;
  opacity: 0.7;
  pointer-events: auto;
}

.interaction-guide p {
  margin: 0.2em 0;
}

/* 반응형 */
@media (max-width: 768px) {
  .title-area h1 { font-size: 1.5rem; }
  .diagnosis-panel { 
    left: 2vw; 
    bottom: 2vh;
    padding: 1em;
  }
  .interaction-guide {
    right: 2vw;
    bottom: 2vh;
    font-size: 0.8rem;
  }
}

    #torus-scene {
      z-index: 1000 !important;
      top: 50%;
      left: 50%;
       transform: translate(-50%, -50%) !important;
  z-index: 10;
   width: 100vw !important;
  height: 100vh !important;
  position: absolute;
  pointer-events: none;
    }

  .ogamdo-vertical-bg {
      z-index: 1 !important;
      position: relative !important;
    }



.wrapfixed1, section {
  height: auto;
  min-height: 100vh;
}


/*오감도 4*/
.container {
  display: grid;
  place-items: center;
  height: 100vh;
  width: 100vw;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3rem;
}

.gif-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.centered-gif {
  max-width: 400px;
  max-height: 400px;
  width: auto;
  height: auto;
  border-radius: 10px;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.title {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: #fff;
  opacity: 0.9;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  animation: fadeIn 2s ease-in-out;
}

/* 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 0.9;
    transform: translateY(0);
  }
}

/* 반응형 */
@media (max-width: 768px) {
  .centered-gif {
    max-width: 300px;
    max-height: 300px;
  }
  
  .title {
    font-size: 1.8rem;
    letter-spacing: 0.2em;
  }
  
  .content {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .centered-gif {
    max-width: 250px;
    max-height: 250px;
  }
  
  .title {
    font-size: 1.4rem;
    letter-spacing: 0.15em;
  }
}

/*거울*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.mirror-container {
  width: 100vw;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #111 0%, #000 70%);
}

.poem-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 20px;
  width: 90vw;
  height: 90vh;
  position: relative;
}

/* 중앙 거울 */
.central-mirror {
  grid-column: 5 / 9;
  grid-row: 2 / 7;
  background: radial-gradient(ellipse, rgba(255,255,255,0.1) 0%, transparent 70%);
  border: 2px solid rgba(255,255,255,0.3);
  linear-gradient(135deg, rgba(200,200,255,0.10) 0%, rgba(255,255,255,0.04) 100%);
  border: 2.5px solid rgba(255,255,255,0.35);
  box-shadow: 0 0 32px 8px rgba(255,255,255,0.25), 0 2px 24px 4px rgba(100,100,255,0.10);
  backdrop-filter: blur(14px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  width: 50vw;
  max-width: 500px;
  height: 40vw;

}



.mirror-surface {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.reflection-text {
  font-size: 1.3rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  padding: 20px;
  line-height: 1.6;
}

/* 타이틀 블록 */
.title-block {
  background: rgba(128,128,128,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.3em;
}

.title-block.top {
  grid-column: 6 / 8;
  grid-row: 1;
}

.title-block.bottom {
  grid-column: 6 / 8;
  grid-row: 8;
}

/* 시 블록들 */
.poem-block {
  background: rgba(189, 181, 181, 0.099);
    color: #ffffff;
     backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-radius: 44px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 20px #00ff00;
}

.poem-block:hover {
  background: rgba(47, 255, 0, 0.9);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  color:#1e00fd
}

.verse-text {
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.4;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.verse-text.reverse {
  transform: scaleX(-1);
  filter: blur(1px);
  opacity: 0.8;
}

/* 거울 이미지 블록 */


.small-mirror {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
  border: 2px solid rgba(255,255,255,0.5);
  animation: mirror-float 3s ease-in-out infinite;
}

@keyframes mirror-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(180deg); }
}

/* 그리드 위치 정의 */
.left-1 { grid-column: 1 / 3; grid-row: 1; }
.left-2 { grid-column: 1 / 4; grid-row: 2; }
.left-3 { grid-column: 2 / 4; grid-row: 3; }
.left-4 { grid-column: 1 / 3; grid-row: 4; }
.left-5 { grid-column: 1 / 4; grid-row: 5; }

.right-1 { grid-column: 10 / 12; grid-row: 1; }
.right-2 { grid-column: 9 / 12; grid-row: 2; }
.right-3 { grid-column: 9 / 11; grid-row: 3; }
.right-4 { grid-column: 10 / 12; grid-row: 4; }
.right-5 { grid-column: 9 / 12; grid-row: 5; }





/* 반응형 */
@media (max-width: 768px) {
  .verse-text {
    writing-mode: horizontal-tb;
    font-size: 0.8rem;
  }
  
  .poem-grid {
    gap: 10px;
  }
}

/*시제 4호*/

  .scrolling-text-container {
    position: absolute;
    top: 20px;
    width: 100%;
    overflow: hidden;
    z-index: 1000;
    pointer-events: none;
    mix-blend-mode: lighten;
  }

  /* 스크롤 애니메이션 */
  .scrolling-text {
    white-space: nowrap;
    animation: scroll-left 15s linear infinite;
    font-size: 1.7rem;
    color: #00ff00;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0,255,0,0.3);
    font-family: 'Pretendard', 'Noto Sans KR', Arial, sans-serif;
    
  }

  @keyframes scroll-left {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
  }

/*투명 창*/

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
  }
  .modal-content {
    background: rgba(0, 0, 0, 0.85);
    color: #00ff00;
    padding: 28px 32px;
    border-radius: 14px;
    max-width: 400px;
    font-size: 1.12rem;
    box-shadow: 0 0 20px #00ff00;
    position: relative;
    text-align: center;
  }
  .modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    cursor: pointer;
    font-size: 2rem;
    color: #00ff00;
  }
  .clickable-word {
    cursor: pointer;
    color: #ffffff;
    text-decoration: none;
    margin: 0 0.7em;
    transition: color 0.2s;
  }
  .clickable-word:hover {
    color: #00ff00;
    background: #1e00fd;
    border-radius: 6px;
    padding: 0 0.2em;
  }

  /*뿌리기*/
    .scatter-word {
    display: inline-block;
    position: relative;
    transition: transform 0.5s cubic-bezier(.77,0,.18,1.01);
    will-change: transform;
  }
  .left-4 {
  grid-column: 2 / 5;  
  grid-row: 3;        
}
.left-5 {
  grid-column: 5 / 8;   
  grid-row: 3;          
}
.right-4 {
  grid-column: 9 / 11; 
  grid-row: 4;    
}
.right-5 {
  grid-column: 11 / 13; 
  grid-row: 4;        
}

.glass-neon-cursor {
      position: fixed;
      top: 0; left: 0;
      width: 40px; height: 40px;
      border-radius: 50%;
      pointer-events: none;
      z-index: 9999;
      /* 유리 질감 (글래스모피즘) */
      background: rgba(255, 255, 255, 0.18);
      box-shadow:
        0 0 18px 6px #00ff00, 
        0 0 36px 16px #00ff8c80,
        0 2px 8px 0 rgba(0,0,0,0.15);
      backdrop-filter: blur(8px) saturate(180%);
      border: 1.5px solid rgba(255,255,255,0.35);
      transition: background 0.15s, box-shadow 0.15s, border 0.15s;
      mix-blend-mode: lighten;
    }

    .glass-neon-cursor.active {
      background: rgba(0,255,247,0.22);
      box-shadow:
        0 0 28px 12px #00fff7,
        0 0 56px 24px #00eaff80,
        0 2px 16px 0 rgba(0,0,0,0.18);
      border: 2.5px solid #00fff7;
    }