:root {
  --bg-color: #1e1c1a;
  --text-color: #e0dccc;
  --dot-color: #8a7952;
  --accent-color: #b2a369;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: var(--bg-color);
  font-family: 'serif';
  color: var(--text-color);
  overflow-x: hidden;
}

/* 공통 섹션 스타일 */
.section {
  padding: 80px 20px;
  color: var(--text-color);
  text-align: center;
}

/* 가운데 정렬된 텍스트 블록 */
.centered-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}

/* 헤딩 스타일 */
h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--accent-color);
  text-align: center;
}

/* hero 섹션 */
#hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
}

.dot {
  width: 20px;
  height: 20px;
  background-color: var(--dot-color);
  border-radius: 50%;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.hero-text {
  margin-top: 40px;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.hero-button {
  margin-top: 20px;
  padding: 12px 24px;
  background-color: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-button:hover {
  background-color: var(--accent-color);
  color: var(--bg-color);
}

/* 십계명 */
#ten-commandments {
  background-color: #201f1c;
}

.commandments {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}

.commandments li {
  position: relative;
  margin: 20px 0;
  font-size: 1.1rem;
  padding: 12px 20px;
  border: 1px dotted var(--accent-color);
  transition: background-color 0.3s ease;
}

.commandments li:hover {
  background-color: rgba(178, 163, 105, 0.1);
}

.commandments li::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  width: max-content;
  max-width: 300px;
  background-color: #3a372f;
  color: #ddd3bc;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
  white-space: normal;
}

.commandments li:hover::after {
  opacity: 1;
}

/* 인용문 */
blockquote {
  font-size: 1.2rem;
  margin-top: 50px;
  margin-bottom: 20px;
  color: #ceb98d;
  font-weight: bold;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(30, 28, 26, 0.9);
  padding: 12px 0;
  z-index: 100;
  border-bottom: 1px solid var(--accent-color);
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--text-color);
}

body {
  scroll-behavior: smooth; /* 부드러운 스크롤 */
  padding-top: 60px; /* nav 높이 고려해서 여백 추가 */
}

.rituals-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.rituals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.ritual-card {
  background-color: #2d2b27;
  border: 1px solid var(--accent-color);
  border-radius: 8px;
  padding: 20px;
  text-align: left;
  transition: transform 0.3s ease;
}

.ritual-card h3 {
  margin-top: 0;
  color: var(--accent-color);
}

.ritual-card:hover {
  transform: scale(1.03);
}
.language-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.word-card {
  background-color: #2a2824;
  border: 1px dashed var(--accent-color);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  position: relative;
  cursor: help;
  transition: background-color 0.2s ease;
}

.word-card:hover {
  background-color: rgba(178, 163, 105, 0.05);
}

.word-card::after {
  content: attr(data-meaning);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #3a372f;
  color: #ddd3bc;
  font-size: 0.85rem;
  padding: 10px 14px;
  margin-top: 8px;
  border-radius: 5px;
  white-space: normal;
  max-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.word-card:hover::after {
  opacity: 1;
}

.journal-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.journal-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  padding: 0 20px;
}

.journal-form label {
  display: block;
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.journal-form textarea {
  width: 100%;
  background-color: #2d2b27;
  border: 1px solid var(--accent-color);
  border-radius: 6px;
  padding: 12px;
  color: var(--text-color);
  font-size: 1rem;
  resize: vertical;
  line-height: 1.5;
}

.journal-form button {
  margin-top: 16px;
  padding: 10px 20px;
  background-color: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.journal-form button:hover {
  background-color: var(--accent-color);
  color: var(--bg-color);
}
h3 {
  margin-top: 40px;
  font-size: 1.2rem;
  color: var(--accent-color);
}

#join p {
  font-size: 1rem;
  line-height: 1.8;
  margin-top: 10px;
}

#join em {
  display: block;
  margin-top: 30px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent-color);
  text-align: center;
}

h4 {
  color: var(--accent-color);
  margin-bottom: 5px;
}

.hierarchy-wrapper {
  position: relative;
  text-align: center;
  margin-bottom: 40px;
}

.hierarchy-wrapper img {
  max-width: 100%;
  height: auto;
}

.top-title {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  color: var(--accent-color);
  font-weight: bold;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}


.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.carousel-image.active {
  opacity: 1;
}
