.nicemodal-overlay{
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	overflow-y: auto;
	background-color:rgba(0,0,0, 0.7);
    z-index: 99;
}
.nicemodal-wrap-modal-content{
	display: none;
    padding: 0 30px 30px 30px;
    display: flex;
    flex-wrap: wrap;
}

.nicemodal-window{
	/*position: relative;*/
	overflow:hidden;
	display: none;
	background-color: #FFF;
	z-index: 99;
	background-position: center center;
	background-repeat: no-repeat;
	background-image: url(../js/modalPopup/img/loader.gif);
	background-opacity: 0.2;
	background-size: 40px;
	/*margin: 5px 0;*/
    margin-left: auto!important;
    margin-right: auto!important;
    margin-top: 20px;
    margin-bottom: 100px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	
	-webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.5);
	-moz-box-shadow:    0px 0px 20px 0px rgba(0, 0, 0, 0.5);
	box-shadow:         0px 0px 20px 0px rgba(0, 0, 0, 0.5);
}
.nicemodal-close-button{
	cursor: pointer;
	background-image: url(../js/modalPopup/img/btn-close.png);
	background-size: 100% 100%;
	background-repeat: no-repeat;
	background-position: center center;
	border: 0;
	margin: 0;
	width: 18px;
	height: 18px;
	position: relative;
	left: calc(100% - 23px);
	top: 5px;
	opacity: 0.6;
	z-index: 9;
}
.nicemodal-close-button:hover {
	opacity: 1;
}
.nicemodal-alert-message{
	background: #e74c3c;
	padding: 10px;
	margin: 10px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	color: #FFF;
	font-size: 14px;
	text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.5);
	margin-top: 50px;
}
#popup_box {
    /* width: 80%; */
    max-width: 980px;
    box-sizing: border-box;
    margin: 10px auto;
    /* padding: 0 20px 0 0; */
    /* flex: 2; */
}
#popup_box_medium {
     /* width: 80%; */
     max-width: 780px;
     box-sizing: border-box;
     margin: 10px auto;
     /* padding: 0 20px 0 0; */
     /* flex: 2; */
}
.popup_titel {
    width: 100%;
    box-sizing: border-box;
    min-height: 28px;
    padding: 5px 0 0 10px;
    margin: 0 0 10px 0;
    background: rgba(155,152,145,0.4);
    float: left;
    display: flex;
}
.popup_tekst {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    color: #333;
}


/* The Modal (background) */
.pModalBox2 {
    position: fixed;
    left: 20px;
    /*text-align: center;*/
    top: 125px;
    padding: 2px;
    text-wrap: normal;
    box-sizing: border-box;
    /*
    background: rgba(165,157,144,1);
    -moz-border-radius: 0 10px 10px 0;
    -webkit-border-radius: 0 10px 10px 0;
    border-radius: 0 10px 10px 0;
    -webkit-transition-duration: 0.3s;
    -moz-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -moz-box-shadow: 1px 1px 2px 10px #C0C0C0 inset;
    -webkit-box-shadow: 1px 1px 2px 0px #C0C0C0 inset;
    box-shadow: 1px 1px 5px 1px #999;
    */
    z-index: 80;
}


.pModalBox {
    position: fixed;
    left: 0;
    top: 125px;
    height: 38px;
    width: 38px;
    padding: 4px;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    background: rgba(165,157,144,1);
    -moz-border-radius: 0 10px 10px 0;
    -webkit-border-radius: 0 10px 10px 0;
    border-radius: 0 10px 10px 0;
    -webkit-transition-duration: 0.3s;
    -moz-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -moz-box-shadow: 1px 1px 3px 1px rgba(50,50,50,0.7) inset;
    -webkit-box-shadow: 1px 1px 3px 1px rgba(50,50,50,0.7) inset;
    box-shadow: 1px 1px 3px 1px rgba(50,50,50,0.7);
    z-index: 80;
}
.pModalBoxNoIMG{
    position: fixed;
    left: 0;
    top: 125px;
    height: 120px;
    width: 30px;
    padding: 4px;
    cursor: pointer;
    /*color: #FFFFFF;*/
    font-weight: bold;
    font-size: 15px;
    text-align: center;
    word-break: break-word;
    box-sizing: border-box;
    background: rgba(255,209,112,1);
    -moz-border-radius: 0 10px 10px 0;
    -webkit-border-radius: 0 10px 10px 0;
    border-radius: 0 10px 10px 0;
    -webkit-transition-duration: 0.3s;
    -moz-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -moz-box-shadow: 1px 1px 3px 1px rgba(50,50,50,0.7) inset;
    -webkit-box-shadow: 1px 1px 3px 1px rgba(50,50,50,0.7) inset;
    box-shadow: 1px 1px 3px 1px rgba(50,50,50,0.7);
    z-index: 80;
}

.pModalBoxNoIMG > span {
    /* transform: rotate(-90deg); */
    /* transform-origin: left top 0; */
    width: 120px;
    /* height: 20px; */
    text-align: center;
    display: inline-block;
    /* float: left; */
    transform: rotate(270deg) translate(-47px,-52px);
}

.pSearchBox {
    position: fixed;
    left: 0;
    top: 175px;
    height: 38px;
    width: 38px;
    padding: 4px;
    text-align: center;
    box-sizing: border-box;
    background: rgba(165,157,144,1);
    -moz-border-radius: 0 10px 10px 0;
    -webkit-border-radius: 0 10px 10px 0;
    border-radius: 0 10px 10px 0;
    -webkit-transition-duration: 0.3s;
    -moz-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -moz-box-shadow: 1px 1px 3px 1px rgba(50,50,50,0.7) inset;
    -webkit-box-shadow: 1px 1px 3px 1px rgba(50,50,50,0.7) inset;
    box-shadow: 1px 1px 3px 1px rgba(50,50,50,0.7);
    z-index: 80;
}

#pBtn2{
    background: url(../images/layout/help.png) no-repeat;
    box-sizing: border-box;
    background-size: 40px auto;
    border:0;
    cursor: pointer;
    width: 40px;
    height: 40px;
}
button#pBtn{
    background: url(../images/layout/help.png) no-repeat;
    box-sizing: border-box;
    background-size: 30px auto;
    border:0;
    padding: 4px;
    cursor: pointer;
    width: 30px;
    height: 30px;
}
span#pBtn{
    border:0;
    cursor: pointer;
}

#pSearch{
    background: url(../images/layout/ico-zoeken.png) no-repeat;
    box-sizing: border-box;
    background-size: 30px auto;
    border:0;
    padding: 4px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    vertical-align: middle;
}
.pModal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100; /* Sit on top */
    padding-top: 120px; /* 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 */
}
.pModSearch {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100; /* Sit on top */
    padding-top: 300px; /* 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 */
.pModal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    -moz-border-radius:10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
}

.pModSearch > .pModal-content {
    padding: 10px;
    width: 250px;
}
.pModalTitle {
	background: url(../images/layout/help.png) no-repeat;
    background-size: 26px auto;
    -webkit-margin-before: 0;
    -webkit-margin-after: 0;
    line-height: 30px;
    margin: 0;
    padding: 0 0 10px 34px;
    clear: both;
    font-family: 'avantgarde_bk_btbook', 'Open Sans', 'ITC_Symbol_Book', arial;
    font-weight: bold;
    font-style:italic;
    font-size: 1.5em;
    text-decoration:none;
    color:#666666;
    box-sizing: border-box;
    width: 100%;
    float: left;
}
.pModalTitleNoIMG {
    line-height: 30px;
    margin: 0;
    padding: 0 ;
    clear: both;
    font-family: 'avantgarde_bk_btbook', 'Open Sans', 'ITC_Symbol_Book', arial;
    font-weight: bold;
    font-style:italic;
    font-size: 1.5em;
    text-decoration:none;
    color:#666666;
    box-sizing: border-box;
    width: 100%;
    float: left;
}

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

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

.pModalSearchClose {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 18px;
}

.pModalSearchClose:hover,
.pModalSearchClose:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
@media only screen and (max-width: 800px) {
    .nicemodal-window{
        margin-left: auto!important;
        margin-right: auto!important;
        margin-top: 3%!important;
        margin-bottom: auto;
    }
    .nicemodal-wrap-modal-content{
        padding: 5px;
    }
    .popup_titel {
        margin: 0 0 5px 0;
        padding: 0;
    }
    .popup_titel > h1 {
        font-size: 1em;
        padding: 10px;
    }
    .pModalBox2 {

        position: absolute;
        right: 20px !important;
        left: auto;
        /* text-align: center; */
        top: 77px;
        padding: 2px;
        text-wrap: normal;
        box-sizing: border-box;
        z-index: 80;
    }
    .pModalBox {
        position: fixed;
        left: 0;
        top: 70px;
        height: 24px;
        width: 24px;
        padding: 2px;
        text-align: center;
        box-sizing: border-box;
        background: rgba(165,157,144,1);
        -moz-border-radius: 0 10px 10px 0;
        -webkit-border-radius: 0 10px 10px 0;
        border-radius: 0 10px 10px 0;
        -webkit-transition-duration: 0.3s;
        -moz-transition-duration: 0.3s;
        -o-transition-duration: 0.3s;
        transition-duration: 0.3s;
        -moz-box-shadow: 1px 1px 3px 1px rgba(50,50,50,0.7) inset;
        -webkit-box-shadow: 1px 1px 3px 1px rgba(50,50,50,0.7) inset;
        box-shadow: 1px 1px 3px 1px rgba(50,50,50,0.7);
        z-index: 80;
    }

    button#pBtn{
        background: url(../images/layout/help.png) no-repeat;
        box-sizing: border-box;
        background-size: 20px auto;
        border:0;
        cursor: pointer;
        width: 20px;
        height: 20px;
    }
    .nicemodal-close-button{
        cursor: pointer;
        background-image: url(../js/modalPopup/img/btn-close.png);
        background-size: 100% 100%;
        background-repeat: no-repeat;
        background-position: center center;
        border: 0;
        /*margin: 3.1% 3.1% 0 0;*/
        width: 18px;
        height: 18px;
        /*position: fixed;*/
        right: 5px;
        top: 5px;
        opacity: 0.6;
        z-index: 9;
    }
}