:root {
    --violet: #bb86fc;
    --white: #fff;
    --grey-font: #333;
    --grey-font-2: #222;
    --grey-overlay: #41414163;
    --grey-overlay-dark: #00000080;
}

@font-face {
    font-family: 'Scada';
    src: url("../fonts/Scada-Regular.ttf");
    font-weight: normal;
}

body {
    height: 100%;
    overflow-y: hidden;
}
.backgrd {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
}
.backgrd .pic {
    background-image: none; /* url(/img/tl-ametlla-01.jpg) */;
    background-size: cover;
    background-position: 0% 50%;
    height: 100%;
}
.mybox {
    width: min(800px, 100%);
    height: 400px;
    margin: 0 auto;
    overflow-y: scroll;
    top: calc(45% - 200px);
    position: relative;
}
.mybox::-webkit-scrollbar {
    display: none;
}
.phob {
    padding-top: 60px;
}
.navbar .navbar-item {
    color: #fff;
}
.navbar .navbar-item .navbar-link {
    color: #fff;
}
.navbar .MuiBadge-root > .MuiAvatar-circular {
    margin-top: -3px;
    margin-left: 5px;
}
  
/* Hide scrollbar for IE, Edge and Firefox */
.mybox {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.mylist {
    width: 100px;
    height: 400px;  /* --> 76px * 5 images */
    overflow-y: scroll;
    scroll-behavior: smooth;
    top: 62px;
    left: 20px;
    position: absolute;
}
.mylist::-webkit-scrollbar {
    display: none;
}
  
/* Hide scrollbar for IE, Edge and Firefox */
.mylist {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* admin exclusive classes */
.myGrid {
    width: 100%;
    height: auto;
    overflow-y: scroll;
    scroll-behavior: smooth;
    top: 62px;
    left: 5px;
    position: absolute;
}
.myGrid .grid-sizer, .myGrid .grid-item {
    width: 33%;
    position: relative;
    float: left;
    margin-right: 5px;
}
.myGrid .img-meta {
    position: absolute;
    bottom: 16px;
    left: 10px;
    padding: 10px;
    background-color: #00000052;
    border-radius: 3px;
}
.myGrid .img-meta span {
    color: var(--white);
    font-family: 'scada';
}
.myGrid .img-loc {
    position: absolute;
    top: 20px;
    left: 10px;
}
.myGrid .img-loc.closed {
    top: 10px;
    background-color: #ffffff69;
    padding-right: 10px;
    border-radius: 3px;
}

.myFilters {
    padding: 10px;
    margin-bottom: 10px;
}
#map {
    height: 400px;
    width: 600px;
}
#map .leaflet-marker-pane {
    filter: saturate(0);
}

.place-link {
    line-height: 1rem;
    display: inline-block;
    word-break: break-all;
}

.buttons {
    position: absolute;
    z-index: 200;
    top: 50%;
    left: 0px;
    width: 100%;
    height: 60px;
}

.buttons > * {
    cursor: pointer;
}

.buttons .case {
    position: absolute;
    transition: .2s;
}
.buttons .case:hover {
    background-color: #efefef01;
}
.buttons .case:hover > * {
    filter: invert(.75);
}

.buttons .before {
    left: 15px;
}
.buttons .after {
    right: 15px;
}

.buttons .next {
    background-image: url(/img/next-prev-200.png);
    background-size: 50px;
    background-position: 0% 0%;
    height: 60px;
    width: 60px;
    transform: rotate(180deg);
    filter: invert(1);
    background-repeat: no-repeat;
    background-position: 5px 5px;
    position: relative;
}

.buttons .prev {
    background-image: url(/img/next-prev-200.png);
    background-size: 50px;
    background-position: 0% 0%;
    height: 60px;
    width: 60px;
    filter: invert(1);
    background-repeat: no-repeat;
    background-position: 5px 5px;
    position: relative;
}

.arrow {
    position: absolute!important;
    z-index: 10;
    top: 0px;
    left: 0px;
    background-color: #afafaf;
    background-repeat: no-repeat;
}

.frame {
    position: absolute!important;
    z-index: 10;
    top: 0px;
    left: 0px;
    width: calc(100% - 20px);
    height: calc(100% - 25px);
    margin: 10px;
    background-color: #00000015;
    border: 2px dotted #fff;
}

.grid-sizer, .grid-item { width: 33%; position: relative; }
.mylist .grid-item { width: 100%; margin-bottom: 10px; }
.mylist .grid-item .shown {}
.grid-item img {
    cursor: pointer;
}

.side-pad {
    position: absolute;
    top: 60px;
    right: 15px;
    padding: 10px;
    z-index: 100;
}
.side-pad-placement {
    position: absolute;
    top: 240px;
    right: 15px;
    padding: 10px;
    z-index: 100;
    max-width: 370px;
}
.button-pad {
    position: relative;
    background-color: var(--grey-overlay);
    border-radius: 5px;
    padding: 10px;
}
.button-pad:not(:last-of-type) {
    margin-bottom: 5px;
}
.close-exhibit {
    float: right;
    margin-bottom: 5px;
    margin-top: -10px;
}

.inner-pad {
    margin-top: .75rem;
}
.inner-pad button:not(:last-child) {
    margin-right: .75rem;
}

.purchase-box {
    position: absolute;
    min-height: 550px;
    max-height: 650px;
    overflow-y: scroll;
    width: 380px;
    z-index: 999;
    background-color: #fff;
    padding: 1.5rem;
    padding-top: 2.75rem;
    border-radius: 10px;
    top: calc(50% - 275px);
    left: calc(50% - 170px);
}
.purchase-box .back-button {
    position: absolute;
    top: 10px;
    left: 10px;
}
.purchase-box .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
}
.purchase-box .remove-item {
    position: absolute;
    top: 0px;
    right: 0px;
}
.purchase-box .text {
    font-size: .85rem;
    font-family: "Scada", sans-serif;
    color: #333;
}
.purchase-box img.purchase-img {
    height: 85px!important;
    max-width: unset!important;
    width: auto!important;
    border-radius: 5px;
}
.purchase-box table {
    width: 100%;
}
.purchase-box table .text {
    font-size: unset;
    color: #333;
}
.purchase-box table.total .text {
    font-size: 1.5rem;
}
.purchase-box table.details {
    line-height: 1.33;
}
.purchase-box table.details .text {
    font-size: .9rem;
}
.purchase-box table.details h3.text {
    font-size: 1.15rem;
}
.purchase-box table.details h4.text {
    font-size: .95rem;
}
.purchase-box table tr td {
    padding: .375rem;
    color: #333;
    font-family: "Scada", sans-serif;
    border: unset;
}
.purchase-box > button:not(:last-child) {
    margin-right: 5px;
}

td.consent-text {
    padding: 0 .375rem!important;
    display: inline-flex;
}
.consent-text .MuiCheckbox-sizeSmall {
}
.consent-text .text {
    font-size: .75rem!important;
}

table tr td.image {
    width: 0.1%;
    white-space: nowrap;
}
table.amounts {
    margin-bottom: 0rem!important;
    border-bottom: 1px solid #dbdbdb;
}
.table.total {
    margin-bottom: 1.3rem;
}

.purchase-items {
    max-height: 200px;
    overflow-y: scroll;
}
.purchase-items::-webkit-scrollbar {
    display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.purchase-items {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.purchase-items table {
    margin-bottom: 1px!important;
}
.purchase-items .item-row {
    position: relative;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.3rem;
}

.note {
    padding: 0.4rem 0.8rem;
    background-color: #eee;
    border-radius: 3px;
    margin-top: 0.33rem;
}

.details .text {
    font-size: .85rem;
    font-family: "Scada", sans-serif;
    color: #fff;
}
.details h3.text {
    font-size: 1.35rem;
}
.details h4.text {
    font-size: .95rem;
}
.user-info {
    margin-top: -1rem;
}
.user-info div {
    position: relative;
}
.user-info div.has-error input {
    border: 1px solid #ff9696;
}
.user-info div.has-error label {
    color: #ff9696;
}

.user-info label {
    position: absolute;
    top: 3px;
    left: 15px;
    background-color: #fff;
    padding: 0px 5px;
    font-size: .85rem;
    font-weight: 400;
    color: #777;
}

.user-info input.key-input {
    width: 100%;
    font-size: .75rem;
    border: 1px solid #eee;
    margin-top: 0.75rem;
    padding: 0.75rem;
    outline: none!important;
    border-radius: 3px;
}

.text.price {
    font-size: 1.45rem;
    font-weight: lighter;
    font-family: "Scada", sans-serif;
    color: #fff;
}

.attribuition {
    position: absolute;
    bottom: 10px;
    right: 10px;
}
.attribuition span {
    font-size: .75rem;
    font-family: "Scada", sans-serif;
    color: #fff;
}

.collection-box {
    position: absolute;
    top: 6px;
    left: 44px;
}
.collection-box tr td span {
    cursor: pointer;
    width: max-content;
    display: inline-block;
}
.collection-box tr td {
    padding: 10px;
}

.doc-box {
    font-size: .75rem;
}
.doc-box p {
    padding: .375rem 0;
}
.doc-box ol,
.doc-box ul {
    padding-left: 1.6rem;
    margin-bottom: .375rem;
}
.doc-box ol li,
.doc-box ul li {
    margin-bottom: .3rem;
}
.doc-box ul {
    list-style: outside;
}

.doc-box h1 {
    font-size: 1.625rem;
    margin-bottom: 0.3125rem;
    margin-top: 0.625rem;
}
.doc-box h2 {
    font-size: 1.35rem;
    margin-bottom: 0.3125rem;
    margin-top: 0.625rem;
}
.doc-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.3125rem;
    margin-top: 0.625rem;
}

.unselectable {
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* overrides */

.navbar {
    background-color: transparent;
    position: absolute;
    width: 100%;
    color: #fff;
    font-family: "Scada",sans-serif!important;
}
.navbar-burger {
    color: #fff;
}
.navbar-menu.is-active {
    background-color: var(--grey-overlay-dark);
    z-index: 300;
}

.navbar-link.is-active, .navbar-link:focus, .navbar-link:focus-within, .navbar-link:hover, a.navbar-item.is-active, a.navbar-item:focus, a.navbar-item:focus-within, a.navbar-item:hover {
    background-color: unset;
    color: unset;
}

.ri-trigger {
    width: inherit!important;
    height: 100px!important;
}

table .MuiButton-root.MuiButton-containedSizeMedium:hover {
    text-decoration: none;
    background-color: var(--violet)!important;
}

/* this fixes mobile problems with intense lib */
figure img {
    height: unset!important;
    max-width: unset!important;
}

figcaption {
    border: 2px dashed #fff;
    padding: 20px;
    bottom: 20px!important;
    left: 20px!important;
    font-family: "Scada",sans-serif!important;
}

.attribuition {
    line-height: 1rem!important;
}
.attrib {

}
.inliner > * {
    display: inline-block!important;
    vertical-align: middle;
}
.inliner-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.scr-debug {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 300;
    width: 140px;
    height: auto;
    padding: 5px;
    background-color: var(--white);
    color: var(--grey-font-2);
    font-family: "Scada", sans-serif;
    font-size: .75rem;
    border-radius: 3px;
}

.mycanvas {
    background-color: var(--white);
}
#mycanvas-frame {
    position: relative;
}
.reset-canvas {
    position: absolute!important;
    top: 10px;
    right: -25px;
}

/* media breakpoints */

@media screen and (max-width: 768px) {
    .grid-sizer,
    .grid-item { width: 50%; }
    .mylist .grid-item { margin-bottom: 5px; }
    .mybox {
        height: 100%;
    }
    .purchase-box {
        position: absolute;
        height: calc(100% - 20px);
        width: calc(100% - 20px);
        overflow-y: scroll;
        z-index: 999;
        background-color: #fff;
        padding: .75rem;
        padding-top: 2.75rem;
        border-radius: 10px;
        top: 10px;
        left: 10px;
    }
    .purchase-box img.purchase-img {
        height: 75px!important;
        max-width: unset!important;
        width: auto!important;
        border-radius: 5px;
    }
    .collection-box {
        top: 5px;
    }
    .attribuition {
        bottom: 10px!important;
        left: 10px!important;
    }
    .attrib {
        width: min(370px, 65%);
        display: inline-block;
        overflow-x: hidden;
        height: 1rem;
    }
}

@media screen and (max-width: 768px) and (orientation:portrait) {
    .backgrd .pic {
        background-position: 50% 0%!important;
    }
    #exhibited-at.is-hidden {
        display: block!important;
    }
}

@media screen and (max-width: 768px) and (orientation:landscape) {
    .backgrd .pic {
        background-position: 50% 0%!important;
    }
    .mylist {
        height: calc(100vh - (62px + 28px));
        overflow-y: scroll;
    }
}

@media screen and (max-height: 415px) and (orientation:landscape) {
    .backgrd .pic {
        background-position: 50% 0%!important;
    }
    .mylist {
        height: calc(100vh - (62px + 28px));
        overflow-y: scroll;
    }
    .scr-debug {
        background-color: lightgreen;
    }
    .inner-pad {
        display: inline-block;
        margin-left: 15px;
    }
    .side-pad-placement {
        top: 205px;
        bottom: unset;
    }
    .exhibit-note {
        margin-bottom: 0px;
    }
}

@media screen and (max-width: 415px) {
    .attrib {
        width: 200px;
        display: inline-block;
        overflow-x: hidden;
        height: 1rem;
    }
    .side-pad-placement {
        width: 201px;
        bottom: 50px;
    }
    .exhibit-header {
        margin-top: 5px;
    }
    .scr-debug {
        background-color: lightpink;
    }
}

@media screen and (max-width: 320px) {
    .grid-sizer,
    .grid-item { width: 100%; }
    .mylist .grid-item { margin-bottom: 5px; }
    .mybox {
        height: 100%;
    }
    .mylist {
        width: 60px;
    }
    .purchase-box {
        position: absolute;
        height: calc(100% - 20px);
        width: calc(100% - 20px);
        overflow-y: scroll;
        z-index: 999;
        background-color: #fff;
        padding: .75rem;
        padding-top: 2.75rem;
        border-radius: 10px;
        top: 10px;
        left: 10px;
    }
    .purchase-box img.purchase-img {
        height: 75px!important;
        max-width: unset!important;
        width: auto!important;
        border-radius: 5px;
    }
    
    figcaption {
        border: 2px dashed #fff;
        padding: 20px;
        bottom: 20px!important;
        left: 20px!important;
        font-family: "Scada",sans-serif!important;
        width: min-content!important;
    }
    figcaption h1 {
        font-size: 25px!important;
    }
    figcaption h2 {
        font-size: 15px!important;
    }
    .collection-box {
        top: 5px;
    }
    .attribuition {
        bottom: 10px!important;
        left: 10px!important;
    }
    .attrib {
        width: 160px;
        display: inline-block;
        overflow-x: hidden;
        height: 1rem;
    }
    .side-pad-placement {
        width: 201px;
        top: unset;
        bottom: 50px;
    }
    .exhibit-header {
        margin-top: 5px;
    }
}

@media screen and (max-width: 320px) and (orientation:portrait) {
    .backgrd .pic {
        background-position: 50% 0%!important;
    }
    .side-pad-placement {
        width: 201px;
        top: 240px;
        height: calc(100vh - (240px + 50px));
        overflow-y: scroll;
    }
    .exhibit-header {
        margin-top: 5px;
    }
    
}

@media screen and (max-width: 320px) and (orientation:landscape) {
    .backgrd .pic {
        background-position: 50% 0%!important;
    }
    .side-pad-placement {
        width: 201px;
        top: unset;
        bottom: 50px;
    }
    .exhibit-header {
        margin-top: 5px;
    }
    .mylist {
        height: calc(100vh - (62px + 28px)); /* where 62px is the myList.top property, 28px is the optimal distance from bottom. */
        overflow-y: scroll;
    }
    .inner-pad {
        display: inline-block;
        margin-left: 15px;
    }
    .side-pad-placement {
        top: 205px;
        bottom: unset;
    }
    .scr-debug {
        background-color: lightskyblue;
    }
}
