.screenshot-watermark[hidden] {
    display: none;
}

.screenshot-watermark {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
}

.screenshot-watermark.is-active {
    visibility: visible;
    opacity: 1;
}

.screenshot-watermark__pattern {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    width: 125vw;
    min-width: 900px;
    height: 112vh;
    margin: -6vh 0 0 -12vw;
    transform: rotate(-20deg);
}

.screenshot-watermark__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.screenshot-watermark__item a {
    display: inline-flex;
    padding: 12px 20px;
    color: rgba(33, 29, 27, 0.34);
    font-size: clamp(16px, 1.7vw, 24px);
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .screenshot-watermark__pattern {
        grid-template-columns: repeat(3, minmax(190px, 1fr));
        min-width: 720px;
    }

    .screenshot-watermark__item {
        padding: 8px;
    }
}

/* Temporary in-content watermark preview for exercise 91. */
.exercise-page-config[data-exercise-id="91"] + .exercise-section .task {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 240'%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' transform='rotate(-15 250 120)' fill='%23211d1b' fill-opacity='.055' font-family='Arial,sans-serif' font-size='28' font-weight='700'%3EVorbereitung%20mit%20BO%3C/text%3E%3C/svg%3E");
    background-position: center;
    background-repeat: repeat;
    background-size: 50% 25%;
}
