
.dialog__overlay {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}


.dialog__overlay {
	position: fixed;
	z-index: 15000;
	background: rgba(212,203,203, 0.6);
	display:none;
	-webkit-transition:  all 0.3s;
	transition: all 0.3s;
	-webkit-backface-visibility: hidden;
}

.dialog--open .dialog__overlay {
	opacity: 1;
	pointer-events: auto;
}

.dialog__content {
	
	min-width: 290px;
	padding: 0;
	text-align: center;
	position: relative;
    margin: 0 auto;
	z-index: 5;
	float: left;
	width: 100%;
}

.dialog--open .dialog__content {
	pointer-events: auto;
}


.container {
    position:relative;
-webkit-transition: -webkit-transform 0.3s;
	transition: transform 0.3s;
	
}

.container--move {

	-webkit-transition: -webkit-transform 0.3s;
	transition: transform 0.3s;
    /*-webkit-transform: scale3d(0.95, 0.95, 1);
	transform: scale3d(0.95, 0.95, 1);*/
	
}



.dialog.dialog--open .dialog__content,
.dialog.dialog--close .dialog__content {
    top:0;
	opacity: 1;
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
	-webkit-animation-timing-function: cubic-bezier(0.7,0,0.3,1);
	animation-timing-function: cubic-bezier(0.7,0,0.3,1);
}

.dialog.dialog--open .dialog__content {
	-webkit-animation-duration: 0.3s;
	animation-duration: 0.3s;
	-webkit-animation-name: anim-open;
	animation-name: anim-open;
}

.dialog.dialog--close .dialog__content {
	-webkit-animation-duration: 0.3s;
	animation-duration: 0.3s;
	-webkit-animation-name: anim-close;
	animation-name: anim-close;
}

@-webkit-keyframes anim-open {
	0% { -webkit-transform: translate3d(0, calc(50vh + 50%), 0); }
	100% { -webkit-transform: translate3d(0, 0, 0); }
}

@keyframes anim-open {
	0% {  -webkit-transform: translate3d(0, calc(50vh + 50%), 0); transform: translate3d(0, calc(50vh + 50%), 0); }
	100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}

@-webkit-keyframes anim-close {
	0% { -webkit-transform: translate3d(0, 0, 0); }
	100% { -webkit-transform: translate3d(0, calc(50vh + 50%), 0); }
}

@keyframes anim-close {
	0% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
	100% { -webkit-transform: translate3d(0, calc(50vh + 50%), 0); transform: translate3d(0, calc(50vh + 50%), 0); }
}
