/* The Modal (background) */
.modal {
    position: fixed; /* Stay in place */
    z-index: 30; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    vertical-align:top;
    background-color: transparent;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}


/* responsive view */
@media only screen and (min-width:320px) and (max-width:480px) and (orientation: portrait){
    .modal {
        padding-top:200px;
    } 

    .modal-content {
        width: 80%;
    }

    #marketingPopup {
        margin:auto;
        max-width:250px; 
        max-height:250px;
    }
}

@media only screen and (min-width:320px) and (max-width:480px) and (orientation: landscape){
    .modal {
        padding-top:10px;
    } 

    .modal-content {
        width: 80%;
    }

    #marketingPopup {
        margin:auto;
        max-width:250px; 
        max-height:250px;
    }
}

@media only screen and (min-width:481px) and (max-width:768px) and (orientation: portrait){
    .modal {
        padding-top:200px;
        left: 0;
        top: 0;
     } 
    .modal-content {
        width: 80%;
    }

    #marketingPopup {
        margin:auto;
        max-width:250px; 
        max-height:250px;
    }
}

@media only screen and (min-width:481px) and (max-width:768px) and (orientation: landscape){
    .modal {
        padding-top:10px;
     } 
    .modal-content {
        width: 80%;
    }

    #marketingPopup {
        margin:auto;
        max-width:250px; 
        max-height:250px;
    }
}

@media only screen and (min-width: 769px) and (max-width:1024px) and (orientation: portrait){
    .modal {
        padding-top:250px;
     }
     
    .modal-content {
        width: 50%;
    }

    #marketingPopup {
        margin:auto;
        max-width:200px; 
        max-height:200px;
    }
}

@media only screen and (min-width: 769px) and (max-width:1024px) and (orientation: landscape){
    .modal {
        padding-top:50px;
     }
     
    .modal-content {
        width: 40%;
    }

    #marketingPopup {
        margin:auto;
        max-width:250px; 
        max-height:250px;
    }
}

@media only screen and (min-width: 1025px) and (max-width:1200px) and (orientation: landscape){
    .modal {
       padding-top:100px;
    }

    .modal-content {
        margin-left: auto;
        margin-right: auto;
        width: 40%;
    }

    #marketingPopup {
        margin-left:auto;
        margin-right:auto;
        max-width:350px; 
        max-height:350px;
    }
}

@media only screen and (min-width: 1025px) and (max-width:1200px) and (orientation: portrait){
    .modal {
       padding-top:100px;
    }

    .modal-content {
        margin-left: auto;
        margin-right: auto;
        width: 40%;
    }

    #marketingPopup {
        margin-left:auto;
        margin-right:auto;
        max-width:350px; 
        max-height:350px;
    }
}

@media only screen and (min-width: 1201px) and (orientation: landscape){

    #marketingPopup {
        margin:auto;
        max-width:500px; 
        max-height:500px;
    }
}
