.pop_up_de{
	position: absolute;
	left: 50%;
	margin-left: -47%;
	height: 100%;
	width: 85%;
	top: -105%;
	z-index: 1000;

	transition-property:top;
	-moz-transition-property: top; /* Firefox 4 */
	-webkit-transition-property:top; /* Safari and Chrome */
	
	-webkit-transition-duration: 500ms;
	-moz-transition-duration: 500ms;
	transition-duration: 500;

	-moz-transition-timing-function: ease-out;
	-webkit-transition-timing-function: ease-out;
	transition-timing-function: ease-out;
}
.pop_up_de.open{
	top: 0%;
	
	transition-property:top;
	-moz-transition-property: top; /* Firefox 4 */
	-webkit-transition-property:top; /* Safari and Chrome */
	
	-webkit-transition-duration: 300ms;
	-moz-transition-duration: 300ms;
	transition-duration: 300;

	-moz-transition-timing-function: ease-out;
	-webkit-transition-timing-function: ease-out;
	transition-timing-function: ease-out;
}
.wp_pop_up{
	position: relative;
	height: 93%;
}
.pop_up_de .wp_pop_up .hole_paper_pop_up{
	float: left;
	width: 10%;
	height: 100%;

	background-image: url(img/paper_hole_left.png);
	background-size: 100%;
	background-repeat: repeat-y;
}
.pop_up_de .wp_pop_up .content_pop_up{
	float: right;
	background-color: #FDF7C6;
	width: 90%;
	height: 100%;
}

/* special element */
.teacher_pop_up_wp{
	position: absolute;
	bottom: 36%;
	left: 16%;
	width: 109%;
}
.pop_up_de .teacher_pop_up{
	opacity: 0;

	transition-property:opacity;
	-moz-transition-property: opacity; /* Firefox 4 */
	-webkit-transition-property:opacity; /* Safari and Chrome */
	
	-webkit-transition-duration: 100ms;
	-moz-transition-duration: 100ms;
	transition-duration: 100ms;



	-moz-transition-timing-function: ease-in;
	-webkit-transition-timing-function: ease-in;
	transition-timing-function: ease-in;
}
.pop_up_de.open .teacher_pop_up{
	position: absolute;

	max-width: 750px;
	max-height: 589px;
	width: 100%;
	height: 0;
    padding-bottom: 78.5%;

    background-image:url(img/teacher_pop_up.png);
	background-size: 100%;
	background-repeat: no-repeat;

	font-family: 'anonymous', arial;

	opacity: 1;

	transition-property:opacity;
	-moz-transition-property: opacity; /* Firefox 4 */
	-webkit-transition-property:opacity; /* Safari and Chrome */
	
	-webkit-transition-duration: 50ms;
	-moz-transition-duration: 50ms;
	transition-duration: 50ms;

	-webkit-transition-delay: 300ms;
	-moz-transition-delay: 300ms;
	transition-delay: 300ms;

	-moz-transition-timing-function: ease-in;
	-webkit-transition-timing-function: ease-in;
	transition-timing-function: ease-in;
}

.content_pop_up{
	text-align: center;
}
.content_pop_up *:first-child{
	margin-top: 10%;
}
.content_pop_up h1{
	font-size: 2em;
}

.content_pop_up p{
	font-size: 2.5em;
	margin-bottom: 1.5em;
	margin: 2em;
	margin-top: 0.5em;
}


/* popup2 */
/* pop up 2 */

.pop_up_de2{
	position: absolute;
	height: 48%;
	width: 95%;
	top: 25%;
	left: -100%;
	z-index: 1000;

	transition-property:left;
	-moz-transition-property: left; /* Firefox 4 */
	-webkit-transition-property:left; /* Safari and Chrome */
	
	-webkit-transition-duration: 500ms;
	-moz-transition-duration: 500ms;
	transition-duration: 500;

	-moz-transition-timing-function: ease-out;
	-webkit-transition-timing-function: ease-out;
	transition-timing-function: ease-out;
}
.pop_up_de2.open{
	left: 0%;
	
	transition-property:left;
	-moz-transition-property: left; /* Firefox 4 */
	-webkit-transition-property:left; /* Safari and Chrome */
	
	-webkit-transition-duration: 300ms;
	-moz-transition-duration: 300ms;
	transition-duration: 300;

	-moz-transition-timing-function: ease-in;
	-webkit-transition-timing-function: ease-in;
	transition-timing-function: ease-in;
}
.wp_pop_up2{
	position: relative;
	height: 93%;
}
.pop_up_de2 .wp_pop_up2 .hole_paper_pop_up2{
	float: right;
	width: 10%;
	height: 100%;

	background-image: url(img/paper_hole_right.png);
	background-size: 100%;
	background-repeat: repeat-y;
}
.pop_up_de2 .wp_pop_up2 .content_pop_up2{
	float: right;
	background-color: #FDF7C6;
	width: 90%;
	height: 100%;

	background-image: url(img/logo_transparent2.png);
	background-repeat: no-repeat;
	background-position: -16% 122%;
	background-size: 47%;
}

/* close pop up */
.close_pop_up_wp{
	position: absolute;
	width: 9%;
	right: 13%;
	top: 3%;
	cursor: pointer;
}
.close_pop_up{
	position: absolute;

	width: 100%;
	height: 0;
    padding-bottom: 101%;

    background-image:url(img/close_pop_up.png);
	background-size: 100%;
	background-repeat: no-repeat;

	opacity: 1;
}
.wp.of_content_pop_up2{
	margin: 4em auto auto 4em;
	width: 80%;
}

.wp.of_content_pop_up2 h1{
	font-size: 3em;
}

.wp.of_content_pop_up2 p{
	font-size: 2.3em;
	line-height: 2.1em;
}

.wp_buttons_pop_up{
	text-align: right;
	padding-top: 0.5em;
}

.button_pop_up{
	font-size: 1.3em;
	margin-left: 0.5em;
	padding-left: 0.5em;
	padding-right: 0.5em;
	border-radius: 1em;
}


.button_pop_up.ok{
	color: #fff;
	background-color: #d0d05f;
}
.button_pop_up.cancel{
	color: #fff;
	background-color: #ff9933;
}

.button_pop_up.ok:hover{
	color: #fff;
	background-color: #E4E56f;
}
.button_pop_up.cancel:hover{
	color: #fff;
	background-color: #fA8500;
}


@media screen and (min-aspect-ratio: 320/500){
	.teacher_pop_up_wp{
		left: 30%;
		width: 95%;
	}
}

/* modal layer */
.modal_layer{
	position: absolute;
	top: 0%;
	left: 0%;
	height: 100%;
	width: 100%;
	background-color: rgb(255,255,255);
	opacity: 0;
	z-index: 900;
	display: none;
	transition-property:opacity;
	-moz-transition-property: opacity; /* Firefox 4 */
	-webkit-transition-property:opacity; /* Safari and Chrome */
	
	-webkit-transition-duration: 250ms;
	-moz-transition-duration: 250ms;
	transition-duration: 250;

	-moz-transition-timing-function: ease-out;
	-webkit-transition-timing-function: ease-out;
	transition-timing-function: ease-out;
}

.modal_layer.open{
	opacity: 0.3;

	transition-property:opacity;
	-moz-transition-property: opacity; /* Firefox 4 */
	-webkit-transition-property:opacity; /* Safari and Chrome */
	
	-webkit-transition-duration: 250ms;
	-moz-transition-duration: 250ms;
	transition-duration: 250;

	-moz-transition-timing-function: ease-out;
	-webkit-transition-timing-function: ease-out;
	transition-timing-function: ease-out;
}