/*********
 OffCanvas
 *********/

.offcanvas {
    position: fixed;
    display: none;
    overflow-x: hidden;
    padding-bottom: 4vmin;
    scrollbar-gutter: auto;
    z-index: 200;
    background: rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.offcanvas-start {
    top: 0;
    left: 0;
    height: 100%;
}
.offcanvas-top {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: hidden;
}
.offcanvas-end {
    top: 0;
    right: 0;
    height: 100%;
}
.offcanvas-bottom {
    bottom: 0;
    left: 0;
    width: 100%;
}
.offcanvas-center {
    width: 60%;
    height: calc(100% - 30vmin);
    margin: auto;
    top: 15vmin;
    left: auto;
    background: white;
    border: solid 1px black;
}

.offcanvas-header {
    margin-top: 4vmin;
    margin-bottom: 3vmin;
    margin-left: 4vmin;
    margin-right: 4vmin;
    display: flex;
    justify-content: space-between;
    font-size: var(--hover-font-size);
}

.offcanvas-center .offcanvas-body {
    margin: 3vmin;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80%;
}

.offcanvas-footer {
    margin-top: 2vmin;
    margin-bottom: 2vmin;
}
.offcanvas-footer div {
    display: inline;
}

.offcanvas .row-container {
    margin-left: 4vmin;
    margin-right: 4vmin;
    display: flex;
    flex-wrap: no-wrap;
}

.offcanvas hr {
    margin: 2vmin 4vmin;
}

.offcanvas button {
    all: inherit;
    border: 1px solid white;
    color: rgba(0, 0, 0, 0.7);
    background: rgba(255, 255, 255, 0.9);
    width: 26vmin;
    margin: 2vmin;
    border-radius: 2vmin;
    padding: 0.25em 0.5em 0.25em 0.5em;
    text-align: center;
    z-index: 100;
    cursor: pointer;
}
.offcanvas button:hover {
    filter:  drop-shadow(2px 2px 5px rgb(255 255 255 / 0.5));
    color: rgba(0, 0, 0, 0.9);
    font-style: italic;
}
.offcanvas button:active {
  transform: translate(0.2vmin, 0.2vmin);
}

#backdrop {
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 150;
}
.offcanvas .scroller {
    overflow-x: auto;
}

@media (max-aspect-ratio: 1) {

    .offcanvas-center {
        width: 100%;
        height: 80%;
        top: 10%;
    }

}