* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--text-color: #f4f4f4;
	--link-default: #f44;
	--link-hover: #f66;
	--link-active: #faa;
	--main-bg: #333;
	--dim-bg: #2c2c2c;
	--dark-bg: #111;
	--shadow: #00000080;
}

html {
	font-family: "Trebuchet MS", Helvetica, sans-serif;
}

body {
	background-color: var(--dark-bg);
	color: var(--text-color);
	text-align: justify;
}

header, footer {
	text-align: center;
	margin: 16px auto;
}

h1 {
	font-style: italic;
}

main {
	width: 95%;
	max-width: 960px;
	margin: auto;
	margin-bottom: 1em;
	padding: 1px 16px;
	background-color: var(--main-bg);
	border-radius: 1em;
	box-shadow: 3px 3px var(--shadow);
}

p {
	margin: 1em auto;
}

a {
	text-decoration: none;
	color: var(--link-default);
}
a:hover {
	color: var(--link-hover);
	text-decoration: underline;
}
a:active {
	color: var(--link-active);
}

h2 {
	padding: 0.25em;
	background-color: #222;
}

ul {
	margin-bottom: 16px;
	padding: 0;
	list-style-type: none;
	break-inside: avoid-column;
	overflow: hidden; /*firefox*/
}

li {
	text-align:left;
	padding-top: 1px;
	padding-bottom: 1px;
	padding-left: 1em;
	font-style: italic;
	break-inside: avoid-column;
}
li span {
	font-style: normal;
}
li:nth-child(1) {
	text-decoration: underline;
	font-style: normal;
	padding-left: 0;
}
li:hover, .alphabet li:nth-child(1):hover {
	background-color: var(--dim-bg);
	cursor: default;
}
li:nth-child(1):hover {
	background-color: inherit;
}

h3 {
	margin: 8px auto;
}

time {
	font-style: normal;
	font-family: monospace;
}

.hidden {
	display: none;
}

.list-container, .alphabet {
	margin: 16px 8px;
	column-count: 2;
}
.alphabet ul {
	break-inside: auto;
	overflow: visible;
	margin-bottom: 0;
}
.alphabet li, .accdate {
	text-decoration: none;
	font-style: italic;
	padding-left: 0;
}

/* button styling */
#extra-controls {
	text-align: center;
	margin-top: 8px;
}

button {
	font-size: 1.25em;
	font-family: inherit;
	padding: 5px 10px;
	background-color: #222;
	box-shadow: 3px 3px var(--shadow);
	border-radius: 0.5em;
	border: none;
	cursor: pointer;
	color: var(--link-default);
}
button:hover {
	background-color: #272727;
	color: var(--link-hover);
}

button:disabled {
	background-color: inherit;
	box-shadow: none;
	border: 2px dashed #999;
	color: var(--text-color);
	cursor: default;
}

#year-btn, #accdate-btn {
	color: var(--text-color);
	background-color: inherit;
	box-shadow: none;
	margin-bottom: 16px;
}
#year-btn:hover, #accdate-btn:hover {
	background-color: var(--dim-bg);
}

.check {
	width: 16px;
}

#info {
	background-color: var(--dim-bg);
	padding: 1px 0.5em;
	margin: 1em 0;
	border-radius: 0.5em;
}

/* grid layout for buttons */
.flex-btn {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
}

/* for mobile */
@media only screen and (max-width: 768px) {
	.list-container, .alphabet {
		column-count: 1;
		margin-bottom: 0;
	}
	.alphabet ul {
		margin-bottom: 16px;
	}
	.flex-btn {
		flex-direction: column;
	}
}
