﻿#adpopup.modal {
    display: none;
    position: fixed;
    z-index: 999999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    margin: auto;
}

#adpopup div.modal-content {
    background-color: #fefefe;
    /* margin: 15% auto; /* 15% from the top and centered */ */ padding: 0;
    border: 1px solid #888;
    width: 40%; /* Could be more or less, depending on screen size */
    position: relative;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    pointer-events: auto;
    background-clip: padding-box;
    outline: 0;
    border-radius: 14px;
    margin: auto;
}

#adpopup span.close {
    color: #000 !important;
    float: right;
    font-size: 36px !important;
    font-weight: bold;
    position: absolute;
    padding-left: 97%;
    right: 10px;
    z-index: 1;
    text-shadow: none !important;
    opacity: .7;
	padding-top: 6px;
}

    #adpopup span.close:hover,
    #adpopup span.close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

@media (max-width: 1100px) {
    #adpopup div.modal-content {
        width: 90%;
    }

    #adpopup span.close {
        padding-left: 95% !important;
    }
}

#adpopup.modal img {
    width: 100%;
}