html body[for="presentation"]:not([data-presentation-mode]) {
    position: relative;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    overflow: auto
}

html body[for="presentation"]:not([data-presentation-mode]) .document {
    position: relative;
    top: 0
}

@media screen and (min-width:914px) {
    html body[for="presentation"]:not([data-presentation-mode]) .document {
        padding: 2em calc(5%)
    }
}

@media screen and (max-width:914px) {
    html body[for="presentation"]:not([data-presentation-mode]) .document {
        padding: 2em
    }
}

@media screen and (max-width:450px) {
    html body[for="presentation"]:not([data-presentation-mode]) .document {
        font-size: 14px !important;
        padding: 1em
    }
}

@media print {
    html body[for="presentation"]:not([data-presentation-mode]) #sidebar-toc-btn {
        display: none
    }
}

html body[for="presentation"]:not([data-presentation-mode]) #sidebar-toc-btn {
    position: fixed;
    bottom: 8px;
    left: 8px;
    font-size: 28px;
    cursor: pointer;
    color: inherit;
    z-index: 99;
    width: 32px;
    text-align: center;
    opacity: .4
}

html body[for="presentation"]:not([data-presentation-mode])[html-show-sidebar-toc] #sidebar-toc-btn {
    opacity: 1
}

html body[for="presentation"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    padding: 32px 0 48px 0;
    font-size: 14px;
    box-shadow: 0 0 4px rgba(150, 150, 150, 0.33);
    box-sizing: border-box;
    overflow: auto;
    background-color: inherit
}

html body[for="presentation"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar {
    width: 8px
}

html body[for="presentation"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: transparent
}

html body[for="presentation"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: rgba(150, 150, 150, 0.66);
    border: 4px solid rgba(150, 150, 150, 0.66);
    background-clip: content-box
}

html body[for="presentation"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc a {
    text-decoration: none
}

html body[for="presentation"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc ul {
    padding: 0 1.6em;
    margin-top: .8em
}

html body[for="presentation"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc li {
    margin-bottom: .8em
}

html body[for="presentation"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc ul {
    list-style-type: none
}

html body[for="presentation"]:not([data-presentation-mode])[html-show-sidebar-toc] .document {
    left: 300px;
    width: calc(100% - 300px);
    padding: 2em calc(50% - 457px - 150px);
    margin: 0;
    box-sizing: border-box
}

@media screen and (max-width:1274px) {
    html body[for="presentation"]:not([data-presentation-mode])[html-show-sidebar-toc] .document {
        padding: 2em
    }
}

@media screen and (max-width:450px) {
    html body[for="presentation"]:not([data-presentation-mode])[html-show-sidebar-toc] .document {
        width: 100%
    }
}

html body[for="presentation"]:not([data-presentation-mode]):not([html-show-sidebar-toc]) .document {
    left: 50%;
    transform: translateX(-50%)
}

html body[for="presentation"]:not([data-presentation-mode]):not([html-show-sidebar-toc]) .md-sidebar-toc {
    display: none
}