/* Reset defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* Background styles */
body.home {
    color: white;
    background: url('/i/background.jpg') no-repeat center center fixed;
    background-size: cover;
}
body.washed {
    color: #333;
    background: url('/i/background.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}
body.washed::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0.75;
    z-index: -1;
}

/* Header */
header {
    width: 100%;
    text-align: center;
    padding: 20px;
    background: rgba(0,0,44,0.7);
    color: white;
    /* Remove any positioning that might affect child elements */
    position: static;
}

header h1 {
    font-size: 2em;
    margin: 0;
}

/* Social links positioned below the title, with smaller font */
header .social {
    display: block !important;
    position: static !important;
    margin-top: 10px !important;
    font-size: 0.8em !important;  /* about half size */
    text-align: center !important;
}

header .social a {
    color: inherit;
    text-decoration: none;
}



/* Container layout */
#container {
    display: flex;
    width: 100%;
    margin-top: 20px;
}

/* Navigation Panel */
body.home #nav,
body.home #nav a {
    color: #efefff;;
}
body.washed #nav,
body.washed #nav a {
    color:  rgba(0,0,44,0.7);
}

#nav {
    width: 200px;
    padding: 10px;
    font-size: 14px;    
    background: transparent;
}
#nav h3 {
    font-size: 1.1em;
    margin: 10px 0 5px;
    cursor: pointer;
    padding-bottom: 5px;
}
#nav h3 a {
    text-decoration: none;
    color: inherit;
}
#nav ul.collapsible {
    list-style: none;
    padding-left: 15px;
    display: none;
}
#nav ul.collapsible.active {
    display: block;
}
#nav li {
    margin: 5px 0;
}
#nav a {
    text-decoration: none;
}

#nav a.selected {
    background-color: rgba(0,0,44,0.2);
    font-weight: bold;
}


/* Content Area styled as a page with a subtle paper texture */
#content {
    width: calc((100% - 200px) * 0.8);
    padding: 20px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 20px;
    padding: 20px;
    background-color: #efefff;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABpUlEQVQ4T63TQUtCURTH8c9FqKS4JtKIMVFKL0vKQooNCEIJE5oSNRJUgaZBKQkQXdZTIUjTFjt3syZ2YLP4Cyt6Z37eN/nnfF/xzv3PmAB+YQI4K/mcRbQQhOR5mTiFutFEReYqGq38w1fN8APJXEUxCi3mG2C2Ag9t0Co2kE2yyclRaLNYwONRcgApMwm1eE+N7LQSBf1P3M8gJYSzNd0fF4EkzC+c4cjrN42I/UvR6FEOi76r7cI9Uw1XwkoYzg8QCIEf4CK+u+13knrQHqci0YxqjjAJ4JxZoJkfMOBdx6GlH5Qh2A2TAODU/wkgBp44RruwA1vYCg+HwkTE0+XYfIYik+An5Plwq6iJZROF0AJlswMwyV7cNMS5wGK3H7fpHp0zDkIysE/j0k4RqfB38IuVXNUgUg3EfyUABlURvT9iC6WzEMQocK9h7xKKbcEi0lTMskjh58oIbGSFHF9agfyASkA7MPjN/M++A6l+ezgAAAABJRU5ErkJggg==');
    background-repeat: repeat;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    word-wrap: break-word;
    overflow-wrap: break-word;
}


body.home #content {
    background: transparent;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 20px;
    padding: 20px;
    border: none;
    box-shadow: none;
}

/* Header styles */
#content h1 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 20px;
}

#content h2 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 10px;
    border-bottom: 2px solid #444;
    padding-bottom: 5px;
}

#content h3 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Paragraph styles */
#content p {
    margin-bottom: 15px;
}

/* Image centering */
#content .center {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

#content .center img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* List styling */
#content ul, 
#content ol {
    margin-left: 30px;
    padding-left: 20px;
}

#content li {
    margin-bottom: 5px;
}

/* Indent divs where needed */
#content .indent {
    margin-left: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #content {
        margin: 10px;
        padding: 10px;
    }
    
    #content h1 {
        font-size: 24px;
    }

    #content h2 {
        font-size: 20px;
    }

    #content h3 {
        font-size: 16px;
    }

    #content .center img {
        width: 100%;
    }
}


