
html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Open Sans, sans-serif;
    font-size: 14px;
    background-color: #FFFFFF;
    margin: 0;
    padding: 0;
}

.body-viewer {
    height: 100%;
    overflow: hidden;
}

#specialhandle {
    text-decoration: none;
    color: blue;
}

#view-error {
    margin: 1em auto;
    padding: 1em;
}

#view-error p {
    line-height: 2em;
}

#error-img {
    margin: 5em 0;
    text-align: center;
}

#adv_zoom_sync_banner {
    font-weight: bold;
    text-decoration: none;
    color: blue;
}

#UUlogo img {
    width: 185px;
    position: absolute;
    left: 8px;
    top: 5px;
}

#shareLink a img {
    padding-left: 5px;
}

#related_data {
    padding: 10px;
    background: #fff;
}


div#meta_data {
    padding: 10px;
    background: #fff;
}

div#meta_data table {
    width: 100%;
}

div#meta_data td {
    vertical-align: top;
}

.md-innertext {
    padding-left: 15px;
    font-weight: normal;
}


#objectheader, #footer {
    background-color: black;
    color: white;
    font-size: 12px;
    font-weight: 700;
    width: 100%;
    z-index: 500;
}

#objectheader {
    height: 60px;
    top: 0;
    position: fixed;
}

#footer {
    height: 40px;
    bottom: 0;
    position: fixed;
}

/* MENU */
#burger-menu {
    visibility: hidden;
    cursor: pointer;
    height: 27px;
    width: 27px;
    margin: 10px 20px;
    overflow: visible;
    position: fixed;
    right: 0px;
    z-index: 10002;
}

#burger-menu span, #burger-menu span:before, #burger-menu span:after {
    background: #fff;
    display: block;
    height: 2px;
    opacity: 1;
    position: absolute;
    transition: 0.3s ease-in-out;
}

#burger-menu span:before, #burger-menu span:after {
    content: '';
}

#burger-menu span:before {
    left: 0px;
    top: -10px;
    width: 27px;
}

#burger-menu span {
    right: 0px;
    top: 13px;
    width: 27px;
}

#burger-menu span:after {
    left: 0px;
    top: 10px;
    width: 27px;
}

#burger-menu.close span:before {
    top: 0px;
    transform: rotate(90deg);
    width: 27px;
}

#burger-menu.close span {
    transform: rotate(-45deg);
    top: 13px;
    width: 27px;
}

#burger-menu.close span:after {
    top: 0px;
    left: 0;
    transform: rotate(90deg);
    opacity: 0;
    width: 0;
}


#UBUnavlinks ul {
    list-style: none;
    position: fixed;
    margin: 10px 15px;
    padding: 0;
    z-index: 1000;
}


#UBUnavlinks ul li a {
    color: #ffffff;
}

#UBUnavlinks ul li {
    float: left;
    padding-right: 7px;
    margin-right: 7px;
    border-right: 1px solid #ffffff;
}

#UBUnavlinks ul li:last-of-type {
    border-right: none;
}


#ub-menu-top {
    right: 0;
    top: 18px;
}

#ub-menu-bottom-left {
    left: 0;
    bottom: 0;
}


#ub-menu-bottom-right {
    right: 0;
    bottom: 0;
}

#ubu-reader-content {
    margin-top: 80px;
    margin-bottom: 60px;
    width: 100%;
}


#documentview {
    position: absolute;
    top: 60px;
    bottom: 40px;
    width: 100%;
}


/*
SYNC VIEW
When there is a sync view, #documentview is lowered and
an extra menu is added to the top of the page.
*/

.viewer-sync #documentview {
    top: 90px;
}

#ub-bc-bosatlas-link {
    background-color: #fff;
    color: #C60000 !important;
    padding: 3px 8px;
}

#ub-special-notice {
    position: absolute;
    top: 60px;
    width: 100%;
    background-color: #c60000;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ub-special-notice p {
    margin: 0 auto;
    color: #FFFFFF;
}

#ub-special-notice a {
    color: #fff;
    font-weight: bold;
}

#ub-special-notice a:hover {
    text-decoration: none;
    background-color: #fff;
    color: #c60000;
}

.ub-nav-info {
    padding: 0 5px;
}

.ub-sync-title {
    font-weight: bold;
}

.ub-sync-nav .material-icons {
    vertical-align: middle;
    font-weight: bold;
}

.material-icons.disabled {
    color: #dd8c8c;
}


.trynewsite {
    font-family: verdana, arial, sans-serif;
    background-color: rgb(255, 255, 0);
    z-index: 9900;
    background-color: rgba(255, 255, 0, 0.9);
    width: 200px;
    position: absolute !important;
    left: 0px;
    top: 80px;
    right: 0px;
    padding: 7px;
    text-align: center;
    box-shadow: 1px 1px 5px grey;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
}

.flex-container {
    display: flex;
    flex-direction: row;
    background-color: #FFFFFF;
    /*height: 90%;*/
    bottom: 0;
}

#UBUnavlinks.overlay {
    visibility: visible;
    opacity: 1;
    right: 0;
}


#view {
    align-self: flex-end;
    flex-grow: 10;
    position: relative;
    height: 100%;

}

/* Responsive layout - makes a one column layout instead of a two-column layout */
@media (max-width: 800px) {
    #burger-menu {
        visibility: visible;
    }

    #objectheader {
        /*height: auto;*/
    }

    .flex-container {
        flex-direction: column;
    }

    #UBUnavlinks {
        position: fixed;
        flex-grow: 1;
        height: 100%;
        top: 60px;
        max-width: 250px;
        background-color: #C60000;
        transition: all 0.3s ease-in-out;
        z-index: 20000;
        padding-top: 1em;
        font-size: 16px;
        right: -250px;
    }

    #UBUnavlinks ul {
        position: unset;
        margin: 0 15px;
        padding: 0;
    }

    #UBUnavlinks ul li {
        float: initial;
        margin-right: unset;
        border-right: none;
        padding: 8px 0px;
        line-height: 2rem;
    }

    #ub-menu-top, #ub-menu-bottom-left, #ub-menu-bottom-right {
        right: unset;
        top: unset;
    }


    .trynewsite {
        display: none;
    }

    #view {
        align-self: auto;
        flex-grow: 12;
        position: relative;
        height: 100%;
        width: 100%
    }

    /* Remove footer */
    #footer {
        display: none;
    }

    #documentview {
        bottom: 0;
    }

}

.ub-bigger {
    font-size: 1.2em;
}

.ub-hidden {
    font-size: 10px;
    z-index: 2;
    position: fixed;
    top: 0;
    color: #fff;
}

#page-title {
    font-size: 8px;
}

/**
Info pages
 */

#object-info {
    padding-bottom: 5em;
}

.info-block {
    border-bottom: 2px black solid;
    padding: 1em 0;
}

.info-block div {
    padding: 5px 0;
}

/**
Reader list of digitalized material
 */

.container {
    margin: 2em;
}

#resolver-list {
    padding-bottom: 100px;
    position: absolute;
}


#resolver-list ul {
    list-style: none;
    margin: 0px;
    padding: 0px;
}

a {
    text-decoration: none;
    color: #C60000;
}

a:hover {
    text-decoration: underline;
}

#resolver-list a {
    margin-right: 1em;
}

#resolver-sections-list {
    margin: 2em 0;
}

.resolver-section h2 {
    padding-left: 5px;
}

.resolver-section-title {
    background-color: #f7f7f7;
    display: block;
    margin-bottom: 10px;
    margin-top: 2em;
}

.resolver-section-title a.top {
    float: right;
    color: #C60000;
    padding: 5px;
}

/* link style */
.resolver-object-list .object-link {
    position: relative;
    padding-left: 24px; /* spazio per l'immagine a sinistra */
    display: inline-block;
    color: #3b3b3b;
    text-decoration: none;
    margin-bottom: 5px;
}

.object-link:hover {
    text-decoration: underline;
}

/* general icon style */
.resolver-object-list .object-link::before {
    content: '';
    background-size: 17px 15px;
    width: 17px;
    height: 15px;
    position: absolute;
    left: 0;
    top: 5px; /* regola se serve per allineamento */
}

/* Icon on campus */
.object-oncampus .object-link::before {
    background-image: url('/images/campus.gif'); /* cambia con il tuo percorso */
}

/* Icon  open access */
.object-openaccess .object-link::before {
    background-image: url('/images/open_access.gif'); /* cambia con il tuo percorso */
}

/*
 Back to top link
 */
#back-to-top {
    position: fixed;
    bottom: 85px;
    right: 30px;
    display: none; /* nascosta di default */
    z-index: 1000;
}

#back-to-top a {
    background: #C60000;
    color: white;
    padding: 10px;
    /*border-radius: 50%;*/
    text-decoration: none;
    /*font-size: 18px;*/
    transition: background 0.3s;
}

#back-to-top a:hover {
    background: #555;
}