/*
Name: Leo Newton
Date: 11/27/24
File Name: style.css
Description: This stylesheet controls the appearance of all pages on the website.
*/

/* Import Google Font (Roboto in this example) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;  /* Use the imported font */
    line-height: 1.6;
    margin: 0; /* Remove default body margins */
    padding: 0 20px; /* Add some horizontal padding to the main content */
    background-color: #f4f4f4; /* Light gray background */
    color: #333;
}

header {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center; /* Center the header content */
}

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    color: #333; 
}

h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

h2 {
  font-size: 2em;
}


nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0; /* Space below the navigation */
    background-color: #eee; /* Light gray background for navigation */
    text-align: center; /* Center the navigation links */

}

nav li {
    display: inline;  /* Make list items horizontal */
    margin: 0 10px; /* Space between list items */
}

nav a {
    text-decoration: none;
    color: #333;
    padding: 10px; /* Add padding to the links for better clicking area */
}

nav a:hover {
    background-color: #ddd; /* Lighter gray on hover */
}

nav a:visited {
  color: purple;
}

nav a.current { /* Style for the currently active page link */
    font-weight: bold;
    background-color: #ccc; /* Slightly darker gray for current page */
}



footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 0.8em;
    position: fixed; /* Makes the footer stick to the bottom */
    bottom: 0;
    width: 100%; /* Ensure footer spans full width */

}

article {
    padding: 20px;  /* Give the article content some padding */
    background-color: #fff; /* White background for the main content area */
    margin-bottom: 20px; /* Add spacing between articles */

}

img {
  max-width: 100%; /* Make images responsive */
  height: auto;
}