body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: #0f1018;
    color: #e0e0e0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #5676ff #23243a;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #23243a; 
    border-radius: 10px; 
}

::-webkit-scrollbar-thumb {
    background-color: #5676ff; 
    border-radius: 10px; 
    border: 3px solid #23243a;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #415cd3; 
}

header {
    background: #161725;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    position: sticky;
    top: 0;
    z-index: 10;
}

header h1 {
    font-size: 2rem;
    margin: 0;
}

nav {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 250px;
    max-height: 80vh; 
    background: #161725;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    overflow-y: auto; 
    border: 1px solid #23243a;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; 
    justify-content: flex-start;
    width: 100%; 
}

nav ul li {
    margin-bottom: 10px;
    flex: 1 1 100%; 
    max-width: 100%; 
    box-sizing: border-box; 
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    transition: background 0.3s ease-in-out, color 0.3s;
    white-space: normal;
    word-wrap: break-word;
}

nav ul li a:hover {
    background: #23243a;
    color: #5676ff;
}

main {
    padding: 3rem 2rem;
    max-width: 1000px;
    margin-right: auto;
    margin-left: auto;
}

section {
    margin-bottom: 3rem;
    background: #161725;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    display: block;
}

section h2 {
    color: #5676ff;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

footer {
    background: #161725;
    color: #aaa;
    text-align: center;
    padding: 1.5rem 0;
    width: 100%;
    bottom: 0;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.7);
    border-top: 1px solid #23243a;
}

footer p {
    margin: 0;
    font-size: 1rem;
}

pre {
    background: #1e1f2b;
    padding: 15px;
    overflow: auto;
    color: #b5e7ff;
    border-radius: 8px;
    border: 1px solid #2d2f44;
    font-size: 1.1rem;
    cursor: pointer;
}

pre:hover {
    background-color: #2a2c3d;
}

ul ul {
    margin-left: 20px;
}

ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

a {
    color: #5676ff;
    text-decoration: none;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.container section {
    display: block;
}

.container section:not(:last-child) {
    margin-bottom: 2rem;
}

.copy-notification {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background-color: rgba(0, 0, 0, 0.8);
	color: #fff;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 1rem;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.copy-notification.show {
	visibility: visible;
	opacity: 1;
}

#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #5676ff;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    user-select: none;
    padding: 0;
    transition: background 0.3s;
}

#scrollToTopBtn:hover {
    background-color: #415cd3;
}
