/*
==============================

CONTENTS

Variables
Reset
Typography
Structure
Navigation
Sections
UX elements
Syntax highlighting
Mobile styles
Utility classes

==============================
*/

/*
==============================
Variables
==============================
*/

:root {

    /*Animation*/

    --animate: all 350ms ease-in-out;

    /*Typography*/

    --body-font:          Arial, Helvetica, Verdana, sans-serif;
    --body-font-size:     16px;
    --body-font-color:    #6f6f6f;
    --heading-font-color: #303030;
    --link-color:         #03A9F4;
    --link-color-hover:   #4FC3F7;
    --table-header:       #f6f8fb;
    --table-stripe:       #f6f8fb;
    --bottom-margin:      25px;

    /*Text highlighting*/
        
    --text-highlight-bg:     #E1F5FE;
    --text-highlight-border: #bdeaff;
    --text-highlight-color:  #303030;

    /*Backgrounds*/

    --ice-white: #f6f8fb;
    --white:     #ffffff;

    /*Borders*/

    --strong-border: #cccccc;
    --light-border:  #efefef;

    /*Shadows*/

    --shadow: 0px 0px 30px -6px rgba(48,48,48,0.3);

    /*Navigation*/

    --navigation-link-color:     #909090;
    --navigation-bg-color:       #f6f8fb;
    --navigation-bg-color-hover: #fcfcfd;

    /*Info bars*/

    --warning-bg:         #FFECB3; /*100*/
    --warning-border:     #FFD54F; /*300*/
    --warning-font-color: #FF8F00; /*800*/

    --success-bg:         #DCEDC8;
    --success-border:     #AED581;
    --success-font-color: #558B2F;

    --danger-bg:          #FFCDD2;
    --danger-border:      #EF9A9A;
    --danger-font-color:  #C62828;

    --step-bg:            #B3E5FC;
    --step-border:        #4FC3F7;
    --step-font-color:    #0277BD;

    /*Border radius*/

    --border-radius: 4px;

    /*Utility classes*/

    --bold: 600;
    --dark: #303030;

}

/*
==============================
Reset
==============================
*/

html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,code,em,img,small,strong,sub,sup,ol,ul,li,fieldset,form,label,legend,table,tbody,tfoot,thead,tr,th,td,article,aside,footer,header,nav,section,time,audio,video {
    padding: 0;
    border: 0;
    margin: 0;
    background: transparent;
    font-size: 100%;
    font-weight: inherit;
    vertical-align: baseline;
}

html {
    box-sizing: border-box;
    font-size: var(--body-font-size);
}
*, *:before, *:after {
    box-sizing: inherit;
}

/*
==============================
Typography
==============================
*/

body {
    font-family: var(--body-font);
    color: var(--body-font-color);
    background-color: var(--ice-white);
    line-height: 1.6;
    font-size: 1rem;
}

h1,h2,h3,h4,h5,h6 {
    color: var(--heading-font-color);
    margin-bottom: var(--bottom-margin);
    line-height: 1;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: var(--animate);
}

a:hover {
    color: var(--link-color-hover);
}

p, ul, ol {
    margin-bottom: var(--bottom-margin);
}

ul, ol {
    margin-left: 18px;
}

ul {
    list-style-type: square;
}

h1 {
    font-size: 37px;
}
h2 {
    font-size: 32px;
}
h3 {
    font-size: 27px;
}
h4 {
    font-size: 22px;
}
h5 {
    font-size: 18px;
}
h6 {
    font-size: 16px;
}

.highlight {
    background-color: var(--text-highlight-bg);
    padding: 1px 6px;
    color: var(--text-highlight-color);
    border: 1px solid var(--text-highlight-border);
    white-space: nowrap;
    border-radius: 2px;
}

.table {
    width: 100%;
    border: 1px solid var(--strong-border);
    border-collapse: collapse;
    margin-bottom: var(--bottom-margin);;
}

.table td, .table th {
    border: 1px solid var(--strong-border);
    padding: 10px;
    text-align: center;
}

.table th {
    background-color: var(--table-header);
}

.table tr:nth-child(odd) {
    background-color: var(--table-stripe);
}

/*
==============================
Structure
==============================
*/

.main-header {
    min-height: 250px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--strong-border);
}

.header-inner {
    width: 100%;
    text-align: center;
}

.main-container {
    width: 90%;
    height: 2000px;
    margin: auto;
    padding: 100px 0 100px;
    position: relative;
}

.main-content {
    background-color: var(--white);
    width: 70%;
    padding: 0 100px 100px;
    margin-bottom: 100px;
    float: right;
    -webkit-box-shadow: var(--shadow);
    -moz-box-shadow: var(--shadow);
    box-shadow: var(--shadow);
}

.navigation-sidebar {
    width: 22%;
    min-height: 100px;
    background-color: var(--white);
    float: left;
    position: fixed;
    -webkit-box-shadow: var(--shadow);
    -moz-box-shadow: var(--shadow);
    box-shadow: var(--shadow);
}

/*
==============================
Navigation
==============================
*/

.navigation {
    list-style-type: none;
    width: 100%;
    padding: 20px;
    float: left;
    margin-bottom: 0;
    margin-left: 0;
}

.navigation-item a {
    float: left;
    text-decoration: none;
    color: var(--navigation-color);
    padding: 10px 20px;
    width: 100%;
    background-color: var(--navigation-bg-color);
    margin-bottom: 2px;
    transition: var(--animate);
    border-radius: var(--border-radius);
}

.navigation-item a:hover {
    background-color: var(--navigation-bg-color-hover);
}

/*
==============================
Sections
==============================
*/

.docs-section {
    width: 100%;
    float: left;
    clear: both;
    min-height: 500px;
    padding: 100px 0 100px;
    border-bottom: 1px solid var(--strong-border);
    position: relative;
}

.docs-section__footer {
    min-width: 110px;
    right: 0;
    text-align: right;
    position: absolute;
    bottom: -12px;
    background-color: var(--white);
    padding-left: 20px;
}

/*
==============================
UX elements
==============================
*/

.alert, .docs-section__step-heading {
    width: 100%;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    margin-bottom: var(--bottom-margin);
}

.warning {
    background-color: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: var(--warning-font-color);
}

.success {
    background-color: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-font-color);
}

.danger {
    background-color: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger-font-color);
}

.step {
    background-color: var(--step-bg);
    border: 1px solid var(--step-border);
    color: var(--step-font-color);
}

.image {
    width: 100%;
    float: left;
    background-color: var(--ice-white);
    padding: 25px 0 25px;
    border: 1px solid var(--light-border);
    margin: 0 0 var(--bottom-margin);
    border-radius: var(--border-radius);
}

.image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
    border: 1px solid var(--light-border);
}

/*
==============================
Syntax highlighting
==============================
*/
pre {
    border: 1px solid var(--strong-border);
}

code[class*="language-"],
pre[class*="language-"] {
    color: black;
    background: none;
    text-shadow: 0 1px white;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    font-size: 0.9rem;
    line-height: 1.1;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
    border-radius: 2px;
}

pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
    text-shadow: none;
    background: #b3d4fc;
}

pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
code[class*="language-"]::selection, code[class*="language-"] ::selection {
    text-shadow: none;
    background: #b3d4fc;
}

@media print {
    code[class*="language-"],
    pre[class*="language-"] {
        text-shadow: none;
    }
}

/* Code blocks */
pre[class*="language-"] {
    padding: 20px 20px 10px 20px;
    margin-bottom: var(--bottom-margin);
    overflow: auto;
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
    background: #ffffff;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
    padding: .1em;
    border-radius: .3em;
    white-space: normal;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: slategray;
}

.token.punctuation {
    color: #999;
}

.namespace {
    opacity: .7;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #905;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #690;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #9a6e3a;
    background: hsla(0, 0%, 100%, .5);
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #07a;
}

.token.function,
.token.class-name {
    color: #DD4A68;
}

.token.regex,
.token.important,
.token.variable {
    color: #e90;
}

.token.important,
.token.bold {
    font-weight: bold;
}
.token.italic {
    font-style: italic;
}

.token.entity {
    cursor: help;
}

/*
==============================
Mobile styles
==============================
*/

@media (max-width: 1100px) {

    .main-content {
        width: 100%;
    }

    .navigation-sidebar {
        width: 100%;
        position: relative;
        margin-bottom: 100px;
    }

}

@media (max-width: 700px) {

    .main-content {
        padding: 0 50px 50px;
    }

}

@media (max-width: 500px) {

    .main-content {
        padding: 0 20px 20px;
    }

}

/*
==============================
Utility classes
==============================
*/

.bold {
    font-weight: var(--bold);
}

.dark {
    color: var(--dark);
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.strong-border {
    border: 1px solid var(--strong-border);
}

.light-border {
    border: 1px solid var(--light-border);
}