/* #region dialog-common */
dialog {
    display: none;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    margin: auto;

    .dialog-img {
        user-select: none;
    }
}

.opened {
    display: flex;
}

.opened::backdrop {
    background-color: black;
    opacity: 0.75;
    transition: all 1s ease-in-out;
}

body:has(dialog[open]) {
    overflow: hidden;
}

.dialog-wrapper {
    max-height: 90svh;
    max-width: 90svw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    padding: 20px;
    gap: var(--size-gap-dialog);
    background-color: rgba(217, 217, 217, 0.8);
    backdrop-filter: blur(5px);
    overflow: auto;

    border-radius: var(--border-radius-default);

    font-family: 'Titan One';
    color: var(--color-soft-black);

    h1 {
        font-size: var(--size-h1-dialog);
    }

    h2 {
        font-size: var(--size-h2-dialog);
    }

    .dialog-header {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        position: relative;
    }

    .btn-close-dialog {
        width: var(--size-h1-dialog);
        height: var(--size-h1-dialog);
        min-width: var(--size-h1-dialog);
        min-height: var(--size-h1-dialog);
        border-radius: 50%;
        background-color: rgba(217, 217, 217, 0.5);
        right: 30px;
        border: 2px solid var(--color-soft-black);
        position: absolute;

        img {
            width: 80%;
            height: 80%;
            min-width: 80%;
            min-height: 80%;
            opacity: 0.5;
        }
    }

    .btn-close-dialog:hover {
        background-color: rgba(245, 245, 245, 0.5);
    }
}

@media screen and (max-width: 350px) {
    .dialog-wrapper {
        max-height: 100svh;
        height: 100svh;
        max-width: 100%;
        margin: 0;
    }

    dialog {
        width: 100dvw;
        height: 100dvh;
        max-height: 100dvh;
        max-width: 100dvw;
    }
}
/* #endregion dialog-common */

.instruction-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: clamp(10px, 2svw, 40px);
    overflow: auto;
}

.instruction-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--size-gap-dialog);

    .dialog-img {
        width: clamp(120px, 100%, 400px);
        height: clamp(120px, 35svh, 400px);
        min-height: 120px;
        min-width: 120px;
        border: 5px solid black;
        border-radius: 10%;
        padding: 5px;
        opacity: 0.5;
    }
}

.imprint-content {
    display: flex;
    gap: 20px;
}

.imprint-disclaimer {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 5px;
    overflow: auto;
}

.imprint-creator {
    img {
        width: clamp(75px, calc((100svw - 400px) * 135 / 200 + 75px), 200px);
        border-radius: 50%;
    }

    figcaption {
        padding-top: 10px;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-style: italic;
        font-size: 14px;
    }

    a {
        padding-top: 10px;
        display: flex;
        gap: 10px;

        img {
            width: var(--size-btn-ui);
            height: var(--size-btn-ui);
        }

        p {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-size: 14px;
        }
    }
}

.imprint-side {
    padding-top: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
}
