/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #333333;
    color: #ffffff;
    height: 100%; /* Ensure the body takes the full height */
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1; /* Allow the container to grow and take available space */
}

.topbar {
    width: calc(100% - 320px); /* Adjust width to match the main section */
    background-color: #4a4a4a;
    padding: 10px 0;
    margin-left: 320px; /* Align with sidebar */
    box-sizing: border-box;
    position: relative; /* Allow absolute positioning for donate button */
}

body.privacy-page .topbar,
body.cookies-page .topbar,
body.about-page .topbar,
body.contact-page .topbar,
body.links-page .topbar,
body.members-page .topbar,
body.incidents-page .topbar,
body.archives-page .topbar,
body.donate-page .topbar {
    width: 100%;
    margin-left: 0;
}

.topbar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.donate-button-container {
    position: absolute;
    top: 15px; /* Add 5px of space above the donate button */
    left: 10px;
}

.topmenu-button.donate-button {
    background-color: #ffcc00;
    color: black;
}

.topmenu-button.donate-button:hover {
    background-color: #e6b800;
}

.logo-container {
    margin-bottom: 10px;
}

.welcome-message {
    text-align: center;
    margin-bottom: 10px;
}

.welcome-message h2 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
}

#topmenu {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap; /* Allow buttons to wrap in smaller screens */
}

#topmenu td {
    padding: 0 10px;
}

.topmenu-button {
    background-color: #007bff;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.topmenu-button:hover {
    background-color: #0056b3;
}

.topmenu-button.streams-button {
    background-color: #1b8c61;
    pointer-events: none;
    cursor: default;
}

/* Sidebar */
.sidebar {
    width: 320px; /* Increased width */
    background-color: #616060;
    height: 100vh;
    overflow-y: auto;
    border-right: 4px groove #4a4a4a;
    position: fixed;
    top: 0;
    left: 0;
    flex-shrink: 0;
    overflow: auto; /* Allow scrolling if needed */
    scrollbar-width: none; /* For Firefox */
}

body.incidents-page .sidebar,
body.archives-page .sidebar,
body.donate-page .sidebar {
    display: none;
}

.sidebar td, .sidebar button, .sidebar .stream_channel_name, .sidebar .aux_stream_channel {
    text-align: left; /* Ensure all sidebar content is left-aligned */
}

#side_videos_table {
    width: 100%;
    border-collapse: collapse;
}

#side_videos_table tr {
    border-bottom: 1px solid #4a4a4a; /* Add border between rows */
}

/* Main Content */
#main_page {
    margin-left: 320px; /* Adjusted to match sidebar width */
    padding: 20px;
    width: calc(100% - 320px); /* Adjusted to match sidebar width */
    box-sizing: border-box;
    padding-bottom: 50px; /* Ensure main content does not overlap footer */
    text-align: center; /* Center the player */
}

body.privacy-page #main_page,
body.cookies-page #main_page,
body.about-page #main_page,
body.incidents-page #main_page,
body.archives-page #main_page,
body.donate-page #main_page {
    margin-left: 0;
    width: 100%;
    text-align: left; /* Left align text for privacy, cookies, about, incidents, and archives pages */
}

body.contact-page #main_page,
body.links-page #main_page,
body.members-page #main_page {
    margin-left: 0;
    width: 100%;
    display: flex;
    justify-content: center; /* Center align text for contact, links, and members pages */
}

body.contact-page .center-content,
body.links-page .center-content,
body.members-page .center-content,
body.incidents-page .center-content,
body.archives-page .center-content,
body.donate-page .center-content {
    max-width: 800px;
    width: 100%;
    margin-top: 20px; /* Adjust top margin */
    margin-bottom: 20px; /* Adjust bottom margin */
}

/* Center the player */
.player-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Footer Section */
.footer {
    width: calc(100% - 320px); /* Adjust width to match the main section */
    background-color: #4a4a4a;
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    border-top: 1px solid #ffffff;
    box-sizing: border-box;
    margin-left: 320px; /* Align with sidebar */
}

body.privacy-page .footer,
body.cookies-page .footer,
body.about-page .footer,
body.contact-page .footer,
body.links-page .footer,
body.members-page .footer,
body.incidents-page .footer,
body.archives-page .footer,
body.donate-page .footer {
    width: 100%;
    margin-left: 0;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
}

.footer a:hover {
    text-decoration: underline;
}

/* Return Link Styling */
.return-link {
    display: block;
    margin: 10px 0;
    text-align: center;
    color: #007bff;
    text-decoration: none;
    font-size: 16px;
}

.return-link:hover {
    text-decoration: underline;
}

/* Center content on the contact, links, members, incidents, and archives pages */
body.contact-page .center-content,
body.links-page .center-content,
body.members-page .center-content,
body.incidents-page .center-content,
body.archives-page .center-content,
body.donate-page .center-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Center the player in the main section for full-screen view */
#main_table #player_container {
    text-align: center;
}

#main_table #player_selected {
    display: inline-block;
}

/* Stream channel name in orange */
.stream_channel_name {
    color: orange;
}

.aux_stream_channel {
    color: #60f542;
}






@media (max-width: 1100px) {
    .container {
        flex-direction: column;
    }

    .topbar {
        width: 100%;
        margin-left: 0;
    }

    .topbar-container {
        flex-direction: column;
        align-items: center;
        width: 100%; /* Reset width for smaller screens */
        padding: 0; /* Reset padding for smaller screens */
    }

    .donate-button-container {
        position: static;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 4px groove #4a4a4a;         
        overflow: scroll; /* Ensure scrollbar is visible on smaller screens */
        scrollbar-width: auto; /* For Firefox */
    }

    .sidebar::-webkit-scrollbar {
        display: block; /* For Chrome, Safari, and Edge */
    }
    

    #main_page {
        margin-left: 0;
        width: 100%;
    }

    .footer {
        width: 100%;
        margin-left: 0;
    }

    #main_table #player_container {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .topbar-container {
        padding: 5px 0;
    }

    #topmenu {
        flex-direction: column; /* Stack buttons vertically in cell mode */
        align-items: center; /* Center buttons horizontally */
    }

    #topmenu td {
        padding: 5px 0; /* Reduce padding to fit buttons neatly */
    }

    .topmenu-button {
        width: 100%; /* Make buttons full width */
        max-width: 120px; /* Set a max-width to fit smaller screens */
        font-size: 10px; /* Reduce font size for smaller screens */
        padding: 5px 10px; /* Adjust padding for smaller screens */
        box-sizing: border-box; /* Include padding in width calculation */
    }

    .sidebar td {
        padding: 5px;
    }

    #main_table td {
        padding: 5px;
    }
}

/* Centering the table under the Links title and left-aligning text */
.links-table {
    margin: 0 auto; /* Center the table */
    text-align: left; /* Left-align text within the table cells */
    width: 80%; /* Adjust the width as needed */
}

.links-table th, .links-table td {
    padding: 10px; /* Add some padding for better spacing */
}

/* Style for section titles */
.section-title th {
    font-size: 1.5em; /* Make the section titles larger */
    background-color: #4a4a4a; /* Add background color for better readability */
}

/* Link colors */
.links-table a {
    color: #ffcc00; /* Unclicked link color */
}

.links-table a:visited {
    color: lightorange; /* Clicked link color */
}

/* Member page styles */
.member-section {
    margin: 20px 0;
}

.become-member {
    background-color: #4a4a4a;
    padding: 8px;
    border-radius: 5px;
}

.become-member h2 {
    font-size: 1.5em;
    font-weight: bold;
    background-color: #4a4a4a;
    padding: 8px;
    border-radius: 5px;
}

.become-member-link {
    font-size: 1.2em;
    color: #ffcc00;
    background-color: #4a4a4a;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    word-wrap: break-word;
    max-width: 100%;
}

.become-member-link:hover {
    color: #ffd700;
}

.member-features-list {
    list-style-position: inside;
    padding-left: 0;
    font-size: 1.1em;
}

.member-features-list li {
    margin: 10px 0;
}

/* Donation page styles */
.center-content .donate-link {
    font-size: 1.2em;
    color: #ffcc00 !important;
    background-color: #4a4a4a;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
}

.center-content .donate-link:hover {
    color: #ffd700 !important;
}

.warning-message td {
    padding-top: 40px;
}

.topmenu-button.active {
    background-color: #1b8c61; /* Green */
}

.responsive-img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensures it scales correctly */
}

.header-text {
    background-color: #4a4a4a; /* Same gray as used for section th's */
    padding: 2px 5px; /* Add padding around the text for better visibility */
    border-radius: 4px; /* Optional: adds rounded corners to the background */
}

.divisions-table th {
    background-color: #4a4a4a; /* Gray background */
    color: white;
    padding: 10px;
    text-align: left;
}

.divisions-header {
    background: none; /* Ensures only the text gets the background */
    color: #ffffff; /* Maintains white text color */
}

.divisions-table {
    width: 100%; /* Adjust the width as needed */
    margin: 20px 0; /* Spacing around the table */
    border-collapse: collapse; /* Neat borders */
}

.divisions-table td, .divisions-table th {
    border: 1px solid #ddd; /* Light gray border for readability */
    padding: 8px;
}

#pdf-container {
    position: relative;
    overflow: hidden;
}

#pdf-canvas {
    width: 100%;
    height: auto;
}
.section-title th {
    position: relative;
    padding-right: 40px; /* Adjusted value for padding */
}

.back-to-top {
    position: absolute;
    right: 5px; /* 5 pixels from the right edge */
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
    color: #007bff; /* Adjust the color as needed */
    font-size: 14px; /* Adjust the font size as needed */
}

.cell-container {
  display: flex; /* Aligns children (player and button) horizontally */
  justify-content: space-between; /* Pushes children to opposite ends of the container */
  align-items: center; /* Vertically centers the items */
  width: 100%; /* Ensures the container takes up the full width of the cell */
}

#small_butt {
  display: inline-flex; /* Makes the span behave like a button */
  justify-content: center; /* Centers text horizontally */
  align-items: center; /* Centers text vertically */
  width: 55px; /* Sets the width of the button */
  height: 25px; /* Sets the height of the button */
  background-color: #1b8c61; /* Sets the background color of the button */
  color: white; /* Sets the text color */
  text-align: center; /* Centers text horizontally */
  border-radius: 5px; /* Optional: adds rounded corners to the button */
  cursor: pointer; /* Changes the cursor to a pointer on hover */
  user-select: none; /* Prevents text selection on double-click */
  margin-left: 10px; /* Adds spacing between the player and the button if needed */
  font-size: 12px; /* Optional: adjusts the font size to fit within the button */
}

body.members-page .member-features-list {
    text-align: left;
    padding-left: 20px; /* Optional: Adjust the padding to indent the list */
}

/* Adjust topmenu-button styles for very small screens (mobile) */
@media (max-width: 480px) {
    .topmenu-button {
        width: 100%; /* Take full width available on very small screens */
        max-width: 100px; /* Set a max-width appropriate for narrow screens */
        font-size: 9px; /* Slightly reduce font size for better fit */
        padding: 4px 8px; /* Reduce padding to fit smaller screens */
        margin: 2px; /* Adjust spacing between buttons */
        box-sizing: border-box; /* Include padding in the width */
    }

    #topmenu {
        flex-wrap: wrap; /* Ensure buttons wrap if space is limited */
        justify-content: center; /* Center buttons horizontally */
    }
}
.dialogstyle {
    color: green;
    font-size: 12px;
    font-weight: normal;
    border: 1px solid yellow;
    border-collapse: collapse;
    /* white-space: nowrap; */
    background-color: black;
    margin-bottom: 10px;
    margin: 0px 0px 0px 0px;
    padding-top: 1px;
    padding-left: 0px;
    padding-bottom: 5px;
    width: 98%;
    border-radius: 4px;

}


