/* Resetting default styles for the body */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
}

/* Styling for the header section */
header {
    background-color: purple;
    color: #ecf0f1;
    padding: 20px;
    text-align: center;
}

/* Styles for the main heading in the header section */
header h1 {
    margin: 0;
    font-size: 2em;
}

/* Styles for paragraph in the header section */
header p {
    font-size: 1.2em;
}

/* Styling for the navigation bar */
nav {
    background-color: rgb(112, 1, 112);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Styles for the navigation list */
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Styles for navigation list items */
nav li {
    float: left;
}

/* Styles for navigation links */
nav a {
    display: block;
    color: #ffffff;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: background-color 0.3s;
}

/* Hover effect for navigation links */
nav a:hover {
    background-color: #2c3e50;
}

/* Styling for the main content section */
main {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Styles for individual articles */
article {
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
    width: calc(48% - 20px);
}

/* Styles for article headings */
article h2 {
    color: purple;
    margin-bottom: 10px;
}

/* Styles for article paragraphs */
article p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Styles for article images */
article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Styling for the footer section */
footer {
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
}

/* Responsive design: Adjusting width for articles on small screens */
@media only screen and (max-width: 900px) {
    article {
        width: 100%;
    }
}

/* Styling for informational paragraphs */
.info {
    color: rgb(89, 89, 89);
    font-style: italic;
}


/* style from here and down is from https://www.w3schools.com/howto/howto_css_image_overlay_title.asp" */
/* Styles for image overlay effect */
.container {
    position: relative;
}
      
/* The overlay effect - lays on top of the container and over the image */
/* Overlay styles - fades in on hover */
.overlay {
    position: absolute;
    bottom: 2;
    background: rgb(0, 0, 0);
    background: rgba(0, 0, 0, 0.5); /* Black see-through */
    color: #f1f1f1;
    width: 100%;
    transition: .5s ease;
    opacity:0;
    color: white;
    font-size: 20px;
    padding: 2px;
    text-align: center;
}
      
/* Fade in effect on overlay hover */
.container:hover .overlay {
    opacity: 1;
}



