:root {
    --orange: #ff4400;
    --green: #598c40;
    --blue: #00eeff;
    --purple: #e1145c;
    --pink: #d9b0c0;
    --darkwhite: #fdfef5;

    --plyr-color-main: var(--green);
    --plyr-badge-text-color: var(--darkwhite);
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: Helvetica, sans-serif, system-ui;
}

.container {
    /* 
    The next four lines prevent the ability to scroll on mobile.
    This is necessary since mobile browsers parse the <meta>-tag and thus ignore the fixed width and height.
    */
    position: fixed;
    height: 100vh;
    width: 100vw;
    overflow: hidden !important;

    display: grid;
    grid-template-rows: 2.5vh 85vh 2.5vh 10vh;
    grid-template-columns: 5vw auto 5vw;
}

.content-wrapper {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    display: flex;
    justify-content: center;
    align-content: center;
}

.border-wrapper {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: grid;
    place-items: center;
}

img, .plyr-wrapper {
    inset: 0;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 
    -.5rem .5rem 2rem rgba(0, 0, 0, 0.75);
}

.button {
    background: #141414;
    cursor: pointer;
    font-variant: small-caps;
    line-height: 1.5;
    color: var(--darkwhite);
    font-size: calc(6px + 0.7vh);
    padding: 1rem;
    border-radius: 0.25rem;
    outline: none;
    vertical-align: middle;
    border: 2px solid var(--green);
    text-decoration: none;
    text-align: center;
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, -33%);
    z-index: 10;
}

.button:hover {
    background: #2d2d2d;
}

.error {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    align-self: center;
    justify-self: center;
    font-family: Helvetica, sans-serif;
    font-size: larger;
}

#fullscreenImageContainer {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(1rem);
    display: grid;
    justify-items: center;
    align-items: start;
    gap: 1rem 1rem;
    z-index: 100;
}

#fullscreenImageContainer img {
    margin: 2rem;
    max-width: 95%;
    max-height: 95%;
    cursor: zoom-out;
}

.hidden {
  display: none !important;
}

dialog::backdrop {
    backdrop-filter: blur(1rem);
}

#imprint{
    position: fixed;
    bottom:0;
    left: 0;
    right: auto;
    padding: 0 0 0.25rem 0.5rem;
    text-decoration: none;
    z-index: -1;
}

#imprint > a{
    color: var(--darkwhite);
}

@view-transition {
    navigation: auto;
}
