/* latin-ext */
@font-face {
  font-family: 'Slabo 13px';
  font-style: normal;
  font-weight: 400;
  src: local('Slabo 13px'), local('Slabo13px-Regular'), url(Slabo_13px/Slabo13px-Regular-ext.woff2) format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Slabo 13px';
  font-style: normal;
  font-weight: 400;
  src: local('Slabo 13px'), local('Slabo13px-Regular'), url(Slabo_13px/Slabo13px-Regular.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}




html, body {
	height: 100%;
}

body {
	font-size: 16px;
	font-family: 'Helvetica', 'Arial', sans-serif;
	padding-top: 8em;
	transition: padding 0.5s;
}

h1, h2, h3, h4, h5, h6 {
	font-size: 1.5em;
	font-family: 'Slabo 13px', 'Georgia', sans-serif;
	line-height: 1.2em;
}

h1 {
	font-size: 2em;
}

a {
	color: inherit;
	text-decoration: none;
}

i {
	font-style: italic;
}




/* HEADER */

#site_header {
	position: fixed;
	z-index: 2;
	left: 0;
	top: 0;
	width: 100%;
	background-color: rgba(255,255,255,0.9);
	border-bottom: solid 1px #ccc;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
}



/* MENU */

#menu {
	position: absolute;
	left: 0;
	top: 0;
}
#menu_toggle {
	font-size: 1.25em;
	position: absolute;
	left: 0.5em;
	top: 0.5em;
	width: 2em;
	height: 2em;
	cursor: pointer;
}
#menu_toggle div {
	position: absolute;
	left: 20%;
	top: 40%;
	border-bottom: solid 1.5px black;
	width: 60%;
	transition: transform 0.5s, top 0.25s, left 0.25s, width 0.25s;
}
#menu_toggle #mt_b {
	top: 60%;
}

#menu_toggle.vis div {
	transform: rotate(45deg);
	top: 50% !important;
	left: 20%;
	width: 60%;
}
#menu_toggle.vis #mt_b {
	transform: rotate(-45deg);
	left: 20%;
}


#menu_list {
	font-size: 1.25em;
	margin-top: -1px;
	padding: 0 0.5em 0 0.25em;
	border-right: solid 1px #ddd;
	border-bottom: solid 1px #ddd;
	background-color: rgba(255, 255, 255, 0.9);
	height: 0;
	opacity: 0;
	overflow: hidden;
	transition: height 0.5s, padding 0.25s, opacity 0.25s;
}
#menu.vis #menu_list {
	padding: 3em 0.5em 1em 0.25em;
	height: 10em;
	opacity: 1;
}
#menu_list li {
	padding: 0.65em 0.5em 0;
	cursor: pointer;
}

.tag_key {
	padding-left: 1.25em !important;
}





/* ACTIVE FILTERS */

#active_filters {
	padding: 0 0 0 3em;
}
#match_statement {
	text-align: center;
	font-size: 1.4em;
	margin: 0.5em 0;
	line-height: 1.75em;
	font-family: 'Slabo 13px', 'Georgia', sans-serif;
}
.tag {
	position: relative;
	cursor: pointer;
}
#site_header .tag, #meta_options .tag {
	color: red;
	background-color: #eee;
	padding: 0.1em 0.2em 0.2em;
	border-radius: 0.15em;
	vertical-align: middle;
}
#site_header .tag:hover {
	text-decoration: line-through;
}
.clear {
	display: inline-block;
	vertical-align: middle;
	width: 1.2em;
	height: 1.2em;
	margin: 0 0.5em 0.1em -0.125em;
	background: no-repeat center center url(images/icon_cross.svg);
	background-size: 0.85em;
	cursor: pointer;
}
.match_text {
	display: inline-block;
}




/* TAG CLOUD */

#meta_options {
	position: relative;
	text-align: center;
	margin-bottom: 2em;
}
.ft_group {
	display: none;
}
.ft_group.vis {
	display: block;
}
#meta_options ul {
	
}
#meta_options .tag {
	display: inline-block;
	margin: 0 0.2em 0.2em 0;
	color: white;
	background-color: #999;
}

.ft_key {
	display: inline-block;
	font-size: 1.1em;
	min-width: 6em;
	background-color: #ccc;
	color: white;
	margin: 0 0.25em 0.5em;
	padding: 0.25em;
	border-radius: 0.2em;
	cursor: pointer;
}
.ft_key.vis {
	background-color: black;
}
#meta_options .clear {
	font-size: 1.5em;
	position: absolute;
	right: 0;
	top: -1.25em;
	padding-left: 1em;
	background-position: 1em center;
}




/* PALETTE */

.palette {
	display: flex;
	justify-content: center;
	align-items: flex-end;
}
.swatch {
	width: 2em;
	height: 1em;
	flex-grow: 1;
	border-top: solid 10px black;
	transition: width 0.5s;
	cursor: pointer;
}
.palette:hover .swatch {
	width: 2em !important;
}
.swatch.active {
	padding-bottom: 4px;
}




/* IMAGE HISTO */

#histo {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 2em;
	width: 100%;
}
#histo > img {
	max-width: 100px;
	margin: 0 0.1em 0.1em 0;
	cursor: pointer;
}




#calendar_year {
	
}
.calendar_week {
	display: flex;
	justify-content: center;
	border: solid 4px #eee;
	align-items: center;
}
.calendar_day {
	border-radius: 50%;
	background-color: #ddd;
	border: solid 0px #eee;
	
	max-height: 
}




main {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.item {
	position: relative;
	max-width: 17.5em;
	background-color: #fafafa;
	font-size: 0.875em;
	margin: 0.5em;
	margin-bottom: 1em;
}
.pic {
	width: 100%;
	border-bottom: solid 1em white;
	cursor: pointer;
}
.id {
	position: absolute;
	top: 0;
	left: 0;
	padding: 0.25em;
	background-color: rgba(255,255,255,0.8);
	font-size: 0.65em;
}
.meta {
	padding: 0.5em;
	display: flex;
	align-items: flex-start;
}
.calendar {
	width: 31%;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	
	margin-right: 0.5em;
	padding: 1%;
	border-radius: 0.5em;
	box-sizing: border-box;
	
	background-color: #ddd;
	font-weight: 700;
}
.panel {
	background-color: white;
	display: inline-block;
	border-radius: 0.3em;
	margin: 2%;
	padding: 0 0.05em;
	box-sizing: border-box;
	width: 45%;
	text-align: center;
	cursor: pointer;
}
.panel.triple {
	width: 28%;
	font-size: 0.55em;
}
.date {
	font-size: 3.5em;
}
.day, .month {
	display: inline-block;
	margin-top: 0.5em;
	margin-bottom: 0.25em;
	font-size: 0.8em;
	padding: 0.1em 0.05em;
}
.day {
	
}
.month {
	
}


.info {
	max-width: 68%;
	align-self: stretch;
}
.info_divider {
	background-color: black;
	padding-bottom: 0.35em;
	margin: 0.2em 0;
}
.active {
	color: red;
}
.info div {
	/* These are technically the same, but use both */
  overflow-wrap: break-word;
  word-wrap: break-word;

  -ms-word-break: break-all;
  /* This is the dangerous one in WebKit, as it breaks things wherever */
  word-break: break-all;
  /* Instead use this non-standard one: */
  word-break: break-word;
}




/* IMAGE OVERLAY */

.overlay {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	z-index: 3;
	background-color: rgba(255,255,255,0.97);
}
#overlay.vis {
	display: block;
}
#overlay .frame {
	position: absolute;
	top: 15%;
	left: 15%;
	width: 70%;
	height: 70%;
	background: transparent no-repeat center center;
	background-size: contain;
}
.hero_meta {
	position: absolute;
	bottom: 2em;
	left: 0;
	width: 100%;
	text-align: center;
	line-height: 1.5em;
	color: #aaa;
}
.hero_meta span {
	cursor: pointer;
}
.hero_meta .description {
	font-size: 1.5em;
	font-family: 'Slabo 13px', 'Georgia', sans-serif;
	text-transform: capitalize;
}
.hero_meta .tag {
	margin-right: 0.5em;
}

.overlay .clear {
	font-size: 2em;
	position: absolute;
	right: 0;
	top: 0.5em;
}
.hero_btn {
	position: absolute;
	left: 0;
	top: calc( 50vh - 30% );
	width: 50%;
	height: 60%;
	background: transparent no-repeat 1em center url(images/chevron_left.svg);
	background-size: 1.5em;
	cursor: pointer;
}
.next_img {
	left: auto;
	right: 0;
	background-image: url(images/chevron_right.svg);
	background-position: calc(100% - 1em) center;
}






#about.vis {
	display: block;
}
#about {
	font-size: 1.25em;
	line-height: 1.25em;
}
#about .content {
	max-width: 30em;
	margin: 30vh auto 0;
}
#about p {
	margin: 0.5em 0;
}
#about li {
	list-style: disc;
	list-style-position: outside;
	margin-left: 2em;
}



#aspect {
	position: fixed;
	left: 0;
	bottom: 0;
	z-index: 5;
	background-color: black;
	color: white;
	
	display: none;
}


@media (hover:hover) {
	#menu_toggle:hover div {
		transform: rotate(45deg);
		width: 45%;
		top: 50% !important;
	}
	#menu_toggle:hover #mt_b {
		transform: rotate(-45deg);
		left: 50%;
	}
	
	#menu_toggle.vis:hover div {
		transform: rotate(45deg);
		top: 50% !important;
		left: 20%;
		width: 60%;
	}
	#menu_toggle.vis:hover #mt_b {
		transform: rotate(-45deg);
		left: 20%;
	}
}


@media all and (max-width: 800px) {
	body {
		font-size: 14px;
	}
	
	.hero_btn {
		left: 0.5em;
	}
	.next_img {
		left: auto;
		right: 0.5em;
	}
	
	#about .content {
		max-width: 80%;
		margin: 2em auto 0;
	}
}

@media all and (max-width: 700px) {
	body {
		font-size: 12px;
	}
	#about {
		font-size: 1.05em;
	}
	h1 {
		font-size: 1.35em;
	}
}

@media all and (max-width: 400px) {
	body {
		font-size: 11px;
	}
	#about {
		font-size: 1.15em;
	}
	#about .content {
		max-width: 70%;
	}
}



@media print {
	body {
		width: 210mm;
		font-size: 4pt;
	}
	#site_header {
		display: none;
	}
}