body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #f8f4e8; /* Vintage paper color */
    color: #333; /* Text color */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

@media (min-width: 767px)
{
.articles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Adjust space between articles as needed */
    justify-content: space-between; /* Ensure articles distribute evenly */
}

.articlepic figcaption {
    position: absolute; /* Position the caption absolutely */
    bottom: 0; /* Align the caption to the bottom of the container */
    left: 50%; /* Align the caption to the left edge of the container */
    transform: translateX(-50%);
    max-width: calc(100% - 40px); /* Ensure the caption doesn't exceed its container's width */
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    color: #ffffff; /* Caption text color */
    padding: 5px; /* Padding around caption text */
    font-size: 14px; /* Caption text size */
    text-align: center; /* Center align caption text */
    display: inline-block; /* Make the caption width dynamic based on text content */
   
}

.articlepic img {

	width: 550px;
	height: 550px;
       	
            display: inline-block; /* Ensure the image is treated as an inline block element */
            max-width: 100%; /* Ensure the image doesn't exceed its container's width */
            height: auto; /* Maintain the aspect ratio of the image */
            padding-top: 20px;
            padding-bottom:30px;
       


}



body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #f8f4e8; /* Vintage paper color */
    color: #333; /* Text color */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}
.article {
    display: inline-block; /* Display articles inline */
    flex: 1 1 calc(20% - 20px); /* Set width for each article, considering margin */
    margin-right: 10px; /* Add some space between articles */
    vertical-align: top; /* Align articles to the top */
    text-align: center; /* Center-align content */
	
    /*margin: 0 auto 10px; /* Center-align images and add space below */*/

}
.article img {
    width: 200px; /* Adjust size as needed */
    height: 200px;
    

}
}

@media (max-width: 766px)
{
.articles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Adjust space between articles as needed */
    justify-content: space-between; /* Ensure articles distribute evenly */
}


.articlepic figcaption {
    position: absolute; /* Position the caption absolutely */
    bottom: 0; /* Align the caption to the bottom of the container */
    left: 50%; /* Align the caption to the left edge of the container */
    transform: translateX(-50%);
    max-width: calc(100% - 40px); /* Ensure the caption doesn't exceed its container's width */
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    color: #ffffff; /* Caption text color */
    padding: 5px; /* Padding around caption text */
    font-size: 14px; /* Caption text size */
    text-align: center; /* Center align caption text */
    display: inline-block; /* Make the caption width dynamic based on text content */
   
}


body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #f8f4e8; /* Vintage paper color */
    color: #333; /* Text color */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}
.article {
    display: inline-block; /* Display articles inline */
    flex: 1 1 calc(20% - 20px); /* Set width for each article, considering margin */
    margin-right: 10px; /* Add some space between articles */
    vertical-align: top; /* Align articles to the top */
    text-align: center; /* Center-align content */
	
    /*margin: 0 auto 10px; /* Center-align images and add space below */*/

}
.article img {
    width: 100px; /* Adjust size as needed */
    height: 100px;
    

}
.articlepic img {

	width: 350px;
	height: 350px;
		
            display: inline-block; /* Ensure the image is treated as an inline block element */
            max-width: 100%; /* Ensure the image doesn't exceed its container's width */
            height: auto; /* Maintain the aspect ratio of the image */
            padding-top: 20px;
            padding-bottom:70px;
        
}



}


header {
    background-color: #333; /* Header background color */
    color: #f8f4e8; /* Header text color */
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 36px;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: #f8f4e8;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

section {
    padding: 20px;
}

footer {
    background-color: #333; /* Footer background color */
    color: #f8f4e8; /* Footer text color */
    text-align: center;
    padding: 20px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 0;
}

/* Style links to look like classic newspaper headlines */
h2 {
    font-size: 24px;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

/* Style paragraphs to look like newspaper articles */
p {
    text-indent: 20px;
}

/* Add some margin between sections */
section:not(:last-child) {
    margin-bottom: 40px;
}




.article  {
}



footer {
    background-color: #333; /* Footer background color */
    color: #f8f4e8; /* Footer text color */
    text-align: center;
    padding: 20px;
    position: fixed; /* Change position to fixed */
    bottom: 0;
    width: 100%;
}

main { padding-bottom: 100px; 
	

}

p 
{
margin: 20px 0;

}

.articlepic {
			position: relative;
            text-align: center; /* Center align the content */
            max-width:100%;
            margin-left:20%;
            margin-right:20%;
            
        }




.articleparagraph p
{
margin-left: 5%;
margin-right: 5%;




}

