body {
    background-color: #f0f0f0;
    color: #121212;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #f0f0f0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1rem 1rem 1.5rem;
    border-bottom: 1px solid #ccc;
}

#header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

header h1 {
    font-size: 2rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.social-icon {
    margin-left: 0rem;
    display: inline-flex;
    align-items: center;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: #121212;
}

.social-icon:hover svg {
    fill: #000;
}

header nav a {
    color: #121212;
    text-decoration: none;
    margin-left: 1rem;
}

header nav a:hover {
    color: #000;
}

main {
    padding: 0.25rem 2rem;
    margin-top: 120px;
}

@media (min-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    #header-right {
        margin-top: 0;
    }

    main {
        margin-top: 80px;
        max-width: 570px;
        margin-left: auto;
        margin-right: auto;
    }
    header {
        padding: 1rem 2rem;
    }
    .social-icon {
        margin-left: 0.5rem;
    }
}

#controls {
    position: fixed;
    top: 60px; /* Adjust based on header height */
    left: 0;
    right: 0;
    background-color: #f0f0f0;
    z-index: 1000;
    padding: 1rem 2rem;
    border-bottom: 1px solid #ccc;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

#search {
    width: 200px;
    padding: 0.5rem;
}

#category-filter {
    padding: 0.5rem;
}

#pagination {
    margin-top: 1rem;
}

#pagination button {
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
}

#pagination button:disabled {
    background-color: #eee;
    cursor: not-allowed;
}

footer {
    text-align: center;
    padding: 0.5rem;
    border-top: 1px solid #ccc;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f0f0f0;
    z-index: 1000;
}

footer a {
    color: #000;
}

#subscribe {
    color: #121212;
}

#subscribe:hover {
    color: #000;
}

.footer-separator {
    margin: 0 0.5rem;
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content input,
.modal-content textarea {
    padding: 0.5rem;
    font-family: inherit;
}

.category {
    margin-bottom: 2rem;
}

.category h2 {
    font-size: 1.2rem;
    border-bottom: 1px solid #ccc;
        padding-bottom: 0.5rem;
}

.entry {
    margin-bottom: 2rem;
}

.entry h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.entry p {
    margin: 0.5rem;
    text-align: justify;
}

.entry iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
}

.category-label {
    font-style: italic;
    font-size: 0.9rem;
    color: #555;
}

