#ouibounce-modal {
	font-family: 'Open Sans', sans-serif;
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

#ouibounce-modal .underlay {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	display: -webkit-flex;
	align-items: center;
	-webkit-align-items: center;
	justify-content: center;
	-webkit-justify-content: center;
	background-color: rgba(0,0,0,0.5);
	-webkit-animation: fadein 0.5s;
    animation: fadein 0.5s;
}

#ouibounce-modal .modal-background {
	position: relative;
	width: 100%;
	height: 100%;
	max-width: 350px;
	max-height: 350px;
	background: white;
	background-image: url(/Images/home/popup-banner-image.jpg);
    background-size: cover;
    background-repeat: no-repeat;
	background-position: right;
	-webkit-animation: popin 0.3s;
	animation: popin 0.3s;
	cursor: default;
	background-position: calc(100% - 26%) calc(100%);
}

#ouibounce-modal .modal-container {
	width: 100%;
	height: 100%;
	overflow: auto;
	-webkit-user-select:none;
	-moz-user-select:none;
	-o-user-select:none;
	user-select:none;
}

#ouibounce-modal .modal-close-button {
	position: absolute;
	top: 10px;
    right: 10px;
	width: 20px;
	height: 20px;
	background-image: url(/Images/blog/popup-ad-image-close.png);
    background-size: cover;
    background-repeat: no-repeat;
	background-position: center;
	cursor: pointer;
}

#ouibounce-modal .modal-accept-button {
    position: absolute;
    bottom: 20px;
    left: 25%;
    font-size: 14px;
    color: white;
    background-color: #3D00FF;
    padding: 7px 25px;
    cursor: pointer;
    border-radius: 40px;
}


#ouibounce-modal .modal-accept-button:hover {
    background-color: #7691FF;
}

#ouibounce-modal .modal-accept-button:active {
    background-color: #4E42FF;
}


@media all and (min-width:768px) {

	#ouibounce-modal .modal-background {
		position: relative;
		width: 100%;
		height: 100%;
		max-width: 600px;
		max-height: 600px;
		background: white;
		background-image: url(/Images/home/popup-banner-image.jpg);
		background-size: cover;
		background-repeat: no-repeat;
		background-position: right;
		-webkit-animation: popin 0.3s;
		animation: popin 0.3s;
		cursor: default;
		background-position: calc(100%) calc(100%);
	}

	#ouibounce-modal .modal-container {
		width: 100%;
		height: 100%;
		overflow: auto;
		-webkit-user-select:none;
		-moz-user-select:none;
		-o-user-select:none;
		user-select:none;
    }	
    
    #ouibounce-modal .modal-accept-button {
        position: absolute;
        bottom: 45px;
        left: 29%;
        font-size: 20px;
        color: white;
        background-color: #3D00FF;
        padding: 7px 40px;
        cursor: pointer;
        border-radius: 40px;
    }
}

@-webkit-keyframes popin {
	0% {
		-webkit-transform: scale(0);
		transform: scale(0);
		opacity: 0;
	}

	85% {
		-webkit-transform: scale(1.05);
		transform: scale(1.05);
		opacity: 1;
	}

	100% {
		-webkit-transform: scale(1);
		transform: scale(1);
		opacity: 1;
	}
}

@-ms-keyframes popin {
	0% {
		-ms-transform: scale(0);
		transform: scale(0);
		opacity: 0;
	}

	85% {
		-ms-transform: scale(1.05);
		transform: scale(1.05);
		opacity: 1;
	}

	100% {
		-ms-transform: scale(1);
		transform: scale(1);
		opacity: 1;
	}
}

@keyframes popin {
	0% {
		-webkit-transform: scale(0);
		-ms-transform: scale(0);
		transform: scale(0);
		opacity: 0;
	}

	85% {
		-webkit-transform: scale(1.05);
		-ms-transform: scale(1.05);
		transform: scale(1.05);
		opacity: 1;
	}

	100% {
		-webkit-transform: scale(1);
		-ms-transform: scale(1);
		transform: scale(1);
		opacity: 1;
	}
}