#bodyOverlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease-in-out;
    
}

.popUp {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 16px 0 rgba(0, 0, 0, 1), 0 1px 3px 0 rgba(0, 0, 0, 1);
    background-color: #8E8321;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease-in-out;
    z-index: 10000;
    
}

#bodyOverlay.sichtbar, .popUp.sichtbar {
    opacity: 1;
    pointer-events: auto;
    z-index: 100000;
}

#mailPopUp {
    width: 40%;
    height: 75vh;
}

.mailSchliessenButton {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 50%;
}

.mailSchliessenButton:hover {
    box-shadow: 0 10px 16px 0 rgba(0, 0, 0, 1), 0 1px 3px 0 rgba(0, 0, 0, 1);
  animation: flip 1s;
}

#mailPopUp .eingabefeld {
    padding: 14px 16px;
    font-size: 1.5vh;
    line-height: 16px;
    border: 2px solid black;
    box-shadow: 0 10px 16px 0 rgba(0, 0, 0, 1), 0 1px 3px 0 rgba(0, 0, 0, 1);
    margin: 3%;
    width: 32vw;
    border-radius: 20px;
}

.mailEingabefeld {
    height: 40%;
    width: 32vw;
    margin-top: 5%;
    margin-left: 3%;
    font-size: 1.5vh;
    line-height: 16px;
    border: 4px solid black;
    box-shadow: 0 10px 16px 0 rgba(0, 0, 0, 1), 0 1px 3px 0 rgba(0, 0, 0, 1);
    border-radius: 15px;
    padding: 10px;
}

#mailPopUp input[type=submit] {
    padding: 0 16px;
    background-color: #DFD8AE;
    border: none;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 16px 0 rgba(0, 0, 0, 1), 0 1px 3px 0 rgba(0, 0, 0, 1);
    margin-left: 5%;
    margin-top: 4%;
    border-radius: 20px;
    margin-bottom: 40%;
}

@media only screen and (max-width: 1000px) {
    #mailPopUp {
       width: 80%; 
    }

    .eingabefeld {
        width: 60vw;
        height: 5vh;
    }

    .mailEingabefeld {
        width: 60vw;
        height: 30vh;
    }
}