:root {
    --primary-color: #72ACC6; /* Define your primary color */
    --secondary-color: #FFE0B2; /* Define your secondary color */
    --text-color: #333; /* Define your text color */
}

.overlay {
    position: fixed; /* Fixed position to cover the entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent white */
    z-index: -1; /* Ensure the overlay is behind the content */
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #FFFFFF; /* White */
    color: #333;
    text-align: center;
    padding: 50px;
    margin: 0;
    background-image: url('background_skye.png');
    background-size: auto; /* This ensures the image covers the entire background */
    background-position: center; /* This centers the image */
    background-repeat: no-repeat; /* This prevents the image from repeating */
    background-attachment: fixed; /* This makes the background fixed during scrolling */
}

h1 {
    font-family: 'Corinthia', cursive;
    color: var(--primary-color);
    font-size: 90px;
}

.wedding-date {
    font-style: italic;
    margin: 20px 0;
}

.invitation-text {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.highlight {
    color: var(--primary-color);
    font-weight: bold;
}

.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
    width: 80%;
}
.timeline-event {
    display: flex;
    width: 100%;
    margin-bottom: 20px;
}

.timeline-time {
    background-color: var(--primary-color);
    color: #333;
    padding: 10px;
    border-radius: 5px;
    width: 120px;
}

.timeline-detail {
    background-color: #FFF;
    padding: 10px;
    border-radius: 5px;
    margin-left: 20px;
    text-align: left;
    flex: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#header, #invitation-text, #program-of-the-day {
    position: relative; /* Ensure content is positioned relative to allow scrolling */
    z-index: 1; /* Ensure content is above the overlay */
    padding: 20px;
    margin: 0 auto;
    max-width: 800px;
}

/* Media query for mobile devices */
@media only screen and (max-width: 768px) {
    body {
        background-size: contain;
    }

    .overlay {
        background-color: rgba(255, 255, 255, 0.8);
    }

    #header, #invitation-text, #program-of-the-day {
        position: relative; /* Ensure content is positioned relative to allow scrolling */
        z-index: 1; /* Ensure content is above the overlay */
        padding: 10px;
        margin: 0 auto;
    }

    .timeline-event {
        flex-direction: column; /* Stack elements vertically */
    }

    .timeline-time {
        width: auto; /* Allow the time to take full width */
        margin-bottom: 10px; /* Add some space below the time */
        margin-left: 0; /* Remove any left margin */
    }

    .timeline-detail {
        margin-left: 0; /* Remove left margin for full width */
    }
}
