/* Apply background only to index page */
.index-page {
    background: url('images/tc_beach.JPG') no-repeat center center fixed;
    background-size: cover;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Remove horizontal scrollbar */
    color: #ffffff; /* Ensure text is white */
}

.index-page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: 0; /* Place it behind all content */
}

body, .index-page * {
    z-index: 1; /* Place content above the overlay */
}

/* Style for regular links */
a {
    color: #10e8cc;
    text-decoration: none; /* Remove underline */
}

a:hover {
    color: #8bf4e7;
    text-decoration: underline; /* Add underline on hover */
}

/* Style for visited links */
a:visited {
    color: #81ff81;
}

/* Style for active links */
a:active {
    color: #8bf4e7; /* Same as hover color */
}

/* Header Styles */
header {
    background: rgba(51, 51, 51, 0.8); /* Semi-transparent background */
    color: #fff;
    padding: 5px 0; /* Reduced padding */
    border-bottom: #77aaff 3px solid;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center; /* Center the h1 */
}

header h1 {
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    line-height: 1.2;
    color: #fff; /* Ensure header text is white */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* Text shadow for better readability */
}

/* Navigation Menu Styles */
nav {
    position: fixed;
    top: 43px;
    left: 0;
    bottom: 0;
    width: 200px;
    background: rgba(51, 51, 51, 0.8);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    color: #fff;
    padding-top: 17px; /* Space below the header */
}

nav ul {
    padding: 0;
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
}

nav li {
    padding: 10px;
    position: relative;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold; /* Use bold font for better readability */
}

nav a:visited {
    color: #fff; /* Ensure visited links are also white */
}

nav li:hover > a, nav li:focus-within > a {
    color: #ddd; /* Change color on hover or focus for better visibility */
}

nav .submenu {
    display: block; /* Always show submenus on desktop */
    padding-left: 20px; /* Indent submenu items */
}

nav .submenu li {
    display: block; /* Ensure submenu items stack vertically */
    padding: 10px 0;
}

/* Main Content Styles */
main {
    margin-left: 200px; /* Offset main content to account for fixed sidebar */
    padding: 20px;
    flex: 1; /* Ensures main content takes up available space */
    margin-top: 0; /* Ensure content starts at the top */
}

section {
    margin: 20px 0;
    font-size: 16px; /* Increase font size for better readability */
}

h1, h2 {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* Text shadow for better readability */
    font-weight: bold; /* Use bold font for headers */
}

/* Footer Styles */
footer {
    background: rgba(51, 51, 51, 0.8);
    color: #fff;
    text-align: center;
    padding: 5px; /* Reduced padding */
    position: relative;
    bottom: 0;
    width: calc(100% - 200px); /* Adjust width to avoid overlap with sidebar */
    margin-left: 200px; /* Offset footer to account for fixed sidebar */
    font-size: 0.8rem; /* Adjust font size if necessary */
    line-height: 1.2; /* Adjust line height to reduce space */
}

/* Mobile Menu Styles */
.menu-toggle {
    display: none; /* Hide by default */
    flex-direction: column; /* Stack bars vertically */
    cursor: pointer; /* Change cursor to pointer */
    background: #333; /* Background color for visibility */
}

.bar {
    height: 3px;
    width: 25px;
    background-color: #fff;
    margin: 4px 0; /* Space between bars */
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #fff;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    background: rgba(125, 125, 125, 0.6); /* Semi-transparent white background */
}

th {
    background-color: rgba(0, 91, 150, 0.6); /* Semi-transparent darker blue for header */
    color: white;
    text-transform: uppercase;
}

tr:nth-child(even) td {
    background-color: rgba(125,125,125, 0.6); /* Semi-transparent light grey for even rows */
}

tr:nth-child(odd) td {
    background-color: rgba(51, 51, 51, 0.6); /* Semi-transparent white for odd rows */
}

.address {
    font-weight: bold;
    font-size: 1.1em;
    color: #2c3e50;
}

.map-link {
    display: inline-block;
    margin-top: 5px;
    font-size: 1em;
    color: #007BFF;
    text-decoration: none;
}

.map-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav {
        position: static; /* Position relative for mobile view */
        width: 100%;
        height: auto;
        background: rgba(51, 51, 51, 0.8);
        padding-top: 0; /* Remove space for mobile view */
    }

    main {
        margin-left: 0; /* Remove offset for mobile view */
    }

    footer {
        margin-left: 0; /* Remove offset for mobile view */
        width: 100%; /* Full width for footer on mobile view */
    }

    .menu-toggle {
        display: flex; /* Show on small screens */
    }

    nav ul {
        padding: 0;
        display: none;
        flex-direction: column;
        background: rgba(51, 51, 51, 0.8);
    }

    nav ul.active {
        display: flex; /* Show menu when toggled */
    }

    nav li {
        display: block;
        padding: 10px 0;
    }

    nav .submenu {
        display: block; /* Show submenus by default */
        padding-left: 20px; /* Indent submenu items */
    }
	
	table {
        border: 0;
    }

    table caption {
        font-size: 1.3em;
    }

    table thead {
        display: none;
    }

    table tr {
        display: block;
        margin-bottom: .625em;
    }

    table td {
        display: block;
        text-align: right;
        font-size: 1em;
        border-bottom: 1px solid #ddd;
        position: relative;
        padding-left: 30%;
        background: rgba(125, 125, 125, 0.6); /* Semi-transparent grey background */
        word-wrap: break-word; /* Allow text to wrap within the cell */
    }

    table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px; /* Add a bit of spacing */
        width: calc(25% - 20px); /* Reduced width with padding compensation */
        font-weight: bold;
        text-align: left;
        background-color: transparent; /* Keep background transparent */
        color: #fff;
    }

    table td:last-child {
        border-bottom: 0;
    }
}
