body {
    font-family: 'Space Mono', monospace;
    text-transform: lowercase;
    padding: 0;
    box-sizing: border-box;
    background: #f4f4f4;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
	margin: 0;
}
::-webkit-scrollbar {
    width: 8px; /* Ширина полосы прокрутки */
}

::-webkit-scrollbar-track {
    background: #f4f4f4; /* Цвет фона полосы прокрутки */
}

::-webkit-scrollbar-thumb {
    background: #888; /* Цвет ползунка полосы прокрутки */
    border-radius: 4px; /* Радиус закругления ползунка */
}

::-webkit-scrollbar-thumb:hover {
    background: #555; /* Цвет ползунка при наведении */
}
#hello-world {
    font-size: 2rem;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; /* Ensure header is above other content */
	    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgb(255 255 255) 25%, rgb(255 255 255 / 89%) 50%, rgb(255 255 255 / 72%) 75%, rgba(255, 255, 255, 0) 100%);

}

h1 {
    padding-left: 25px;
    pointer-events: none; /* Ensure header text doesn't block clicks */
}

nav {
    padding-right: 25px;
    pointer-events: none; /* Ensure nav doesn't block clicks */
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    pointer-events: all; /* Ensure ul receives clicks */
}

nav ul li {
    margin-left: 1rem;
    pointer-events: all; /* Ensure li receives clicks */
}

nav ul li a {
    color: blue;
    text-decoration: none;
    font-size: 1.2rem;
    text-underline-offset: 5px;
}
nav ul li a.active {
    text-decoration: underline;
}
.burger-menu {
    font-size: 2rem;
    cursor: pointer;
    pointer-events: all; /* Ensure burger-menu receives clicks */
    display: none; /* Hide by default */
}

main {
    margin-top: 4rem;
    padding: 25px;
    padding-top: 0;
}

#editor {
    position: fixed;
    bottom: 0%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    padding: 1rem;
    color: #333;
}

#editor pre {
    height: 300px; /* Фиксированная высота для содержимого */
    overflow-y: auto; /* Добавляем вертикальную прокрутку */
    white-space: pre-wrap; /* Перенос текста */
    word-wrap: break-word; /* Перенос длинных слов */
    margin: 0; /* Убираем отступы для корректной работы прокрутки */
}

/* Стили для полосы прокрутки */
#editor pre::-webkit-scrollbar {
    width: 8px; /* Ширина полосы прокрутки */
}

#editor pre::-webkit-scrollbar-track {
    background: #333; /* Цвет фона полосы прокрутки */
}

#editor pre::-webkit-scrollbar-thumb {
    background: #888; /* Цвет ползунка полосы прокрутки */
    border-radius: 4px; /* Радиус закругления ползунка */
}

#editor pre::-webkit-scrollbar-thumb:hover {
    background: #555; /* Цвет ползунка при наведении */
}






.mac-window {
    border-radius: 8px;
    overflow: hidden;
    background: #1e1e1e;
    color: #dcdcdc;

}

.mac-header {
    display: flex;
    justify-content: flex-start;
    padding: 0.5rem;
    background: #333;
}

.mac-dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.mac-dot.red {
    background: #ff5f56;
}

.mac-dot.yellow {
    background: #ffbd2e;
}

.mac-dot.green {
    background: #27c93f;
}

pre {
    margin: 0;
    padding: 0.5rem;
}

code {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #dcdcdc;
}

.mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    padding: 0;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    opacity: 0;
    pointer-events: none;
}

.mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
}

.close-menu {
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.mobile-menu h1 {
    margin-bottom: 2rem;
}

.mobile-menu ul {
    list-style: none;
    padding: 0 25px;
}

.mobile-menu ul li {
    margin-bottom: 1rem;
}

.mobile-menu ul li a {
    color: blue;
    text-decoration: none;
    font-size: 1.2rem;
    text-underline-offset: 5px;
}
.mobile-menu ul li a.active {
    text-decoration: underline;
}
.hidden {
    display: none;
}
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .burger-menu {
        display: block;
    }
}
