@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Global styling for html and body */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
}

/* Flexbox layout for body to keep footer at the bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Background canvas styling */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Ensures canvas stays behind other content */
}

/* Paragraph styling with shadows for main.html */
.main-page p {
    background-color: #ffffff;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Header styling */
header {
    background: linear-gradient(135deg, #1d4dab 0%, #003366 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Header title styling */
header h1 {
    margin: 0;
    font-size: 1.6em;
    text-align: left;
}

/* Navigation menu styling */
header nav {
    display: flex;
    gap: 15px;
}

/* Navigation links styling */
header nav a {
    color: white;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

header nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    header nav {
        margin-top: 10px;
    }
}

/* Main content area styling */
section {
    flex: 1;
    margin: 20px;
}

/* General paragraph and heading styling */
p, h2 {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

h2 {
    font-size: 1.5em;
    line-height: 1.4;
    margin: 20px 0;
    color: #333;
    font-weight: bold;
}

/* Footer styling */
footer {
    background-color: #333;
    color: #f9f9f9;
    padding: 30px;
    text-align: center;
    width: 100%;
}

/* Footer links container */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Footer link styling */
.footer-link {
    color: #f9f9f9;
    text-decoration: none;
    font-size: 1.3em;
    transition: color 0.3s;
    padding: 10px;
}

.footer-link:hover {
    color: #1da1f2;
}

/* Blog page container styling */
#blogs {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: left;
}

/* Year header styling */
.year-header {
    font-size: 1.8em;
    color: #1d4dab;
    margin-top: 30px;
    margin-bottom: 10px;
    text-align: left;
}

/* Blog list container */
#blog-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

/* Blog list styling */
.blog-list {
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 0;
}

/* Individual blog link styling */
.blog-list li {
    margin: 10px 0;
}

.blog-link {
    font-size: 1.1em;
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    background-color: #f9f9f9;
    border-left: 4px solid #1d4dab;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.blog-link:hover {
    background-color: #e0e0e0;
}

.blog-link h3 {
    margin: 0;
    font-weight: bold;
    text-align: left;
}

/* Blog content styling */
#blog-content {
    max-width: 700px;
    margin: 50px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    color: #333;
    line-height: 1.6;
    font-size: 1em;
    text-align: left;
}

#blog-content h1 {
    font-size: 2em;
    color: #1d4dab;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

#blog-content h2, #blog-content h3, #blog-content h4 {
    color: #1d4dab;
    margin-top: 25px;
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: bold;
}

#blog-content h2 { font-size: 1.6em; }
#blog-content h3 { font-size: 1.4em; }
#blog-content h4 { font-size: 1.2em; }

#blog-content p {
    margin: 15px 0;
    font-size: 1em;
    line-height: 1.7;
    color: #444;
}

#blog-content ul, #blog-content ol {
    padding-left: 25px;
    margin: 15px 0;
}

#blog-content li {
    margin: 8px 0;
    line-height: 1.6;
}

#blog-content blockquote {
    margin: 25px 0;
    padding: 15px 20px;
    background-color: #f4f6fa;
    border-left: 4px solid #1d4dab;
    font-style: italic;
    color: #555;
}

#blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}

#blog-content a {
    color: #1d4dab;
    text-decoration: underline;
    transition: color 0.3s;
}

#blog-content a:hover {
    color: #003366;
}

#blog-content pre, #blog-content code {
    font-family: "Courier New", Courier, monospace;
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 4px;
    display: block;
    overflow-x: auto;
    margin: 20px 0;
    color: #333;
}

#blog-content code {
    padding: 2px 5px;
    background-color: #f4f4f4;
    border-radius: 3px;
    display: inline;
}

#blog-content hr {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin: 30px 0;
}

.bumperstickers-page blockquote {
    margin: 30px 0;
    padding: 30px;
    background-color: #f9f9f9;
    border-left: 4px solid #1d4dab;
    border-radius: 5px;
}

.bumperstickers-page blockquote p {
    margin: 0;
    font-size: 1.2em;
    line-height: 1.6;
}

.bumperstickers-page blockquote p:first-child {
    margin-bottom: 20px;
}

.bumperstickers-page blockquote p:last-child {
    text-align: right;
    font-style: italic;
    color: #666;
}