*, :before, :after {
    box-sizing: border-box;
}

html {
    font-size: 16px;

    --red: rgb(240, 63, 53);
    --red-background: rgb(252, 227, 215);
    --dark-red: rgb(120, 32, 27);

    --green: rgb(78, 197, 119);
    --green-background: rgb(220, 243, 228);
    --dark-green: rgb(39, 99, 60);

    /*--blue: rgb(29, 138, 240);*/
    --blue: #45A2C7;
    /*--blue-background: rgb(210, 232, 252);*/
    --blue-background: #E1EEF4;
    /*--dark-blue: rgb(15, 69, 120);*/
    --dark-blue: #242B4D;

    --purple: rgb(72, 72, 138);
    --purple-background: rgb(218, 218, 232);
    --dark-purple: rgb(36, 36, 69);

    --text-color: #202020;
    --lighter-text-color: #404040;
    --light-text-color: #606060;
}

body {
    margin: 0;
    line-height: 1.4;
    color: var(--text-color);
}

body, button, input, select, textarea {
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header {
    position: fixed;
    top: 0; right: 0; left: 0;
    padding: 1rem 2rem;
    background-color: white;
    border-bottom: 1px solid rgba(0, 1, 1, 0.05);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header img {
    display: block;
    width: 220px;
    margin-right: 2rem;
}
header .title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--light-text-color)
}

.container {
    width: 100%;
    max-width: 940px;
    padding: 2rem;
    margin: 5rem auto 0 auto;
}

.container :first-child {
    margin-top: 0;
}
.container :last-child {
    margin-bottom: 0;
}

.container a[href] {
    text-decoration: none;
    color: var(--blue);
}

.button {
    -webkit-appearance: none;
    display: inline-block;
    margin: 0;
    border: none;

    background-color: var(--blue);
    color: white !important;
    line-height: 1;
    font-size: 0.875em;
    padding: 0.78571em 1.71429em;
    border-radius: 5px;
    transition: box-shadow .2s;
}
.button:hover {
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
        rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}

.toc.right {
    position: fixed;
    top: 7rem;
    right: 0;
    left: calc(50% + 470px);
    padding: 0 1rem;
    border-left: 5px solid var(--blue);
    font-size: .875rem;
}
.toc.right .title {
    font-weight: 700;
    color: var(--lighter-text-color);
    margin-bottom: 0.25em;
}
.toc.right ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.toc.right ul ul {
    margin-left: 1rem;
}
.toc.right a[href] {
    display: inline-block;
    padding: 0.25em 0;
    color: var(--lighter-text-color);
    text-decoration: none;
}
.toc.right a[href]:hover,
.toc.right a[href]:active {
    color: var(--dark-blue);
}
.toc.right li.active > a[href] {
    font-weight: 700;
    color: var(--dark-blue);
}

.callout {
    display: flex;
    padding: 1rem 1rem;
    margin: 0 -1rem;
}
.callout > .material-icons {
    width: 2.5rem;
    flex-shrink: 0;
}
.callout .content {
    padding-top: 2px;
    font-size: .875em;
    line-height: 1.5;
}
.callout.info {
    background-color: var(--blue-background);
    color: var(--blue);
}
.callout.danger {
    background-color: var(--red-background);
    color: var(--red);
}
.callout a[href] {
    color: inherit;
    text-decoration: underline;
}
.callout code {
    background-color: rgba(0, 1, 1, 0.1);
}

code {
    display: inline-block;
    font-family: 'Roboto Mono', Menlo, 'Courier New', Courier, monospace;
    background-color: #f5f6f6;
    padding: 0 5px;
    font-size: 0.875rem;
    color: var(--lighter-text-color);
}
code.blockcode {
    display: block;
    white-space: pre;
    padding: 1rem 1rem;
    margin: 1rem -1rem;
    overflow-x: auto;
}

code .kw {
    color: var(--blue);
}
code .tn {
    color: var(--purple);
}
code .str {
    color: var(--green);
}
code .num {
    color: var(--red);
}
code .plh {
    color: var(--lighter-text-color);
    border: 1px dashed var(--red);
    padding: 0 3px;
}
code .opt {
    opacity: 0.5;
}

.material-icons.inline {
    vertical-align: middle;
}
.material-icons.small {
    font-size: 18px;
}

table {
    border: 1px solid rgba(0, 1, 1, 0.05);
    border-collapse: collapse;
    width: 100%;
}
thead {
    background-color: #f0f1f1;
}
table th,
table td {
    text-align: left;
    border: 1px solid rgba(0, 1, 1, 0.05);
    padding: 0.5rem 0.75rem;
}
table th {
    padding-top: 0.75rem;
}
table td.definition {
    background-color: #f5f6f6;
}

@media (max-width: 1400px) {
    .container {
        margin: 4rem 0 1rem 0;
    }

    .toc.right {
        left: 940px;
    }
}

@media (max-width: 1100px) {
    .container {
        max-width: 800px
    }

    .toc.right {
        left: 800px;
    }
}

@media (max-width: 960px) {
    .container {
        max-width: none;
    }

    .toc.right {
        display: none;
    }
}

@media (max-width: 600px) {
    header,
    .container {
        padding: 1rem;
    }
}
