body {
    margin-top: 1em;
    font-family: Arial, sans-serif;
    background-color: #1a1f2b; /* deep rich blue-gray background */
    color: #dcdcdc; /* light gray for general text */
}

/* Headings */
h1 {
    text-align: center;
    font-size: 2.5em;
    color: #84a8ff; /* soft blue */
}

h2 {
    text-align: center;
    font-size: 1.8em;
    margin-top: 1em;
    color: #a5c9ff; /* slightly lighter blue */
}

/* Paragraphs and Divs */
p {
    max-width: 800px;
    margin: 10px auto;
    padding: 20px;
    background-color: #232b3a;
    border-radius: 8px;
    line-height: 1.6;
}

/* Navigation Bar */
nav {
    background-color: #2a3140;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
}

nav a {
    margin: 0 10px;
    font-weight: bold;
    color: #57a4ff;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

/* Footer text */
footer {
    text-align: center;
    font-size: 0.85em;
    margin-top: 2em;
    color: #999;
}

/* Changes hyperlink text color */
a {
    color: #57a4ff;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}


/* Responsive image with border */
/* Updated image styling */
.responsive {
    max-width: 800px;
    height: auto;
    border: 1px solid #3a4254;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

/* Tighter figure block */

figure.tight-figure {
    text-align: center;
    padding: 12px;
    margin: 30px auto;
    max-width: 850px;
    background-color: #2b3345;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

figure.tight-figure figcaption {
    margin-top: 10px;
    font-style: italic;
    font-size: 0.95em;
    color: #b0b8cc;
}


/* Validation section */
#validation {
    text-align: center;
    color: #ccc;
}

/* Media query for small screens */
@media only all and (max-width: 550px) {
    img {
        display: none;
    }
}
