body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0 20px; /* Adds horizontal padding to prevent text from touching the edges */
    max-width: 800px;
    margin: auto;
    background-color: #121212;
    color: #e0e0e0;
    padding-top: 60px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #1f1f1f;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
    flex-wrap: wrap; /* Allows wrapping of items for smaller screens */
}

nav {
    display: flex;
    flex: 1;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    flex: 1;
    flex-wrap: wrap; /* Wraps items if there isn’t enough space */
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #e0e0e0;
    font-family: 'Courier New', Courier, monospace;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #00c4ff;
}

nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #00c4ff;
    transition: width .3s;
    position: absolute;
    bottom: -2px;
    left: 0;
}

nav ul li a:hover::after {
    width: 100%;
}

#language-selector {
    color: #e0e0e0;
    margin-left: 20px; /* Reduce margin on smaller screens */
    flex-shrink: 0; /* Prevents it from shrinking */
}

select {
    background-color: #1f1f1f;
    color: #e0e0e0;
    border: 1px solid #333;
    padding: 5px;
    border-radius: 4px;
}

/* Responsive styling for smaller screens */
@media (max-width: 600px) {
    header {
        flex-direction: column; /* Stack header elements vertically on smaller screens */
        align-items: flex-start; /* Aligns items to the left */
        padding: 10px; /* Reduce padding for smaller screens */
    }
	body {padding-top:100px;}

    nav ul {
        justify-content: flex-start; /* Align navigation items to the left */
        margin-top: 10px; /* Adds spacing between nav items and other header content */
    }

    #language-selector {
        margin-top: 10px; /* Adds margin above language selector for spacing */
    }
}

ol {
    margin-left: 20px;
    padding-left: 0;
}

ol li {
    margin-bottom: 1em;
}

footer {
    background-color: #1f1f1f;
    color: #e0e0e0;
    text-align: center;
    padding: 5px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 5px;
    border-top: 1px solid #333;
}

footer a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    text-decoration: underline;
    color: #00c4ff;
}
