:root{
    --wrapper-inline-padding: 100px;
    --nav-mirador-bottons-shadow: 0px 0px 5px 1px #00000066;
    --nav-bottons-background: #ffffffcc;
    --mirador-height: 80vh;
    --side-bar-background: #ffffffcc;
}

header {
    padding-top: 5px;
    padding-bottom: 0;
}

header h1 {
    line-height: 1;
}

.site-title {
    font-family: Super Grotesk;
}

.pageTitle h2 {
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1;
}

div#content {
    padding-top: 15px;
    padding-bottom: 36px;
}

div#content p {
    color: var(--text-color);
}

#site-title h2 {
    margin: 0;
    border-bottom: 1px solid var(--text-color);
    text-transform: uppercase;
    line-height: 48px;
}

/*
 * MIRADOR
 */
#contentBlockElement-1 {
    max-width: calc(100vw - var(--wrapper-inline-padding)*2);
}

#contentBlockElement-1 .fullscreen {
    position: relative;
    width: 100%; /*calc(100vw - 17px - var(--wrapper-inline-padding)*2);*/
    height: var(--mirador-height);
}

.mirador1 {
    background-color: #000000 !important;
}

/* MIRADOR A TUTTO SCHERMO */
/*.MuiAppBar-colorDefault {
    display: none !important;
}*/
.mirador1 header {
    padding: 0;
    background-color: transparent;
    box-shadow: none;
}
.mosaic-window-body > section > div:first-child {
    position: absolute;
    top: 0;
    left: 0;
    /*transform: translate(-50%, 0);
    z-index: 5;*/
}
.mosaic-window-body > section > div:first-child .mirador-window-top-bar {
    border: none;
}
.mosaic-window-body > section > div:first-child div.mirador18 {
    display: none;
}
/* * * * * * * * */

.mirador60,
.mirador56,
.mirador61 {
    background-color: transparent !important;
}

.mirador-osd-info {
    display: none;
}

/*
 * * TEST CAMBIO ICONE NAVIGAZIONE MIRADOR
 */
.mirador-canvas-nav .mirador-osd-navigation svg.MuiSvgIcon-root {
    color: transparent;
    background-color: var(--nav-bottons-background);
    box-shadow: var(--nav-mirador-bottons-shadow);
    padding: 5px 15px;
    background-image: url("/omeka-s/files/asset/customIcons/angle-right-solid.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
    width: 35px;
    height: 35px;
    border-radius: 20px;
}
@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) and (stroke-color:transparent) {
        .mirador-canvas-nav .mirador-osd-navigation .mirador-next-canvas-button .MuiIconButton-label,
        .mirador-canvas-nav .mirador-osd-navigation .mirador-previous-canvas-button .MuiIconButton-label {
            height: 0;
        }
        .mirador-canvas-nav div.mirador64 {
            flex-direction: column;
            position: absolute;
            bottom: 15px;
            left: 0;
            padding: 4px;
        }
        #creditsButton > svg {
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            position: absolute;
        }
    }
}
/* Test website on real Safari 11+ */

.mirador-canvas-nav .Mui-disabled svg.MuiSvgIcon-root {
    background-color: #777777cc;
    display: none;
}

.mirador-canvas-nav .MuiIconButton-root:hover {
    background-color: transparent;
}

.mirador-next-canvas-button.Mui-disabled {
    padding: 0;
}

/* * * * * */

/*
 * * CAMBIO POSIZIONE ICONE CONTROLLO ZOOM
 */
.mirador-canvas-nav div.mirador63, 
.mirador-canvas-nav div.mirador59,
.fullscreen-enabled .mirador-canvas-nav div.mirador63 {
    flex-direction: column;
    position: absolute;
    bottom: 15px;
    left: 0;
    padding: 4px;
}

.fullscreen-enabled .mirador-canvas-nav div.mirador59 {
    top: -90vh;
}

.mirador-canvas-nav div.mirador63 > span, 
.mirador-canvas-nav div.mirador59 > span,
.mirador-canvas-nav div.mirador64 > span {
    display: none;
}
/* * * * * */

/*
 * TEXT BOX
 */
#contentBlockElement-2 {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: var(--wrapper-inline-padding);
    top: 300px;
    width: 75px;
    /*max-height: 67vh;
    min-height: 67vh;*/
    height: calc(var(--mirador-height) - 28vh);
    background-color: var(--bsr-footer-bg-color);
    border-radius: 30px 0px 0px 30px;
    padding-right: 10px;
    padding-bottom: 22px;
    z-index: 5;
}

 .scrollable-text {
    overflow: auto;
    padding-left: 25px;
    padding-right: 15px;
    /*max-height: 62vh;
    min-height: calc(600px - 8vh);*/
    scrollbar-width: thin; /*none;*/
    scrollbar-color: var(--text-color) transparent;
}

.scrollable-text::-webkit-scrollbar {
    width: 2px;/*0;*/
    background: transparent;
}

.scrollable-text::-webkit-scrollbar-thumb {
    background: var(--text-color);
}

.scrollable-text::-webkit-scrollbar-thumb:hover {
    background: var(--text-color); /*in realtà ci vorrebbe un colore diverso*/
}

.scrollable-text::-webkit-scrollbar-button {
    background: none;
}

.scrollable-text p:first-child {
    margin-top: 0;
}

#contentBlockElement-2.opened {
    width: 75%; /*350px;*/
    transition-duration: 1s;
}

#contentBlockElement-2.closed {
    width: 75px;
    transition-duration: 1s;
}

button.customButton {
    align-self: flex-end;
    margin-top: 10px;
    margin-bottom: 10px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--bsr-footer-bg-color);
    /*box-shadow: var(--nav-bottons-shadow);*/
}

button.open {
    background-image: url("/omeka-s/files/asset/customIcons/angle-left-solid.svg");
    background-size: 10px;
    background-color: transparent !important;
    box-shadow: none;
}

button.close {
    background-image: url("/omeka-s/files/asset/customIcons/xmark-solid.svg");
    background-size: 14px;
}

.annotations {
    cursor: pointer;
    font-weight: bold;
    box-shadow: var(--nav-bottons-shadow);
    padding: 0 5px;
}

/* SUPER TEST*/
/* * * * * * * */
#content {
    display: grid;
    grid-template-columns: 33.3% auto 33.3%;
    grid-template-rows: auto calc(var(--mirador-height) - 50px) 50px auto;
    grid-template-areas: "titolo titolo titolo" "mirador mirador mirdor" "navigation navigation navigaion" "credits credits credits";
}
.pageTitle {
    grid-row: 1;
    grid-column: 1 / 4;
}
#contentBlockElement-1 {
    grid-row: 2 / 4;
    grid-column: 1 / 4;
}
#contentBlockElement-2 {
    position: inherit;
    grid-row: 2 / 4;
    grid-column: 3;
    margin-left: auto;
    margin-top: 13.5vh;
}
.site-page-pagination {
    justify-content: space-around;
    grid-row: 3;
    grid-column: 1 / 4;
    margin: 0 auto;
    width: 140px;
    background-color: transparent;
    z-index: 5;
}
/*.mirador60,
.mirador56 {
    display: none !important;
}*/
div#content > .site-page-pagination a {
    color: var(--text-color);
    background-color: var(--nav-bottons-background);
    box-shadow: var(--nav-bottons-shadow);
    /*padding: 6px 10px;*/
    padding: 5px 15px;
}
/* * * * * * * */

/*
 * CREDITS
 */
#contentBlockElement-4 {
    grid-area: credits;
    height: 0;
}

#contentBlockElement-4.opened {
    height: 420px;
    transition-duration: 1s;
}

#contentBlockElement-4.closed {
    height: 0;
    transition-duration: 1s;
}

/*#creditsButton {
    /*position: absolute;
    bottom: -43px;
    left: 50vw;*/
    /*color: transparent;
    background-color: var(--nav-bottons-background);
    box-shadow: var(--nav-mirador-bottons-shadow);
    padding: 5px 15px;
    background-image: url("/omeka-s/files/asset/customIcons/angle-right-solid.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
    width: 35px;
    height: 35px;
    border-radius: 20px;
    transform: rotate(90deg);
    z-index: 5;
}*/

/*@keyframes rotateCredits {
    0% {transform: rotate(0deg);}
    100% {transform: rotate(90deg);}
}*/

#creditsButton svg {
    transform: rotate(90deg);
    /*animation: rotareCredits 0.5s;*/
}

/*.stayLarge {
    width: 66px;
}*/

html {
    scroll-behavior: smooth;
}

/* * * * * * * */

#Hakewill-test .mirador60,
#Hakewill-test .mirador56 {
    display: inherit !important;
}

@media only screen and (min-width: 769px) {
    #contentBlockElement-2 {
        background: var(--side-bar-background);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px); 
    }

    button.customButton {
        background-color: transparent;
    }
}
