@font-face {
    font-family: DOS;
    src: url(../Fonts/DOS.TTF);
}

@font-face {
    font-family: CollFont;
    src: url(../Fonts/CollFont.ttf);
}

body.alt-font {
    font-size: 22px !important;
    line-height: 1.1 !important;
    font-family: CollFont, sans-serif !important;
}

body.alt-font .window-title,
body.alt-font .status-bar,
body.alt-font .note {
    font-size: 22px !important;
    font-family: CollFont, sans-serif !important;
}

body.alt-font pre,
body.alt-font code {
    font-family: CollFont, sans-serif !important;
    font-size: 17px !important;
    line-height: 1.3 !important;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: DOS, monospace;
    background-color: #008787;
    color: rgb(0, 0, 0);
    font-size: 24px;
    min-height: 100vh
}

a:hover {
    text-decoration: underline;
}

button {
    cursor: pointer;
}

main.beveled-panel {
    flex: 1;
    min-width: 0;
}

.beveled-panel {
    background-color: rgb(192, 192, 192);
    color: rgb(0, 0, 0);
    border-bottom: 3px solid rgb(45, 45, 45);
    border-right: 3px solid rgb(45, 45, 45);
    box-shadow: 15px 15px 0px rgb(45, 45, 45);
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.window-title {
    background-color: #0000AA;
    color: white;
    padding: 2px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.window-content {
    padding: 15px;
    flex: 1;
}

.window-content hr {
    border: 0;
    border-top: 2px solid rgb(45, 45, 45);
    margin: 10px 0;
}

.window-controls {
    display: flex;
    gap: 10px;
    cursor: default;
    user-select: none;
}

header.beveled-panel {
    position: sticky;
    top: 0;
    flex: 0 0 auto;
    z-index: 1000;
    margin: -20px -20px -20px -20px;
    box-shadow: none;
    background-color: #c0c0c0;
    box-sizing: border-box;
    border-bottom: 2px solid #808080;
    border-right: 2px solid #808080;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #FFFFFF;
}

header.beveled-panel>div {
    display: flex;
    align-items: center;
    width: 100%;
}

#font-btn {
    font-family: DOS, monospace;
    cursor: pointer;
    padding: 5px 10px;
    background: #c0c0c0;
    border: 2px solid;
    margin-right: 50px;
    border-color: #ffffff #808080 #808080 #ffffff;
}

#font-btn:active {
    background: #8b8b8b;
    border-color: #808080 #ffffff #ffffff #808080;
    border-top: 3px solid rgb(45, 45, 45);
    border-left: 3px solid rgb(45, 45, 45);
    border-bottom: 3px solid #FFFFFF;
    border-right: 3px solid #FFFFFF;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: rgb(0, 0, 0);
    padding: 5px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.github-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: black;
}

.github-link img {
    width: 24px;
    height: 24px;
    filter: grayscale(1) contrast(1.5);
}

.github-link:hover span {
    text-decoration: underline;
}

.header-link p {
    margin: 0;
}

.content-wrapper {
    width: fit-content;
    display: flex;
    flex: 1 1 auto;
    padding: 50px;
    padding-bottom: 40px;
    gap: 35px;
    align-items: flex-start;
    padding-right: 20px;
    box-sizing: border-box;
}

.sidebar {
    min-width: 150px;
    height: fit-content;
    width: 300px;
    min-width: 300px;
}

.sidebar hr {
    border: 0;
    border-top: 2px solid rgb(45, 45, 45);
    margin: 10px 0;
}

.sidebar a {
    color: #000000;
}

main {
    flex: 1;
}

a {
    color: #0000AA;
    text-decoration: none;
}

img {
    border: 2px solid rgb(45, 45, 45);
    padding: 2px;
}

.status-bar span {
    white-space: pre;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 9999;
    flex: 0 0 auto;
    margin-top: auto;
}

.status-bar {
    background-color: #5555FF;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 2px 10px;
    font-size: 20px;
    margin-top: auto
}

.code-window {
    background-color: #000000;
    position: relative;
    font-family: DOS, monospace;
    border-top: 3px solid rgb(45, 45, 45);
    border-left: 3px solid rgb(45, 45, 45);
}

pre {
    margin: 0;
    overflow-x: auto;
    font-family: DOS, monospace;
    font-size: 18px;
    line-height: 1.4;
    color: #00FF00;
}

.code-window code {
    font-family: DOS, monospace;
}

.copy-btn {
    position: absolute;
    right: 5px;
    background: #c0c0c0;
    border-color: #ffffff #808080 #808080 #ffffff;
    font-family: DOS, monospace;
    font-size: 10px;
    cursor: pointer;
    padding: 2px 8px;
    z-index: 10;
}

.copy-btn:active {
    background: #666666 !important;
    border-top: 3px solid rgb(45, 45, 45);
    border-left: 3px solid rgb(45, 45, 45);
    border-bottom: 3px solid #FFFFFF;
    border-right: 3px solid #FFFFFF;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 10px;
    margin-bottom: 2px;
}

p {
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.2;
}

.note {
    background-color: #8b8b8b;
    font-family: DOS, monospace;
    border-top: 3px solid rgb(45, 45, 45);
    border-left: 3px solid rgb(45, 45, 45);
    border-bottom: 3px solid #FFFFFF;
    border-right: 3px solid #FFFFFF;
    padding: 15px 25px;
    margin: 20px 0;
    width: fit-content;
    max-width: 90%;
}

.note b {
    color: #FFFF55;
}

.menu-category {
    cursor: pointer;
    user-select: none;
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.menu-category::before {
    content: "[+] ";
    white-space: pre;
}

.menu-category.open::before {
    content: "[-] ";
}

.menu-items {
    display: none;
    padding-left: 20px;
    margin-top: 5px;
    border-left: 2px dashed rgb(45, 45, 45);
}

.menu-category.open+.menu-items {
    display: block;
}

.menu-items a {
    font-size: 20px;
    margin-bottom: 5px;
    display: block;
}

.menu-items a:hover {
    background: #0000AA;
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        padding: 20px;
    }

    .sidebar {
        width: 100%;
    }
}