:root {
    --gradient-color-start: #ffbf4d;
    --gradient-color-end: #e55f00;
}

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

header {
    background: linear-gradient(to right, 
        var(--gradient-color-start) 0%, 
        var(--gradient-color-end) 100%);
    background-size: 1600px 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--gradient-color-end);
    padding: 1px 0;
    height: 75px;
}

@media (min-width: 1600px) {
    header {
        background-size: 100% 100%;
        background-position: center;
        background-repeat: repeat-x;
    }
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
    color: white;
    text-align: left;
}

.header-content a:link {
    color: #fff;
    text-decoration: none;
}

.header-content a:visited {
    color: #fff;
}

nav {
    background: linear-gradient(to bottom, #f8f8f8, #c9c9c9);
    height: 29px;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #999;
    padding-left: 5%;
    padding-right: 5%;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    justify-content: flex-start;
}

nav ul li {
    display: flex;
    align-items: center;
    padding: 0 12px; /* Adjust padding to fit the height of the navbar */
    border-right: 1px solid #999;
    height: 29px;
    box-sizing: border-box;
    position: relative; /* Positioning context for submenu */
}

nav ul li:last-child {
    border-right: none;
}

nav ul li:first-child {
    padding-left: 0px;
}

nav ul li a {
    color: #666;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
}

.submenu-content {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Position below the parent item */
    left: 0;
    background: #f8f8f8;
    padding: 0;
    list-style-type: none;
    margin: 0;
    z-index: 1; /* Ensure it appears above other elements */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Add a shadow for better visibility */
    min-width: 100%; /* Ensure the submenu width covers the widest item */
}

.submenu-content li {
    padding: 0;
    border-bottom: 1px solid #666; /* Add separator between items */
    border-right: 0; /* Ensure no right border */
}

.submenu-content li:last-child {
    border-bottom: none; /* Remove bottom border for the last item */
}

.submenu-content li a {
    display: block;
    padding: 8px 12px; /* Add padding for submenu items */
    color: #666;
    text-decoration: none;
    font-size: 0.8em;
}

.submenu:hover .submenu-content {
    display: block; /* Show submenu on hover */
}

.content {
    max-width: 1600px;
    margin: 0 auto;
    text-align: left;
    padding-left: 5%;
    padding-right: 5%;
}

.content a:link {
    color: #ffbf4d;
}

.content a:visited {
    color: #ffbf4d;
}

.rightmenu {
    /*float: right;*/
    margin-left: auto;
}

h2 {
    color: #ffbf4d;
}

h3 {
    color: #ffbf4d;
    margin-top: 0.5em;
    margin-bottom: 0.25em;
}

.content p {
    margin-top: 0;
    margin-bottom: 1em;
}

h4 {
    color: #ffbf4d;
}

table {
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    border-collapse: collapse;
    border-spacing: 0px;
    width: 100%;
    table-layout: fixed;
}

th, td {
    padding: 8px;
    text-align: left;
}

table, td, th {  
    border: 1px solid #ddd;
    text-align: left;
}

.codeblock code {
    padding: 4px 8px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    max-width: 1600px;
    display: block;
    width: 100%;
    margin: 0 auto;
    border-radius: 4px;
}

.newsbox {
    background-color: #f5f5f5;
    width: 25%;
    padding: 10px;
    margin: 0px;
    border-radius: 5px;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    float: right;
    /* height: 400px; */
}

.newsbox p {
    font-size: 15px;
}

nav ul li:has(+ .rightmenu) {
    border-right: none;
}
