/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #1a1a1a; /* Dark background */
    color: #ccc; /* Light gray text */
}

header {
    background-color: #222; /* Dark gray background */
    color: #ddd; /* Lighter text color */
    padding: 10px 0;
}

nav ul {
    list-style-type: none;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #ddd; /* Light gray text */
    text-decoration: none;
    font-size: 18px;
}

nav ul li a:hover {
    color: #f4a261; /* Orange color on hover */
}

section {
    padding: 20px;
    text-align: center;
}

h2 {
    color: #ddd; /* Light gray */
}

h1 {
    color: #c83;
    margin: 20px;
}

p {
    text-align: left;
}

/* Fixed selectors with class names */
.image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.image-item {
    width: calc(50% - 10px); /* Calculate width for two columns */
    text-align: center;
}

.image-item img {
    width: 96%;
    height: auto;
    border-radius: 8px;
}

.caption {
    margin-top: 10px;
    font-size: 18px;
    color: #c83;
    text-align: left;    
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #222; /* Dark gray background */
    color: #ddd; /* Light gray text */
    margin-top: 40px;
}

/* Styling for the text container */
.text-container {
    max-width: 450px; /* Max width of 450px on larger screens */
    width: 100%; /* Full width of its parent container */
    margin: 0 auto; /* Center the element horizontally */
    text-align: left; /* Left align the text */
    padding: 20px; /* Optional: Add some padding for aesthetics */
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .text-container {
        width: 100%; /* On small screens, make the width 95% */
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .image-container {
        flex-direction: column;
        align-items: center;
    }

    .image-item {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .text-container {
        width: 100%; /* Ensure it stays 95% even on extra small screens */
    }

    h1 {
        font-size: 24px;
    }

    nav ul li a {
        font-size: 16px;
    }

    .image-item {
        width: 100%;
    }
}
