/*
    app.less - Embedthis Application Style Sheet
 */

html, body {
    font-size: @font-size;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: @font;
    background-image: linear-gradient(@body-gradient);
    background-attachment: fixed;
    min-width: @body-min-width;
    text-rendering: optimizeLegibility;
    transition: none !important;
    &.show-sidebar {
        margin-left: 240px;
    }
}

.masthead {
    position: fixed;
    height: @masthead-height;
    width: 100%;
    z-index: 100;
    background-image: linear-gradient(@body-gradient);
    border-bottom: 5px solid white;

    .ui.inverted.menu {
        background-color: @gray-dark;
        border-bottom: none;
        margin: 0;
        .right {
            display: block;
            padding-right: 10px;
            a.item {
                color: @white;
                opacity: @masthead-menu-opacity;
                padding: 0.8em 0.4em;
                &:hover {
                    background: fade(@white, 20%);
                }
                &.active:after {
                    position: absolute;
                    background: @masthead-active;
                    bottom: 0;
                    left: 0;
                    width: 100%;
                    height: 4px;
                    content: "";
                }
            }
        }
    }
    .breadcrumb {
        position: absolute;
        top: 40px;
        margin: 6px 0 0 35px;
        .section {
            padding-bottom: .5rem;
        }
        .active.section {
            color: fade(@white, 100%);
            font-weight: normal;
        }
        .divider {
            color: @white;
        }
        a {
            color: fade(@white, 70%);
        }
        a:hover,
        a:hover.active.section {
            color: @white;
        }
    }
    .version {
        position: fixed;
        top: 48px;
        right: 1rem;
        font-size: 0.75rem;
        color: @white;
        opacity: 0.75;
    }
}

.sidebar {
    position: fixed;
    left: 0;
    padding-top: 35px;
    width: 240px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    visibility: hidden;
    .ui.vertical.menu {
        background: @gray-dark;
        .logo {
            display: inline-block;
            font-family: @font-logo;
            font-size: @font-logo-size;
            color: @white;
        }
        .menu .item {
            font-size: 1.0rem !important;
        }
        .menu .header.item {
            position: relative;
            display: inline-block;
            width: 100%;
            padding: 7px 21px 7px 14px;
            font-weight: bold;
            font-size: 1.05em;
            background-color: transparent;
            &:hover {
              background: fade(@white, 10%);
            }
        }
        a.item.active {
            border-right: 18px solid @body-highlight;
        }
    }
    &::-webkit-scrollbar {
        width: 0px !important;
    }
}

.ui.sidebar-launch.button {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    padding: 0.8em 0.6em 0.5em 1.1em;
    background-color: #333;
    border-radius: 0;
    color: white;
    float: left;
    z-index: 100;
}


.page {
    padding: 1rem 3.0rem;
}

.ui.page.grid {
    padding: 0 3.0rem;
    .segment {
        padding-top: 1.0rem;
        padding-bottom: 3.5rem;
    }
}

.content {
	min-height: 95%;
    text-decoration: none;
    background: @white;
    padding: 100px 2rem 2rem 2rem;
    .floated {
      overflow: auto;
    }
}

.ui.segment.terms {
    margin: 6px 0 16px 0;
    height: @terms-height;
    color: @gray-lightest;
    font-size: 0.75rem;
    a:link, a:visited {
        color: @gray-lighter;
    }
    a:hover {
        color: @white;
    }
}

/////////// Page styles


/////////// Element styles

table.directive {
    width: 100%;
    background: @white;
    margin: 1em 0em;
    border: 1px solid @gray-lighter;
    border-radius: 0.25em;
    color: rgba(0, 0, 0, 0.8);
    border-collapse: separate;
    border-spacing: 0px;

    td {
        border-bottom: 1px solid lighten(@gray-lighter, 12%);
        padding: 0.7em 0.8em;
        vertical-align: middle;
    }
}

a {
    color: @link-color;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: @link-hover-color;
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    font-weight: normal;
}

h3 + ul {
  margin-top: -0.85rem;
}

li {
    padding-bottom: 0.75em;
}

em {
    padding: 3px;
    font-family: monospace;
    font-style: normal;
    background-color: #F2F2FF;
    color: #404080;
    border-radius: 4px;
    white-space: nowrap;
}

code {
    display: block;
    white-space: pre-wrap;
    margin: 1rem 0;
    padding: 1rem 1rem;
    font-family: monospace;
    font-style: normal;
    border: 1px solid #C2C2C2;
    border-radius: 0.3rem;
    line-height: 1.25em;
    background-color: #EEE;
    color: #333;
    &.inverted {
        background: @inverted-code-background;
        color: @inverted-code-color;
        b {
            color: @inverted-code-bold;
            font-weight: normal;
        }
    }
}

pre.code {
    display: block;
    white-space: pre-wrap;
    margin: 1rem 0;
    padding: 1rem 1rem;
    font-family: monospace;
    font-style: normal;
    border: 1px solid #C2C2C2;
    border-radius: 0.3rem;
    line-height: 1.25em;
    background-color: #EEE;
    color: #333;
    background: @inverted-code-background;
    color: @inverted-code-color;
    b {
        color: @inverted-code-bold;
        font-weight: normal;
    }
}

.centered {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.ui.code.inverted.code.segment {
    background: @inverted-code-background;
    color: @inverted-code-color;
    b {
        color: @inverted-code-bold;
        font-weight: normal;
    }
}

.ui.code.segment {
    background: @gray-lightest;
    color: @gray-dark;
    border: 1px solid @gray-lighter;
    box-shadow: 2px 2px 2px lighten(@gray-lighter, 15%);
    line-height: 1.25em;
}

img.screen {
    margin: 8px 0 4px 0;
	border: 1px solid @gray-light;
	border-radius: 7px;
	box-shadow: 9px 9px 9px @gray-light;
}

img.bare-screen {
    margin: 8px 0 10px 0;
    border: 1px solid @gray-light;
    border-radius: 7px;
    box-shadow: 9px 9px 9px @gray-light;
}

img.shadow {
	border-radius: 7px;
	box-shadow: 5px 5px 9px @gray-light;
}


//  Desktop
@media (min-width: @mobile-break) {
    .mobile-only {
        display:none !important;
    }
    .desktop-only {
        // display:block !important;
    }
}

//  Mobile
@media (max-width: @mobile-break) {
    .mobile-only {
        // display:block !important;
    }
    .desktop-only {
        display:none !important;
    }
}
