body {
    font-family: Verdana, sans-serif;
    margin: 0;
    padding-top: 80px;
    box-sizing: border-box;
}

header, footer {
    background-color: #0bb17a;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

header {
    position: fixed;
    width: 100%; /* Ensures the header spans the full width of the viewport */
    top: 0; /* Positions the header at the top of the viewport */
    left: 0; /* Aligns the header to the left of the viewport */
    z-index: 1000; /* Ensures the header stays on top of other content */
}

#navbar a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-size: 18px;
}

#navbar a:hover {
    color: #000000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo {
    font-size: 24px;
    color: #fff;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #fff;
}

.banner-image {
    width: 100%;
    height: 150px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    margin: auto;
}

.post-preview {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 20px;
}

.thumbnail {
    width: 350px;
    height: auto;
    margin-right: 20px;
}

.post-content {
    flex: 1;
}

.post-date {
    font-style: italic;
}

.post-preview h3 a, .post-preview h3 a:visited {
    color: #000;
    text-decoration: none;
}

body .post-preview h3 a:hover {
    color: #b90909;
}

#contactForm {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contactForm label, #contactForm input, #contactForm textarea, #contactForm button {
    width: 40%;
    margin: 5px auto;
    display: block;
}

#contactForm button {
    cursor: pointer;
    text-align: center;
    padding: 10px 15px;
    width: 100px;
    border: none;
    background-color: #000;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#contactForm button:hover {
    background-color: #b90909;
}

#contactForm input, #contactForm textarea {
    border: 3px solid #000;
    padding: 8px;
}

#contactForm input:focus, #contactForm textarea:focus {
    outline: none;
    border-color: #555;
}

#successModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    z-index: 1000;
    border: 1px solid #ccc;
}

@media (max-width: 600px) {
    .menu-toggle {
        display: flex;
        margin-right: 20px;
    }

    #navbar, #navbar.active a {
        display: none;
    }

    #navbar.active {
        display: block;
    }

    #navbar.active a {
        display: block;
        margin: 12px -12px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .post-preview {
        flex-direction: column;
    }
    
    .thumbnail {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
    }

    .thumbnail, .post-content {
        width: 100%; /* Ensure full width on small screens */
    }

    section {
        padding: 15px;
    }
}

.share-button {
    border: none;
    background: transparent; /* Makes the background invisible */
    cursor: pointer;
    display: inline-block;
    padding: 0; /* No padding around the image */
    margin: 5px; /* Spacing around the button */
    border-radius: 5px; /* Optional: for rounded corners */
    width: 32px; /* Fixed width */
    height: 32px; /* Fixed height */
    overflow: hidden; /* Prevents content from spilling out */
}

.share-button img {
    width: 100%; /* Ensures the image fills the button */
    height: auto; /* Maintains aspect ratio */
    display: block; /* Removes bottom margin/spacing */
}

.share-button:hover {
    opacity: 0.8; /* Slightly see-through on hover */
}

.share-button:active {
    opacity: 0.6; /* More transparent when clicked */
}

