﻿/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    padding-top: 200px; /* 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 */
    z-index:2; /* Sit on top */
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 3px solid #00AF41;
    -webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
    max-width: 30%;
    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;
    overflow:hidden;
}

/* Add Animation */
@-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}
}

/* The Close Button */
.closepop {
    color: black;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-top: -6px;}

.closepop:hover,
.closepop:focus {
    color: #00AF41;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    padding: 2px 16px;
    background-color: #5cb85c;
    color: white;
}

.modal-body {padding: 2% 4%; text-align:center; float:left;}
.modal-body p {float:left; width:100%;}
.modal-body p b {font-weight:bold;}
.modal-body span.cod {
	padding:2% 4%;
	float:left;
	width:42%;
	margin-left:25%;
	margin-right:25%;
	background-color:#95E8B4;
	margin-top:18px;
	margin-bottom:10px;
	font-weight:bold;
}

.modal-body p a {
	width:50%;
	float:left;
	margin-left:25%;
	margin-right:25%;
	margin-bottom:10px;
	margin-top:10px;
}

.modal-body p a:last-child {
    background-color: #e2e2e2;
    border-left: 3px solid #00af41;
    color: #000;
    float: right;
    padding: 1% 5%;
    width: 39%;
    transition: all 0.2s linear;
}

.modal-body p a:last-child:hover {
	cursor:pointer;
	background-color:#00af41;
    border-left: 3px solid #000;
    color:#fff;
}


.modal-body p a:last-child img {float:right; max-height:18px;}

.modal-footer {
    padding: 2px 16px;
    background-color: #5cb85c;
    color: white;
}


/**************************************************************    RESPONSIVE   *******************************************/

@media only screen and (min-device-width : 1025px) and (max-device-width : 1223px) {.modal-content {max-width: 50%;}}
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {.modal-content {max-width: 60%;}}
@media only screen and (min-device-width : 481px) and (max-device-width : 767px) {.modal-content {max-width: 80%;}.modal-body p a:last-child img {display:none;}}
@media only screen and (min-device-width : 0px) and (max-device-width : 480px) {
	.modal-content {max-width: 90%; font-size:0.875rem;}
	.modal-body span.cod {font-size:1rem;}
	.modal-body p a:last-child {
	    float: right;	    margin-left: 5%;
	    margin-right: 5%;
	    width: 79%;
	}
}
@media only screen and (max-width : 320px) {
	.modal-content {max-width: 90%; font-size:0.875rem;}
	.modal-body span.cod {
		font-size:1rem;
		width:62%;
		margin-left:15%;
		margin-right:15%;
	}
	.modal-body p a:last-child {
	    float: right;	    margin-left: 5%;
	    margin-right: 5%;
	    width: 79%;
	}
	.modal-body p a:last-child img {display:none;}

}




