@media only screen and (max-width: 768px) {
    #content {
        margin: 0 10%;
    }

    #sidebar {
        display: none;
    }
}

@media only screen and (min-width: 768px) {
    #content {
        margin-left: 25%;
        margin-right: 10%;
    }
}

#sidebar {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 120px;
    left: 3%;
    width: 18%;
    max-height: 60%;
    border-radius: 20px;
    box-shadow: 0 0 10px gray;
    font-size: 16px;
    white-space: pre-wrap;
    overflow-y: scroll;
    scorllbar-width: none;
    -ms-overflow-style: none;
    transition: all ease 0.5s;
}

#sidebar::-webkit-scrollbar {
    display: none;
}

#sidebar.sidebar-active {
    visibility: visible;
    opacity: 1;
}

#sidebar .accordion-body, #sidebar .accordion-button {
    padding: 0;
}

#sidebar .accordion-button:not(.collapsed) {
    background-color: transparent;
    box-shadow: none;
}

#sidebar .side-item {
    padding: 10px;
}

#sidebar .side-item:hover,#sidebar .accordion-button:hover {
    color: #0c63e4;
    cursor: pointer;
}

h1, h2, h3, h4 {
    font-weight: bold;
    margin-top: 5%;
    white-space: pre-wrap;
}

section p {
    text-indent: 2em;
    text-align: justify;
}

div.img > img {
    display: block;
    margin: 30px auto 5px auto;
    text-align: center;
    max-width: 90%;
}

div.img > .caption {
    text-indent: 0;
    text-align: center;
    margin-bottom: 30px;
}

table:not(#ref-table) {
    max-width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    line-height: 1.8;
    text-align: center;
}

table:not(#ref-table) th, table:not(#ref-table) td {
    border: 1px solid black;
    padding: 10px;
}

table ol, table ul {
    margin: 0;
}

table caption {
    color: black;
    text-align: center;
}

object {
    display: block;
    width: 90%;
    height: 100vh;
    margin: 20px auto;
}

#ref-table {
    text-align: justify;
}

#ref-table * {
    border: none;
}

#ref-table tr td:first-child {
    vertical-align: top; /* Adjust the numbers of ref. */
}

div[id^="ref"]:before {
    content: "";
    display: block;
    height: 96px; /* Adjust based on header height */
    margin-top: -96px; /* Adjust based on header height */
    visibility: hidden;
}