#page header {
    position: sticky;
    top: 0px;
    background-color: white;
    z-index: 2;
    border-bottom: 2px solid #999;
    height: auto;
    padding: 10px;
}
#page header h1 {
    display: inline;
    font-size: 1.4rem;
}
#page main {
    margin-top: 20px;
}
#page > main .grafikon {
    margin: 1em 0;
    padding: 10px 0px;
}

#page > main .grafikon h3 {
    text-align: center;
    margin-top: 5px;
}
#page #side-title, #page #side {
    margin-top: 0px;
}
.grafikon_helye {
    height: 400px;
    margin: 1em;
    border: 1px dotted gray;

    /* az ::after elem lehessen position absolute */
    position: relative;
}

.grafikon_helye::after {
    /* teljes szélesség és magasság a grafikon_helye elemben */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    /* igazítás: közép-közép */
    display: flex;
    align-items: center;
    justify-content: center;

    content: "GRAFIKON HELYE";
}

/* ez valószínűleg nem fog kelleni, mert a lábjegyzet a grafikonon van rajta mindig */
.grafikon_kisbetus {
    font-size: 8pt;
}

.cim {
    text-align: center;
}

#side {
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 100px;
    z-index: 1;
    background-color: white;
} 
#side li ul {
    display: none;
}
#side li.main,
#side li > a.active {
    background-color: #FEC771;
} 
#side li > a {
    margin-left: 5px;
    display: block;
    padding: 5px 0px 0px;
}
#side li.main ul {
    display: block;
}
.chapter {
    margin-bottom: 20px;
}
#page > main .chapter h1 {
    margin-top: 0px;
}
.tableofcontents ul {
    list-style: none;
    padding: 0px 10px 0;
    line-height: 2.0em; 
}
#page > main #content .content-title a:link,
#page > main #content .content-title a:visited {
    display: block;
    text-decoration: none;
    color: rgb(51, 51, 51);
    padding: 20px 15px;
    margin: 0px;
}
#chapter-1-summary {
    background-color: #FEEFD6;
}
#chapter-2-summary {
    background-color: #FFE0B2;
}
#chapter-3-summary {
    background-color: #FEC771;
}
#chapter-4-summary {
    background-color: #FDBA4B;
}
#page h1 > a, #page h2 > a {
    padding-top: 80px;
}
#content-logo img {
    height: 50px;
    padding: 5px 10px;
}
.small-mobile {
    display: none;
}
.side-box li a {
    font-family: 'Roboto';
}

.side-box {
    margin-top: 27px;
}

@media only screen and (max-width: 992px) {
    .side-box {
        margin-top: 0px;
        position: -webkit-sticky; /* Safari */
        position: sticky;
        top: 0;
        z-index: 1;
        background-color: white;
        box-shadow: 0px 2px 2px gray;
    } 
    .side-box h1 {
        display: none;
    }
    .side-box li {
        display: inline;
    }
    .side-box li a {
        font-size: 14px;
    }
    .side-box li:not(.main) {
        display: none;
    }
    .side-box li.next, .side-box li.prev {
        display: inline;

    }
    .side-box li.next a, .side-box li.prev a {
        display: inline-block;
        overflow: hidden;
        height: 14px;
        width: 8px;
    }
    .side-box li.next a:before {
        content: ">";
        margin-left: 10px;
    }
    .side-box li.prev a:before {
        content: "<";
        margin-left: 10px;
    }
    #side {
        margin: 0px;
    }
    #page > main #side ul li {
        background-color: transparent;
    }
    #page > main #side ul li a {
        display: inline-block;
        padding: 12px 0px;
        
    }
    #side li.main ul {
        display: none;
    }

    #page h1 > a, #page h2 > a {
        padding-top: 50px;
    }
    #content-logo img {
        height: 30px;;
        padding: 0px 5px;
        float: left;
    }
    #page header {
        position: relative;
    }
    #page header h1 {
        font-size: 1.0rem;
    }

} 
@media (max-width: 450px) {
    .small-mobile {
        display: block;
        position: relative;
    }
    .small-mobile + .chart {
        display: none;
    }
}
@media (orientation: portrait) {
    .small-mobile:after {
        content: '';
        width: 35px;
        height: 35px;
        background: url("assets/landscape.png");
        background-repeat: no-repeat;
        background-size: cover;
        background-color: white;
        bottom: 10px;
        right: 10px;
        position: absolute;
        display: block;
    }
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    #page header {
        position: fixed;
        margin: 0 auto; /* Will not center vertically and won't work in IE6/7. */
        left: 0;
        right: 0;
    }
    #side {
        position: fixed;
        background-color: transparent;
    }
    #side > ul > li > a {
        max-width: 250px;
        width: 90%;
        display: block;
        word-wrap: break-word;
    }
    #side li > ul > li > a {
        max-width: 240px;
        width: 90%;
        display: block;
        word-wrap: break-word;
    }
    #side #side-title {
        display: block;
        width: 90%;
    }
    #page main.container {
        margin-top: 100px;
    }
}
@media print {
    #page header {
        position: relative;
    }
    div.row {
        display: inline;
    }
    aside {
        display: none;
    }
    main {
        display: block;
    }
    .container {
        max-width: 100%;;
    }
    svg {
        display: block;
        width: 100%;
        height: auto;
    }
}