.dialog--open .dialog__overlay {
	-webkit-transition-duration: 0.8s;
	transition-duration: 0.8s;
}

.dialog--close .dialog__overlay {
	-webkit-transition-duration: 0.5s;
	transition-duration: 0.5s;
}

.dialog__content {
	padding: 0;
	background: transparent;
}

.dialog.dialog--open .dialog__content {
	opacity: 1;
}

.morph-shape {
	position: absolute;
	width: calc(100% + 4px);
	height: calc(100% + 4px);
	top: -3px;
	left: -3px;
	z-index: -1;
}

.morph-shape svg rect {
	stroke: #fff;
	stroke-width: 2px;
	/* stroke-dasharray: 1680; */
}

.dialog--open .morph-shape svg rect {
	-webkit-animation: anim-dash 0.6s forwards;
	animation: anim-dash 0.6s forwards;
}

.dialog-inner {
	opacity: 0;
	background: rgba(0,0,0,0.5);
}

.dialog--open .dialog-inner {
	padding: 4em;
	opacity: 1;
	-webkit-transition: opacity 0.85s 0.35s;
	transition: opacity 0.85s 0.35s;
}

.dialog.dialog--open h2 {
	-webkit-animation: anim-elem-1 0.7s ease-out both;
	animation: anim-elem-1 0.7s ease-out both;
}

.dialog.dialog--open button {
	-webkit-animation: anim-elem-2 0.7s ease-out both;
	animation: anim-elem-2 0.7s ease-out both;
}

@keyframes anim-dash {
	0% {
		stroke-dashoffset: 1680;
	}
	100% {
		stroke-dashoffset: 0;
	}
}

@-webkit-keyframes anim-dash {
	0% {
		stroke-dashoffset: 1680;
	}
	100% {
		stroke-dashoffset: 0;
	}
}

/* Inner elements animations */

@-webkit-keyframes anim-elem-1 {
	0% { opacity: 0; -webkit-transform: translate3d(-150px, 0, 0); }
	100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); }
}

@keyframes anim-elem-1 {
	0% { opacity: 0; -webkit-transform: translate3d(-150px, 0, 0); transform: translate3d(-150px, 0, 0); }
	100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}

@-webkit-keyframes anim-elem-2 {
	0% { opacity: 0; -webkit-transform: translate3d(150px, 0, 0); }
	100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); }
}

@keyframes anim-elem-2 {
	0% { opacity: 0; -webkit-transform: translate3d(150px, 0, 0); transform: translate3d(150px, 0, 0); }
	100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}

.search__effect {
	color: #fff;
    font-size: 16px;
    width: 38px;
    height: 38px;
    /* -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=0, Direction=0, Color=#fff)";
    -moz-box-shadow: 0 0 0 3px #fff inset; */
    /* -webkit-box-shadow: 0 0 0 3px #fff inset; */
    /* box-shadow: 0 0 0 3px #fff inset; */
    /* filter: progid:DXImageTransform.Microsoft.Shadow(Strength=0, Direction=135, Color=#E8FAE5); */
    float: right;
    position: relative;
    overflow: hidden;
    display: flex;
}

.search__effect:before {
	content:'\f002';
	font-family: 'FontAwesome';
	position: absolute;
	margin: auto;
	left: 0;
	right: 0;
	text-align: center;
	transition: all 0.5s ease;
}

.action {
	position: absolute;
	top: 0.3em;
	right: 0.5em;
	border: none;
	background: none;
	cursor: pointer;
	color: #fff;
}

.action:before {
	content: '\f00d';
	font-family: 'FontAwesome';
	font-size: 1.5em;
}

#keyword {
    border: none;
    background: none;
    min-width: 300px;
    height: 50px;
    text-indent: 1em;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    border-bottom: 1px solid #fff;
    font-family: 'myfont1';
}

#keyword::-webkit-input-placeholder { /* Chrome/Opera/Safari */
	color: #fff;
}
#keyword::-moz-placeholder { /* Firefox 19+ */
	color: #fff;
}
#keyword:-ms-input-placeholder { /* IE 10+ */
	color: #fff;
}
#keyword:-moz-placeholder { /* Firefox 18- */
	color: #fff;
}

.a__search {
	background: none;
    color: #fff;
    font-size: 16px;
    line-height: 60px;
    display: inline-table;
}

.a__search:before {
	content: '\f002';
	font-family: 'FontAwesome';
}
