.modaldiv {
    display: none;
    position: fixed;
    z-index: 30012;
    /*z-index: 1;*/
    padding-top: 10px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.modaldivconteudo {
    background: #fefefe;
    color: #555555;
    margin: auto;
    padding: 10px;
    border: 1px solid #888;
    border-radius: 5px;
    width: 90%;
    -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
}

@-webkit-keyframes animatetop {
    from {
        top: -300px;
        opacity: 0;
    }
    to {
        top: 0;
        opacity: 1;
    }
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0;
    }
    to {
        top: 0;
        opacity: 1;
    }
}

.close {
    width: 50px;
    height: 50px;
    margin-top: -20px;
    margin-right: -20px;
    border-radius: 0 0 0 50px;
    float: right;
    z-index: 1;
    background: orangered;
    text-align: right;
}

.close svg {
    height: 20px;
    width: 20px;
    fill: #ffffff;
    margin: 10px;
    cursor: pointer;
}

@media only screen and (min-width: 600px) {
    .modaldivconteudo {
        width: 80%;
    }
}

@media only screen and (min-width: 768px) {
    .modaldivconteudo {
        width: 70%;
    }
}

@media only screen and (min-width: 992px) {
    .modaldivconteudo {
        width: 60%;
    }
}

@media only screen and (min-width: 1200px) {
    .modaldivconteudo {
        width: 50%;
    }
}