:root[data-theme="light"] {
    --page-bg: #f5f5f5;
    --not-page-bg: #313131;

    --general-text-color: #333333;
    --highlight-color: rgb(131, 35, 35);
    --unipositio-color: rgb(112, 112, 112);
    --filter: invert(14%) sepia(27%) saturate(0%) hue-rotate(159deg)
        brightness(104%) contrast(88%);

    --circle-pos: 0px;
    --select-sec-color: #d4d4d4;
    --list-color-even: #d4d4d4;
    --list-color-odd: #c9c7c7;

    --icon-color: #777777;
}

:root[data-theme="dark"] {
    --page-bg: #333333;
    --not-page-bg: #f5f5f5;

    --general-text-color: #f5f5f5;
    --highlight-color: rgb(255, 151, 151);
    --unipositio-color: rgb(155, 155, 155);
    --filter: invert(100%) sepia(91%) saturate(1%) hue-rotate(252deg)
        brightness(107%) contrast(100%);

    --circle-pos: 10px;
    --select-sec-color: #404040;
    --list-color-even: #404040;
    --list-color-odd: #4d4c4c;

    --icon-color: #a0a0a0;
}

body {
    width: 100%;
    background-color: var(--page-bg);
    display: inline-block;
    margin: 0px auto;
    padding: 0;
    color: var(--general-text-color);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    height: fit-content;
    font-size: 15px;
}

.bottominfo {
    font-size: 12px;
    color: var(--general-text-color);
    text-align: center;
    width: 70%;
    margin: auto;
    margin-top: 70px;
}

.navigation > ul {
    list-style-type: none;
    width: auto;
}

li a {
    display: block;
    color: var(--general-text-color);
    padding-left: 0px;
    text-decoration: none;
    font-size: 15px;
    font-weight: lighter;
}

li a.homeimage {
    margin: 2px;
    float: right;
    font-weight: bold;
    padding-right: 10px;
}

.themesw {
    width: 30px;
    height: 20px;
    border: none;
    cursor: pointer;
    margin-right: 15px;
}

li a:hover {
    text-decoration: none;
}

.checkMark {
    transform: translateY(2px);
}

.columnright {
    vertical-align: text-top;
    padding: 0px 24px 0px 24px;
    display: inline-block;
    text-align: left;
    border: 0px;
}

.row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto;
    margin-top: 20px;
    width: min(calc(100vw - 70px), 800px);
    line-height: 1.7;
}

.courseinfo {
    font-size: 13px;
    color: var(--unipositio-color);
    text-align: left;
    margin-top: 10px;
    padding-left: 30px;
}

h1 {
    padding: 0px 24px 0px 24px;
}

a {
    text-decoration: none;
    color: var(--highlight-color);
}

a:hover {
    text-decoration: underline;
}

#main-container {
    margin: 10px auto;
    max-width: 900px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    padding-left: 30px;
}

section.textDisc {
    background: none;
    border: none;
    text-align: left;
    padding: 0px 0px 10px 0px;
    color: var(--highlight-color);
    font-size: 14px;
}

.externalLink {
    font-size: 15px;
    color: var(--icon-color);
}

.aprenderInfo {
    line-height: 1.7;
    font-size: 15px;
}

.toc-container {
    position: relative;
    top: 20px;
    left: 24px;
    font-family: sans-serif;
}

.toc-button {
    background-color: var(--page-bg);
    border: 1px solid #ccc;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.toc-menu {
    display: none;
    position: absolute;
    margin-top: 5px;
    background-color: var(--page-bg);
    border: 1px solid #ccc;
    border-radius: 4px;
    list-style: none;
    padding: 8px 12px;
    width: max-content;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toc-menu li {
    margin: 5px 0;
    padding: 5px 8px;
    border-radius: 3px;
}

.toc-menu a {
    text-decoration: none;
    color: var(--general-text-color);
}

.toc-menu a:hover {
    color: var(--highlight-color);
    text-decoration: underline;
}

.entry-title {
    position: relative;
    padding-top: 0px;
}

h2[id] {
    scroll-margin-top: 70px;
}
h3[id] {
    scroll-margin-top: 70px;
}

#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 50%;
    z-index: 99;
    font-size: 18px;
    background-color: var(--list-color-even);
    border: none;
    border-radius: 50%;
    padding: 12px 16px;
    cursor: pointer;
    transition: 0.3s;
}

#scrollTopBtn:hover {
    background-color: var(--list-color-odd);
}
