*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {

	font-family: Georgia, "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho", serif;
	color: #fff;
	font-size: 14px;
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: #ffffcc;
	text-decoration: none;
	transition: color 0.5s;
}

a:hover,
a.selected {
	color: #ffcc00;
}

h1,
h2,
h4,
h5,
h6 {
	text-align: center;
	color: #ccc;
	text-shadow: #000 1px 1px 2px;
	margin-bottom: 5px;
}

h1 {
	font-size: 18px;
	clear: both;
}

h2 {
	font-size: 14px;
}

.timeline-header {
	text-align: center;
	padding: 24px 16px 0;
}

.timeline-header img {
	width: min(500px, 90vw);
	height: auto;
}

.timeline-header p {
	margin-top: 16px;
	text-shadow: #000 1px 1px 2px;
}

/* =========================
   Timeline
========================= */

#timeline {
	width: min(600px, 94vw);
	height: 800px;
	overflow: hidden;
	margin: 40px auto;
	position: relative;
	background: url('../images/dot.gif') 3px top repeat-y;
	display: flex;
}

#dates {
	width: 100px;
	height: 800px;
	overflow: hidden;
	flex: 0 0 100px;
}

#dates li {
	list-style: none;
	width: 100px;
	height: 100px;
	line-height: 100px;
	font-size: 24px;
	padding-left: 10px;
	background: url('../images/biggerdot.png') left center no-repeat;
}

#dates a {
	display: inline-block;
	line-height: 38px;
	padding-bottom: 10px;
	transition: font-size 0.3s, color 0.5s;
}

#dates .selected {
	font-size: 38px;
}

#issues {
	width: calc(100% - 100px);
	height: 600px;
	overflow: hidden;
	flex: 1 1 auto;
	padding-top: 40px;
}

#issues li {
	width: 100%;
	height: 600px;
	text-align: center;
	list-style: none;
	margin-top: 0;
	padding: 0 10px;
}

#issues li h1 {
	color: #ffcc00;
	font-size: clamp(36px, 7vw, 48px);
	text-align: center;
	text-shadow: #000 1px 1px 2px;
	line-height: 1.1;
}

#issues li img,
#issues li .wide {
	display: block;
	width: auto;
	max-width: min(450px, 88%);
	height: auto;
	margin: 40px auto 10px;
	transition: transform 2s ease-in-out;
	transform: scale(0.7);
}

#issues li img:not(.wide) {
	max-width: min(256px, 78%);
}

#issues li.selected img {
	transform: scale(1.1);
}

#issues li p {
	font-size: 14px;
	margin: 10px 20px;
	font-weight: normal;
	line-height: 22px;
	text-shadow: #000 1px 1px 2px;
	text-align: center;
}

#grad_top,
#grad_bottom {
	width: calc(100% - 100px);
	height: 80px;
	position: absolute;
	right: 0;
	pointer-events: none;
}

#grad_top {
	top: 0;
/* 	background: url('../images/grad_top.png') repeat-x; */
}

#grad_bottom {
	bottom: 0;
/* 	background: url('../images/grad_bottom.png') repeat-x; */
}

#next,
#prev {
	position: absolute;
	left: calc(100px + ((100% - 100px) / 2) - 19px);
	font-size: 70px;
	width: 38px;
	height: 22px;
	background-position: 0 -44px;
	background-repeat: no-repeat;
	text-indent: -9999px;
	overflow: hidden;
	z-index: 5;
}

#next:hover,
#prev:hover {
	background-position: 0 0;
}

#next {
	bottom: 0;
	background-image: url('../images/next_v.png');
}

#prev {
	top: 0;
	background-image: url('../images/prev_v.png');
}

#next.disabled,
#prev.disabled {
	opacity: 0.2;
}

/* =========================
   Tablet
========================= */

@media screen and (max-width: 768px) {
	.timeline-header {
		padding-top: 20px;
	}

	#timeline {
		width: 94vw;
		height: 720px;
		margin: 30px auto;
	}

	#dates {
		width: 86px;
		height: 720px;
		flex-basis: 86px;
	}

	#dates li {
		width: 86px;
		height: 90px;
		line-height: 90px;
		font-size: 20px;
		padding-left: 10px;
		background-size: 11px auto;
	}

	#dates .selected {
		font-size: 30px;
	}

	#issues {
		width: calc(100% - 86px);
		height: 560px;
		padding-top: 50px;
	}

	#issues li {
		height: 560px;
		padding: 0 8px;
	}

	#issues li img,
	#issues li .wide {
		margin-top: 32px;
		max-width: 88%;
	}

	#issues li img:not(.wide) {
		max-width: min(230px, 78%);
	}

	#issues li p {
		margin: 12px 10px;
		font-size: 14px;
		line-height: 1.7;
	}

	#grad_top,
	#grad_bottom {
		width: calc(100% - 86px);
	}

	#next,
	#prev {
		left: calc(86px + ((100% - 86px) / 2) - 19px);
	}
}

/* =========================
   Smartphone
========================= */

@media screen and (max-width: 520px) {
	body {
		font-size: 13px;
	}

	.timeline-header p {
		font-size: 13px;
		line-height: 1.7;
	}

	#timeline {
		width: 96vw;
		height: 680px;
		margin: 24px auto;
		background-position: 2px top;
	}

	#dates {
		width: 72px;
		height: 680px;
		flex-basis: 72px;
	}

	#dates li {
		width: 72px;
		height: 85px;
		line-height: 85px;
		font-size: 17px;
		padding-left: 9px;
		background-size: 10px auto;
	}

	#dates a {
		line-height: 32px;
		padding-bottom: 6px;
	}

	#dates .selected {
		font-size: 24px;
	}

	#issues {
		width: calc(100% - 72px);
		height: 520px;
		padding-top: 56px;
	}

	#issues li {
		height: 520px;
		padding: 0 6px;
	}

	#issues li h1 {
		font-size: 34px;
	}

	#issues li img,
	#issues li .wide {
		margin-top: 26px;
		margin-bottom: 12px;
		max-width: 92%;
	}

	#issues li img:not(.wide) {
		max-width: min(210px, 76%);
	}

	#issues li.selected img {
		transform: scale(1);
	}

	#issues li p {
		margin: 10px 4px;
		font-size: 13px;
		line-height: 1.75;
	}

	#grad_top,
	#grad_bottom {
		width: calc(100% - 72px);
		height: 60px;
	}

	#next,
	#prev {
		left: calc(72px + ((100% - 72px) / 2) - 19px);
	}
}