html, body { padding:0; height: 100%; margin: 0; overflow: hidden;   -webkit-text-size-adjust: 100%;}
body { background: #ffffff; color: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 100lvh; }
#page-content {
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

#page-content.revealed {
    opacity: 1;
}
.scroll-area {
  position: fixed;
  inset: 0;
  z-index: 5000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 90lvh; 
}

#svg-container { width: 100vw; box-sizing: border-box; -webkit-overflow-scrolling: touch; }
/* Allow the SVG to be naturally sized so container scrollbars appear when needed */
#svg-container svg { display: block; max-width: none; width: auto; height: auto; 
padding-top: 12rem;}
#svg-container svg path { visibility: visible; opacity: 1; transition: none; }
@font-face {
    font-family: 'JunicodeCondensed';
    src: url('assets/junicode-regularcondensed-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Eulyoo1945';
    src: url('assets/Eulyoo1945-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Eulyoo1945';
    src: url('assets/Eulyoo1945-SemiBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
body, button, input, select, textarea {
    font-family: 'JunicodeCondensed', serif; 
}

h1{ 
    color: #FFF;
    font-size: 2rem;
    font-style: normal;
    font-weight: 400;
    line-height: 2rem; /* 84.084% */
    margin: 0 2rem;

}

h2 { 
color: #FFF;
text-align: center;
font-size: 1.3rem;
font-style: normal;
font-weight: 400;
width: 40rem;
line-height: 110%; /* 1.71875rem */
margin: 0 2rem;
font-family: 'Eulyoo1945';
}
h2.kr{
    font-size: 1rem;
}
a:link, a:visited {
    color: #000;
}
h3 {
    font-size: 1.5625rem;
    font-style: normal;
    font-weight: 400;
    max-width: 40rem;
    line-height: 110%;
    margin: 0 auto;
    margin-bottom: 2rem;
    
}
h4 {
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}
h5{
    margin: .5rem;
    max-width: 32ch;
}
header{
    text-align: center;
    position: fixed;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    box-sizing: border-box;
    pointer-events: none;
}

header { 
    z-index: 5000;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
 header.revealed {
    opacity: 1;
}

/* Equal width items across the header row */
header > * {
    flex: 1 1 0;
    pointer-events: auto;
}

header h1 { text-align: left; }
header h2:last-of-type { text-align: right; }

.kr {
font-family: 'Eulyoo1945';
}
.border{
    border-bottom: 0.5px solid black;
    margin-top: 16rem;
    margin-bottom: 2rem;
}
.sapce-20{
        padding-top: 12rem;
}

/* Fullscreen canvas for cursor traces */
#cursor-trail-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    pointer-events: none; /* don't block clicks */
    z-index: 10000;
}

button{
    font-family: 'Eulyoo1945';
    border: none;
    background: none;
    display: block;
    font-size: 0.83em;
    margin-block-start: 1.67em;
    margin-block-end: 1.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: normal;
    unicode-bidi: isolate;
    color:#000
}
.plain-btn h5{
    font-weight: normal;
}

.plain-btn {
    font-family: inherit;
    font-weight: normal;
    cursor: pointer;
    font-size: 1rem;
    outline: 0.5px solid black;
    color:#000;
    background-color: white;
    border: none;
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    letter-spacing: 0.6px;
    width: 30rem;
    line-height: 1rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
    max-width: 60vw;
    aspect-ratio: 1 / 1;
    border-radius: 999px;
}


.plain-btn:hover::before {
    content: '♥ ';
    padding-left: 0.5rem;
}

.plain-btn:hover::after {
    content: ' ♥';
     padding-right: 0.5rem;
}


.controls {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0;
    align-items: center;
    z-index: 15;
    bottom: 0;
}

/* show overlay when aria-hidden is false (controlled by JS) */
#rsvp-overlay[aria-hidden="false"] {
    display: flex;
}

#rsvp-modal-wrapper {
    position: relative;
    max-width: 640px;
    width: 100%;
}

#rsvp-modal {
    background: #fff;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.2);
    max-width: 640px;
    width: 100%;
    box-sizing: border-box;
    max-height: calc(100lvh - 2rem);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    z-index: 999999;
}

#rsvp-modal iframe {
    border: none;
    width: 100%;
    height: calc(70dvh - 4rem);
    max-width: 640px;
    max-height: 787px;
    display: block;
}


#close-overlay img {
    width: 16px;
    height: 16px;
    display: block;
    filter: brightness(0) invert(1);
}


#travel-overlay,#rsvp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 10000;
}

#travel-overlay[aria-hidden="false"] {
    display: flex;
}

#travel-modal-wrapper {
    position: relative;
    max-width: 700px;
    width: 100%;
}

#travel-modal {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.2);
    max-width: 700px;
    width: 100%;
    box-sizing: border-box;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    color: #323525;
}


#close-travel-overlay, #close-rsvp-overlay {
    position: absolute;
    top: 0rem;
    right: -3rem;
    background: black;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
    border-radius: 50%;
}

#close-travel-overlay img, #close-rsvp-overlay img {
    width: 16px;
    height: 16px;
    display: block;
    filter: brightness(0) invert(1);
}

/* Program Overlay Styles */
#program-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 10000;
}

#program-overlay[aria-hidden="false"] {
    display: flex;
}

#program-modal {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.2);
    position: relative;
    max-width: 700px;
    width: 100%;
    box-sizing: border-box;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    overflow-x: visible;
    color: #323525;
}

#program-modal h2 {
    color: #323525;
    margin: 0 0 1.5rem 0;
    font-size: 2rem;
    text-align: center;
    width: auto;
}

#close-program-overlay {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background: black;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 50%;
}

#close-program-overlay img {
    width: 16px;
    height: 16px;
    display: block;
    filter: brightness(0) invert(1);
}

.program-content {
    color: #323525;
    line-height: 1.6;
}

.program-content p {
    margin: 0.5rem 0;
}

/* Accordion Styles */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.accordion-item {
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1rem 1.25rem;
    background: white;
    border-bottom: 0.5px solid black;
    cursor: pointer;
    display: flex;
    font-family: 'Eulyoo1945';
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.2s;
    text-align: left;
    height: auto;
    width: 100%;
    margin: 0rem;
}

.accordion-header:hover {
    background: #e8e8e8;
}

.accordion-header.active {
    background: #fafafa;
   color: black;
}

.accordion-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
    font-weight: 300;
}

.accordion-header.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-family: "Eulyoo1945 Sans";
  font-optical-sizing: auto;
  font-style: normal;
}

.accordion-content.active {
    max-height: 500px;
}

.accordion-content p {
    padding: 1rem 1.25rem;
    margin: 0;
    line-height: 1.6;
    color: #323525;
    background: #fafafa;
    font-size: 0.8rem;
}

/* Images above SVG row */
.svg-img-row {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin-bottom: 0;
  width: 100%;
  touch-action: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  z-index: 1;
}

.svg-top-img {
    flex: 1;
    width: 50%;
    height: 100dvh;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

/* Block element styles */
.block {
    padding: 4rem 2rem;
    text-align: center;
    background: #ffffff;
    display: block;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5001;
    margin: 0 1.25rem 1.25rem 1.25rem;
    color: #000;
}

.block * {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.accordion-container *{
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}
#page-content.revealed{
    animation: slideUp .8s ease-in-out forwards;
}

@keyframes slideUp {
  from {
    margin-top: 20dvh;
  }
  to {
    margin-top: 0dvh;
  }
}
.splash-svg{
    margin-left: 20%;
}
.map {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 2rem auto;
    border-bottom: .5px solid black;
}
.googlemaps{
    padding-bottom: 10rem;
}

.section .section_address .lst{visibility: hidden!important;}
.root_daum_roughmap .cont{visibility: hidden!important;}

.grid{
    padding: 1.8rem 0;
}

.block p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.4;
}
.caption{    padding-bottom: 2rem;}
.caption.kr p{
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.8rem;
    line-height: 1.6;
}
.caption p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.9rem;
    line-height: 1.6;
}
   #svg-splash{
     position: fixed;
        top: 0;
        left: 0%;
        width: 100%;
        height: 100dvh;
        background: rgba(89, 95, 52, 100);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 4999;
       transition: transform 1s ease, background-color 0.2s ease;


   }

   .svg-img-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.3));
    pointer-events: none;
   }
@media (max-width: 768px) {
  header {
    flex-direction: column;
    top:80%;
  }
  header{
      text-shadow: none;
      transition: text-shadow 1s ease;
  }
   header.revealed {
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}
h1{
    font-size: 1.5rem;
} 
h2{
    font-size: 1rem;
}
.kr{font-size: 1rem;}

  header h2:last-of-type{
   text-align: center;
   font-size: 1rem;
}

   .controls{
    width: 100%;
   }
   #splash-svg {
    margin-top: -50dvh;
   }
   #svg-splash{
    height: 100dvh;
    padding-top: 20dvh;
   }
   #close-travel-overlay, #close-rsvp-overlay {
    left: 50%;
    top: -3.5rem;
    right: auto;
    transform: translateX(-50%);
   }

}