﻿body{
    -webkit-text-size-adjust: 100%;
    color: #24292e;
    line-height: 1.5;
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
}

.container {
    --sidebar-width: 300px;
    --shared-max-width: 1300px;
}

.header__content {
    max-width: var(--shared-max-width);
    margin-left: auto;
    margin-right: auto;
}

.main {
    display: flex;
    max-width: var(--shared-max-width);
    margin-left: auto;
    margin-right: auto;
}

.sidebar {
    position: sticky;
    top: 40px;
    height: 100%;
    width: var(--sidebar-width);
    flex-grow: 0;
    flex-shrink: 0;
}

.content {
    margin-left: 50px;
    width: calc(var(--shared-max-width) - var(--sidebar-width) - 50px);
    flex-grow: 1;
    flex-shrink: 1;
    /* flex items default to min-width:auto and refuse to shrink below the widest
       markdown block (pre/table), which blows up the layout viewport on phones */
    min-width: 0;
}

.header{
    padding-bottom: 10px;
    padding-top: 10px;
    margin-bottom: 70px;
}

.header__content{
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.header a {
    text-transform: uppercase;
    -webkit-transition: 0.2s all;
    transition: 0.2s all;
}

.header a {
    font-family: 'Lato', sans-serif;
    font-weight: normal;
    color: #007bff;
    text-decoration: none;
    font-size: 15px;
}

.header .back-link {
    /* flex aligns the link's baseline to the logo's border-box bottom (an image has
       no text baseline); the wordmark's baseline sits ~5.7px higher (its descenders) */
    position: relative;
    top: -5.7px;
}

.header .logo {
    width: 120px;
    background: url(../../Home/img/logo_catalog_app.svg) no-repeat;
    /* box trimmed to the drawn wordmark: the 120px-wide svg renders ~20px tall */
    height: 20px;
    margin: 0;
    display: inline-block;
    background-size: contain;
}


.sidebar a{
    display: block;
    text-decoration: none;
    padding: 8px 0 8px 0;
    color: #0366d6;
}

.sidebar ul a.active{
    color: #24292e;
    border-left: 3px solid lightblue;
    margin-left: -20px;
    padding-left: 17px;
}

.sidebar a:hover{
    text-decoration: underline;
}

.sidebar ul{
    margin: 0;
    padding: 0;
}

.sidebar ul li{
    list-style: none;
}

.sidebar a.dropdown-btn{
    font-weight: bold;
    color: #24292e;
}

.sidebar a.dropdown-btn:hover
{
    text-decoration: none;
}

.back-to-index{
    margin-bottom: 30px;
    display: none;
}

.wiki-pager {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.wiki-pager a {
    color: #0366d6;
    text-decoration: none;
}

.wiki-pager a:hover {
    text-decoration: underline;
}

.wiki-pager .wiki-pager-page {
    min-width: 24px;
    text-align: center;
}

.wiki-pager .wiki-pager-page.active {
    font-weight: bold;
    color: #24292e;
}

.wiki-pager .wiki-pager-next {
    margin-left: auto;
}

.contact-us{
    margin-bottom: 30px;
    text-align: center;
}

.contact-us a.register{
    background-color: #56549F;
    border: 0;
    color: white;
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: center;
    border-radius: 24px;
    display: inline-block;
    text-decoration: none;
    padding: 11px 24px 13px;
}

.markdown-body{
    margin-bottom: 30px;
}

.back-to-index a{
    color: #0366d6;
    text-decoration: none;
}

.back-to-index a:hover{
    text-decoration: underline;
}

@media (max-width: 800px) {
    .sidebar{
        display: none;
    }
    .content {
        margin-left: 0;
        width: auto;
    }
    .back-to-index{
        display: block;
    }
}