.content {
    width: 100%;
    border-left: solid 1px var(--accent);
    border-right: solid 1px var(--accent);
    height: 94vh;
    overflow-y: auto; /* Enables vertical scrolling */
    overflow-x: hidden; /* Prevents horizontal scrolling */
    padding: 28px 15px;
    line-height: 1.8;
    word-spacing: 2px;
}

/* Styling for headings */
.content h1 {
    margin-bottom: 25px;
    font-size: 40px;
}

.content h2 {
    margin-bottom: 15px;
    margin-top: 15px;
}

.content div {
    margin-top: 15px;
}

/* Edit section layout */
.edit {
    display: flex;
    align-items: center;
}

/* Styling for inline code inside paragraphs, lists, and tables */
.content p code,
.content li code,
.content tr code,
.content h3 code{
    color: var(--primary);
    font-weight: bolder;
    font-size: larger;
    border-radius: 5px;
    padding: 0 2px;
}

/* Code block styling */
.content pre {
    background-color: var(--codeBackground);
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.content pre code {
    color: var(--codeText);
    font-weight: inherit;
    background-color: var(--codeBackground);
    overflow-x: auto;
    border-radius: 8px;
}

.content pre code::-webkit-scrollbar{
    height: 7px;
}

.content pre code::-webkit-scrollbar-track{
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.content pre code::-webkit-scrollbar-thumb{
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Table styling */
td {
    border-top: solid 1px var(--accent);
    padding: 5px;
}

th{
    text-align: left;
    color: var(--title);
}

table {
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.underline {
    text-decoration: underline;
}

/* Link styling */
.content a:not(.underline, .edit) {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s ease-in-out;
}

.content a:not(.underline, .edit):hover {
    border-bottom-color: var(--primary);
}

.content a:not(.underline, .edit):active {
    opacity: 0.8;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .content {
        padding: 28px 50px;
        height: 93vh;
    }
}

@media (min-width: 1024px) {
    .content {
        height: 91vh;
        width: 60%;
    }
}

@media (min-width: 1440px) {
    .content {
        height: 93vh;
    }
}
