body {
    font-family: Arial, sans-serif;
    color: #e0e0e0; /* light grey for text */
    background-color: rgb(14, 7, 85); /* existing dark background */
}

html,
body {
    margin: 0;
}

header,
section,
footer {
    text-align: center;
    padding: 10px;
    position: relative;
    z-index: 1;
}

header {
    background-color: #ddd;
    padding: 20px 0;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

h1, h2 {
    color: #d1ab2e; /* gold for headings */
    margin: 20px 0;
}

h1 {
    font-size: 36px;
    font-weight: bold;
}

h2 {
    font-size: 28px;
    font-weight: bold;
}

p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: #e0e0e0; /* light grey for main text */
}

footer p {
    font-size: 16px;
    line-height: 1.4;
    max-width: 800px;
    margin: 20px auto;
    color: #e0e0e0; /* light grey for footer text */
}

/* Style for ordered and unordered lists */
ol, ul {
    max-width: 800px;
    text-align: left; /* left align the list items */
    margin: 0 auto;
    padding-left: 40px; /* add some padding to the left to indent the list */
}

li {
    font-size: 18px;
    line-height: 1.6;
    color: #e0e0e0; /* light grey for list items */
}

.content-with-image {
    display: flex;
    align-items: center;
    max-width: 800px;
    margin: 0 auto 20px;
}

.content-with-image img {
    max-width: 200px;
    margin: 0 20px;
    border: #e0e0e0 1px solid;
    border-radius: 10px;
}

.content-with-image.left-image img {
    order: 1;
    margin-right: 20px;
}

.content-with-image.right-image img {
    order: 2;
    margin-left: 20px;
}

.content-with-image.left-image div {
    order: 2;
}

.content-with-image.right-image div {
    order: 1;
}

.content-with-image > div {
    flex: 1;
}

/* Responsive design for mobile devices */
@media only screen and (max-width: 767px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    p, footer p, li {
        font-size: 16px;
    }

    section {
        padding: 10px;
    }

    ol, ul {
        padding-left: 20px; /* adjust padding for mobile */
    }

    .content-with-image {
        flex-direction: column;
        text-align: center;
    }

    .content-with-image img {
        width: 80%; /* Set image width to 80% */
        height: auto; /* Maintain aspect ratio */
        margin: 10px auto; /* Center images and add margin */
    }

    .content-with-image.left-image div {
        order: 1;
    }
    
    .content-with-image.right-image div {
        order: 1;
    }

    .content-with-image.left-image img {
        order: 2;
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .content-with-image.right-image img {
        order: 2;
        margin-left: 20px;
        margin-right: 20px;
    }
}
