body {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  padding: 0;
  background-color: #e7f4fb;
  color: #333;
  height: 100%;
  flex: 1;
}

main {
  flex: 1;
}

nav {
  background-color: #3498db;
  padding: 1rem;
  text-align: center;
}

nav a {
  color: white;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
  position: relative;
}

nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

.container {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

img {
  border-radius: 8px;
}

h1, h2 {
  color: #2c3e50;
}

h1 {
  font-weight: 800;  /* 매우 굵게 */
}

h2 {
  font-weight: 700;  /* 굵게 */
}

p {
  font-weight: 400;  /* 보통 */
}


button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  margin: 0.5rem;
  min-width: 160px;
}

button:hover {
  background-color: #2980b9;
}

/* button {
  background-color: #0055aa;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #003f7f;
} */

.button-group {
  text-align: center;
  margin-top: 2rem;
}

.button-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.section-divider {
  border: none;
  border-top: 2px dashed #ccc;
  margin: 2rem 0;
}

.info-box {
    background-color: #f5f5f5;
    border-left: 4px solid #0072c6;
    padding: 1rem;
    margin-top: 2rem;
}

.map-box {
    text-align: center;
    margin-bottom: 2rem;
}

.map-box img {
    max-width: 100%;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
}

.map-box img:hover {
    transform: scale(1.02);
}

/* 슬라이더 스타일 */
.slider-wrapper {
  border: 2px solid #3498db;
  border-radius: 10px;
  padding: 1rem;
  background-color: #ffffff;
  margin-bottom: 2rem;
}

.slider {
  text-align: center;
}

.slider-main-container {
  width: 100%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
  padding-top: 66.66%; /* 3:2 비율 */
}

.slider-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
} 




/* .slider-thumbnails {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;              /* 혹시 넘칠 경우 가로 스크롤 *//*
  -webkit-overflow-scrolling: touch;
}

.slider-thumbnails img {
  width: calc((100% - 40px) / 5);
  height: 60px;
  object-fit: cover;
  opacity: 0.6;
  cursor: pointer;
  border-radius: 5px;
  transition: opacity 0.3s, transform 0.3s;
}

.slider-thumbnails img.active {
  opacity: 1;
  transform: scale(1.05);
  border: 2px solid #3498db;
} */

.slider-thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow: hidden;  /* 스크롤 완전 제거 */
  padding: 5px 0;
  max-height: 90px;
}

.slider-thumbnails img {
  flex: 1 1 0;  /* 남는 공간을 균등하게 나눔 */
  height: 80px;  /* 높이는 고정 */
  object-fit: contain;  /* 비율 무시하고 공간 채움 */
  background-color: #eee;
  display: block;
  border-radius: 5px;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
  border: 1px solid #ccc;
  max-width: 140px; /* 너무 커지는 것 방지 */
}

.slider-thumbnails img.active {
  opacity: 1;
  transform: scale(1.05);
  border: 2px solid #3498db;
}



.fade-out {
  animation: fadeOut 0.3s ease-in-out;
}

.slider-main.fade-out {
  opacity: 0;
}

footer {
  border-top: 1px solid #dddddd;
  background-color: #002147; /* 진한 남색 */
  color: white;
  padding: 10px 20px;
  margin-top: 20px;
  font-family: 'Arial', sans-serif;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  margin: 0;
  line-height: 1.6;
}

.footer-line1 a {
  color: white;
  text-decoration: none;
}

.footer-line1 a:hover {
  text-decoration: underline;
}

.footer-line2 {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  white-space: normal;   /* 줄바꿈 허용 */
  overflow: visible;
  text-overflow: unset;
}




@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0.2; }
}

@keyframes fadeMain {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

/* 반응형 */
@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }

  nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    justify-content: flex-start;
  }

  nav a {
    display: inline-block;
    flex-shrink: 0;
    margin: 0 1rem;
  }

  .slider-thumbnails img {
    width: 60px;
    height: 45px;
  }

  .button-row {
    flex-direction: column;
  }

  .footer-line2 {
    font-size: clamp(0.8rem, 2.3vw, 1rem);
  }
}
