﻿* {
    box-sizing: border-box;
}


html, body {
    background-color: #e2e1e0;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    padding: 0;
    margin: 0;
    text-rendering: optimizeLegibility;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    max-height: 100%;
}

img {
    vertical-align: middle;
}

.main-container {
    display: flex;
    flex-grow: 1;
    height: 100%;
    max-height: 100%;
}

body > header, nav {
    background: rgba(255, 255, 255, 0.7);
}

body > header {
    height: 64px;
    min-height: 64px;
    display: flex;
}

body > header * {
    display: flex;
    flex-grow: 1;
}

body > header input {
    outline: none;
    border: 0px none transparent;
    background: none;
    height: 100%;
    padding: 0 0 0 16px;
}

nav > div.logo, nav > .links-container ul.links, nav > .links-container ul.links li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

nav > div.logo {
    margin-top: -64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.3);
    text-align: center;
    flex: 0 0 auto;
}

    nav a {
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
    }

    nav > div.logo span {
        font-size: 20px;
    }

    nav > .links-container ul.links {
        padding: 0;
    }

    nav > .links-container ul.links li:first-child {
        padding-bottom: 4px;
    }

        nav > .links-container ul.links li {
            list-style: none;
            transition: all 0.3s ease;
        }
            nav > .links-container ul.links li a {
                max-height: 40px;
                display: block;
                padding: 8px 16px;
            }

            nav > .links-container ul.links li a img {
                align-self: center;
                max-height: 28px;
                margin-right: 4px;
            }

        nav > .links-container ul.links li:not(.meta):hover {
            background: rgba(0,0,0,0.1);
            -webkit-transition: all 0.3s ease;
            -moz-transition: all 0.3s ease;
            -o-transition: all 0.3s ease;
            -ms-transition: all 0.3s ease;
            transition: all 0.3s ease;
        }

a {
    text-decoration: none;
    text-shadow: 0 0 0px #3690ff;
    color: #3690ff;
    font-weight: 400;
}

main {
    flex: 1 0 auto;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    overflow: auto;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
    border-top: 3px solid #488AC7;
    max-height: calc(100vh - 64px);
}

.content-wrapper {
    position: relative;
    display: flex;
    flex: 1 0 auto;
    justify-content: center;
}

.content {
    display: inline-block;
    min-width: 50%;
    padding: 25px;
    border-radius: 3px;
    margin: 0 auto;
    position: relative;
    background: #F1F1F1;
    align-items: center;
    flex-grow: 1;
}

@media(max-width: 768px) {
    nav {
        width: 64px;
    }

    body > header {
        padding-left: 64px;
    }

    main {
        max-width: calc(100% - 64px);
    }

    .content {
        width: 95%;
    }

    nav span {
        display: none;
    }

    nav > .links-container ul.links {
        margin: 16px 0 16px 0px;
    }

    nav > div.logo img {
        max-width: 48px;
        margin-bottom: 0;
    }

    nav a {
        text-align: center;
    }

    nav > div.logo {
        padding: 8px 0 0 0;
    }

    #region {
        margin-left: 0;
        padding: 0;
    }
}

@media (min-width: 768px) {
    nav {
        width: 256px;
    }

    body > header {
        padding-left: 256px;
    }

    main {
        max-width: calc(100% - 256px);
    }

    nav > .links-container ul.links {
        margin: 16px 0 16px 24px;
    }

    nav > div.logo img {
        max-width: 128px;
        margin-bottom: 10px;
    }

    nav > div.logo {
        padding: 32px 32px 16px 32px;
    }

    #region {
        margin-left: 10px;
    }
}

footer {
    text-align: center;
    margin: 30px 0px;
    color: #FFF;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    background: rgba(0, 0, 0, 0.1);
    padding: 32px;
}

    footer .btn, .btn-soft {
        background: rgba(255,255,255,0.6);
        box-shadow: 0px 0px 3px rgba(0,0,0,0.2);
    }

        footer .btn:hover, footer.btn-soft:hover {
            background: rgba(255, 255, 255, 1);
        }

.content-wrapper .content {
    padding: 0;
}

.content .swagger-ui .topbar {
    background: none;
    border-radius: 2px;
    position: fixed;
    top: 0;
    left: 256px;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
}

    .content .swagger-ui .topbar a {
        color: #333;
    }

    .content .swagger-ui .topbar .select {
        border: 2px solid black;
    }