/* CSS Document */
.dialog,
.dialog__overlay {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}

.dialog {
	position: fixed;
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: center;
	justify-content: center;
	pointer-events: none;
	z-index: 9999;
}

.dialog__overlay {
	position: absolute;
	z-index: 99999;
	background: rgba(55, 58, 71, 0.6);
	opacity: 0;
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
	-webkit-backface-visibility: hidden;
}

.dialog--open .dialog__overlay {
	opacity: 1;
	pointer-events: auto;
}

.dialog__content {
	width: 434px;
	height:506px;
	/*background: #fff;*/
	padding: 1em;
	position: relative;
	z-index: 999999;
	opacity: 0;
	border-radius:4px;
}

.dialog--open .dialog__content {
	pointer-events: auto;
}

.dialog.dialog--open .dialog__content,
.dialog.dialog--close .dialog__content {
	-webkit-animation-duration: 0.2s;
	animation-duration: 0.2s;
	-webkit-animation-timing-function: linear;
	animation-timing-function: linear;
	-webkit-animation-fill-mode: forwards;
	animation-fill-mode: forwards;
}

.dialog.dialog--open .dialog__content {
	-webkit-animation-name: anim-open;
	animation-name: anim-open;
}

.dialog.dialog--close .dialog__content {
	-webkit-animation-name: anim-close;
	animation-name: anim-close;
	-webkit-animation-duration: 0.2s;
	animation-duration: 0.2s;
	-webkit-animation-timing-function: ease-out;
	animation-timing-function: ease-out;
}

/* Content */

@-webkit-keyframes anim-open {
0% {
    transform: translateY(-30%);
    transform-origin: 0 0;
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    transform-origin: 0 0;
    opacity: 1;
  }
}

@keyframes anim-open {
0% {
    transform: translateY(-30%);
    transform-origin: 0 0;
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    transform-origin: 0 0;
    opacity: 1;
  }
  
}

@-webkit-keyframes anim-close {
	0% { 
		transform: translateY(0%);
	    	transform-origin: 0 0;
	    	opacity: 1; 
    	}
	100% { 
		transform: translateY(-30%);
	    	transform-origin: 0 0;
	    	opacity: 0; 
	    	-webkit-transform: scale3d(0.8, 0.8, 1);     	}
}

@keyframes anim-close {
	0% { 
	transform: translateY(0%);
    	transform-origin: 0 0;
    	opacity: 1; }
	100% { 
	transform: translateY(-30%);
    	transform-origin: 0 0;
    	opacity: 0; 

    	}
}

