.modal-window {
    position: fixed;
    background: rgb(0, 0, 0);
    background: -webkit-linear-gradient(rgba(0, 0, 0, 0.7245491946778712) 0%, rgba(0, 0, 0, 0.7217480742296919) 100%);
    background: -o-linear-gradient(rgba(0, 0, 0, 0.7245491946778712) 0%, rgba(0, 0, 0, 0.7217480742296919) 100%);
    background: linear-gradient(rgba(0, 0, 0, 0.7245491946778712) 0%, rgba(0, 0, 0, 0.7217480742296919) 100%);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}

.modal-window:target {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.modal-window > div {
    width: 400px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2em;
    background: white;
}

.modal-window header {
    font-weight: bold;
}

.modal-window h1 {
    font-size: 150%;
    margin: 0 0 15px;
}

.modal-close {
    color: #aaa;
    line-height: 50px;
    font-size: 80%;
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
    width: 70px;
    text-decoration: none;
}

.modal-close:hover {
    color: black;
}


.modal-window > div {
    border-radius: 1rem;
}

.modal-window div:not(:last-of-type) {
    margin-bottom: 15px;
}

.logo {
    max-width: 150px;
    display: block;
}

small {
    color: lightgray;
}

@media only screen and (max-width:390px) {

    .modal-window {
        position: fixed;
        background: rgb(0, 0, 0);
        background: -webkit-linear-gradient(rgba(0, 0, 0, 0.7245491946778712) 0%, rgba(0, 0, 0, 0.7217480742296919) 100%);
        background: -o-linear-gradient(rgba(0, 0, 0, 0.7245491946778712) 0%, rgba(0, 0, 0, 0.7217480742296919) 100%);
        background: linear-gradient(rgba(0, 0, 0, 0.7245491946778712) 0%, rgba(0, 0, 0, 0.7217480742296919) 100%);
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 999;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
    }

    .modal-window:target {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .modal-window > div {
        width: 300px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 2em;
        background: white;
    }

    .modal-window header {
        font-weight: bold;
    }

    .modal-window h1 {
        font-size: 120%;
        margin: 0 0 15px;
    }

    .modal-close {
        color: #aaa;
        line-height: 50px;
        font-size: 80%;
        position: absolute;
        right: 0;
        text-align: center;
        top: 0;
        width: 70px;
        text-decoration: none;
    }

    .modal-close:hover {
        color: black;
    }


    .modal-window > div {
        border-radius: 1rem;
    }

    .modal-window div:not(:last-of-type) {
        margin-bottom: 15px;
    }

    .logo {
        max-width: 150px;
        display: block;
    }

    small {
        color: lightgray;
    }