html {
	height: 100%;
}
@font-face {
	font-family: 'HiraginoSans-W3';
	src: local(Arial);
	unicode-range: U+21-36F;
}
body {
	height: 100%;
	font-family: HiraginoSans-W3, HiraKakuPro-W3, sans-serif;
	color: rgba(0,0,0,0.7);
	background-color: #f0f0f0;
}
a, a:visited {
	color: #257eab;
}
.hide-by-default {
	display: none;
}
.inline-by-default {
	display: inline;
}

/** Login Dialog **/
.ui-layer {
	position: fixed;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255,255,255,0.7);
	transition: opacity 1s;
}
.ui-layer.hidden {
	opacity: 0;
	pointer-events: none;
}
#layer-login {
	opacity: 0;
	transition: opacity 1s;
}
#layer-login.shown {
	opacity: 1;
}
.modal-dialog {
	position: absolute;
	width: 460px;
	max-width: 90%;
	height: 325px;
	background-color: white;
	border-radius: 8px;
	margin-left: auto;
	margin-right: auto;
	box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.12);
	left: 50%;
	top: 50%;
	transform: translateX(-50%) translateY(-50%);
	padding: 53px 35px 53px 35px;
	box-sizing: border-box;
	opacity: 1;
	transition: opacity 1s;
}
.modal-dialog.hidden {
	opacity: 0;
}
modal-dialog.shown {
	opacity: 1;
}
.modal-dialog h2 {
	font-size: 27px;
	font-weight: bold;
	width: 340px;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	line-height: 120%;
}
.modal-dialog.short {
	height: 246px;
}
.modal-dialog.short h2 {
	width: 100%;
}
.modal-dialog .content {
	width: 420px;
	max-width: 80%;
	position: absolute;
	top: 130px;
	text-align: center;
	left: 50%;
	transform: translateX(-50%);
}
.modal-dialog .content input {
	width: 340px;
	max-width: 75%;
	height: 38px;
	margin-top: 15px;
	margin-bottom: 15px;
	border-radius: 5px;
	border: 1px solid rgba(0,0,0,0.25);
	background-color: #fafafa;
	padding: 10px;
	box-sizing: border-box;
	font-size: 16px;
	font-family: HiraginoSans-W3, HiraKakuPro-W3, sans-serif;
}
.modal-dialog .content input[type="submit"]:active {
	background-color: #2d76c0;
}
.modal-dialog .content input[type="submit"] {
	width: 340px;
	max-width: 75%;
	height: 38px;
	background-color: #348ee9;
	padding: 6px 15px 4px 15px;
	box-sizing: border-box;
	font-size: 16px;
	color: white;
	letter-spacing: 2px;
	box-shadow: 1px 1px 1px rgba(0,0,0,0.06);
	transform: scaleY(0.93);
	cursor: pointer;			
}
.modal-dialog .alert {
	color: red;
	position: absolute;
	transform: translate(-50%);
	left: 50%;
	top: 107px;
	color: red;
	font-size: 14px;
	width: 70%;
	text-align: center;
	line-height: 140%;
}

/** General Layout **/
.centered {
	text-align: center;
}
.bold {
	font-weight: bold;
}

@media screen and (max-width: 414px) {
	.modal-dialog {
		padding: 43px 35px 43px 35px;
		height: 305px;
	}
}
@media screen and (max-width: 320px) {
	.modal-dialog {
		padding: 23px 35px 23px 35px;
		height: 275px;
	}
}

/** Interaction **/
.form-check-input:checked[type=checkbox] {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8.5l2.5 2.5l5.5 -5.5'/%3e%3c/svg%3e");
}
.form-check-input:checked {
	background-color: #3573af;
	border-color: rgba(98,105,118,.24);
}
.form-check-input[type=checkbox] {
	margin-left: -15px;
	margin-right: 3px;
	background-size: 1rem;
	background-repeat: no-repeat;
	vertical-align: top;
	-webkit-appearance: none;
	border-radius: 4px;
	width: 1rem;
	height: 1rem;
	border: 1px solid rgba(98,105,118,.24);
}
.btn-primary {
	border-radius: 3px;
	border: 1px solid rgba(0,0,0,0.25);
	background-color: #3573af;
	color: white;
	padding: 5px 15px 4px 15px;
	font-size: 18px;
	letter-spacing: 2px;
	box-shadow: 1px 1px 1px rgba(0,0,0,0.06);
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
}
.btn-primary {
	text-align: center;
}

/** Login Screen **/
.login-main-title {
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -240px;
	transform: translateX(-50%) translateY(-50%);
	width: 100%;
	font-size: 70px;
	font-family: Arial;
	font-weight: bold;
	text-align: center;
	color: white;
	line-height: 125%;
}
@media screen and (max-width: 1000px) {
	.login-main-title {font-size: 50px;}
}
@media screen and (max-width: 414px) {
	.login-main-title {font-size: 40px;background-position-y: }
}
@media screen and (max-width: 375px) {
	.login-main-title {font-size: 36px;margin-top: -215px;}
}
@media screen and (max-width: 320px) {
	.login-main-title {font-size: 30px;margin-top: -180px;}
}
