:root {
	--border-radius--small: 5px;
}

body {
	box-sizing: border-box;
	margin: 0;
	font-family: sans-serif;
	background: #DCE2EE;

	--colour-1: #16417E;
	--text-over-colour-1: #FFFFFF;
	--colour-2: #F39D4C;
	--text-over-colour-2: #000000;
	--colour-3: #14203E;
	--text-over-colour-3: #FFFFFF;
}

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

@font-face {
	font-family: "montserrat";
	font-weight: normal;
	src: url("/static/Montserrat-Regular.ttf") format("truetype");
}

h1, h2, label {
	font-family: "montserrat", sans-serif;
	font-weight: normal;
}

h1 {
	font-size: 32px;
	color: var(--colour-3);
}

h2 {
	font-size: 28px;
	font-weight: bold;
	color: var(--colour-1);
	margin: 43px 0 21px;
}

label {
	display: block;
	margin-top: 20px;
	color: #16417E;
}

.main-link {
	text-decoration: none;
	color: #16417E;
	white-space: nowrap;
}

.upload-video input[type=text] {
	width: 300px;
	padding: 5px 10px;
}

.upload-video input[type=submit] {
	margin-top: 20px;
}

.back-link + h2 {
	margin-top: 27px;
}

.back-link {
	margin-top: 33px;
	color: var(--colour-2);
	text-decoration: none;
	display: block;
	width: 200px;
}

.login-page {
	background: #DCE2EE;
}

.login-logo {
	width: 538px;
	margin: 144px auto 0;
}

.login-logo img {
	display: block;
	height: 134px;
	margin: 0 auto;
}

.login-form {
	width: 454px;
	margin: 120px auto 0;
}

.login-form label,
.login-form input {
	display: block;
	width: 100%;
	text-align: center;
}

.login-form label {
	margin: 36px 0 0;
	display: block;
}

.login-form input {
	border-radius: var(--border-radius--small);
	border: 1px solid #477FA2;
	margin: 15px 0 0;
	padding: 15px;
	display: block;
}

.login-form .orange-button {
	border-radius: var(--border-radius--small);
	border: none;
	margin: 36px 0 0;
}

.messages {
	margin: 36px 0 0;
	text-align: center;
	list-style: none;
}

.messages.compact {
	margin: 0;
	padding: 0;
	width: 350px;
}

.msg {
	border-width:1px;
	border-style: solid;
	padding: 15px;
	border-radius: 5px;
}

.messages.compact .msg {
	padding:10px;
}

.msg.error {
	background: #FFBBBB;
	border-color: #FF0000;
}

.msg.valid {
	background: #BBFFBB;
	border-color: #00FF00;
}

.msg + .msg {
	border-width: 0 1px 1px;
}

.msg:first-child {
	border-radius: var(--border-radius--small) var(--border-radius--small) 0 0;
}

.msg:last-child {
	border-radius: 0 0 var(--border-radius--small) var(--border-radius--small);
}

.msg:first-child:last-child {
	border-radius: var(--border-radius--small);
}

.orange-button {
	background: var(--colour-2);
	color: var(--text-over-colour-2);
	border: 0;
	padding: 7px 30px;
	text-decoration: none;
	white-space: nowrap;
	display: block;
	cursor: pointer;
	font-size: 14px;
}

.logout {
	margin: 110px 0 0;
}

.logout a {
	background: #707070;
	color: #FFFFFF;
	padding: 15px 15px;
	text-decoration: none;
	cursor: pointer;
	font-size: 20px;
}

header {
	display: grid;
	grid-auto-flow: column;
	grid-template-columns: 325px auto 325px;
	align-items: center;
	padding: 0 55px;

	height: 123px;
	background: #FFFFFF;
}

header .logo img {
}

header h1 {
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
}

header :last-child {
	justify-self: end;
}

.bod {
	padding: 0 211px 34px;
	max-width: 100%;
}

section + section {
	margin: 48px 0 0;
}

table {
	border-collapse: collapse;
	width: 853px;
}

table tr {
	height: 50px;
}

table tr:nth-child(odd) {
	background: #F8F8F8;
}

table tr.header {
	background: var(--colour-1);
	color: var(--text-over-colour-1);
	text-transform: uppercase;
}

table th {
	font-weight: normal;
	text-align: left;
	padding: 15px;
}

table th.actions {
	width: 140px;
	text-align: center;
}

table .icon {
	width: 44px;
	height: 44px;
	border-radius: 5px;
	margin: 3px;
	background-size: cover;
	background-position: center;
}

table .icon.txt {
	background-image: url("/static/images/text-x-generic.svg")
}

table .icon.pdf {
	background-image: url("/static/images/application-pdf.svg")
}

table .icon.doc {
	background-image: url("/static/images/x-office-document.svg")
}

table .name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 560px;
	display: block;
	padding: 15px;
	text-align: left;
}

table .date {
	width: 140px;
	padding: 15px;
	text-align: left;
}

.options {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 32px;
	gap: 10px;
	align-items: center;
	justify-content: end;
}

.options a,
.options button {
	display: block;
	border-radius: 6px;
	width: 32px;
	height: 32px;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

table .options a:hover,
table .options button:hover {
	outline: 2px solid #00000070;
}

video {
	min-height: 450px;
	height: 50vh;
	max-height: 800px;
	border-radius: 10px;
	margin: 20px auto;
	display: block;
}

.video-flex {
	display: flex;
	gap: 40px;
	flex-wrap: wrap;
}

.video-flex .main-link {
	display: grid;
	grid-template-rows: auto 30px;
}

.video-flex .name {
	align-self: center;
}

.thumbnail {
	width: 305px;
}

.thumbnail img {
	width: 100%;
	border-radius: 15px;
}
