/* Reset styles for consistency */
body, h1, h2, h3, p, ul, li { margin: 0; padding: 0; }

/* Basic font and background setup */
body { 
    font-family: Arial, sans-serif; 
    line-height: 1.6; 
    color: #333333; /* Updated text color */
    background-color: #F0F0F0; /* Updated background color */
}

/* Header with responsive text alignment */
header { 
    background: #3CB371; /* Updated to Medium Sea Green */
    color: white; 
    text-align: center; 
    padding: 20px 0; 
}
header h1 { margin-bottom: 10px; }

/* Navigation with flexbox for horizontal layout */
nav ul { 
    list-style: none; 
    display: flex; 
    justify-content: center; 
    background: #333333; /* Updated to Very Dark Gray */
    padding-left: 0; 
}
nav a { 
    color: white; 
    text-decoration: none; 
    padding: 10px 15px; 
    display: block; 
}
nav ul li { margin: 0 5px; }

/* Subtle hover effect for navigation items */
nav a:hover { 
    background-color: #2E8B57; /* Updated to Sea Green */
    transition: background-color 0.3s ease; 
}

/* Main content with padding and background for focus */
main { 
    padding: 20px; 
    background: #F0F0F0; /* Light background for main content */
}

/* Individual section styles */
section { 
    margin-bottom: 20px; 
    padding: 20px; 
    background: #FFFFFF; /* White background for sections */
    box-shadow: 0 0 8px 0 rgba(0,0,0,0.1); 
}
section h2 { 
    margin-bottom: 10px; 
    color: #3CB371; /* Medium Sea Green for subheaders */
}

/* Footer with fixed positioning to the bottom */
footer { 
    text-align: center; 
    padding: 20px 0; 
    background: #3CB371; /* Medium Sea Green */
    color: white; 
    position: relative; 
    bottom: 0; 
    width: 100%; 
}

/* Table styles for clarity and spacing */
table { 
    border-collapse: collapse; 
    width: 100%; 
    margin-bottom: 20px; 
}
table, th, td { 
    border: 1px solid #ddd; 
}
th, td { 
    padding: 8px; 
    text-align: left; 
}

/* Hover effect for table rows for interactivity */
tr:hover { 
    background-color: #f5f5f5; 
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    /* Stackable nav items */
    nav ul { 
        flex-direction: column; 
        align-items: center; 
    }
    /* Adjustments for table display on smaller screens */
    th, td { 
        display: block; 
        width: 100%; 
        box-sizing: border-box; 
    }
    /* Label data cells in responsive table view */
    td:before { 
        content: attr(data-th) ": "; 
        font-weight: bold; 
    }
}

/* Responsive Images */
img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

/* Social Media Integration */
footer a.social-icon { 
    color: white; 
    margin: 0 10px; 
}
footer a.social-icon:hover { 
    color: #2E8B57; /* Sea Green */
    transition: color 0.3s ease; 
}

/* Accessibility Improvements */
.accessible-text {
    font-size: 1.2em; /* Larger font size for readability */
    background-color: #f5f5f5; /* High contrast background */
    color: #333333; /* High contrast text color */
    padding: 10px;
    margin-bottom: 20px;
}

/* Interactive Elements */
button, .interactive-element {
    background-color: #3CB371; /* Medium Sea Green */
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

button:hover, .interactive-element:hover {
    background-color: #2E8B57; /* Sea Green */
    color: #FFFFFF;
}

/* Modify Layout */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Modify Theme and Color Scheme */
/* You can change these colors to adjust the theme */
:root {
    --primary-color: #3CB371; /* Medium Sea Green */
    --secondary-color: #333333; /* Very Dark Gray */
    --text-color: #333333; /* Very Dark Gray */
    --background-color: #F0F0F0; /* Very Light Gray */
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
}

header, footer, button, .interactive-element {
    background-color: var(--primary-color);
}

nav ul {
    background-color: var(--secondary-color);
}
