html {
	background: url('resources/full-bg.jpg') no-repeat fixed;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	background-size: cover;

	font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; 
	font-weight: 300;
	font-size: 1.1em;
}

[lang="ja"] {
	font-family: "Meiryo","Hiragino Kaku Gothic Pro","ヒラギノ角ゴ Pro W3","メイリオ","Osaka","MS PGothic","ＭＳ Ｐゴシック",sans-serif;
}

body {
	padding-top: 20px;
	width: 93%;
	margin: auto;
}

.filling {
	background-color: rgba(255,255,255,0.96);
	border-radius: 24px;
	border: 1px double lightgrey;
}
.hidden {
	display: none;
}

.clearing {
	clear: both;
}
em {
	font-size: 80%;
	font-weight: normal;
}
.note {
	font-size: 60%;
	line-height: 0px;
	font-weight: normal;
}

form {
	clear: both;
}
form input {
	max-width: 80%;
}

table {
	border-collapse: collapse;
	margin: auto;
	text-align: center;
}
table, td, th {
	border: 1px solid lightgrey;
}
td {
	max-width: 600px;
}

td, th {
	padding: 1px 6px 0 6px;
}

.sidenote {
	font-style: italic;
	font-size: 0.55em;
}

/* Header */
header {
	height: 72px;
	overflow: hidden;
}

#brand {
	float: right;
	font-size: 0.9em;
	margin-top: 8px;
	margin-right: 8px;
}
#brand:hover {
	text-shadow: 0px 0px 10px #aaaaaa;
}
#avatar-box {
	display: block;
	width: 56px;
	height: 56px;
	float: right;
	border-radius: 50%;
	background-image: url('https://cdn.wanikani.com/default-avatar-300x300-20121121.png');
	background-size: contain;
}
#user-link {
	float: right;
	padding-right: 6px;
	padding-top: 18px;
}

/* Nav */
nav ul {
	display: block;
	list-style-type: none;
	height: 72px;
	padding: 0 12px;
	margin: 0;
}

nav li {
	display: inline-block;
	height: 100%;
	font-size: 1.8em;
}


nav li a {
	padding: 14px 20px 0px 20px;
}

nav a {
	height: 100%;
	margin: 0;
	display: inline-block;
}

a {
	color: #333333;
	text-decoration: none;
}
a:hover {
	color: #00AAFF;
	text-shadow: 0px 0px 20px #aaaaaa;
}

.selected {
	font-weight: 600;
}


/* Menu */
@media (max-width: 639px) {
	nav li {
		float: left;
	}
	nav li a {
		padding-top: 8px;
		padding-bottom: 8px;
	}

	#nav-main {
		display: none;
	}
	#nav-mini {
		padding-top: 10px;
		z-index: 9001;
		height: 210px;
		overflow: hidden;
		position: absolute;
		top: 100px;
		left: 0px;
		width: 100%;
		padding-right: 0px;
		background: #fafafa url('http://ky.is/wanikani/resources/border.png') repeat-x bottom;
	}
	#nav-mini li {
		clear: both;
		height: 50px;
	}
	#menu-icon {
		padding: 14px 0 0 24px;
		float: left;
		width: 96px;
	}
	#menu-icon div {
		display: block;
		background-color: #000000;
		width: 36px;
		height: 6px;
		margin-top: 6px;
	}
	#menu-icon:hover div {
		background-color: #00AAFF;
		box-shadow: 0px 0px 20px #aaaaaa;
	}
}

@media (min-width: 640px) {
	.info-box {
		min-height: 154px;
	}
	.info-generic {
	 	width: 148px;
	}
	#menu-icon {
		display: none;
	}
	#nav-mini {
		display: none;
		height: 0px;
		overflow: hidden;
	}
}


/* Content */
#content {
	margin: auto;
	margin-top: 24px;
	min-height: 64px;
	width: intrinsic;
	max-width: 100%;
	min-width: 280px;
}
a.linkback {
	float: left;
	clear: both;
	font-style: italic;
	margin-top: 18px;
}
nav.inner {
	height: 80px;
}

section nav {
	width: 100%;
	clear: both;
	overflow: hidden;
}

.lefty {
	float: left;
}
.righty {
	float: right;
}

/* Sections */
h3 {
	overflow: hidden;
}
section {
	overflow: hidden;
	margin: 24px;
}
#graph-container {
	overflow-x: scroll;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 32px;
}
#content p {
	font-size: 1.1em;
}
.profile-stats p {
	text-align: center;
	word-wrap: break-word;
	margin: 4px 0px;
}
img {
	float: left;
	margin-bottom: 12px;
}

table a {
	line-height: 0px;
}


/* App */
#s-app {
	max-width: 1024px;
}
#s-app h2, #s-app ul {
	float: left;
	clear: both;
	margin-bottom: 0px;
}
#s-app span {
	margin-left: -20px;
	font-weight: bold;
}

#app-web a {
	width: 100%;
	text-align: center;
}
#app-web img {
	max-width: 100%;
}

.screenshot-spread {
	width: 78%;
	max-width: 960px;
}
.icon-container {
	width: 20%;
}
.icon-container img {
	border-radius: 21%;
	width: 100%;
}
#appstore-container {
	width: 20%;
	max-width: 200px;
}
#appstore-container img {
	width: 100%;
}

/* Profile */
#st-user {
	margin-bottom: 4px;
}
#st-date {
	font-size: 0.7em;
	margin-bottom: 16px;
	clear: both;
}
#s-profile .profile-stats p {
	color: lightgrey;
}

#info-container {
	margin: auto; 
	width: 100%;
	word-wrap: none;
	text-align: center;
}
.info-box {
 	display: inline-block;
	width: 304px;
	height: 100%;
	white-space: nowrap;
}

.info-generic {
 	display: inline-block;
	float: left;
	line-height: 30px;
	word-wrap: none;
}
.info-left {
	text-align: right;
	margin-right: 8px;
}
.info-right {
	text-align: left;
	font-weight: bold;
	font-size: 90%;
}

/* Footer */
footer {
	float: right;
	padding-right: 20px;
	padding-bottom: 8px;
	line-height: 10px;
	color: #fff;
	text-shadow: 1px 1px 4px black;
	font-size: 1.1em;
	text-align: right;
}


/* Colors */
.apprentice {
	color: #ec009c;
}
.guru {
	color: #9e2bb9;
}
.master {
	color: #2d4de0;
}
.enlighten, .enlightened {
	color: #0097e9;
}
.burned {
	color: #4f4f4f;
}
.highlight {
	color: black;
}
