body,
html {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    scroll-behavior: smooth;
}

.mea-culpa-regular {
    font-family: "Mea Culpa", cursive;
    font-weight: 400;
    font-style: normal;
}

:root {
    --oxford-blue: #00162dff;
    --prussian-blue: #1c3144ff;
    --blue-munsell: #55828bff;
    --celadon: #b8d8baff;
    --beige: #d9dbbcff;
    --light-orange: #fcddbcff;
    --old-rose: #cc8b86ff;
}

.video-header {
    width: 100%;
    overflow: hidden;
    position: relative;
    min-height: 100vh;
    /* Make header full screen height */
    display: flex;
    flex-direction: column;
}

.header-container {
    display: flex;
    width: 100%;
    /* The height will be determined by the background-overlay content */
}

.background-overlay {
    width: 60%;
    flex-shrink: 0;
    /* Prevent the container from shrinking */
}

.background-overlay img {
    width: 100%;
    height: auto;
    display: block;
}

.background-coy {
    background-image: url('bg/coy-1.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.header-content {
    flex: 1;
    position: relative;
    /* Needed for absolute positioning of children */
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-bottom-filler {
    min-height: 300px;
    flex-grow: 1;
    /* This div will take up the remaining vertical space */
    background-color: #00162d;
    /* Example color */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Needed for absolute positioning of the icon */
    border-top: 1px solid #fed28c;
    border-bottom: 1px solid #fed28c;
}

#myVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
}

#header-quote {
    color: #fed28c;
    text-align: center;
    max-width: 80%;
    /* Ensure the quote doesn't get too wide */
    opacity: 0;
    animation: fade-in 0.8s ease-in 1s forwards;
    /* The animation will still work */
}

#scroll-down-icon {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 3s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -30px);
    }

    60% {
        transform: translate(-50%, -15px);
    }
}

#anchor-logo,
#wreath-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
}

#anchor-logo img {
    width: 103px;

    .header-content {
        flex: 1;
        position: relative;
        /* Needed for absolute positioning of children */
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

#wreath-logo img {
    position: relative;
    top: 29px;
    left: -73px;
    width: 251px;
}

#anchor-logo {
    animation: drop-in 0.6s ease-in-out forwards;
}

#wreath-logo {
    opacity: 0;
    animation: fade-in 0.6s ease-in 0.8s forwards;
    /* Starts after drop-in finishes */
}

@keyframes drop-in {
    from {
        top: -50%;
        transform: translate(-50%, -50%);
    }

    to {
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.parallax {
    height: 100vh;
    /* Adjusted height */
    position: relative;
    z-index: 10;
    /* Ensure the container is above other content */
    top: 140px;
    overflow-x: hidden;
}

.parallax-box {
    width: 300px;
    height: 400px;
    background: #fff;
    border: 1px solid #ccc;
    position: absolute;
    left: 50%;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    z-index: 10;
    /* Ensure cards are on top */
    /* The combined transform and box-shadow will be set by JS */
}

.parallax-box img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.parallax-filler {
    height: 600px;
    /* Adjust as needed */
}

#box1 {
    /* Starts centered and then moved off-screen left */
    transform: translate(-50%, -50%) translateX(-100vw);
}

#box2 {
    /* Starts centered and then moved off-screen right */
    transform: translate(-50%, -50%) translateX(100vw);
}

.content-wrapper {
    padding: 40px 20px;
    background-color: #f9f9f9;
    line-height: 1.6;
    min-height: 100vh;
}

.content-section {
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 20px;
    /* background-color: #fff;
    border-radius: 8px; */
    /* box-shadow: 0 4px 8px rgba(0,0,0,0.1); */
}

.content-section h2 {
    font-size: 2.5em;
    color: #00162d;
    margin-bottom: 20px;
    text-align: center;
}

.content-section h3 {
    font-size: 1.8em;
    color: #555;
    margin-top: 30px;
}

.content-section p,
.content-section ul {
    font-size: 1.1em;
    color: #666;
}

.content-section ul {
    list-style-position: inside;
    padding-left: 20px;
}

.content-section blockquote {
    font-style: italic;
    color: #777;
    border-left: 4px solid #ddd;
    padding-left: 20px;
    margin: 20px 0;
}

footer {
    background: #00162d;
    color: #fed28c;
    text-align: center;
    padding: 20px;
}

.social-media a {
    color: #fed28c;
    margin: 0 10px;
    text-decoration: none;
}

.content-wrapper.parallax-position {
    position: relative;
    z-index: 1000;
    /* Ensure this wrapper and its children paint above later sections */
}

@media screen and (max-width: 767px) {
    #anchor-logo img {
        width: 51.5px;

        .header-content {
            flex: 1;
            position: relative;
            /* Needed for absolute positioning of children */
            display: flex;
            justify-content: center;
            align-items: center;
        }
    }

    #wreath-logo img {
        position: relative;
        top: 14.5px;
        left: -36.5px;
        width: 125.5px;
    }

    #anchor-logo,
    #wreath-logo {
        left: 90%;
    }
}