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);
}
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: 84%;
	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: 18px;
	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: 84%;
	height: 38px;
	background-color: #348ee9;
	padding: 6px 15px 4px 15px;
	box-sizing: border-box;
	font-size: 18px;
	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;
	}
}