@font-face {
    font-family: 'AA PENNY';
    src: url('/fonts/AA PENNY.woff2') format('woff2'),
         url('/fonts/AA PENNY.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Futura Display';
    src: url('/fonts/FuturaDisplay.woff2') format('woff2'),
         url('/fonts/FuturaDisplay.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --about-bg: #ffe6e6;
    --details-bg: #f9f9f9;
    --rsvp-bg: #e6f7ff;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, .navbar, .bubble-button {
    font-family: 'AA PENNY', sans-serif;
    letter-spacing: 0.2px;
    }

h3 {
    font-size: 1.8rem; /* Between h2 and body */
}

p {
    font-family: 'Futura Display', 'AA PENNY', sans-serif;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    color: #555;
}

body {
    font-family: 'AA PENNY', sans-serif;
    font-size: 0.95rem;          /* Slightly smaller size reduces crowding */
    letter-spacing: 0.2px;       /* Tightens spacing for a cleaner look */
    line-height: 1.75;           /* Looser line spacing helps legibility */
    font-weight: 300; 
    display: block;
    flex-direction: column;
}

html {
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth !important;
}

/* FAQ Container */
.faq {
    background: linear-gradient(to bottom, rgba(229, 133, 90, 0.5), rgba(247, 217, 157, 0.7));
    color: #333;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* or just remove it */
    min-height: 100vh;
    scroll-snap-align: start;
    padding: 60px 20px;
    box-sizing: border-box;
}

.faq h2 {
    margin-top: 0;
}

.faq .container {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px 20px;
    box-sizing: border-box;
}

/* Answer Style */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, margin-bottom 0.4s ease;
    font-size: 0.95rem;
    padding: 0 20px; /* No vertical padding initially */
    border-left: 4px solid var(--accent-color);
    background-color: #fef5f0;
    border-radius: 0 0 8px 8px;
    font-family: 'AA PENNY', sans-serif;
    margin-bottom: 0;
}

/* When active */
.faq-question.active + .faq-answer {
    max-height: 200px; /* enough to show the answer */
    padding: 15px 20px;
    margin-bottom: 20px;
    background-color: #fce8da;
}

/* Expanded (active) */
.faq-answer.expanded {
    max-height: none; /* allow full content */
    padding: 15px 20px;
    margin-bottom: 20px;
}

/* Question Style */
.faq-question {
    background: #fef5f0;
    font-size: 1.15rem;
    border: 1px solid var(--faq-border);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    width: 100%;
    font-family: 'AA PENNY', sans-serif;
    color: inherit;
    }

/* Fix hover and active colors */
.faq-question:hover {
    background-color: #fce8da; /* Light peach to match theme */
    color: #000;
}

.hamburger {
    display: none;
}

/* Improve mobile layout */
@media (max-width: 768px) {
    .faq {
        padding: 40px 10px;
    }

    .faq h2 {
        font-size: 1.6rem;
        text-align: center;
    }

    .faq-question {
        font-size: 1rem;
        padding: 12px 16px;
    }

    .faq-answer {
        font-size: 0.95rem;
        padding: 0 16px; /* Initial state */
    }

    .faq-question.active + .faq-answer {
        padding: 15px 16px;
    }

    blockquote.imgur-embed-pub {
        max-width: 100%;
        overflow-x: auto;
    }

    iframe {
        width: 100% !important;
        height: auto !important;
    }

    .hamburger {
        position: relative;
        width: 24px;
        height: 18px;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        z-index: 1100;
        margin-left: 0.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Make lines inside the button */
    .hamburger .line {
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: black;
        border-radius: 2px;
        transition: all 0.3s ease;
    }  

    .hamburger .line:nth-child(1) {
        top: 0;
    }
    
    .hamburger .line:nth-child(2) {
    top: 7.5px;
    }
    
    .hamburger .line:nth-child(3) {
    top: 15px;
    }
      
    .hamburger.open .line:nth-child(1) {
    transform: rotate(45deg);
    top: 7.5px;
    }
    
    .hamburger.open .line:nth-child(2) {
    opacity: 0;
    }
    
    .hamburger.open .line:nth-child(3) {
    transform: rotate(-45deg);
    top: 7.5px;
    }
    
}