/* quick page recreation */
.simple-render, .simple-render > form {
    width: 100%;
    /*display: flex;
    flex-direction: column;
    /*gap: 16px;*/
}

.simple-render iframe {
    width: 510px;
    height: 290px;
}

.simple-render p.center {
    text-align: center !important;
}

.simple-render .box-center {
    margin-left: auto !important;
    margin-right: auto !important;
}

.simple-render .left {
    justify-self: start;
}

.simple-render .right {
    justify-self: end;
}

.simple-render * {
    font-size: 16px;
}

.simple-render small {
    font-size: 12px;
}

.simple-render a, .simple-render p, .simple-render span
{
    text-align: justify;
}

.simple-render .error {
    text-align: center !important;
    font-weight: bold;
    color: #A80000;
}

.simple-render .top-margin {
    margin-top: 2em;
}

.simple-render .bold {
    font-weight: bold;
}

.simple-render .underline {
    text-decoration: underline;
}

.simple-render .float-left {
    float: left;
}

.simple-render .float-right {
    float: right;
}

.gap-box > *:not(:last-child) {
    margin-bottom: 1em;
}

.gap-box img.float-left {
    margin-right: 16px;
}

.gap-box img.float-right {
    margin-left: 16px;
}

.simple-render .bigger, .simple-render .bigger * {
    font-size: 18px !important;
}

.simple-render ul {
    list-style-position: outside;
    list-style-type: disc;
    margin-left: 1em;
}

.simple-render ol {
    list-style-position: outside;
}

.simple-render ul li ul {
    list-style-type: circle;
}

.simple-render ul li ul li ul, .simple-render ul li ul li ul li ul {
    list-style-type: square;
}

.button-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    width: fit-content;
}

.gap-box .inline-input {
    display: flex;
    align-items: center;
}

.grid-table {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 2.5px;
}

.grid-row {
    display: grid;
    grid-template-columns: 256px 1fr;
    align-items: start;
}

.portrait-grid {
    max-width: 100%;
    display: grid;
    row-gap: 64px;
    column-gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.portrait-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.portrait-grid > div > div {
    display: block;
    position: relative;
    width: 150px;
    height: 200px;
    margin-bottom: 16px;
}

.portrait-grid > div > div > img {
    position: absolute;
}

.portrait-grid > div > div > img:nth-child(2) {
    top: 12%;
    left: 15%;
    width: 70%;
    height: 76%;
}

.portrait-grid > div > div > img:nth-child(1) {
    width: 100%;
    height: 100%;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.25);
    border-radius: 2px;
}

.portrait-grid > div > p {
    text-align: center;
}

.portrait-grid > div > p:nth-child(2) {
    font-weight: bold;
}

.portrait-grid > div > p:nth-child(3) {
    font-style: italic;
}

textarea.textarea-default-height {
    min-height: 192px;
}

@media (max-width: 864px) {
/*@media (max-width: 1056px) {*/
    textarea.textarea-default-height {
        min-height: 384px;
    }

    .simple-render iframe {
        max-width: 100%;
        height: 256px;
    }

    .button-grid {
        flex-direction: column;
        gap: 16px;
        width: fit-content;
    }

    .button-grid > * {
        text-align: center !important;
        width: 100%;
    }

    /*
    .simple-render .gap-box .mobile-center {
        display: block;
        margin-left: auto;
        margin-right: auto;
        text-align: center !important;
    }

    .simple-render .mobile-center {
        justify-self: center;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    */

    .mobile-center {
        text-align: center;
    }

    .grid-row {
        grid-template-columns: 1fr;
    }

    .grid-row:nth-child(2n):not(:first-child) {
        margin-top: 8px;
    }

    .grid-row:nth-child(2n):not(:last-child) {
        margin-bottom: 8px;
    }
}

/* scale down the video for really small screens */
@media (max-width: 512px) {
    iframe {
        height: 200px !important;
    }
}

@media (max-width: 384px) {
    iframe {
        height: 150px !important;
    }
}