/*  dialog css  */
.dialog-fullscreen
{
    display: -ms-flexbox;
    display: flex;
    flex: 1;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    min-height: 75vh;
    margin-top: -4rem;
    padding-top: 4rem;
    box-sizing: border-box;
}

.dialog
{
    position: relative;
    display: inline-block;
    overflow: visible;
    max-width: 50rem;
    margin: 2rem 4rem;
    padding: 1rem 3rem;
    border-radius: 0.5rem;
    border: 1px solid #AAAAAA;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.25);
    background: #FFFFFF;
    --dialog-color: #AAAAAA;
}

.dialog p:last-child
{
    margin-bottom: .5em;
}

.dialog.with-icon
{
    text-align: left;
    padding-right: 10rem;
}
.dialog.with-icon > .icon
{
    position: absolute;
    display: block;
    top: 50%;
    right: 3rem;
    padding: 1rem 0;
    font-size: 4rem;
    transform: translate(0, -50%);
    color: var(--color-text, #333333);
    text-align: center;
}

.dialog.warning, .dialog.error
{
    border-width: 4px;
    border-color: var(--dialog-color);
}
.dialog.warning h1, .dialog.error h1
{
    color: var(--dialog-color);
}

.dialog.warning
{
    --dialog-color: var(--color-warning, #FFAE3F);
}

.dialog.error
{
    --dialog-color: var(--color-error, #B4132D);
}

.dialog .exception
{
    text-align: left;
}
.dialog .exception h2
{
    font-size: 1rem;
    font-weight: bold;
}
.dialog .exception .code
{
    font-family: monospace;
    word-break: break-all;
    font-size: 0.75rem;
    line-height: 1.25em;
}
.dialog .exception:not(:last-child)
{
    margin-bottom: 3rem;
}


/*  mobile  */
@media (max-width: 40rem) {
    .dialog { margin: 0.5rem; padding: 0.5rem 1rem; }
    .dialog.with-icon { text-align: center; padding-right: 1rem; }
    .dialog.with-icon > .icon { position: relative; right: auto; top: auto; transform: none; }
}