/* standard classes */

:root {
    --nav-width: 30vw;
    --nav-min: 230px;
    --nav-max: 300px;
    -webkit-tap-highlight-color: transparent;
}

[id] {
    scroll-margin-top: 100px;
}

.display-flex {
    display: flex;
    justify-content: space-between;
}

section {
    padding-top: 80px;
    background-color: var(--blueprint);
}

h3 {
    font-family: var(--heading-font);
    font-size: 1.8em;
    font-weight: 500;
    margin-bottom: 10px;
}

hr {
    border-top: none;
    border-bottom: 1px solid var(--grey);
    margin: 50px 0;
}

/* mobile nav */

.arrow-down {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid var(--grey);
    transition: transform 0.3s ease;
    display: inline-block;
}

.instructions-btn {
    width: 100%;
    padding: 10px 5px;
    border-radius: 5px;
    color: white !important;
    font-family: var(--heading-font);
    font-size: var(--btn-font-size);
    font-weight: bold;
    letter-spacing: 1.1px;
    background-color: var(--off-blue);
    width: 100%;
    max-width: 450px;
    display: inline-block;
    text-align: center;
    margin: 0 auto;
    border: 1px solid white;
    cursor: pointer;
}

.instructions-btn:hover {
    transform: scale(105%);
    transition: 0.3s ease;
}

.instructions-btn:active {
    transform: scale(100%);
    transition: 0.1s ease;
}

/* docs nav styling */

#search-box {
    border-radius: 20px;
    border: 2px solid var(--grey);
    height: 40px;
    background-color: transparent;
    color: var(--grey);
}

.instructions-content {
    margin: 0 auto;
    background-color: var(--blueprint);
    max-width: 800px;
    padding: 0px 25px 45px;
    color: white;
}

#docs-hamburger {
    width: 30px !important;
    height: 22px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 5px;
}

#docs-hamburger span {
    display: block;
    height: 4px;
    background: var(--grey);
    transition: 0.3s ease;
}

#open-docs-btn {
    color: var(--grey);
    cursor: pointer;

    p {
        margin: 8px;
    }
}

/* page information */

.right-column-for-desktop {
    display: none;
}

#page-information-dropdown {
    width: 100%;
    background-color: var(--off-blue);
    border-radius: 5px;
    margin-top: 20px;
    overflow: hidden;
    height: 40px;
    cursor: pointer;
    transition: height 0.3s ease;
    border: 1px solid var(--grey);
}

#page-information-dropdown ul {
    list-style: none;
    padding: 10px 10px 0;
    margin-top: 0;
    border-top: 1px solid white;
}

#page-information-dropdown ul li {
    margin-bottom: 15px;
}

#page-information-dropdown h4 {
    margin: 0;
    font-weight: 500;
    color: var(--grey);
}

ul li a {
    color: white;
    text-decoration: none;
    text-align: left;
}

.arrow-rotate {
    transform: rotate(-180deg);
}

/* instructions side navbar */

.side-nav-open {
    width: 80vw !important;
}

#instructions-side-nav-ghost {
    width: 0;
}

#instructions-side-nav {
    position: fixed;
    height: 100vh;
    width: 0;
    background-color: var(--dark-grey);
    border-right: 1px solid var(--grey);
    z-index: 1;
    overflow: hidden;
    transition: width 0.3s ease;
    white-space: nowrap;
    margin-left: -2px;
    max-width: 600px;
}

#instructions-side-nav ul {
    list-style: none;
}

#instructions-side-nav ul li {
    margin: 5px 0;
}

#instructions-side-nav ul li a {
    color: white;
}

#instructions-side-nav ul li a:hover {
    text-decoration: underline;
}

#instructions-side-nav h1 {
    color: white;
    margin: 25px 15px;
    font-size: 2rem;
}

.side-nav-sub-title {
    font-family: var(--heading-font);
    font-weight: bold;
    color: white;
    margin-left: -10px !important;
    padding-bottom: 10px;
}

/* turn hamburger into an < */

#docs-hamburger.side-nav-open span:nth-child(1) {
    transform: rotate(-40deg);
}

#docs-hamburger.side-nav-open span:nth-child(2) {
    transform: rotate(40deg);
}

/* content styling */

h1 {
    font-size: 4rem;
    margin: 0;
}

h2 {
    margin-bottom: 0;
}

/* table styling */

table {
    border-collapse: collapse;
    width: 100%;
    border-radius: 5px;
    border: 1px solid var(--grey);
}

td,
th {
    padding: 8px;
}

tr:nth-child(even) {
    background-color: var(--off-blue);
}

tr:hover {
    background-color: #ddd;
    color: var(--grey);
}

th {
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: left;
    border-right: 1px solid var(--grey);
}

th a {
    color: white;
}

th a:hover {
    text-decoration: underline;
}


@media (min-width: 801px) {

    #instructions-side-nav {
        transition: none;
        width: var(--nav-width);
        min-width: var(--nav-min);
        max-width: var(--nav-max);
    }

    #instructions-side-nav-ghost {
        flex: 0 0 var(--nav-width);
        min-width: var(--nav-min);
        max-width: var(--nav-max);
        display: inline-block;
        background-color: var(--blueprint);
    }

    #instructions-container {
        display: flex;
        width: 100%;
    }

    .instructions-content {
        margin: 0;
        width: 100%;
        padding: 0 5vw 45px;
        max-width: 100vw;
    }

    .right-column-for-desktop {
        width: 30%;
        background-color: var(--blueprint);
        display: block;
        min-width: var(--nav-min);
        max-width: var(--nav-max);
    }

    .right-column-for-desktop h2 {
        color: var(--grey);
        margin-left: 10px;
    }

    .right-column-for-desktop ul {
        list-style: none;
    }

    #page-contents-desktop {
        position: fixed;
        z-index: 1;
        background-color: var(--blueprint);
        width: 100%;
        height: 100vh;
        border-left: 1px solid var(--grey);
        min-width: var(--nav-min);
        max-width: var(--nav-max);
    }

    .right-column-for-desktop ul li {
        margin: 5px 0;
        
        a {
            color: var(--grey);
        }
    }

    .right-column-for-desktop ul li a:hover {
        text-decoration: underline;
        color: white;
    }

    #open-docs-btn {
        display: none;
    }

    #page-instructions-nav {
        display: none;
    }

}