#modal-bg {
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.modal-hidden {
    display: none;
}

.modal-window-container {
    position: absolute;
    top: 20%;
    left: calc(50% - 200px);
}
.modal-window {
    position: relative;
    border-radius: 10px;
    border: 10px solid rgb(157, 231, 255);
    width: 400px;
    height: auto;

}

#modal-content {
    padding: 30px;
    font-size: 1.5em;
    line-height: 1.5em;
    text-align: center;
    background: white;
    height: 100%;
    width: auto;
    margin: 0 auto;
}

.modal-active {
    display: block;
    z-index: 8000;
    background: rgba(0,0,0,.8);
}

#close {
    cursor: pointer;
    line-height: 1em;
    position: absolute;
    font-weight: bold;
    top:0;
    right: 0;
    border: 5px solid orange;
    border-radius: 50%;
    padding: 5px;
    transition: font-size 0.5s ease, padding 0.5s ease;
}

#close:hover {
    font-size: 1.3em;
    padding: 7px;
    background: rgb(230,230,230);
}

.success {
    border: 5px rgb(157, 231, 255);
}

.failure {
    padding: 20px 20px;
}
