html {
  scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
}

#navbar {
    position: fixed;
    width: 300px;
    height: 100%;
    top: 0;
    left: 0;
    border-right: 2px solid rgba(0, 22, 22, 0.4);
    overflow-y: auto;
    padding-right: 5px; /* Adds a little space for the default scrollbar */
}

#navbar header {
    padding: 20px;
    font-size: 1.8rem;
    border-bottom: 1px solid black;
    text-align: center;
}

#main-doc {
    margin-left: 310px;
    padding: 20px 40px;
    line-height: 1.5;
}

.main-section header {
    font-size: 1.8rem;
    margin: 20px 0;
    font-weight: 500;
}

ul {
    padding-left: 40px;
}

li {
    margin-bottom: 10px;
    line-height: 1.6; /* Slightly more space for lists */
}

p,
ul {
    max-width: 85ch;
    margin: 15px 0;
    color: #4d4e53;
}

/* Targets the inner bullets (Boolean, etc.) */
ul ul {
  list-style-type: circle;
  margin-left: 20px;
  margin-top: 10px;
}

code {
    background-color: #f7f7f7;
    color: #d63384;
    display: block;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
}

.nav-link {
    display: block;
    color: #333;
    padding: 15px 30px;
    border-bottom: 1px solid black;
    text-decoration: none;
}

.nav-link:hover {
    background-color: #eee;
    color: #000;
}


@media (max-width: 600px) {
    #navbar {
        position: static;
        width: 100%;
        height: auto; /* Box grows to fit all links */
        border-right: none;
    }

    #main-doc {
        margin-left: 0;
    }
}