/* ---------------------- */

* {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	/*font: inherit;*/
	vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
	display: block;
}

body {
	line-height: 1;
}

ol, ul {
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* ---------------------- */

body {
	background-color: white;
	color: #1d1d1b;
	font-weight: normal;
	font-family: 'Helvetica Neue', sans-serif;
	font-size: 100%;
}

p, li {
	margin-bottom: 0.5em;
}

li {
	margin-left: 1.2em;
}

h1, h2, h3 {
	font-weight: bold;
	font-size: 130%;
	color: rgba(0,0,0, 0.7);
}

strong, b {
	font-weight: bold;
}

/* ---------------------- */

/* Both Input + Button */
input[type=text], input[type=password], input[type=email], input[type=url], input[type=date], input[type=month], input[type=time], input[type=datetime], input[type=datetime-local], input[type=week], input[type=number], input[type=search], input[type=tel], input[type=color], select, textarea,
button, input[type=button], input[type=reset], input[type=submit] {
	border-radius: 4px;
	display: inline-block;
	font-family: inherit;
	line-height: normal;
	vertical-align: baseline;
	padding: .5em .6em;
	margin: .3em .3em;
	width: 100%;
	max-width: 290px;
}

input[type=text], input[type=password], input[type=email], input[type=url], input[type=date], input[type=month], input[type=time], input[type=datetime], input[type=datetime-local], input[type=week], input[type=number], input[type=search], input[type=tel], input[type=color], select, textarea {
	border-radius: 4px;
	border: 1px solid #ccc;
	box-shadow: inset 0 1px 3px #ccc;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	font-size: 1em;
	margin: 0;
}

button, input[type=button], input[type=reset], input[type=submit] {
	-webkit-appearance: button;
	-webkit-user-drag: none;
	background-color: #40b300;
	border-radius: 4px;
	border: none;
	color: #fff;
	cursor: pointer;
	font-size: 100%;
	padding: .5em 1.5em;
	text-align: center;
	text-decoration: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-webkit-user-select: none;
	user-select: none;
	white-space: nowrap;
}

/* ---------------------- */

/* ---- button-group ---- */

.button-group {
  display: inline-block;
}

.button-group:after {
  content: '';
  display: block;
  clear: both;
}

.button-group .button {
  float: left;
  border-radius: 0;
  margin-right: 1px;
}

.button-group .button:first-child {  }
.button-group .button:last-child {  }

/* ---- button ---- */

.button {
  display: inline-block;
  width:  80px;
  height: 80px;
  padding: 10px;
  background: #EEE;
  border: none;
  color: #222;
  text-shadow: 0 1px white;
  cursor: pointer;
}

.button:hover {
  background-color: #8CF;
  text-shadow: 0 1px hsla(0, 0%, 100%, 0.5);
  color: #222;
}

.button:active,
.button.is-checked {
  background-color: #28F;
}

.button.is-checked {
  color: white;
  text-shadow: 0 -1px hsla(0, 0%, 0%, 0.8);
}

.button:active {
  box-shadow: inset 0 1px 10px hsla(0, 0%, 0%, 0.8);
}

/* hide radio inputs */
.button input[type="radio"] { display: none; }

.button img {
	max-width:  100%;
	max-height: 100%;
}

/* ---------------------- */

.embossed-borders {
	border-top:    5px solid rgba(255,255,255, 0.2);
	border-left:   5px solid rgba(255,255,255, 0.2);
	border-right:  5px solid rgba(0,0,0, 0.2);
	border-bottom: 5px solid rgba(0,0,0, 0.2);
}

#navigation {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	height: 100px;
	background-color: #9A887A;
}

#content {
	position: absolute;
	left: 0;
	top: 110px;
	right: 0;
	bottom: 0;
	background-color: #C0AA93;
}

#isotope .item {
	width: 150px;
	height: 100px;
	background: #DDD center top no-repeat;
	background-size: 100% auto;
	border-radius: 8px;
	padding: 10px;
}

#isotope .item .name {
	font-size: 120%;
	color: white;
	text-shadow: 1px 2px 1px rgba(0,0,0, 0.5);
}

/* ---------------------- */

#detail-info {
	visibility: hidden;
	position: absolute;
	z-index: -1;
	left: 40%;
	top: 40%;
	width: 150px;
	height: 100px;
	background: #777 center middle no-repeat;
	background-size: 100% auto;
	transition-property: opacity, left, top, width, height;
	transition-duration: 0.6s;
}

#detail-info.zoomed-in {
	visibility: visible;
	z-index: 10;
	left: 0;
	top: 0px;
	width: 100%;
	height: 100%;
}

#button_close {
	position: absolute;
	right: 10px;
	top: 10px;
}

#button_close img {
	width: 40px;
	height: 40px;
}

#detail-info p, #detail-info h2 {
	color: white;
	text-shadow: 1px 2px 1px rgba(0,0,0, 0.5);
}

#detail-info #name {
	position: absolute;
	left: 20px;
	top:  20px;
	font-size: 200%;
}

#detail-info #translation {
	position: absolute;
	left: 20px;
	top:  70px;
	font-size: 130%;
	font-style: italic;
}

#detail-info #notes {
	position: absolute;
	left:   20px;
	bottom: 20px;
	width: 80%;
	font-size: 110%;
}


/* Apply mobile-only views when screen's width < max-width */
@media only screen and (max-width: 640px) {

	#isotope .item {
		width: 120px;
		height: 80px;
	}

	.button {
	  width:  40px;
	  height: 40px;
	}

	#detail-info.zoomed-in {
		top: -110px;
		height: auto;
		bottom: 0;
	}

}