/* Base Styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f7f6f2;
    color: #333;
    width: 100%; /* Ensure body takes full width */
    max-width: 1200px; /* Limit the width on large screens */
    margin: 0 auto; /* Center the content */
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    background: #ffeb3b;
    color: #333;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    left: 10px;
}

/* Header */
header {
    background: #ffffff;
    color: #333;
    padding: 55px 0;
    text-align:center;
    position: relative;
    
    border-bottom: 2px solid #d4a5a5;
}

header img {
    position: absolute;
    left: 30px;
    top: 20px;
    width: 180px;
    height: auto;
    display: block;
    border: none;
}

header h1 {
    font-size: 1.5em;
    margin: 0;
}

header h2 {
    font-size: 1.0em;
    font-weight: normal;
    color: #555;
}

.language-toggle {
    position: absolute;
    right: 20px;
    top: 15px;
}

.language-toggle a {
    margin: 5px;
    padding: 8px 12px;
    background: #d4a5a5;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    display: inline-block;
}

.language-toggle a:hover,
.language-toggle a:focus {
    background: #b5838d;
}

/* Ensure images are displayed inline after each <h3> */
.image-container {
    display: flex;
    gap: 10px; /* Adjust space between images */
    justify-content: center; /* Center images */
}

.image-container img {
    max-width: 500px; /* Limit max width of images */
    height: auto; /* Maintain aspect ratio */
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    background: #d4a5a5;
    padding: 10px 0;
    flex-wrap: wrap;
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
}

nav a:hover,
nav a:focus {
    text-decoration: underline;
}

nav a.active {
    text-decoration: underline;
    font-weight: bold;
}

/* Main Content */
main {
    padding: 20px;
}

section {
    margin-bottom: 20px;
    background: #fef6e4;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

/* Footer */
footer {
    background: #d4a5a5;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9em;
}

footer section img {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
}

footer a {
    color: white;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 1em; /* Adjust font size for smaller screens */
        padding: 10px; /* Add padding for smaller screens */
    }

    header img {
        width: 60px;
    }

    .language-toggle {
        position: static;
        text-align: center;
        margin-top: 10px;
    }

    .language-toggle a {
        margin: 5px 10px;
    }

    nav {
        flex-direction: column;
        text-align: center;
    }

    nav a {
        margin: 10px 0;
    }

    header h1 {
        font-size: 1.5em;
    }

    header h2 {
        font-size: 1em;
    }

    section {
        padding: 15px;
    }

    /* Responsive Images */
    .image-container img {
        max-width: 100%; /* Make images responsive */
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.9em; /* Further adjust font size for very small screens */
    }

    header img {
        width: 50px;
    }

    nav a {
        font-size: 0.9em;
    }

    img.center {
        max-width: 120px;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .image-container img {
        max-width: 100%; /* Ensure images scale down on smaller screens */
    }
}
