@import "base.css";

html {
    min-height: 100%;
}


body {
    background: rgb(249, 249, 249);
    font-family: sans-serif;
}

.logo {
    text-align: center;
}

    .logo img {
        max-width: 300px;
        width: 100%;
    }

nav {
    top: 0;
    margin: 10px auto 0 auto;
    position: -webkit-sticky;
    position: sticky;
    width: 100%;
    z-index: 2;
    box-shadow: 0px 2px 3px 0px rgba(0,0,0,0.2);
    /*box-shadow: inset 0px 2px 17px 0px rgba(0, 0, 0, .58);*/
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: linear-gradient(88deg, black, transparent);
    /*background: linear-gradient(88deg, black, #1337489e);*/
}

    nav a.sel {
        background-color: #153f52;
    }

    nav a {
        color: #ececec;
        text-decoration: none;
        text-transform: uppercase;
        padding: 10px;
        font-size: 17px;
        letter-spacing: 2px;
        display: block;
        text-shadow: 0px 2px 5px rgba(0,0,0,0.2);
        transition: background .3s;
    }

        nav a:hover {
            background-color: #153f52;
        }


.main-wrapper {
    box-sizing: border-box;
    margin: 2em auto;
    padding: 0;
    width: 80%;
    font-size: 16px;
    text-align: justify;
    line-height: 140%;
    color: #353535;
    background: rgb(253, 253, 253);
    box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.6);
}

    .main-wrapper a {
        color: #1493b9;
    }

        .main-wrapper a:visited {
            color: #0a5c96;
        }

        .main-wrapper a:active {
            color: #0b3858;
        }

        .main-wrapper a:hover {
            color: #0c3858;
        }

    .main-wrapper ul {
        text-align: left;
    }

    .main-wrapper img {
        max-width: 100%;
        display: block;
        margin: 0 auto;
        box-shadow: 2px 1px 10px 0 black;
    }

    .main-wrapper h1 {
        line-height: initial;
        word-break: break-word;
        text-align: left;
    }

header {
    background: rgb(28, 21, 50);
    color: white;
    padding: 1em 2em;
}

main {
    padding: 1em 2em;
}

h2 {
    position: relative;
    margin-block-start: 1.5em;
    line-height: 2rem;
}

    h2 a {
        position: absolute;
        top: -50px;
    }




.code {
    overflow: auto;
    background-color: rgb(245, 245, 245);
    padding: 10px 13px;
    max-height: 300px;
    border-radius: 3px;
    font-size: 93%;
    font-family: monospace;
}

.inlcode {
    overflow: auto;
    background-color: rgb(235, 235, 235);
    padding: 2px 2px;
    max-height: 300px;
    border-radius: 3px;
    font-size: 93%;
    font-family: monospace;
    overflow-wrap: break-word;
}

.for-windows {
    background: #a09dc347;
    padding: 1px 12px;
}

.for-mac {
    background: #a09dc347;
    padding: 1px 12px;
}

.file-list {
    font-size: 14px;
    max-height: 400px;
    overflow: scroll;
}

    .file-list, .file-list ul {
        padding-left: 20px;
    }

        .file-list li {
            list-style-type: '-';
            padding-left: 5px;
            list-style-type: none;
        }

            .file-list li::before {
                width: 18px;
                height: 18px;
                margin-right: 5px;
                content: ' ';
                background-size: 18px 18px;
                display: inline-block;
                position: relative;
                top: 2px;
            }

li.fl-folder::before {
    background-image: url(../media/img/folder-icon.svg);
}

li.fl-txt::before {
    background-image: url(../media/img/txt-icon-sml.svg);
}

li.fl-pdf::before {
    background-image: url(../media/img/pdf-icon.svg);
}

li.fl-file::before {
    background-image: url(../media/img/file-icon.svg);
}

li.fl-html::before {
    background-image: url(../media/img/html-icon.svg);
}

li.fl-cpp::before {
    background-image: url(../media/img/cpp-icon.svg);
}

li.fl-header::before {
    background-image: url(../media/img/header-icon.svg);
}

li.fl-png::before {
    background-image: url(../media/img/png-icon.svg);
}


@media screen and (max-width: 650px) {
    .main-wrapper {
        width: 90%;
    }
}

@media screen and (max-width: 550px) {
    .main-wrapper {
        width: 95%;
    }

    main {
        padding: 1em 1.4em;
    }
}

@media screen and (max-width: 500px) {
    nav {
        flex-direction: column;
        position: relative;
    }

    .main-wrapper {
        width: 100%;
    }
}

@media screen and (max-width: 450px) {
    .main-wrapper {
        text-align: left;
    }
}


@media screen and (max-width: 370px) {
    .mc_content {
        padding: 1em 1em;
    }
}
