/*
Theme Name: Schelper Theme
Theme URI: http://www.applicationpark.de/
Description: Modal Addon
Version: 1.0
Author: A. Schmidt
Author URI: http://www.applicationpark.de/
Tags: pink, custom header, fixed width
Text Domain: schelper
*/

body.overflowHidden {
    overflow: hidden;
}

.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    user-select: none;
    pointer-events: none;
    z-index: -22;
    transition: all 200ms ease-in-out;
}

.modal--opened {
    opacity: 1;
    user-select: auto;
    pointer-events: all;
    z-index: 1;
}

.modal__overlay {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 30, 30, 0.8);
    z-index: 11;
}

.modal__close {
    outline: 0;
    background-color: #C5007B;
    font-size: 1.5rem;
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
    font-weight: bold;
    border: 4px solid #fff;
    border-radius: 10px;
    color: #fff;
    width: 39px;
    height: 39px;
}

.modal__content {
    background-color: aliceblue;
    color: #1e1e1e;
    max-width: 700px;
    width: 96%;
    padding: 15px;
    border-radius: 10px;
    z-index: 22;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 94%;
    font-size: 1.4em;
    line-height: 1.6em;
    text-align: left;
}

.modal__content > h4 {
    font-size: 18px;
    margin: 15px 0;
}
