* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
}

html {
    min-height: 100%;
}

body {
    font-family: Arial, sans-serif;
    overflow: hidden;
    background: linear-gradient(180deg,rgba(190, 171, 156, 0.3) 0%, rgba(227, 211, 196, 0.3) 50%, rgba(231, 209, 186, 0.3) 100%);
    background-color: #faf2df;
    display: flex;
    justify-content: center;
}

.container {
    width: min(100%, 720px);
    height: 100vh;
    scroll-behavior: smooth;
    overflow: hidden;
    scroll-snap-type:y mandatory;
    margin: 0 auto;
    -ms-overflow-style: none;
    scrollbar-width: auto;
    scrollbar-color: rgba(114,47,55,0.35) transparent;
}

.container::-webkit-scrollbar {
    width: 10px;
}

.container::-webkit-scrollbar-track {
    background: transparent;
}

.container::-webkit-scrollbar-thumb {
    background: rgba(114, 47, 55, 0.28);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.4);
}

.container::-webkit-scrollbar-thumb:hover {
    background: rgba(114, 47, 55, 0.45);
}

.container::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

section {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.section-1 {
    cursor: pointer;
    position: relative;
}

.section-1 video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    z-index: 1;
}

.tap-to-open {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #624621;
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    z-index: 2;
    text-align: center;
}

.section-2 {
    position: relative;
    overflow: hidden;
    background: url('../img/background.png') center/cover no-repeat;
    color: #333;
}

.section-2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    z-index: 2;
    opacity: 1;
    pointer-events: none;
    transition: opacity 1s ease;
}

.section-2.revealed::before {
    opacity: 0;
}

.section-2 .content{
    margin-top: 150px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 1s ease 0.15s, transform 1s ease 0.15s;
}

.section-2.revealed .content {
    opacity: 1;
    transform: translateY(0);
}

.section-3 {
    color: #6b3f4a;
}

.section-4 iframe,
.section-4 a {
    pointer-events: none;
}
.section-4.active iframe,
.section-4.active a {
    pointer-events: auto;
}

.countdown-content {
    max-width: 720px;
    width: 100%;
}

.countdown-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-style: italic;
    color: #7d4a53;
    margin-bottom: 0.8rem;
}

.countdown-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    letter-spacing: 0.12em;
    margin-bottom: 1.75rem;
    color: #7d4a53;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(80px, 1fr));
    gap: 16px;
    margin: 0 auto 1rem;
    width: min(100%, 720px);
}

.countdown-card {
    background: linear-gradient(180deg, #f7efe4 0%, #efe0d2 100%);
    border: 1px solid rgba(125, 74, 83, 0.16);
    border-radius: 24px;
    padding: 26px 18px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 12px 24px rgba(112, 72, 82, 0.08);
}

.countdown-value {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #5c2f3f;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 0.5rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #7d4a53;
}

.countdown-note {
    font-size: 0.95rem;
    color: #55313d;
    opacity: 0.8;
    margin-top: 1rem;
}

.content {
    text-align: center;
    padding: 20px;
}

h1 {
    font-size: 2rem;
}

p {
    font-size: 1.2rem;
}

.name {
    font-family: 'Cinzel Decorative', serif;
    font-style: italic;
    color: rgb(114, 47, 55);
    line-height: 30px;
}

.invite {
    font-family: 'Dancing Script', cursive;
    color: white;
    font-size: 1.2rem;
    margin: 2rem 0;
    padding: 0 40px;
    text-transform: uppercase;
    word-spacing: 12px;
}

.date {
    font-family: 'Cinzel Decorative', serif;
    color: rgb(114, 47, 55);
    margin-top: 1rem;
}

.venue {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 720px;
    padding: 20px;
    border-radius: 24px;
}

.section-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: rgb(114, 47, 55);
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-style: italic;
}

.venue-subtitle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    color: rgb(114, 47, 55);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 500;
}

.venue-subtitle svg {
    width: 30px;
    height: 30px;
    color: rgb(114, 47, 55);
    flex-shrink: 0;
}

.venue-address {
    color: #333;
    font-size: 1rem;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
    text-align: center;
    max-width: 560px;
}

.map-frame {
    width: 100%;
    height: 150px;
    border: none;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.venue-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border: 1px solid rgba(114, 47, 55, 0.18);
    border-radius: 999px;
    background: rgba(255,255,255,0.96);
    color: rgb(114, 47, 55);
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
    margin-top: 20px;
}

.venue-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    background: white;
}

.venue-button-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.venue-button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.venue-button-text strong {
    font-size: 0.95rem;
    letter-spacing: 0.14em;
}

.venue-button-text span {
    font-size: 0.78rem;
    color: rgba(114, 47, 55, 0.75);
    text-transform: none;
    letter-spacing: 0.06em;
}

.venue-image,
.section-image {
    width: 100%;
    max-width: 520px;
    height: auto;
    margin-bottom: 20px;
    object-fit: cover;
}

.event-list {
    display: grid;
    gap: 18px;
    width: 100%;
    max-width: 560px;
    margin-top: 10px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
    color: rgb(34, 34, 34);
}

.event-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: rgba(114, 47, 55, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgb(114, 47, 55);
    flex-shrink: 0;
}

.event-content {
    text-align: left;
}

.event-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: rgb(114, 47, 55);
}

.event-time {
    font-size: 0.92rem;
    color: rgba(34, 34, 34, 0.72);
}

.music-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #624621;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 10;
    opacity: 0.6;
}

.music-toggle:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
}

.music-toggle.paused {
    color: #b35e3e;
}

@media (min-width: 1024px) {
    .container {
        width: 390px;
        height: 844px;
        max-height: 92vh;

        border-radius: 15px;
        overflow-y: scroll;

        box-shadow: 0 20px 60px rgba(0,0,0,0.18);

        transform: scale(0.82);
        transform-origin: center center;
    }

    section {
        height: 844px;
    }

    .countdown-value {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }

    .tap-to-open {
        bottom: 10%;
    }
}