@font-face {
    font-family: 'SourceCodePro';
    src: url('fonts/SourceCodePro.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --light: #CCCCCC;
    --dark:  #4F4F4F;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: none !important;
    /* scroll-behavior: smooth; */
}

body {
    opacity: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
    color: var(--dark);
    background-color: var(--light);
    font-family: 'SourceCodePro', arial;
    font-size: .85rem;
    line-height: 1.3rem;
}

nav {
    width: 18rem;
    text-align: center;
}

hr {
    border: none;
    height: 1px;
    margin: .5rem 0 1rem 0;
    background: var(--dark);
}

a {
  text-decoration: none;
}

footer {
    position: absolute;
    bottom: 1rem;
    text-align: center;
}

#patchouli {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    height: 30rem;
}

.h1 {
    background: var(--dark);
    color: var(--light);
    padding: 0.1rem 0.6rem;
}

.h2 {
    display: flex;
    align-items: center;
}

.line {
    margin-left: .6rem;
    border-bottom: solid 1px var(--dark);
    display: flex;
    flex: content;
}

.link {
    text-decoration: underline;
    color: var(--dark);
}

.link:hover {
    font-weight: bold;
}

/* BOX LAYOUT -------------------------------------------------------------- */
#box {
    display: grid;
    gap: 1rem;
    grid-template-columns: max-content max-content;
    grid-template-rows: max-content;
    grid-template-areas: 
        "box-nav box-main";
}

/* NAV --------------------------------------------------------------------- */
#box-nav { 
    grid-area: box-nav;
    border: solid 1px var(--dark);
    padding: .5rem;
    width: 13rem;
}

#box-nav div:not(.nav-section) a {
    padding-left: .6rem;
    color: var(--dark);
    text-decoration: none;
}

#box-nav a:hover {
    font-weight: bold;
}

.nav-section {
    color: var(--light);
    background: var(--dark);
    padding-left: .6rem;
}


/* MAIN -------------------------------------------------------------------- */
#box-main {
    grid-area: box-main;
    position: relative;
    width: 50rem;
    height: 40rem;
    border: solid 1px var(--dark);
    padding: .5rem;
}

/* SCROLLBAR --------------------------------------------------------------- */
.scroll-content {
    height: 100%;
    overflow-y: scroll;
    padding-right: .7rem; /* +.2 to account for the scrollbar width */
}

.scrollbar {
    position: absolute;
    top: 0;
    right: 0;
    width: .7rem;
    height: 100%;
    padding: 1px;
    background: var(--dark);
}

.scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 1px;
    width: calc(100% - 1px);
    background: var(--light);
    cursor: pointer;
}


.title hr {
    margin: 0;
    /* height: 2px; */
}

.title {
    text-align: center;
    font-weight: bold;
}