body {
    font-family: 'Vollkorn', serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

header {
    min-height: 100vh; /* Full height of the viewport */
    width: 100vw; /* Full width of the viewport */
}

.header-elements {
    width: 100vw; /* Full width of the viewport */
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    text-align: center;
}

.flag {
    right: 10px;
    position: absolute;
    padding: 10px;
}
#flag {
    width: 30px;
}

.info h1, .info p {
    margin: 0; /* Remove default margins */
}

header p {
    font-size: 1.5em; /* Increase size of the date */
    font-weight: 700;
    color: black;
    margin: 0; /* Remove default margins */
}

.info h1 {
    max-width: 25rem; /* Limit width of the names */
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

#newlywed {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 900px;
    margin:auto;
}

.newlywed-text {
    width: 450px;
    padding: 50px;
    box-sizing: border-box;
}

.newlywed-text p {
    margin-bottom: 30px;
}

#portrait {
    width: 430px; /* Fixed width */
    border: 10px solid #ffffff; /* White frame around the image */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Shadow for depth */
    border-radius: 10px; /* Rounded corners for the frame */
    object-fit: cover; /* Ensures the image covers the set area without distortion */
    margin: 20px 0; /* Adds some space above and below the image */
}

#olivier {
    height: 500px; 
}

section {
    padding: 20px;
    margin: 20px 5%;
    text-align: center;
}

h2 {
    padding-bottom: 10px;
}

p {
}

.timeline {
    margin-top: 50px;
    position: relative;
}


.timeline .main-line {
    opacity: 1;
    height: 100%;
    background: #deebf5;
    left: 50%;
    margin-left: 0;
    position: absolute;
    right: 50%;
    top: 0;
    height: 100%;
    width: 1px;
}

.timeline-item:nth-of-type(2n+1) {
    text-align: left;
}

.timeline-item:nth-of-type(2n+1) .timeline-img {
    text-align: right;
}

.timeline-item:nth-of-type(2n+1) .timeline-text p.text {
    padding-right: 19%;
}

.timeline-item:nth-of-type(2n) {
    text-align: right;
}

.timeline-item:nth-of-type(2n) {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap
}

.timeline-item:nth-of-type(2n) .timeline-img {
    text-align: left;
}

.timeline-item:nth-of-type(2n) .timeline-text p.text {
    padding-left: 19%
}

.timeline-item {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    position: relative;
    padding-bottom: 75px;
    overflow: hidden
}

.timeline-img, .timeline-text {
    float: left;
    margin: 0;
    width: 50%;
    box-sizing: border-box;
    padding: 0 60px
}
.timeline-img img {
    width: 130px;
}

.timeline-text h3 {
    margin-top: 0;
    margin-bottom: 2px;
    padding: 0
}

.timeline-text p {
    margin-top: 0;
    padding: 0
}

.circle {
    background: #eaf1f4;
    border: 3px solid #eaf1f4;
    border-radius: 50%;
    content: "";
    height: 17px;
    left: 50%;
    margin: 0 0 0 -11px;
    position: absolute;
    top: 0;
    width: 17px;
    box-sizing: content-box;
}

.venue-list { 
    display: flex; /* Align items side by side */
    align-items: center; /* Center items vertically */
    justify-content: space-around; /* Even space around items */
    max-width: fit-content;
    margin:auto;
}

.venue-list h3, .venue-list p {
    margin: 0;
    padding: 0;
}

.venue-img {
    width: 300px; /* Fixed width */
    border: 10px solid #ffffff; /* White frame around the image */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Shadow for depth */
    border-radius: 10px; /* Rounded corners for the frame */
    object-fit: cover; /* Ensures the image covers the set area without distortion */
    margin: 20px 0; /* Adds some space above and below the image */
}

#accomodation li {
    text-align: left;
}

/* Medium devices (portrait tablets and large phones, 600px to 900px) */
@media only screen and (min-width: 751px) and (max-width: 900px) {
    #portrait {
        width: 330px; /* Adjust image width for small screens */
    }
    #olivier {
        height: 400px; 
    }
    .info h1 {
        font-size: 3rem;
    }
}
/* Responsive layout for smaller screens */
@media screen and (max-width: 750px) {
    header, section {
        margin: 20px 10px;
        height: auto; /* Adjust height for small screens */
        min-height: auto;
    }
    header {
        flex-direction: column; /* Stack items on small screens */
        text-align: center;
    }
    .info h1 {
        font-size: 3rem;
    }

    #olivier {
        width: 330px; /* Adjust image width for small screens */
    }

    #portrait {
        width: 330px; /* Adjust image width for small screens */
    }

    .info {
        margin-bottom: 20px; /* Add space between text and image on small screens */
    }
}