body {
    margin: 0;
    min-width: 320px;
    min-height: 480px;
}

/*
 * Dimensions and borders of primary grid rows
 */
#aods-page-grid > .top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    height: 62px;
    min-height: 62px;
    max-height: 62px;

    border-bottom-style: solid;
    border-bottom-width: 12px;
    border-bottom-color: #000;

    z-index: 50;
}

#aods-page-grid > .mid {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    bottom: 32px;
}

#aods-page-grid > .bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    height: 32px;
    min-height: 32px;
    max-height: 32px;

    border-top-style: solid;
    border-top-width: 12px;
    border-top-color: #000;

    z-index: 100;
}

/*
 * Dimensions and borders of primary grid columns
 */
#aods-page-grid > div > .left {
    width: 21vh;
    min-width: 80px;
    max-width: 16%;

    height: 100%;
    position: relative;
    float: left;

    border-left: solid;
    border-left-width: 12px;
    border-left-color: #000;

    border-right: solid;
    border-right-width: 12px;
    border-right-color: #000;

    z-index: 50;
}
@media (max-width: 992px) {
    #aods-page-grid > div > .left {
        width: 0px;
        min-width: 0px;
        border-left-width: 0px;
        border-right-width: 0px;
    }
}

#aods-page-grid > div > .right {
    height: 100%;
    position: relative;
    min-width: 240px;
}

/*
 * Dimensions and borders of secondary grid rows
 */
#aods-page-grid > .mid > .left > .top {
    position: relative;
    height: 72.5%;

    border-bottom-style: solid;
    border-bottom-width: 12px;
    border-bottom-color: #000;

}

#aods-page-grid > .mid > .left > .bottom {
    position: relative;
    height: 27.5%;
}

/*
 * Dimensions and borders of secondary grid columns
 */
#aods-page-grid > .bottom > .right > .left {
    height: 100%;
    width: 25%;
    min-width: 240px;
    float: left;

    border-right-style: solid;
    border-right-width: 12px;
    border-right-color: #000;
}

#aods-page-grid > .bottom > .right > .right {
    height: 100%;
    overflow-x: hidden;
}

/*
 * Position of main content
 */
.left-margin-magic {
    width: 21vh;
    min-width: 80px;
    max-width: 16%;

    height: 100vh;
    position: relative;
    float: left;

    content: " ";
    display: block;

    z-index: -1;
}
@media (max-width: 992px) {
    .left-margin-magic {
        width: 0;
        min-width: 12px;
    }
}

#page-body {
    margin-top: 72px;
    margin-bottom: 62px;
    float: left;
    width: 84%;
    min-width: 240px;
    position: relative;

    z-index: 1;
}

#page-body .container {
    width: auto;
}

/*
 * Menu bar
 */
#page-header .container {
    width: 84%;
    float: left;
}

.navbar-default {
    height: 50px;
    background-color: transparent;
    border-color: transparent;
}

.navbar-default .navbar-nav > li > a, .navbar-default .navbar-brand {
    color: #000;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > li > a:active {
    color: #5e5e5e;
}

@media (max-width: 500px) {
    .navbar-brand {
        padding: 0px;
        float: none;
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .navbar-collapse.collapse {
        display: none !important;
    }

    .navbar-collapse.collapse.in {
        display: block !important;
        z-index: 500;
        background-color: inherit;
    }

    .navbar-header .collapse, .navbar-toggle {
        display: block !important;
    }

    .navbar-header {
        float: none;
    }
}

/*
 * Content of the bottom row
 */
#aods-page-grid > .bottom > .right > .left a {
    padding-left: 2em;
}

#aods-page-grid > .bottom > .right > .right div {
    padding-left: 2em;
}

/*
 * Refine styling of specific elements
 */
.external-link:before {
    font-family: "Glyphicons Halflings";
    content: "\e164\202f"; /* Icon + NARROW NO-BREAK SPACE */
}

li .external-link:before {
    display: none;
}

li .external-link:after {
    font-family: "Glyphicons Halflings";
    font-size: 85%;
    content: "\202f\e164"; /* NARROW NO-BREAK SPACE + Icon */
}

.imprint-link:before {
    font-family: "Glyphicons Halflings";
    content: "\e164\202f"; /* Icon + NARROW NO-BREAK SPACE */
}

.feedback-link:before {
    font-family: "Glyphicons Halflings";
    content: "\e104\202f"; /* Icon + NARROW NO-BREAK SPACE */
}

.label {
    padding-top: .6em;
}

.label-default {
    background-color: rgb(189, 188, 188);
}

#search mark {
    background-color: #fcf8e3;
    color: #8a6d3b;
    border-radius: 10px;
    font-style: italic;
}

/*
 * Buttons
 */
.btn-article-goto,
.btn-article-download,
.btn-book-goto,
.btn-primary {
    color: #333;
    background-color: rgba(254, 221, 3, 1.0);
    border-color: #333;
}

.btn-article-goto:hover, .btn-article-goto:focus, .btn-article-goto:active,
.btn-article-download:hover, .btn-article-download:focus, .btn-article-download:active,
.btn-book-goto:hover, .btn-book-goto:focus, .btn-book-goto:active,
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    color: #333;
    background-color: rgba(254, 221, 3, 0.7);
    border-color: rgba(0, 0, 0, 0.7);
}

.btn-article-details,
.btn-info {
    color: #fff;
    background-color: rgba(24, 89, 167, 1.0);
    border-color: #333;
}

.btn-article-details:hover, .btn-article-details:focus, .btn-article-details:active,
.btn-info:hover, .btn-info:focus, .btn-info:active {
    color: #fff;
    background-color: rgba(24, 89, 167, 0.7);
    border-color: rgba(0, 0, 0, 0.7);
}

.btn-default,
.btn-white {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

.btn-default:hover, .btn-default:focus, .btn-default:active,
.btn-white:hover, .btn-white:focus, .btn-white:active {
    color: #333;
    background-color: #e6e6e6;
    border-color: #adadad;
}

.btn-bibtex-export,
.btn-grey,
.btn-gray {
    color: #333;
    background-color: rgba(189, 188, 188, 1.0);
    border-color: #333;
}

.btn-bibtex-export:hover, .btn-bibtex-export:focus, .btn-bibtex-export:active
.btn-grey:hover, .btn-grey:focus, .btn-grey:active,
.btn-gray:hover, .btn-gray:focus, .btn-gray:active {
    color: #333;
    background-color: rgba(189, 188, 188, 0.7);
    border-color: rgba(0, 0, 0, 0.7);
}

.btn-on-color {
    color: #333;
    background-color: #fff;
    border-color: #000;
    border-width: 2px;
}

.btn-on-color:hover, .btn-on-color:focus, .btn-on-color:active {
    color: #333;
    background-color: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.7);
}

.btn-block {
    white-space: normal;
}

/*
 * Colors of grid cells
 */
#aods-page-grid > div {
    background-color: #fff;
}

#aods-page-grid > .top > .left {
    /* background-color: rgb(237, 28, 36); */
}

#aods-page-grid > .mid > .left > .bottom {
    /* background-color: rgb(24, 89, 167); */
}

.navbar > .container,
#aods-page-grid > .top > .right {
    /* background-color: rgb(254, 221, 3); */
}

#aods-page-grid > .bottom > .right > .left {
    background-color: rgb(189, 188, 188);
}
