/*
    Stylesheet by bajtixone 
    2022
*/

/* roboto fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap');


/* debug */
/* * {
    border: 1px dashed red;
} */

body {
    --bg: #fafafa;
    --fg: #000;
    --fga: #3a3a3a;

    margin: 0px;
    padding: 0px;

    width: 100%;
    height: 100vh;

    overflow: hidden;

    box-sizing: border-box;

    font-family: 'Roboto', sans-serif;
    font-weight: 300;

    background-color: var(--bg);
    color: var(--fg)
}

a {
    text-decoration: none;
    color: var(--fga);
}

a:hover {
    text-decoration: underline;
}


@media (prefers-color-scheme: dark) {
    body {
        --bg: #1a1a1a;
        --fg: #fff;
        --fga: #f2f2f2;
    }

    #logo {
        filter: invert(100%);
    }
}


h1 {
    font-size: 4em;
    margin-bottom: 0.5rem;
}

#logo {
    margin-top: 1em;
    max-height: 10vh;
}

#navigation {
    border-bottom: 2px solid var(--fg);

    width: 100%;

    grid-row: 1;
    margin-bottom: 0;

    word-wrap: none;
    overflow-wrap: none;
    overflow-y: hidden;
    overflow-x: scroll;

    padding-top: 0.3em;
    padding-bottom: 0.3em;
    margin-bottom: 0.5em;
}

#navigation #n-bar {
    width: max-content;
}

#navigation #n-bar * {
    font-weight: 500;
    font-size: 3em;
}

#toolbar {
    border-top: 2px solid var(--fg);

    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;

    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;

    font-weight: 500;

    grid-row: 3;
}


#container {
    margin: 0px auto;
    width: 75%;
    height: 100%;
    overflow-y: hidden;

    display: grid;
    grid-template-rows: min-content auto min-content;
}

#header {
    width: 100%;

    grid-row: 1;
}

#content {
    width: 100%;
    height: 100%;

    grid-row: 2;
    display: grid;

    overflow-y: hidden;

    grid-template-rows: min-content auto min-content;
}

#footer {
    width: 100%;
    grid-row: 3;

    margin-bottom: 1em;
}


#current-view {
    width: 100%;
    height: 100%;
    grid-row: 2;


    overflow-y: auto;
}

#current-view iframe {
    border-style: none;
    width: 100%;
    height: 99%;
}

.view-error h3 {
    font-size: 3em;
    margin-bottom: -0.25em;
}

.view-error a {
    font-weight: 500;
}

.list-item {
    padding-top: 5px;
    padding-bottom: 5px;
    display: flex;

    text-decoration: none;
}



#directory-list {
    display: flex;
    flex-direction: column;
}

/* media for mobile */
@media (max-width: 1000px) {

    #container {
        width: 95%;
        height: 100%;

    }

    #logo {
        max-height: 8vh;
    }

    #toolbar {
        display: grid;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        text-align: center;
    }

    #navigation #n-bar * {
        font-size: 2em;
    }
}

@media (pointer: coarse) {

    .list-item {
        font-size: 1.2em;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    #footer {
        margin-top: 0.5em;
        margin-bottom: 0.5em;
    }

    @media (min-height: 1090px) {
        body {
            font-size: 40px;
        }

        .toolbar-item {
            margin: 30px;
        }

        #logo {
            max-height: 6vh;
        }
    }
}