/* Root definition for CSS custom properties */
:root {
    --primary-color: #333; /* Dark grey, good for primary elements */
    --background-color: #fff; /* White background */
    --accent-color: #007bff; /* Bright blue for accents */
    --text-color: #333; /* Dark grey, maintains readability on white */
    --header-footer-bg: #333; /* Dark grey, for header/footer contrasts */
    --link-color: #2600ff; /* Changed to bright blue for visibility on white */
    --link-hover-decoration: underline; /* Keeps links underlined on hover for distinction */
}

a {
    color: var(--link-color); /* Apply the custom link color to all links */
    text-decoration: none; /* Optional: Removes underline from all links */
}

a:hover {
    text-decoration: var(--link-hover-decoration); /* Reapply underline on hover */
}


/* Universal box-sizing */
*,
*:before,
*:after {
    box-sizing: border-box;
}

/* Reset margins and paddings for specific elements */
body, h1, h2, h3, p, ul, li, figure, figcaption, header, footer, main, nav, #about {
    margin: 0;
    padding: 0;
}

/* Base body styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}


.logo-container {
    display: flex; /* Use flexbox to center the image */
    justify-content: center; /* Center horizontally within the container */
    align-items: center; /* Center vertically within the container */
    width: 100%; /* Container takes full width of its parent */
}

.logo-container img {
    width: 80%; /* Image width is 80% of its container's width */
    height: auto; /* Maintain aspect ratio */
}

.section-with-line {
    padding: 20px;
    background: var(--background-color);
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
}


ul {
    padding-left: 20px; /* Adjust as needed for desired indentation */
}


.custom-link-color {
    color: inherit; /* This makes the color the same as the parent text */
    text-decoration: none; /* Removes underline */
}

.custom-link-color:hover {
    text-decoration: underline; /* Adds underline on hover */
}


/* Header and footer */
header, footer {
    background: var(--header-footer-bg);
    color: var(--link-color);
    text-align: center;
    padding: 1rem 0;
}

/* Navigation */
nav {
    padding-bottom: 1rem;
    text-align: center;
}

nav a {
    color: var(--link-color);
    text-decoration: none;
    margin: 0 10px;
}

nav a:hover {
    text-decoration: var(--link-hover-decoration);
}

/* Main and section styling */
main, #about {
    padding: 20px;
}

#about {
    background: var(--background-color);
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
}

/* Typography */
h1, h2 {
    color: var(--primary-color);
    padding-bottom: 1rem;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

/* Responsive typography adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* Header and Footer adjustments for better readability */
header, footer {
    background: #e9ecef; /* Light gray for subtle contrast, easier on the eyes */
    color: #333; /* Darker text color for better readability */
    text-align: center;
    padding: 1rem 0;
}

/* Maintain link color in the footer for consistency and readability */
footer a {
    color: var(--accent-color); /* Accent color for links to stand out */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline; /* Adds underline on hover for visual feedback */
}




    /* You might want to ensure this applies to all text elements, including nav a */
    body, h1, h2, h3, p, ul, li, figure, figcaption, header, footer, main, nav a, #about {
        color: var(--text-color); /* Applying the whiter text color */
    }
