/* ==========================================================================
   Remodal necessary styles
   ========================================================================== */

/* Hide scroll bar */

html.remodal_lock,
body.remodal_lock {
	overflow: hidden;
}

/* Anti FOUC */

.remodal,
[data-remodal-id] {
	visibility: hidden;
}

/* Overlay necessary styles */

.remodal-overlay {
	position: fixed;
	z-index: 10000;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;

	display: none;
	overflow: auto;

	text-align: center;

	-webkit-overflow-scrolling: touch;
}

.remodal-overlay:after {
	display: inline-block;

	height: 100%;
	margin-left: -0.05em;

	content: "";
}

/* Fix iPad, iPhone glitches */

.remodal-overlay {
	-webkit-backface-visibility: hidden;
}

/* Modal dialog necessary styles */

.remodal {
	position: relative;
	display: inline-block;
}

/* Remodal anti-zoom. Font-size should be >= 16px. */

.remodal select,
.remodal textarea,
.remodal input,
.remodal select:focus,
.remodal textarea:focus,
.remodal input:focus {
	font-size: 1.1em;
}

/* ==========================================================================
   Remodal default theme
   ========================================================================== */

/* Background for effects */

.remodal-bg {
	-webkit-transition: -webkit-filter .2s linear;
	-moz-transition: -moz-filter .2s linear;
	-o-transition: -o-filter .2s linear;
	transition: filter .2s linear;
}
/*
body.remodal_active .remodal-bg {
	-webkit-filter: blur(3px);
	-ms-filter: blur(3px);
	filter: blur(3px);
	-moz-filter: blur(3px);
	-o-filter: blur(3px);
}
*/
/* Overlay default theme styles */

.remodal-overlay {
	-webkit-transition: opacity .2s ease;
	-moz-transition: opacity .2s ease;
	-o-transition: opacity .2s ease;
	transition: opacity .2s ease;
	opacity: 0;
	background: rgba(32,32,32,.5);
}

body.remodal_active .remodal-overlay {
	opacity: 1;
}

/* Modal dialog default theme styles */

.remodal {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	width: 100%;
	min-height: 100%;
	padding: 0;
	text-align: left;
	-webkit-transition: -webkit-transform 0.2s ease;
	-moz-transition: -moz-transform 0.2s ease;
	-o-transition: -o-transform 0.2s ease;
	transition: transform 0.2s ease;
	-webkit-transform: scale(.95);
	-moz-transform: scale(.95);
	-ms-transform: scale(.95);
	-o-transform: scale(.95);
	transform: scale(.95);
	color: #202020;
	background: #fff;
	background-clip: padding-box;
}

body.remodal_active .remodal {
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	-o-transform: scale(1);
	transform: scale(1);
}

/* Modal dialog vertical align  */

.remodal,
.remodal-overlay:after {
	vertical-align: middle;
}

/* Close button */

.remodal-close {
	position: absolute;
	top: 9px;
	right: 11px;
	-webkit-transition: background .2s ease;
	-moz-transition: background .2s ease;
	-o-transition: background .2s ease;
	transition: background .2s ease;
	text-decoration: none;
}
.remodal-close:after {
	font-family: FontAwesome;
	font-size: 1.7em;
	line-height: 1em;
	display: block;
	content: "\f00d";
	cursor: pointer;
	-webkit-transition: all .2s ease;
	-moz-transition: all .2s ease;
	-o-transition: all .2s ease;
	transition: all .2s ease;
	text-decoration: none;
	color: #808080;
}
.remodal-close:hover.remodal-close:after,
.remodal-close:active.remodal-close:after {
	color: #999;
}

/* Dialog buttons */
.remodal-foot{
	float: right;
	padding: 0 10px 10px 0;
}
.remodal-foot li{
	float: left;
	padding-left: 10px;
	vertical-align: bottom;
}
.remodal-foot li:first-child{
	padding-left: 0;
}
.remodal-confirm,
.remodal-cancel {
	display: inline-block;
	font-size: 1.35em;
	font-family: Meiryo, FontAwesome;
	margin: 0 0 5px 0;
	padding: .5em .6em;
	cursor: pointer;
	-webkit-transition: all .2s ease;
	-moz-transition: all .2s ease;
	-o-transition: all .2s ease;
	transition: all .2s ease;
	text-align: center;
	text-decoration: none;
	-webkit-border-radius: 3px;
	-khtml-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	border: 0 none;
	background-clip: padding-box;
}

.remodal-confirm {
	color: #fff;
	background-color: #215fab;
}
.remodal-confirm:before {
	font-family: FontAwesome;
	font-weight: normal;
	padding-right: .4em;
	content: '\f00c';
}

.remodal-confirm:hover,
.remodal-confirm:active {
	background-color: #497dbd;
}

.remodal-cancel {
	color: #fff;
	background-color: #999;
}

.remodal-cancel:hover,
.remodal-cancel:active {
	background-color: #c0c0c0;
}
.remodal-confirm.disabled,
.remodal-cancel.disabled{
	color: #f7f7f7;
	text-shadow: -1px -1px #a7a7a7;
	background-color: #c0c0c0;
}

/* Media queries
   ========================================================================== */

@media only screen and (min-width: 960px) {
	.remodal {
		max-width: 600px;
		min-height: 0;
		margin: 20px auto;

		-webkit-border-radius: 6px;
		border-radius: 6px;
	}
}

/* IE8
   ========================================================================== */

html.lt-ie9,
html.lt-ie9 body {
	overflow: auto !important;
	min-height: 100%;
	margin: 0;
}

.lt-ie9 .remodal-overlay {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUAQMAAAC3R49OAAAAA3NCSVQICAjb4U/gAAAABlBMVEX///8AAABVwtN+AAAAAnRSTlMAuyogpzwAAAAJcEhZcwAACxIAAAsSAdLdfvwAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzbovLKMAAAAGHRFWHRDcmVhdGlvbiBUaW1lADA2LzEwLzIwMTSCx1nsAAAAD0lEQVQImWP4//8DAxUxACnDOpkfX95WAAAAAElFTkSuQmCC);
}

.lt-ie9 .remodal {
	width: 500px;
	min-height: auto;
}
