/* 기본 스타일 */
body {
    font-family: 'Noto Serif KR', serif;
    margin: 0;
    padding: 0;
    background-color: white; /* 단일 배경색 사용 */
    overflow-x: hidden; /* 화면을 벗어나는 요소 숨김 */
    position: relative;
  }
  
  header {
    position: relative;
    text-align: center;
    height: 100vh; /* 화면 전체 높이 */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  section {
    position: relative;
    padding: 4% 4%;
    top: 0;
  }
  
  .mainphoto {
    width: 100%;
    height: auto;
    object-fit: cover;
    position: absolute;
    top: 5px;
    left: 0;
    z-index: -1;
  }
  
  nav {
    background: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    right: 0;
  }
  
  .pingping {
    width: 100%;
    transform: scaleX(-1);
  }
  
  .menu-icon {
    width: 24px; /* 아이콘의 너비 */
    height: 24px; /* 아이콘의 높이 */
    margin-right: 10px; /* 아이콘과 메뉴 버튼 사이의 간격 */
  }
  
  /* 메뉴 버튼 스타일 */
  #menu-toggle {
    background: none;
    border: none;
    font-size: 15px;
    cursor: pointer;
    color: #141414;
    padding: 10px 15px;
    margin-left: auto;
  }
  
  /* 메뉴 전체 컨테이너 (모바일 스타일 - 오른쪽 슬라이드) */
  #menu-container {
    position: fixed;
    top: 0;
    right: -300px; /* 기본 숨김 상태 */
    width: 250px;
    height: 100vh;
    background: rgb(250 249 250 / 100%);
    transition: right 0.4s ease-in-out;
  }
  #menu-container.show {
    right: 0;
  }
  
  /* 메뉴 항목 스타일 */
  #menu {
    list-style: none;
    padding: 65px 20px;
    margin: 0;
    z-index: 1000;
  }
  #menu li {
    padding: 4% 0;
    text-align: CENTER;
  }
  #menu li a {
    color: rgb(18, 18, 18);
    text-decoration: none;
    font-size: 15px;
    display: block;
  }
  
  #bcontainer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    background: rgb(226, 226, 226);
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
  }
  
  #greeting {
    height: 400px;
    text-align: center;
    line-height: 1.8;
    background: transparent;
  }
  
  /* 볼드 텍스트 스타일 (원하는 경우) */
  .bold-text {
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 0.5rem;
  }
  .b2t-tex {
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.8;
  }
  /* 좌우 배치를 위한 flex 컨테이너 */
  .greeting-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 또는 center */
  }
  .greeting-left,
  .greeting-right {
    width: 48%;
    text-align: center;
  }
  
  #bride {
    margin-right: 0%;
    top: 0px;
  }
  #groom {
    margin-right: 0%;
    top: 0px;
  }
  #gallery {
    margin-right: 0%;
  }
  
  #groom p,
  #bride p {
    font-family: 'Nanum Myeongjo', serif;
    word-spacing: 0px;
    line-height: 1.6;
    font-size: 1.1rem;
  }
  
  /* 방명록 & 갤러리 간격 */
  #guestbook {
    margin-bottom: 0px;
    clear: both;
  }
  #gallery {
    margin-top: 0px;
    clear: both;
  }
  
  /* 오버레이 (메뉴가 열릴 때 클릭하면 닫히는 영역) */
  #overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgb(242 242 242 / 80%);
    z-index: 800;
  }
  
  /* 페이드인 애니메이션 */
  @keyframes fadeInClear {
    0% {
      opacity: 0;
      filter: blur(10px);
      transform: translateY(-20px); /* 약간 위에서 내려오는 효과 */
    }
    100% {
      opacity: 1;
      filter: blur(0px);
      transform: translateY(0);
    }
  }
  
  /* 텍스트 애니메이션 & 위치 */
  :root {
    --maintext-offset: 68%;  /* 초기 값: header 높이의 68% */
    --maintext2-offset: 72%;
    --maintext3-offset: 71%;
  }
  
  header {
    position: relative; /* 자식 요소들의 absolute 기준 */
    text-align: center;
    height: 100vh; /* 화면 전체 높이 */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* 필요한 경우 */
  }
  
  .maintext {
    color: rgb(0, 0, 0);
    font-size: 1.8rem;
    font-weight: 700;
    position: absolute;
    top: var(--maintext-offset);
    transform: translateX(-50%);
    z-index: 10;
    opacity: 1; /* 애니메이션 완료 후 1 */
    font-family: 'Nanum Myeongjo', serif;
    word-spacing: 10px;
    animation: fadeInClear 1s ease-out forwards;
    transition: top 1s ease-out;
    width: 100%;
  }
  .maintext2 {
    color: rgb(0, 0, 0);
    font-size: 1.3rem;
    font-weight: 200;
    position: absolute;
    top: var(--maintext2-offset);
    transform: translateX(-50%);
    z-index: 10;
    opacity: 1;

    animation: fadeInClear 1s ease-out forwards;
    line-height: 30px;
    font-family: 'Nanum Myeongjo', serif;
    letter-spacing: -0.5px;
    transition: top 1s ease-out;
  }
  .maintext3 {
    color: rgb(0, 0, 0);
    width: 100%;
    font-size: 1.0rem;
    font-weight: 100;
    position: absolute;
    top: var(--maintext3-offset);
    transform: translateX(-50%);
    z-index: 10;
    opacity: 1;
    filter: blur(0px);
    animation: fadeInClear 1s ease-out forwards;
    font-family: 'Nanum Myeongjo', serif;
    word-spacing: 0px;
    line-height: 1.8;
    transition: top 1s ease-out;
  }
  
  /* 음수 마진 (주의) */
  .margin {
    margin-bottom: -70px;
    margin-top: 0px;
  }
  
  /* 음수 마진 (주의) */
  section img.w250614 {
    top: -40PX !important;
    position: relative;
    margin-top: 0;
  }
   

  #countdown {
    position: absolute;
    top: 4%;
    transform: translateX(0%);
    font-size: 10pt;
    color: #001d98;
    font-weight: 100;
    text-align: center;
  }
  
  .naver {
    width: 100%;
    padding: 20px;
    margin: 3px 0;
    border-radius: 6px;
    border:none;
    background-color: #67816a; /* 파스텔톤 예시 */
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: inherit;
  }
  

  .image-one {
    border-radius: 10px;
    filter: grayscale(0%);
    top:0px;
  }


  /* 하트 애니메이션 */
  .heart {
    position: absolute;
    color: #072b9f;
    font-size: 10px;
    animation: fall linear 3s forwards;
  }
  @keyframes fall {
    0% {
      transform: translateY(0) scale(1);
      opacity: 1;
    }
    100% {
      transform: translateY(100vh) scale(0.5);
      opacity: 0;
    }
  }
  
  /* location 섹션 */
  #location {
    background: rgb(255, 255, 255);
    background-size: cover;
    border-radius: 0;
    top: -55px;
    height: auto;
    gap: 20px;
  }
  
  /* 방명록 (중복 스타일 통합) */
  #guestbook {
    margin-bottom: 50px; 
    clear: both;
    padding: 10px 20px 50px 20px; /* 필요시 조정 */
    border-radius: 8px;
    max-width: 400px;
    margin: 0 auto;
    font-family: 'Noto Serif KR', serif;
  }
  
  /* 전역 이미지 스타일 */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* 미디어 쿼리: (최대 1000px 이하) - 모바일 */
  @media (max-width: 1000px) {
    #menu-container {
      width: 50%;
    }
    header {
      padding: 0;
      margin: 0;
    }
    section {
      padding: 4% 4%;
    }
    #menu {
      padding: 70px 20px;
      margin: 0;
    }
    input,
    textarea {
      width: 95%;
      padding: 8px;
      font-size: 16px;
    }
    button {
      padding: 5px 10px;
    }
    img {
      top: -80px;
      margin-bottom: 5px;
      position: relative;
      z-index: 10;
    }
    .pingping {
      position: relative;
      width: 100%;
      max-width: 300px;
      padding: 0 10px;
      transform: scaleX(-1);
      top:60px;
    }

    #gallery {
      width: 100%;
      max-width: 100%;
      margin: auto;
  }
  
  /* 이미지 크기 조정 */
  .gallery-slider img {
      width: 100%;
      max-width: 100%;
      height: auto;
  }
  
  /* Slick의 네비게이션 버튼 스타일 */
  .slick-prev, .slick-next {
      background-color: rgba(0, 0, 0, 0.5);
      border-radius: 50%;
      color: white;
      font-size: 20px;
      width: 40px;
      height: 40px;
  }
  
  /* 하단 네비게이션 점 스타일 */
  .slick-dots li button {
      font-size: 5px;
      width: 10px;
      height: 10px;
      background-color: gray;
      border-radius: 50%;
  }
  }
  .slick-dots li
{
    position: relative;

    display: inline-block;

    width: 20px;
    height: 20px;
    margin: 0px !important;
    padding: 0;

    cursor: pointer;
}
  
  /* 미디어 쿼리: (1000px 이상) - 데스크탑에서도 모바일 디자인 그대로 */
  @media (min-width: 1000px) {
    /* 회색 배경은 body에 적용 */
    body {
      background-color: gray;
    }
    /* 데스크탑에서도 콘텐츠는 wrapper로 중앙 정렬 */
    .wrapper {
      max-width: 400px;
      margin: 0 auto;
      background-color: white;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      position: relative;
      z-index: 2;
    }
  
    #menu {
      list-style: none;
      padding: 65px 20px;
      margin: 0;
      z-index: 1000;
    }
    /* nav는 기본 고정 스타일 그대로 사용 (fixed) */
    nav {
      position: fixed;
      width: 100%;
      top: 0;
      right: 0;
      z-index: 1000;
    }
    /* 메뉴 토글 및 메뉴 컨테이너는 모바일과 동일하게 fixed, 오른쪽 슬라이드 */
    #menu-toggle {
      position: fixed;
      top: 0;
      right: 0;
      z-index: 1100;
    }
    #menu-container {
      position: fixed;
      top: 0;
      right: -300px;
      width: 250px;
      height: 100vh;
      background: rgb(250 249 250 / 100%);
      transition: right 0.4s ease-in-out;
      z-index: 1050;
    }
    #menu-container.show {
      right: 0;
    }
    /* 기타 이미지 스타일 (필요 시) */
    img {
      top: -10px;
      position: relative;
      z-index: 10;
    }
  
    #overlay {
      z-index: 1 !important;
    }
  }
  
  /* 아코디언 스타일 */
  .accordion-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-out;
    will-change: max-height;
    transform: translateZ(0);
  }
  .accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    padding: 4% 0%;
    cursor: pointer;
  }
  .accordion-title {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 16px;
  }
  .accordion-icon {
    font-size: 20px;
    font-weight: bold;
  }
  
  /* 방명록 상세 */
  #guestbook > h2 {
    text-align: center;
    margin-bottom: 20px;
  }
  #guest-name,
  #guest-message {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
  }
  #guest-message {
    resize: none; /* 텍스트 영역 크기 고정 */
    height: 80px; /* 원하는 높이 */
  }
  #guestbook button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background-color: #67816a; /* 파스텔톤 예시 */
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: inherit;
  }
  #guestbook button:hover {
    background-color: #67816a;
  }
  #guestbook-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  #guestbook-list li {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-all; /* 긴 단어 줄바꿈 */
  }
  .guest-message {
    margin-bottom: 10px;
  }
  .guest-meta {
    text-align: right;
    color: #777;
    font-size: 0.85rem;
    font-style: italic; /* 예시 */
  }
  
  #gallery {
    width: 90%;
    margin: auto;
}

/* 이미지 크기 조정 */
.gallery-slider img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Slick의 네비게이션 버튼 스타일 */
.slick-prev, .slick-next {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    width: 40px;
    height: 40px;
}

/* 하단 네비게이션 점 스타일 */
.slick-dots li button {
    font-size: 10px;
    width: 10px;
    height: 10px;
    background-color: gray;
    border-radius: 50%;
}