:root {
    --dark-color: #4a4a4a;
    --light-color: #ffffff;
    --primary-color: #cad09d;
    --secondary-color: #f6f7f4;
    --accent-color: #ddcfc0;
    --lilac: #b79ec8;
    --dark-green: #69622c;
    --spring-green: #e4e9bb; 
    --blueish-purple: #a6a7cd;
    --light-cream: #f6f2e9;
    --light-green: #e4e9bb;
    --lighter-version-lilac: #cebbe2;
}

@font-face {
    font-family: 'ED Lavonia';
    src: url('./fonts/EDLavonia-Regular.woff2') format('woff2'), url('./fonts/EDLavonia-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bright Sunshine';
    src: url('./fonts/Bright Sunshine Demo.woff2') format('woff2'), url('./fonts/Bright Sunshine Demo.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'The Seasons';
    src: url('./fonts/Fontspring-DEMO-theseasons-reg.woff2') format('woff2'), url('./fonts/Fontspring-DEMO-theseasons-reg.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cormorant', serif;
    font-size: 1.05em;
}

body {
    background-color: var(--light-cream);
    color: var(--dark-green);
    line-height: 1.6;
    font-size: 100%;
}

.container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: var(--light-cream);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img{
  height: 100%;
  max-height: 50px;
  height: auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
    text-align: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

nav ul li a.active {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--primary-color);
}

main {
    margin-top: 72px;
    min-height: calc(100vh - 160px);
}

.hero {
    background-image: url('./assets/hero.gif');
    background-size: cover;
    background-position: 50% 42%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-color);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-content > h1:nth-child(1) {
  margin-bottom: 0px;
  margin-top: 100%;
}

.hero h1 {
    font-size: 60px;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 0px;
    font-family: 'ED Lavonia', serif;
    color: var(--light-cream);
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
}

.date {
    font-size: 32px;
    letter-spacing: 2px;
    margin: 6px;
}

.btn {
    display: inline-block;
    color: var(--light-color);
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-color);
}

section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    color: var(--spring-color);
    font-size: 30px;
    font-family: "Cormorant";
    letter-spacing: 3px;
}

.story-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.story-text {
    flex: 1;
    min-width: 300px;
}

.story-text p {
    padding: 5px;
}

.story-text h1 {
    padding-top: 0px;
    padding-bottom: 5px;
    text-align: center;
    font-size: 23px;
    font-family: "Cormorant", serif;
    letter-spacing: 2px;
}

.story-btn {
    text-align: center;
    margin: 12px;
}

.story-image {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background-image: url('/api/placeholder/600/400');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 3px;
    background-color: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    position: relative;
}

.timeline-content {
    width: 45%;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.timeline-content img {
    width: 100%

}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-date {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.venue-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.venue-card {
    width: 300px;
    background-color: var(--light-color);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.venue-info {
    padding: 16px 0px
}

.venue-image img {
    width: 90%;
    max-height: 400px;   
    max-width: 600px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.venue-details {
    padding: 0px 0px;
}
.venue-details a{
    color: inherit;
}
.venue-details p{
    text-align: center;
}
.venue-description {
     padding: 4px 0px
}

.venue-title h3{
    color: var(--dark-green);
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 0px;
    font-family: 'ED Lavonia', serif;
    font-weight: 300;
    font-size: 38px;
}

.qa-text {
    min-width: 300px;
    padding: 5px 0px;
}

.qa-text p {
    padding: 5px;
}
li {
    text-align: center;
}
.center{
    text-align: center;
}

.qa-text ul {
    padding: 10px;
    list-style-type: none;
}

.qa-text li{
    padding: 2px;
}

.qa-text a {
    color: inherit;
}

.registry-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.registry-item {
    width: 200px;
    text-align: center;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.registry-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-template-rows: auto;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.gallery-item {
    aspect-ratio: 2 /3;
    background-color: var(--accent-color);
    background-size: cover;
    background-position: center;
    border-radius: 0px;
    cursor: pointer;
    /*transition: transform .2s;*/
    overflow: hidden;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 4px
}

.gallery-item:hover {
    /*transform: scale(1.3);*/
}

form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

textarea {
    height: 150px;
    resize: vertical;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-option input {
    width: auto;
    margin-right: 5px;
}

footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    text-align: center;
    padding: 13px;
    margin-top: 40px;
    font-size:15px
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: var(--light-color);
    font-size: 24px;
    margin: 0 10px;
    text-decoration: none;
}

#travellodging {
    font-family: "Cormorant"
}

/* Pages CSS */
#home, #our-story, #event-details, #registry, #gallery, #rsvp {
    display: none;
}

#our-story section h2 {
    font-family: "Cormorant";
}

.page-active {
    display: block !important;
}

.flowerborder {
            display: block;
            margin-left: auto;
            margin-right: auto;
            padding-bottom: 0%;
            padding-top: 0%;
            width: 70%;
    }

/* Media Queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 50px;
    }
    
    .hero p {
        font-size: 18px;
    }
    .date {
        font-size: 24px;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--light-color);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 20px;
        z-index: 100;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .timeline::before {
        left: 29px;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-content {
        width: 95%;
        margin-left: 45px !important;
    }
    
    .timeline-item::before {
        left: 30px;
    }
    
    .story-content {
        flex-direction: column;
    }
    
    .story-text, .story-image {
        width: 100%;
    }
    .hero {
        height: 400px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 16px;
    }
    
    section {
        padding: 0px 0px;
    }
    
    section h2 {
        font-size: 27px;
    }
    #front-page-event-button {
        align-content: center;
    }
}

/* Small phones */
@media (max-width: 480px) {
    * {
        font-size: 100%;
    }
    .hero h1 {
        font-size: 40px;
    }
    
    .date {
        font-size: 20px;
    }
    
    .hero {
        height: 350px;
    }
    
    .container {
        width: 98%;
        padding: 8px 10px;
    }
    
    .venue-card {
        width: 100%;
    }
    
    .registry-items {
        flex-direction: column;
        align-items: center;
    }
    
    .registry-item {
        width: 90%;
        margin-bottom: 20px;
    }
    
    form {
        padding: 20px 15px;
    }
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .timeline-content {
        width: 85%;
        margin-left: 45px !important;
    }
    .flowerborder {
        display: block;
        max-height: 200px;
        margin-left: auto;
        margin-right: auto;
        width: 90%
    }
    
}

/* Script to handle page navigation */
script {
    display: none;
}

