/* The Modal (background) */
.r18_modal {
	display:none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.4);
}

/* Modal Content Box */
.r18_modal-content {
    background-color: #000;
    /*margin: 15% auto 0% auto;*/
    width: 500px;
    height: 400px;
    position: absolute;
    /*left: 0;
    right: 0;*/
    top: 50%;
    left: 50%;
    margin: -200px 0 0 -250px;
}

/* The Popup Button */
#r18_open{
    margin-top: 50px;
    cursor: pointer;
    height: 100px;
}
/* Add Zoom Animation */
#zoom_in {
    animation: zoom 0.6s;
}
@keyframes zoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

/* The Close Button (x) */

/* Center the image and position the close button */
.r18_confirmcontainer {
    text-align: center;
    margin: 24px 0 12px 0;
    position: relative;
}
.r18_confirmcontainer img{
    width: 70%;
}

.r18_close {
    position: absolute;
    right: 25px;
    top: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
}
.r18_close:hover,.r18_close:focus {
    color: red;
    cursor: pointer;
}

/* The Yes/No Button */
.r18_confirm{
    display: flex;
    width: 250px;
    max-width: 100%;
    margin: auto;
}

.r18_confirm img{
    width: 70%;
    display: block;
    margin: auto;
}

#r18_confirm{
    color: #ca0000;
}

#popupNo img, #popupYes img{
    cursor: pointer;
    opacity: 0.8;
}
#popupNo img:hover, #popupYes img:hover{
    opacity: 1;
}



/* Mobile Size */

@media (max-width:500px){
    .r18_modal-content{
        width: 300px;
        height: 300px;
        margin: -150px 0 0 -150px;
    }
    .r18_confirmcontainer{
        margin: auto;
    }
    .r18_modal h1{
        font-size: 20px;
    }
    .r18_modal p{
        margin-bottom:  3%;
        font-size: 12px;
    }
}
@media (min-device-width: 501px) and (max-device-width:860px ){
    .r18_modal-content{
        width: 300px;
        height: 260px;
        margin: -105px 0 0 -150px;
    }
    .r18_confirmcontainer{
        margin: auto;
    }
    .r18_modal h1{
        font-size: 20px;
        margin: 10px auto 10px auto;
    }
    .r18_modal p{
        margin-bottom:  3%;
        font-size: 12px;
    }
    .r18_confirm img{
        width: 50%;
    }
}
