#modals {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0,0,0,0.62);
	z-index: 99999999;
	opacity: 0;
	-webkit-transition: opacity 200ms ease-in;
	-moz-transition: opacity 200ms ease-in;
	transition: opacity 200ms ease-in;
	pointer-events: none;
	margin: 0;
	padding: 0;
	width: 100%;
}

#modals .modal_body,
#modals .modal_footer,
#modals input,
#modals input[type=submit],
#modals label,
#modals .modal_header,
#modals button,
#modals textarea{
	box-sizing: border-box;
}

#modals .modal_dialog {
	position: relative;
	padding: 0;
	top: 0;
	width: 36%;
	margin: 3% 32%;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	overflow-x: hidden;
}

#modals .modal_dialog::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

#modals .modal_dialog::-webkit-scrollbar-button {
	background-color: #bdbdbd;
}

#modals .modal_dialog::-webkit-scrollbar-corner {
	background-color: #bdbdbd;
}

#modals .modal_dialog::-webkit-scrollbar-thumb {
	height: 30px;
	background-color: #bdbdbd;
}

#modals .modal_dialog::-webkit-scrollbar-track {
	background-color: #bdbdbd;
}

#modals .modal_dialog::-webkit-scrollbar-track-piece {
	background-color: #f1f1f1;
}

#modals .modal_content {
	position: relative;
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-webkit-flex-direction: column;
	-ms-flex-direction: column;
	flex-direction: column;
	width: 100%;
	margin: 0;
	padding: 2%;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	overflow-x: hidden;
	background: #ffffff;
	border-radius: 10px;
	border: 1px solid rgba(255, 216, 0, 0.4);
	-webkit-background-clip: padding-box;
	background-clip: padding-box;
	outline: 0;
}

#modals .modal_content > *{
	max-width: 100%;
}

#modals .modal_out{
	width: 30px;
	height: 30px;
	position: absolute;
	right: 10px;
	top: 8px;
	float: left;
	cursor: pointer;
	border: none;
}

#modals .modal_out::before,
#modals .modal_out::after{
	content: '';
	position: absolute;
	top: 14px;
	left: 4px;
	width: 22px;
	height: 2px;
	background: #8f96a3;
	border-radius: 999px;
}

#modals .modal_out::before{
	transform: rotate(45deg);
}

#modals .modal_out::after{
	transform: rotate(-45deg);
}

#modals .modal_out i{
	display: none;
}

#modals .modal_out:hover::before,
#modals .modal_out:hover::after{
	background: #ffd800;
}

#modals .modal_content img{
	width: 100%;
	float: left;
	max-height: 800px;
}

#modals .modal_content .title{
	width: 90%;
	display: block;
	padding: 1%;
	margin: 1% 5%;
	font-size: 18px;
	font-weight: bold;
	color: #1b1f24;
}

#modals .modal_content .description{
	width: 90%;
	margin: 1% 5%;
	display: block;
	padding: 2%;
	font-size: 14px;
	background: #f1f3f6;
	border-radius: 5px;
	color: #1f1f1f;
}

#modals form{
	width: 100%;
	float: left;
	padding: 5% 5px;
}

#modals .red{
	display: block;
	width: 90%;
	margin: 1% 5%;
	font-weight: bold;
	color: #c4382b;
}

#modals .inlineLink{
	width: 90%;
	margin: 0 5% 12px 5%;
	float: left;
	color: #1f1f1f;
	font-weight: bold;
	text-decoration: underline;
}

#modals label{
	width: 90%;
	margin: 1% 5%;
	padding: 0;
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #3b4048;
}

#modals input,
#modals textarea{
	width: 90%;
	margin: 1% 5%;
	padding: 14px 16px;
	background: #f1f3f6;
	border: 1px solid #f1f3f6;
	border-radius: 5px;
	outline: none;
	font: inherit;
	color: #1b1f24;
}

#modals textarea{
	min-height: 160px;
	resize: vertical;
}

#modals input::placeholder,
#modals textarea::placeholder{
	color: #8f96a3;
}

#modals button{
	width: 50%;
	margin: 1% 25%;
	padding: 14px 18px;
	background: #1b1f24;
	border: 1px solid #1b1f24;
	color: #ffffff;
	cursor: pointer;
	border-radius: 5px;
	font-weight: bold;
}

#modals button:disabled{
	background: #d8dce2;
	border: 1px solid #d8dce2;
	cursor: default;
	color: #555b65;
}

#modals button:hover{
	color: #111111;
	background: #ffd800;
	border: 1px solid #ffd800;
}

@media screen and (max-width:800px){
	#modals .modal_dialog {
		width: 92%;
		margin: 20px 4%;
		max-height: calc(100vh - 40px);
	}
}
