@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&display=swap');

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Merriweather', serif;
    color: #3E2723; /* Brown almost black */
    background-color: #FFF8E1; /* Creamy almost white */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 1.5em;
    font-weight: 200;
}

a, a:visited {
    color: #E64A19; /* Burnt Orange for links */
    text-decoration: dotted; /* Optional: Remove underline */
}

a:hover, a:visited:hover {
    color: #D84315; /* Darker Burnt Orange on hover */
    text-decoration:dotted ; /* Optional: Remove underline */
} 

img {
    max-width: 100%;
    height: auto;
    margin: 20px 0; /* Space above and below all images */
    border-radius: 3px;
}

.small {
    font-size: 0.8em;
    text-align: center;
    padding: 10px 0; /* Added padding for spacing */
}

.container {
    flex: 1; /* Allows the container to expand and push footer to bottom */
    width: 85%;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
}

.notice {
    background-color: #EBE2FF;
    color: #150027;
    font-size: 1em;
    line-height: 1.05em;
    font-weight: 300;
}

header {
    text-align: left;
    padding: 80px 0 20px 0;
}

.menu a, .menu a:visited {
    color: #000000; /* Black color for menu links */
    text-decoration: none !important;
    
}

.title {
    margin: 20px 0 0 0;
    padding: 0;
}

.title h1 {
    font-family: 'Merriweather', serif;
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.content {
    text-align: left;
    padding: 40px 0 0 0;
}

.content h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.2em;
    line-height: 1.4;
    margin-top: 2.2em;
    font-weight: 600;
}

.content h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.5em;
    margin-top: 2.0em;
    font-weight: 400;
}

.content p {
    font-family: 'Merriweather', serif;
    margin-bottom: 20px;
}

.cta {
    text-align: left;
    padding: 0 0 75px 0;
}

.cta #signature {
    font-family: 'Merriweather', serif;
    font-size: 1.6em;
    color: #939;
}

.cta button {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

/* Media Query for smaller screens */
@media (max-width: 700px) {
    body {
        font-size: 1.1em;       /* Reduces base font size for better readability on small screens */
        line-height: 1.7;       /* Adjusts line height for improved text spacing */
        padding: 10px;          /* Adds padding to prevent content from touching screen edges */
    }

    header {
        text-align: left;
        padding: 60px 0 20px 0;
    }


    .title h1 {
        font-size: 1.4em;         /* Decreases h1 size for smaller displays */
        line-height: 1.5;
        font-weight: 900;
    }

    .content h2 {
        font-size: 1.2em;       /* Reduces h2 size */
        line-height: 1.5;
        margin-top: 2.5em;      /* Adjusts top margin for spacing */
        font-weight: 900;
    }


    .content {
        text-align: left;
        padding: 25px 0 0 0;
    }

    img {
        max-width: 100%;
        height: auto;
        margin: 0px 0; /* Reduced space for all images on mobile */
    }
}
/* Logo Animation Styles */

/* Ensure the logo container has relative positioning */
.logo-container {
    position: relative;
    width: 130px; /* Adjust to match your logo width */
    height: auto;
    padding-bottom: 30px;
}

.logo-container .logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    margin: 0;
}

/* First logo animation */
.logo-container .logo:nth-child(1) {
    animation: fadeFirstLogo 14s infinite;
    z-index: 2; 
}

/* Second logo animation */          
.logo-container .logo:nth-child(2) {
    animation: fadeSecondLogo 14s infinite;
    z-index: 1; 
}

/* Keyframes for first logo */
@keyframes fadeFirstLogo {
    0% { opacity: 1; }
    45.45% { opacity: 1; }      /* Visible from 0s to 5s */
    54.55% { opacity: 0; }      /* Fades out between 5s and 6s */
    90.91% { opacity: 0; }      /* Remains hidden from 6s to 10s */
    100% { opacity: 1; }        /* Fades in between 10s and 11s */
}

/* Keyframes for second logo */
@keyframes fadeSecondLogo {
    0% { opacity: 0; }
    45.45% { opacity: 0; }      /* Hidden from 0s to 5s */
    54.55% { opacity: 1; }      /* Fades in between 5s and 6s */
    90.91% { opacity: 1; }      /* Visible from 6s to 10s */
    100% { opacity: 0; }        /* Fades out between 10s and 11s */
}

/* Adjust the animation timing for smoother transitions */
.logo-container .logo {
    animation-timing-function: ease-in-out;
}