body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #c4bfbf;
    color: #333;
}

nav {
    display: flex;
    justify-content: center;
    background-color: #333;
    width: 100%;
    flex-wrap: wrap;
}

nav a {
    color: white;
    padding: 10px 10px;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    flex: 1;
}

nav a:hover {
    background-color: #575757;
}

main {
    padding: 20px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.hero img {
    height: auto;
    max-height: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.content-section {
    width: 100%;
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    box-sizing: border-box;
    text-align: center;
    display: flex; /*Remove block, so elements display horizontally */
    display: block; /*Remove flex, so elements display vertically */
}

.buy-me-a-coffee {
}

.links-table {
    width: 100%; /* Ensure the table takes up the full width of the container */
    table-layout: fixed; /* Use fixed layout for consistent column widths */
}

.links-table th, .links-table td {
    text-align: left;
    padding: 10px;
    border: 1px solid #ddd;
    word-wrap: break-word; /* For breaking long words */
    overflow-wrap: break-word; /* Additional support for word wrapping */
}

.links-table th:nth-child(1),
.links-table td:nth-child(1) {
    width: 50%; /* First column takes 50% of the table width */
}

.links-table th:nth-child(2),
.links-table td:nth-child(2) {
    width: 50%; /* Second column takes 50% of the table width */
    word-break: break-word; /* Ensures URLs break to the next line */
}
footer {
    background-color: #333;
    color: white;
    padding: 10px;
    text-align: center;
    white-space: normal; /* Ensure text wraps */
    word-wrap: break-word; /* Break long words or URLs */
    overflow-wrap: break-word; /* Additional support for wrapping */
    width: 100%; /* Footer spans full width */
    box-sizing: border-box; /* Include padding in the element's total width */
    overflow-x: hidden; /* Prevent horizontal overflow */
}

.ads {
    text-align: center;
    margin-top: 20px;
    position: relative;
}

.ads ins {
    display: block;
    width: 100%;
    max-width: 728px;
    margin: 0 auto;
}

.bostock-header-container {
    width: 100%;
    background-image: url('images/homepagefade.jpg');
    background-repeat: repeat-x;
}

.bostock-header-container .bostock-title-container {
    width: 100%;
    display: flex;
    align-items: center;
    height: 155px;
    justify-content: space-between; /*Change to space between */
}

.bostock-header-container .bostock-title-container .bostock-title {
    width: auto;
     display: flex;
    align-items: center;
    justify-content: left; /*Align to the left */
}

.bostock-header-container .bostock-title-container .bostock-crest {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bostock-header-container .bostock-title-container .bostock-crest img{
    vertical-align: top;
}

#menuToggle {
    display: none;
}

.container {
    display: flex; /* Enable flexbox layout */
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    align-items: flex-start; /* Align items at the top */
}

.sidebar {
    width: 250px; /* Fixed width for the sidebar */
    padding-right: 20px;
    box-sizing: border-box; /* Include padding in the width */
    flex-shrink: 0; /* Prevent sidebar from shrinking */
}

.content {
    flex: 1; /* Take up remaining space */
    box-sizing: border-box;
    padding-left: 20px;
    min-width: 300px; /* Ensure the content doesn’t get too narrow */
}

.content iframe {
    width: 100%; /* Make the iframe responsive */
    height: 600px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.main-header {
    text-align: center;
    width: 100%;
    padding-bottom: 0px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.coffee-icon {
    vertical-align: middle; /* Aligns the image with the middle of the text */
    margin-right: 5px; /* Adds a small space between the image and the text */
}

@media screen and (max-width: 768px) 
{
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}
    #menuToggle {
        display: block;
        cursor: pointer;
        position: relative;
        padding: 10px;
        font-size: 1.5em;
        text-align: right;
    }

    nav {
        display: none;
        flex-direction: column;
    }

    nav.show {
        display: flex;
    }

    .content-section {
        display: block; /*Remove flex, so elements display vertically */
    }

    .container {
        flex-direction: column; /* Stack items vertically */
    }

    .sidebar {
        width: 100%; /* Sidebar takes full width */
        padding-right: 0;
    }

    .content {
        padding-left: 0;
        min-width: 100%; /* Ensure content spans full width */
    }

}

