/* ---------------------------------------------------------------- */
/*	UI */
/* ---------------------------------------------------------------- */

#ui {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9;
	display: none;
	font-family: sans-serif;
	pointer-events: none;
}
#ui>* {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	pointer-events: auto;
}
#ui>form::before {
	content: '';
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 0;
	left: 0;
	background: rgba(0,0,0,0.8);
	cursor: pointer;
}


/* -------------------- */
/*		Fenêtre */

@keyframes open_box {
	0% {
		opacity: 0;
		transform: perspective(400px) translate3D(0,-25px,-50px) rotateX(60deg);
	} 100% {
		opacity: 1;
		transform: perspective(400px);
	}
}
#ui>form>div {
	box-sizing: border-box;
	min-width: 25%;
	max-width: 640px;
	padding: 24px 32px 8px;
	border-radius: 3px;
	overflow: hidden;
	position: relative;
	background: #fff;
	box-shadow: 0 0 16px #000;
	text-align: center;
	animation-name: open_box;
	animation-duration: 0.3s;
	animation-timing-function: cubic-bezier(.1,0,.3,1.5);
}
#ui .close {
	width: 48px;
	padding: 2px;
	border-radius: 0 0 0 2px;
	position: absolute;
	top: 0;
	right: 0;
	background: linear-gradient(#f04, #804) 0 0 / 100% 100%;
	font-size: 16px;
	font-weight: bold;
	color: #fff;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
#ui .close:hover {
	background-size: 100% 200%;
	text-shadow: 0 0 4px #fff;
}
#ui .close::before {
	content: '×';
}
#ui p {
	padding: 8px 0;
	position: relative;
	display: flex;
	align-items: center;
	text-align: justify;
}
#ui .error,
#ui .add,
#ui .rem {
	min-height: 48px;
	padding-left: 80px;
}
#ui .error::before,
#ui .rem::before,
#ui .add::before {
	box-sizing: border-box;
	width: 64px;
	height: 64px;
	margin: -32px;
	border: solid 8px;
	border-radius: 50%;
	position: absolute;
	left: 32px;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 50px;
	text-align: center;
}
#ui .error::before {
	content: '!';
	color: #a04;
}
#ui .add::before {
	content: '+';
	color: #8c0;
}
#ui .rem::before {
	content: '×';
	color: #8c0;
}
#ui .input_text {
	box-sizing: border-box;
	width: 100%;
	margin: 4px 0;
	padding: 4px 8px;
	border: solid 1px rgba(0,0,0,0.2);
	border-radius: 3px;
	box-shadow: inset 0 1px 8px rgba(0,0,0,0.1);
	font-size: 16px;
}
#ui .input_submit {
	min-width: 128px;
	margin: 8px;
	padding: 8px 32px;
	border: solid 1px rgba(0,0,0,0.3);
	border-radius: 3px;
	display: inline-block;
	background: linear-gradient(#fff, #ddd);
	box-shadow: 0 0 8px rgba(0,0,0,0.1);
	cursor: pointer;
	font-size: 16px;
	color: #333;
	text-shadow: 0 1px 1px #fff;
	transition: 0.2s;
}
#ui .input_submit:hover {
	background: linear-gradient(#ddd, #fff);
}
#ui select {
	font-size: 16px;
	margin: 8px 4px;
	padding: 8px;
	border: solid 1px rgba(0,0,0,0.3);
	border-radius: 3px;
	color: #444;
}