html {
    position: relative;
    min-height: 100%;
}

main.container-fluid {
    margin: 1.5em 0em calc(1.5em + 60px) 0em;
    width: 100%;
}

@media screen and (min-width: 1200px) {
    main.container-fluid {
        margin: 2em 2em calc(2em + 60px) 2em;
        width: calc(100% - 4em);
    }
}

@media screen and (min-width: 1500px) {
    main.container-fluid {
        margin: 2em auto calc(2em + 60px) auto;
        width: 1500px;
    }
}

main .embed-responsive {
    margin: auto;
}

main .embed-responsive-item {
    display: flex;
    flex-flow: column;
}

.embed-responsive-5by7::before {
    padding-top: 140%;
}

@media screen and (min-width: 768px) {
    .embed-responsive-5by7 {
        max-height: calc(100vh - 4em - 120px);
    }

    main .embed-responsive {
        max-width: calc(100vh - 4em - 120px);
    }
}

.pop-on-top {
    z-index: 100;
    position: absolute;
    width: 80%;
    left: 50%;
    margin-left: -40%;
}

.powered-by-chemiscope {
    font-size: 14px;
    margin-top: 10px;
    margin-right: 8em;
    float: right;
}

#chemiscope-meta {
    position: absolute;
    top: 0;
    left: 2em;
    font-size: 16pt;
}

#chemiscope-map {
    display: block;
}

#chemiscope-structure {
    flex: 1 1 auto;
}

#chemiscope-info {
    flex: 0 1 auto;
    width: 100%;
}

#how-to-load p {
    margin: 0;
    text-align: center;
}

#loaded-from-materialscloud {
    margin-top: -10px;
    margin-bottom: 15px;
    margin-left: 1em;
    font-style: italic;
    font-size: smaller;
}

#loaded-from-materialscloud a {
    color: gray;
}

#spinner {
    width: 80%;
    text-align: center;
    display: block;
    margin: auto;
    margin-top: 40px;
}

.tooltip-inner {
    max-width: 700px;
}

/* reproduction of materials cloud navbar with bootstrap 4 */

.mc-navbar {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 32px;

    padding-top: 0;
    padding-bottom: 0;

    border-bottom: 3px solid #dee6e6;
}

.mc-navbar .nav-link {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;

    color: #455860;
}

.mc-navbar .nav-link:hover {
    color: #8fa5af;
}

.mc-navbar .active .nav-link {
    color: #cc1b30 !important;
}

.breadcrumb {
    padding: 4px 5px;
    margin-bottom: 12px;
    margin-top: 8px;
    list-style: none;
    background-color: #f5f5f5;
    border-radius: 2px;

    border: 1px solid #d6d6d6;
    overflow: hidden;
}

.breadcrumb li a {
    color: #303f9f;
    position: relative;
    font-size: 16px;
}

.breadcrumb li:first-child {
    padding-left: 10px !important;
}

.breadcrumb li > a::before {
    content: ' ';
    display: block;
    width: 0;
    height: 0;
    border-top: 50px solid transparent;
    border-bottom: 50px solid transparent;
    border-left: 30px solid #d6d6d6;
    position: absolute;
    top: 50%;
    margin-top: -50px;
    margin-left: 1px;
    left: 100%;
    z-index: 1;
}

.breadcrumb li > a::after {
    content: ' ';
    display: block;
    width: 0;
    height: 0;
    border-top: 50px solid transparent;
    border-bottom: 50px solid transparent;
    border-left: 30px solid #f5f5f5;
    position: absolute;
    top: 50%;
    margin-top: -50px;
    left: 100%;
    z-index: 2;
}

.breadcrumb-item + .breadcrumb-item::before {
    padding-right: 2rem;
    content: '';
}
