/*
///////////////////////
	Animations
///////////////////////
*/
@keyframes fade-in{
	from {opacity: 0;}
	to {opacity: 1;}
}


/*
///////////////////////
	Common root elements
///////////////////////
*/
* {
	margin: 0px;
	padding: 0px;
	font-family: Tahoma;
	background: rgba(0,0,0,0);
}
body {
	background: #123456;
	color: #fff;
}
ul {
	list-style: none;
}
mark {
	padding: 0 1ch;
	background: radial-gradient(ellipse, rgba(204, 204, 0, 0.75), rgba(255, 255, 0, 0.5));
	box-shadow: 0 0 10px #FF0;
}
mark::first-letter {
	text-shadow: -5px 0px 6px #000;
}
h1, h2, h3, h4, h5, h6 {
	grid-column: 1 / -1;
	z-index: 10;
	text-align: center;
	font-size: 2em;
	margin: 0;
	padding: 0.25em;
	background-image: linear-gradient(to bottom, #335577, #002040);
	box-shadow: 0px 0px 5px #000;
	text-shadow: 0px 0px 4px #000;
}
h1 {
	grid-row: 1;
}
a, a:active, a:visited {
	color: #09F;
}
input[type="text"] {
	background: #eee;
	color: #000;
	border: #468 2px solid;
	box-shadow: inset 0px 0px 4px #333;
	padding: 0.25em;
	border-radius: 10px;
	font-size:2.5em;
}
input[type="text"]:focus {
	outline:none;
	box-shadow: inset 0px 0px 4px #111;
	border-color:#ccc;
}
/*
///////////////////////
	Common classes
///////////////////////
*/
.bottom-tab-info {
	margin: 0px 20px 20px 20px;
	background: #eee;
	background-image: repeating-linear-gradient(25deg, #f5f5f5, #f5f5f5 1.5em, #fff 1.5em, #fff 3em);
	border-radius: 0 0 20px 20px;
	box-shadow: 0 0 5px #000;
	border: #123456 2px dotted; border-top: 0;
}
.bottom-tab-info > p {
	margin: 20px !important;
	color: #111;
	font-weight: bold;
}

.bottom-tab-info li {
	margin: 5px 5px 5px 20px;
	padding: 5px;
}
.bottom-tab-info li:last-child {
	margin-bottom: 20px;
}


/*
///////////////////////
	element specific
///////////////////////
*/
#layout {
	display: grid;
	grid-template-columns: 10% 80% 10%;
	gap: 0px;
}
#index-link {
	float: right;
	position: absolute; top: 5px; right: 5px; z-index: 100;
	font-size: 2em;
	background: rgba(0,0,0,0);
	border: 0;
	text-decoration: none;
}
#error-404, #index {
	grid-column: 1 / -1;
	margin: 0px 20px 20px 20px !important;
}

/*
///////////////////////
	key-finder.html
///////////////////////
*/
#layout > h2 {
	grid-row: 3;
}
#layout > h3 {
	grid-row: 5;
}
#key-finder-help {
	grid-column: 1 / -1;
	grid-row: 6;
}
input#code {
	grid-column: 2 / 3;
	grid-row: 2;
	text-align:center;
	margin: 20px 0 20px 0;
}
#key-list {
	grid-column: 1 / -1;
	grid-row: 4;
}
#key-list > li {
	animation-duration: 0.25s;
	animation-name: fade-in;
	border-radius: 5px;
	font-size: 1.5em;
	color: #333;
	margin: 5px;
	padding: 10px;
	background: #eee;
	background-image: repeating-linear-gradient(25deg, #f5f5f5, #f5f5f5 1.5em, #fff 1.5em, #fff 3em);
	box-shadow: 0px 1px 4px #123456;
	border-radius: 0;
	border: 0;
	border-top: #123456 1px dashed;
	margin:0;
}
#key-list > li:first-child {
	border-top: 0;
}

/*
///////////////////////
	battery-date-decoder.html
///////////////////////
*/
#layout > h2 {
	grid-row: 3;
}
#layout > h3 {
	grid-row: 5;
}
#layout > h4 {
	grid-row: 7;
}
#battery-code-help {
	grid-column: 1 / -1;
	grid-row: 8;
}
input#battery-code {
	grid-column: 2 / 3;
	grid-row: 2;
	text-align:center;
	margin: 20px 0 20px 0;
}
#potential-dates {
	grid-column: 1 / -1;
	grid-row: 4;
}
#known-batteries {
	grid-column: 1 / -1;
	grid-row: 6;
	margin: 10px 0;
}
#potential-dates > li, #known-batteries > li {
	border-radius: 5px;
	font-size: 1.5em;
	color: #333;
	margin: 5px;
	padding: 10px;
	background: #eee;
	background-image: repeating-linear-gradient(25deg, #f5f5f5, #f5f5f5 1.5em, #fff 1.5em, #fff 3em);
	box-shadow: 0px 1px 4px #123456;
}
#potential-dates > li {
	animation-duration: 0.25s;
	animation-name: fade-in;
	border-radius: 0;
	border: 0;
	border-top: #123456 1px dashed;
	margin: 0;
}
#potential-dates > li:first-child {
	border-top: 0;
}
#known-batteries {
	display: grid;
	grid-template-columns: 50% 50%; gap: 0px;
}
#known-batteries > li {
	font-size: 1em;
	padding: 5px;
	border: #123456 1px dotted;
}

