/*
 * Colors.
 */

:root {
	--link: #060;
	--link-hover: #080;
	--background: #fff;
	--background-highlight: #aaa;
	--text: #000;
	--text-dim: #666;
}

@media (prefers-color-scheme: dark) {
	:root {
		--link: #0b0;
		--link-hover: #0f0;
		--background: #212529;
		--background-highlight: #4d5053;
		--text: #dee2e6;
		--text-dim: #aaa;
	}
}

/*
 * General
 */

body {
	font: 14pt Calibri, Verdana, Geneva, sans-serif;
	margin: 0;
	padding: 20px;
	color: var(--text);
	background-color: var(--background);
}

.announcement {
	padding: 24px 64px;
	font-size: 1.2em;
}

.hint {
	font-size: 0.75em;
	color: var(--text-dim);
}

img.icon {
	vertical-align: middle;
	margin: 2px 5px;
}

.today {
	background-color: var(--background-highlight);
}

footer {
	display: grid;
	grid-template-columns: repeat(auto-fit, 25vw);
	border: 2px none var(--background-highlight);
	border-top-style: solid;
	padding-top: 1rem;
}

/*
 * Links
 */

a {
	color: var(--link);
	text-decoration: underline;
}

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

a.file_link {
	display: inline-block;
	position: relative;
	text-decoration: none;
	height: 38px;
	padding: 0;
	padding-left: 40px;
	vertical-align: middle;
	margin: 1px 10px;
	min-width: 5em;
}

a.file_link img {
	position: absolute;
	top: 2px;
	left: 0;
	margin: 0;
	padding: 0;
	transition: 1.0s ease;
	-webkit-transition: 1.0s ease;
	transform: perspective(64px) rotateY(0deg);
	-ms-transform: perspective(64px) rotateY(0deg);
	-webkit-transform: perspective(64px) rotateY(0deg);
}

a.file_link span {
	line-height: 24px;
	padding-top: 0;
}

a.file_link span.file_info {
	line-height: 7pt;
	font-size: 7pt;
	position: absolute;
	bottom: 4px;
	left: 40px;
	right: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

/*
 * Tables
 */

table {
	border-collapse: collapse;
	width:100%;
  table-layout: fixed;
  overflow-wrap: break-word;
	border: 1px solid var(--text);
}

table td {
	padding: 3px 6px;
	border: 1px solid var(--text);
}

table th {
	padding: 3px 6px;
	border: 1px solid var(--text);
}

 table.lectures tr *:nth-of-type(1) {
	width: 6em;
	text-align: center;
}

table.practicals td {
	text-align: center;
}

table.practicals th:nth-of-type(1) {
	width: 4rem;
}

table.practicals-solutions tr th {
	text-align: left;
}

table.practicals-solutions tr th:nth-of-type(1) {
	text-align: center;
	width: 15rem;
}


