h1, h2 {
    min-width: auto;
    width: auto;
}

h1 {
    font-size: 32px;
    line-height: 38px;
}

#paper-header h1 {
    margin-bottom: 20px;
}

#paper-container {
    display: flex;
    font-size: 17px;
    line-height: 25px;
}

#paper-navigation {
    font-size: 13px;
    line-height: 20px;
}

#paper-main {
    padding: 50px 3% 150px;
    flex-grow: 1;
}

#paper-navigation, #paper-navigation-placeholder, #paper-sidebar, #paper-sidebar-placeholder {
    height: 100%;
    z-index: 2;
    max-width: 25%;
}

#paper-navigation, #paper-navigation-placeholder {
    min-width: 15%;
    border-left: 1px solid #d4d4d4;
    right: 0;
}

#paper-navigation-horizontal {
    display: none;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 2;
}

#paper-sidebar, #paper-sidebar-placeholder {
    min-width: 300px;
    width: 300px;
    border-right: 1px solid #d4d4d4;
}

#paper-navigation, #paper-sidebar {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.01);
    z-index: 3;
}

#paper-sidebar, #paper-sidebar-placeholder {
    padding: 20px 40px;
}

#paper-navigation, .paper-nav-group, .paper-nav-section {
    display: flex;
    flex-direction: column;
}

#paper-navigation ul, .paper-nav-group {
    padding-left: 20px;
    width: 100%;
    flex-grow: 1000;
}

#paper-navigation > ul {
    padding-left: 0;
    margin: 0;
    top: 0;
}

#paper-navigation li, .paper-nav-section {
    list-style-type: none;
    background-color: rgba(0, 0, 0, 0.02);
    position: relative;
}

#paper-navigation li > a, .paper-nav-section > a {
    display: block;
    width: 100%;
    height: 100%;
    color: #212121;
    padding: 0 24px 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
    flex-grow: 1;
    white-space: nowrap;
}

#paper-navigation li > a:hover, .paper-nav-section > a:hover {
    opacity: 0.7;
    background-color: rgba(255, 255, 255, 0.4);
}

.paper-nav-supplement > a:after {
    content: " +";
    opacity: 0.5;
}

[data-paper-nav-section] {
    opacity: 0.4;
}

[data-paper-nav-section].selected {
    opacity: 1;
}

#paper-media {
    display: flex;
    flex-wrap: wrap;
    align-content: stretch;
    width: 95%;
}

#paper-font-size-buttons {
    line-height: 28px;
    margin: 28px 0;
    text-align: center;
}

#paper-font-size-buttons > span {
    cursor: pointer;
    font-size: 28px;
    min-width: 30%;
    margin: auto;
    display: inline-block;
}

#paper-font-size-buttons > span:hover {
    font-weight: 600;
}

#paper-version-nav {
    width: 100%;
    text-align: center;
}

#paper-version-nav > div.tabselector > div.tab {
    font-size: 16px;
    padding: 6px 14px;
    line-height: 24px;
    min-width: inherit;
}

h2 {
    font-size: 28px;
    text-align: left;
    padding: 10px 24px;
    margin-bottom: 0;
}

[data-paper-depth='1'] > h2 {
    font-size: 25px;
}

[data-paper-depth='2'] > h2 {
    font-size: 23px;
}

[data-paper-depth='3'] > h2 {
    font-size: 21px;
}

[data-paper-depth='4'] > h2 {
    font-size: 20px;
}

.paper-section {
    margin-bottom: 32px;
}

p.paper-summary {
    padding: 0 24px;
    font-size: 70%;
    margin-bottom: -20px;
}

p.paper-fragment, p.paper-fragment-container {
    margin-bottom: 28px;
    padding: 0 24px;
}

p.paper-fragment.paper-supplement {
    padding: 16px 24px;
}

.paper-section.paper-supplement > .paper-content > p.paper-fragment:last-of-type {
    padding-bottom: 24px;
}

.paper-supplement {
    background-color: rgba(0, 0, 0, 0.05);
}

.paper-collapsed > .paper-content {
    max-height: 0;
    overflow: hidden;
}

.paper-supplement > h2, .paper-collapsible > h2 {
    cursor: pointer;
}

.paper-section-title {
    max-width: 90%;
    display: inline-block;
}

.paper-list {
    position: fixed;
    margin: auto;
    width: 700px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.paper-list > a {
    width: 100%;
    line-height: 32px;
    text-align: center;
    display: block;
    margin: 10px;
    border: 1px solid #212121;
    font-size: 18px;
    font-weight: 600;
    padding: 30px;
    margin-left: -30px;
}

.paper-supplement-arrow {
    display: none;
}

.paper-supplement-arrow:before {
    content: "▴";
}

.paper-collapsed > h2 .paper-supplement-arrow:before {
    content: "▾";
}

.paper-icon {
    position: absolute;
    left: -32px;
}

#paper-header-container {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
}

#paper-header {
    display: none;
    background-color: rgba(237, 239, 240, 0.95);
    z-index: 2;
    border-bottom: 1px solid #d4d4d4;
}

.paper-switch {
    position: absolute;
    right: 24px;
    font-size: 50%;
}

[data-paper-child-section]:hover {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.05);
}

[data-paper-media] {
    width: 38%;
    margin: 8px 4%;
    padding: 2px;
}

[data-paper-media] img {
    width: 100%;
}

[data-paper-media-text] {
    font-style: italic;
    background-color: rgba(0, 0, 0, 0.03);
}

[data-paper-media-text].focus {
    background-color: rgba(0, 0, 0, 0.07);
}

#paper-search-results {
    display: none;
    max-height: 700px;
    overflow-y: scroll;
    width: 105%;
}

[data-paper-highlight] {
    right: 8%;
    position: absolute;
}

.highlight {
    background: rgba(233, 182, 34, 0.3);
}

.highlight.selected {
    background: rgba(233, 182, 34, 0.8);
}

#paper-media, #paper-child-preview > p > span, #paper-search-results {
    font-size: 14px;
    line-height: 24px;
}

#paper-media > * {
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

#paper-media > a, a[data-paper-child-section] {
    color: #212121;
}

#paper-media > a:hover {
    color: #212121;
}

#paper-media .media-more, #paper-media-focus .media-less {
    display: none;
}

#paper-media-focus .media-more {
    display: inherit;
}

#paper-media-focus {
    display: none;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 4px;
    margin-bottom: 4px;
    width: 100%;
    font-size: 18px;
}

#paper-media-focus > [data-paper-media] {
    width: 100%;
    margin: 0;
}

#paper-start-buttons, #paper-expand-buttons {
    text-align: center;
}

#paper-expand-buttons > input {
    margin: 0px 10px;
}

#paper-start-buttons a {
    margin: 12px 20px 12px 0;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #355681;
    white-space: nowrap;
    display: inline-block;
}

#paper-start-buttons  a:hover {
    border-color: #FF6600;
}

#paper-zoom-out-fragment {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #d4d4d4;
    border-bottom: 1px solid #d4d4d4;
    margin-bottom: 10px;
}

#paper-zoom-out-fragment span {
    margin: 8px;
}

.paper-share {
    display: none;
}

#hoverbubble.black {
    padding: 6px 10px 6px;
}

[data-paper-media].focus{
    cursor: auto;
}

@media only screen and (min-width: 2000px) {
    #paper-sidebar, #paper-sidebar-placeholder {
        min-width: 400px;
        width: 400px;
        padding: 20px 40px;
    }

    #paper-container {
        font-size: 22px;
        line-height: 34px;
    }

    h1 {
        font-size: 36px;
        line-height: 42px;
    }

    h2 {
        font-size: 32px;
        padding: 12px 24px;
    }

    [data-paper-depth='1'] > h2 {
        font-size: 28px;
    }

    [data-paper-depth='2'] > h2 {
        font-size: 25px;
    }

    [data-paper-depth='3'] > h2 {
        font-size: 22px;
    }

    [data-paper-depth='4'] > h2 {
        font-size: 20px;
    }

    #paper-version-nav > div.tabselector > div.tab {
        font-size: 18px;
        padding: 8px 18px;
        line-height: 27px;
    }

}

@media only screen and (max-width: 1700px) {
    #paper-sidebar, #paper-sidebar-placeholder {
        min-width: 240px;
        width: 240px;
        padding: 18px 36px;
    }

    #paper-version-nav > div.tabselector > div.tab {
        font-size: 14px;
        padding: 6px 8px;
        line-height: 21px;
    }

    h1 {
        font-size: 30px;
        line-height: 35px;
    }
}

@media only screen and (max-width: 1400px) {
    #paper-sidebar {
        font-size: 14px;
        line-height: 22px;
    }

    #paper-font-size-buttons {
        font-size: 24px;
        margin: 20px 0;
    }

    h1 {
        font-size: 28px;
        line-height: 32px;
    }

    h2 {
        font-size: 22px;
        line-height: 26px;
        padding: 4px 24px;
    }

    [data-paper-depth='1'] > h2 {
        font-size: 21px;
    }

    [data-paper-depth='2'] > h2 {
        font-size: 20px;
    }

    [data-paper-depth='3'] > h2 {
        font-size: 18px;
    }

    [data-paper-depth='4'] > h2 {
        font-size: 16px;
    }

    #paper-sidebar, #paper-sidebar-placeholder {
        min-width: 200px;
        width: 200px;
        padding: 16px 32px;
    }

    #paper-version-nav > div.tabselector > div.tab {
        font-size: 13px;
        padding: 4px 6px;
        line-height: 19px;
    }

}

@media only screen and (max-width: 1200px) {
    #paper-sidebar, #paper-navigation {
        font-size: 13px;
        line-height: 20px;
    }

    #paper-sidebar, #paper-sidebar-placeholder {
        min-width: 180px;
        width: 180px;
        padding: 14px 28px;
    }

    #paper-container {
        font-size: 16px;
        line-height: 25px;
    }

    h1 {
        font-size: 26px;
        line-height: 30px;
    }

    #paper-version-nav > div.tabselector > div.tab {
        font-size: 12px;
        padding: 3px 4px;
        line-height: 18px;
    }

    #paper-font-size-buttons {
        font-size: 20px;
        margin: 16px 0;
    }
}

@media only screen and (max-width: 1050px) {
    h1 {
        font-size: 24px;
        line-height: 27px;
    }

    h2 {
        font-size: 20px;
        line-height: 24px;
    }

    [data-paper-depth='1'] > h2 {
        font-size: 19px;
    }

    [data-paper-depth='2'] > h2 {
        font-size: 18px;
    }

    [data-paper-depth='3'] > h2 {
        font-size: 16px;
    }

    [data-paper-depth='4'] > h2 {
        font-size: 14px;
    }
}
@media only screen and (max-width: 900px) {
    #paper-sidebar {
        font-size: 12px;
        line-height: 20px;
    }

    #paper-navigation {
        font-size: 11px;
        line-height: 18px;
    }

    h1 {
        font-size: 23px;
        line-height: 26px;
    }

    #paper-sidebar, #paper-sidebar-placeholder {
        min-width: 130px;
        width: 130px;
        padding: 12px 20px;
    }

    #paper-version-nav > div.tabselector > div.tab {
        font-size: 11px;
        padding: 2px 2px;
        line-height: 17px;
    }
}

@media only screen and (max-width: 760px) {
    #paper-sidebar, #paper-sidebar-placeholder {
        display: none;
    }
    #paper-navigation, #paper-navigation-placeholder {
        'font-size: inherit;
    }

    #paper-font-size-buttons {
        font-size: 16px;
        margin: 12px 0;
    }

    h1 {
        font-size: 22px;
        line-height: 25px;
    }

    h2 {
        font-size: 18px;
    }

    #paper-container {
        font-size: 15px;
        line-height: 23px;
    }
}

@media only screen and (max-width: 600px) {
    #paper-navigation, #paper-navigation-placeholder {
        'font-size: inherit;
    }

    h1 {
        font-size: 20px;
        line-height: 23px;
    }

    h2 {
        font-size: 16px;
        line-height: 19px;
    }

    [data-paper-depth='1'] > h2 {
        font-size: 15px;
    }

    [data-paper-depth='2'] > h2 {
        font-size: 14px;
    }

    [data-paper-depth='3'] > h2 {
        font-size: 13px;
    }

    [data-paper-depth='4'] > h2 {
        font-size: 13px;
    }

}

@media only screen and (max-width: 480px) {
    #paper-navigation, #paper-navigation-placeholder {
        display: none;
    }

    h1 {
        font-size: 18px;
        line-height: 20px;
    }

    h2 {
        font-size: 14px;
        line-height: 17px;
    }

    [data-paper-depth='1'] > h2 {
        font-size: 13px;
    }

    [data-paper-depth='2'] > h2 {
        font-size: 13px;
    }

    [data-paper-depth='3'] > h2 {
        font-size: 12px;
    }

    [data-paper-depth='4'] > h2 {
        font-size: 12px;
    }
}

@media only screen and (max-width: 320px) {
    #paper-container {
        font-size: 14px;
        line-height: 21px;
    }
}