::-webkit-scrollbar
{
    width: 10px;
    height: 10px;
}



::-webkit-scrollbar-thumb
{
    border-radius: 5px;
}



::-webkit-scrollbar-track
{
    border-radius: 5px;
}



body
{
    display: grid;
    grid-template-columns: 1fr 2fr;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    margin: 0;
}



header
{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    height: 100vh;

    overflow-y: auto;
}



header .logo
{
    display: flex;
    align-items: center;
    
    padding: 2vh;
}



header img
{
    height: 8em;
}



#openclosepanel
{
    position: fixed;
    top: 1vh;
    left: 1vh;
    
    padding: 1vh;
    
    background-color: #601e1e;
    border-radius: 6px;

    cursor: pointer;
    
    z-index: 1;
}



#openclosepanel:hover
{
    background-color: #dd3535;
}



.search-area
{
    display: flex;
    flex-direction: column;

    margin: 0 2vh;
}



#search
{
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.5em;

    padding: 0.4em 0.8em;

    border-radius: 6px;
    
    outline: none;
}



#search_results
{
    margin: 1em 0.5em;
}



ul.menu
{
    list-style-type: none;
    
    margin: 2vh;
    padding: 0;
}



ul.menu h3
{
    text-transform: uppercase;
}



ul.menu li a
{
    display: block;
    padding: 1vh;
    color: white;
    text-decoration: none;

    border-radius: 6px;

    transition: 0.25s;
}



ul.menu li span
{
    background: #1c232d;
    color: #e6ebf3;
    
    border-radius: 4px;
    
    padding: 0.1vh 0.4vh;
}



ul.submenu
{
    list-style-type: none;
    display: none;
}



nav ul li a:hover
{
    background-color: #601e1e;
}



nav ul li a.active
{
    color: #dd3535;
}



nav ul li a.dropdown::after
{
    content: ">";
    float: right;
}



button
{
    font-size: 2vh;

    background: none;
    color: white;

    cursor: pointer;
    pointer-events: initial;

    outline: none;

    border: 0;
    padding: 0;

    margin: 1vh;

    transition: 0.25s;
}



.copy-button
{
    font-size: 1.25em;
    
    position: absolute;
    top: 0;
    right: 0;
    
    padding: 0.25em 0.4em;

    border-radius: 0.3vh;
    
    color: #414852;

    transition: 0.25s;
}



.copy-button:hover
{
    background: #12171e;
}



.copy-button.copied
{
    color: #3fb950;
}



article
{
    height: 100vh;
    
    overflow: auto;
}



#content
{
    padding: 2vh 4vh;
}



footer
{
    position: fixed;
    bottom: 0;
    right: 0;

    margin: 0 2vh;
    
    opacity: 0.2;
    
    font-size: 1.5vh;
    text-align: center;
}



@media (prefers-color-scheme: dark)
{
    ::-webkit-scrollbar-thumb
    {
        background-color: #1c232d;
    }
    
    ::-webkit-scrollbar-track
    {
        background-color: #12171e;
    }

    ::-webkit-scrollbar-thumb:hover
    {
        background-color: #202730;
    }

    html, body
    {
        background: #0D1117;
        color: #ffffff;
    }

    header
    {
        background: #151c25;
    }

    #search
    {
        background: #1f2630;
        color: white;
        
        border: solid 3px #313740;
    }
}



@media (prefers-color-scheme: light)
{
    ::-webkit-scrollbar-thumb
    {
        background-color: #e6e6e6;
    }
    
    ::-webkit-scrollbar-track
    {
        background-color: #ffffff;
    }

    ::-webkit-scrollbar-thumb:hover
    {
        background-color: #d5dfe1;
    }

    html, body
    {
        background: #ffffff;
        color: #0D1117;
    }

    header
    {
        background: #eff7f9;
    }

    #search
    {
        background: #d5dfe1;
        color: 313740;
        
        border: solid 3px #e3ebed;
    }

    ul.menu li a
    {
        color: #0D1117;
    }

    ul.menu li a:hover
    {
        color: #eff7f9;
    }

    ul.menu li span
    {
        background: #e6ebf3;
        color: #1c232d;
    }

    .copy-button:hover
    {
        background: #e3e6e9;
    }
}



@media (max-width: 1000px)
{
    body
    {
        display: block;
    }
    
    header
    {
        position: fixed;
        top: 0;
        left: 0;

        padding: 8vh 0;

        width: 35vh;

        font-size: 1.5vh;
    }

    article
    {
        padding: 8vh 0;
    }

    #content
    {
        font-size: 1.5vh;
    }
}