/*index_styles.css */

/* Top Boarder */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Makes it so padding and border are included in the element's total width and height */
}
/* Main Body Styles, Arial chosen for its simplicity to read */
body {
    font-family: Arial, sans-serif;
    line-height: 1.8;
    background-color: #f9f9f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* used to make the body elemts cover the entire height of the browser so there is no random white spaces */
}

/* Header Styles */
header {
    background-color: #4caf50;
    color: white;
    padding: 20px 0;
    text-align: center; /*Centre used in case user accesses this on mobile site so they don't need to scroll across */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin-bottom: 10px;
    font-size: 2.5em;
}

header .tagline {     /*used to make the tagline look more inviting, punchy and appealing */
    font-size: 1.2em;
    font-style: italic;
    margin-bottom: 10px;
}

/* Navigation Menu */
.menu {
    list-style: none; /*in the html file that links to this stylesheet it is in the unordered list format */
    display: flex;
    justify-content: center;
    background-color: #3e8e41;
    padding: 10px 0;
}

.menu li {
    margin: 0 15px; /* Adds a small bit horizontal spacing between each listed menu item to stop one continuous flow */
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px; /* puts some space in between the menu and the rest of the main page */
    border-radius: 4px;
    transition: background-color 0.3s; /*time for the transition when the user hovers over it */
}

.menu a:hover {
    background-color: #357a38;
}

/* Main Content Styles for the explanation of what Social Memedia is, along with the different types of post */
main {
    flex: 1;
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

main h2 {
    margin-bottom: 20px;
    color: #4caf50;
}

main p, main ul {
    margin-bottom: 15px;
}

.features ul {
    list-style: square;
    padding-left: 20px;
}

/* Popular Post Types Styling*/
.popular-posts {
    margin: 40px 0;
}

.post-placeholder p {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f1f1f1;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Footer Styling */
footer {
    text-align: center;
    background-color: #333;
    color: white;
    padding: 10px 0;
    margin-top: auto;
}
