/* General Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Div Main Styles */
#main {
    max-width: 800px; /* Maximum width of the main content */
    margin: 20px auto; /* Centering the main content */
    padding: 20px;
    background-color: #fcfdf8;
    box-shadow: 0 0 10px rgba(0,0,0,0.1); /* Adding a subtle shadow around the main content */
}

h1#title {
    color: #22808d; /* Changing the title color to teal blue */
    text-align: center;
}

/* Content Styles */
#content {
    line-height: 1.6; /* Improving readability by increasing line spacing */
}

/* Navigation Styles */
nav {
    background: #22808d; /* Changing the navigation background to teal blue */
    padding: 10px;
    color: #fff;
}

nav ul {
    list-style: none;
    padding: 0;
}

/* Adjusting padding and margin for list items for closer grouping */
nav ul li {
    padding: 1px 0; /* Minimal padding for list items */
    margin-bottom: 1px; /* Minimal bottom margin */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    display: block; /* Ensures padding and margin affects are fully applied */
}

/* Responsive Styles */
@media (max-width: 768px) {
    #main, nav {
        width: 90%; /* Allowing some space on the sides on smaller screens */
    }

    #toggleMenuButton {
        display: block;
        background: #22808d; /* Menu button color adjusted to teal blue */
        color: #fff;
        padding: 10px;
        text-align: center;
        cursor: pointer;
    }

    #menu {
        display: none; /* Hidden by default, shown when toggle button is pressed */
    }
}

a:hover {
    opacity: 0.8;
}

/* Adjusting link styles for visual appeal and interactivity */
nav ul li a {
    padding: 5px 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

nav ul li strong {
    padding: 5px 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: #e0bc9d;
}

nav ul li a:hover {
    border-color: #fff;
    border-radius: 5px;
}

nav#parentLink {
    font-weight: bold;
}

nav#parentLink a {
    color: #fff !important; /* Ensuring important links stand out */
    font-weight: bold;
}

p a[href="./home"] {
    color: #fff;
    font-weight: bold;
}

#childLinks a {
    padding: 8px 10px;  /* Adjusting padding to your preference */
    margin: 2px 0;     /* Providing a slight margin for vertical separation */
    display: block;    /* Ensuring the padding applies properly around the link */
    border-radius: 4px; /* Optional: Adding a slight border-radius for a softer look */
}

/* Removing background color on hover for childLinks */
#childLinks a:hover {
    background-color: transparent !important; /* Ensuring that the background remains transparent on hover */
    border-color: transparent !important; /* Also ensuring that any border does not change color on hover */
}