
body {
  background-color: black
}

#title {
	text-align: center;
}

#footer {
	text-align: center;
	position: fixed;
  	bottom: 0;
  	height: 15%;
  	width: 100%;
}

h1, h3, p {
	color: white;
}

#text-container {
	margin: 0 auto;
	width: 600px;
	text-align: center;
}

#viz {
	position: absolute;
	top: 10%;
	bottom:20%;
	left:10%;
	right:10%;
}

a {
	color: #ccc;
}

/* spectrum: every frame ordered by hue into a color quilt */
#spectrum {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
	margin: 2% 5% 8%;
}
#spectrum img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
}

/* memory match */
#board {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	max-width: 480px;
	margin: 2% auto 12%;
}
.card {
	position: relative;
	aspect-ratio: 1;
	cursor: pointer;
}
.card-back, .card-front {
	position: absolute;
	width: 100%;
	height: 100%;
}
.card-back {
	background: #1a1a1a;
	border: 1px solid #333;
}
.card-front {
	display: none;
}
.card-front img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.card.flipped .card-back { display: none; }
.card.flipped .card-front { display: block; }
.card.done { opacity: 0.35; cursor: default; }

/* sort into order */
#strip {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
	margin: 2% 5% 12%;
}
.tile {
	width: 120px;
	height: 120px;
	border: 2px solid #333;
	cursor: grab;
}
.tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}
.tile.dragging { opacity: 0.4; }
.tile.right { border-color: #3a3; }
.tile.wrong { border-color: #a33; }

button {
	background: #1a1a1a;
	color: white;
	border: 1px solid #555;
	padding: 6px 14px;
	cursor: pointer;
	font-size: 14px;
}

/* object tag cloud */
#cloud {
	max-width: 760px;
	margin: 3% auto 12%;
	text-align: center;
	line-height: 1.6;
}
#cloud a {
	color: #bbb;
	margin: 0 8px;
	white-space: nowrap;
}
#cloud a:hover {
	color: white;
}

/* timeline river */
#river-opts {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 10;
	background: rgba(20, 20, 20, 0.8);
	border: 1px solid #333;
	padding: 12px 14px;
	border-radius: 4px;
}
#media-toggle {
	margin-bottom: 12px;
}
#media-toggle a {
	color: #888;
	font: 12px sans-serif;
	text-decoration: none;
	padding: 3px 8px;
	border: 1px solid #333;
}
#media-toggle a.on {
	color: white;
	background: #333;
}
#river-opts label {
	display: block;
	color: #aaa;
	font: 12px sans-serif;
	margin-bottom: 10px;
}
#river-opts label:last-child {
	margin-bottom: 0;
}
#river-opts span {
	color: white;
}
#river-opts input {
	width: 150px;
	margin-top: 4px;
}
#river {
	position: relative;
	height: 60vh;
	overflow: hidden;
}
.drift {
	position: absolute;
	left: 0;
	animation-name: drift;
	animation-timing-function: linear;
	animation-iteration-count: 1;
	will-change: transform;
}
.drift img {
	width: var(--river-size, 150px);
	display: block;
	border: 1px solid #222;
}
.drift .yr {
	color: #777;
	text-align: center;
	font-size: 12px;
	margin-top: 4px;
}
@keyframes drift {
	from { transform: translateX(100vw); }
	to   { transform: translateX(-220px); }
}

/* guess the year */
#guess {
	text-align: center;
	margin: 2% auto 12%;
}
#guess img {
	max-width: 90%;
	max-height: 60vh;
	border: 1px solid #222;
}
#options {
	margin: 18px 0 6px;
}
.year-opt {
	margin: 0 6px;
	font-size: 18px;
	padding: 8px 18px;
}
.year-opt.right {
	background: #163; border-color: #3a3;
}
.year-opt.wrong {
	background: #611; border-color: #a33;
}


div.tooltip {	
    position: absolute;			
    text-align: center;			
    padding: 2px;				
    font: 20px sans-serif;		
    background: lightgrey;	
    border: 0px;		
    border-radius: 8px;			
    pointer-events: none;			
}