body {
    font-family: "Playpen Sans",'Arial', sans-serif;
    background-color: #fdfdfd;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

header {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background-color: #222;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

/* Default (Desktop) Layout - Articles in a Centered Column */
.blog-container {
    max-width: 800px; /* Controls column width */
    margin: 0 auto; /* Centers content horizontally */
    padding: 20px;
    overflow-x: hidden; /* Prevents horizontal scroll */
    z-index: 900;
}

/* Make sure images inside articles scale properly */
article {
    width: 100%; /* Makes sure it adapts to the blog container */
    padding: 20px;
    background: #fff;
    z-index: 900;
    
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

h2 {
    color: #444;
    text-align: left;
}

p {
    font-size: 18px;
}

time {
    font-weight: normal;
    color: #5f5b51;
    font-style: normal;
    text-decoration: none;
    font-size: small;
}

/* Chat Button */
#chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #222;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    z-index: 1001;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Chatbox Styling */
#chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: Arial, sans-serif;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

#chat-header {
    background: #222;
    color: white;
    padding: 12px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}

#chat-box {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f9f9f9;
    text-align: left;
    scrollbar-width: none;
}

#chat-box::-webkit-scrollbar {
    display: none;
}

#chat-input {
    display: flex;
    border-top: 1px solid #ddd;
}

#user-input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    resize: none;
}

#send-button {
    background: #222;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

/* Ensure Footer Appears at the End of the Content */
footer {
    width: 600px; /* Controls column width */
    margin: 0 auto; /* Centers content horizontally */
    background: #222;
    color: white;
    text-align: center;
    padding-top: 20px; /* Add space above the footer */
    position: relative; /* Removes any "fixed" behavior */
    border-top-left-radius: 10px; /* Rounds top left corner */
    border-top-right-radius: 10px; /* Rounds top right corner */
    z-index: 800;
}
.footer-container {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.profile-pic {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #bfa46f;
    object-fit: cover;
    margin-left: 70px;
    margin-right: 10px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 10px;
}

.contact-email {
    font-size: 16px;
    margin: 0 0 10px 0;
    text-align: left;
}

.rss-link {
    align-self: flex-start;
}

.rss-link img {
    width: 28px;
    height: 28px;
}

a {
    color: #f8c400;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.bbg-disclaimer {
    background-color: #fff3cd;
    color: #856404;
    border: 2px solid #ffeeba;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Georgia', serif;
    font-size: 16px;
    margin: 20px 0;
    position: relative;
}
.bbg-disclaimer::before {
    content: "⚠️ WARNING: ";
    font-weight: bold;
}
.bbg-disclaimer strong {
    font-weight: bold;
}

.earnings-reviews-links {
    margin: 20px 0 80px 0;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.earnings-reviews-links h3 {
    margin-top: 0;
    font-size: 20px;
    color: #444;
    text-align: left;
}

.earnings-reviews-links ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    padding-left: 20px;
}

.earnings-reviews-links ul ul {
    list-style-type: none;
    padding-left: 20px;
}

.earnings-reviews-links li {
    margin: 10px 0;
}

.earnings-reviews-links a {
    text-decoration: none;
    color: #f8c400;
    font-weight: bold;
}

.earnings-reviews-links a:hover {
    text-decoration: underline;
    color: #f8c400;
}

/* Mobile Layout - Chat Takes Up Upper Half of Screen */
@media (max-width: 768px) {
    
    /* Prevents horizontal overflow */
    html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    }

    /* Chat starts hidden but expands to upper half of screen */
    #chat-container {
    position: fixed;
    width: 100vw;
    height: 50vh; /* Chat always takes top 50% */
    top: 0;
    left: 0;
    background: white;
    z-index: 1000;
    display: none; /* Chat is hidden until toggled */
    flex-direction: column;
    justify-content: space-between;
    border-radius: 0;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    }

    #chat-button {
        position: fixed;
        top: 80px;
        right: 10px;
        width: 100px; /* Set a fixed width */
        height: 40px; /* Set a fixed height */
        background: #ffc21a;
        color: white;
        border: none;
        border-radius: 10%; /* Make it circular */
        padding: 0; /* Remove padding that might be affecting size */
        cursor: pointer;
        font-size: 16px;
        font-weight: bold;
        display: flex; /* Center text/icon inside */
        align-items: center;
        justify-content: center;
        z-index: 1001;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    }

    /* Chat header acts as a close button */
    #chat-header {
    background: #222;
    color: white;
    padding: 12px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    }

    /* Chat input container */
    #chat-input-container {
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
    padding: 10px;
    background: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    }

    #chat-input {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    
    }

    #send-button {
    display: none;
    }

    .blog-container {
    width: 100%; /* Make blog container take full width */
    padding: 0px 20px 0px 10px;
    }

    article {
    width: 100%; /* Ensure article takes full width */
    padding-right: 20px; /* Adjust padding for mobile */
    padding-left: 0; /* No padding on the left */
    margin-left: 0; /* No margin on the left */
    box-sizing: border-box; /* Include padding in width calculation */
    text-align: justify; /* Justify text */
    }

    footer {
    width: 100%; /* Make footer take full width */
    margin: 0; /* Remove horizontal centering */
    background: #222;
    color: white;
    text-align: center;
    padding-top: 20px;
    position: static;
    z-index: 800;
    }

    .footer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    }
}