/* Reset and Base Styles */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: Arial, sans-serif;
}

body {
	background-color: white;
	color: black;
	padding: 1rem;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Navbar */
nav {
	background-color: #a00000; /* deep red */
	color: white;
	padding: 1rem;
	display: flex;
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	max-width: 100%;
	z-index: 1000;
	align-items: baseline;
}

nav a {
	color: white;
	text-decoration: none;
	font-weight: bold;
	padding: 0.5rem;
	transition: background 0.2s ease;
	border-radius: 75px;
}

nav > span:nth-child(1) {
	font-size: 30px;
	padding-right: 1.5rem;
}

#desktopnav > nav a:hover,
#mobilenav-pane a:hover {
	background-color: #bd4747;
	text-decoration: none !important;
}

#desktopnav > nav:nth-child(1) > span:nth-child(1) > a:nth-child(1) {
	background-color: #a00000;
}

#mobilenav-pane a:nth-child(1):hover {
	background-color: #a00000;
}

#mobilenav {
	font-size: 30px;
}

#mobilenav a:hover {
	text-decoration: none;
}

#mobilenav-pane {
	position: absolute;
	top: 0;
	left: 0;
	height: 100vh;
	width: 50vw;
	background-color: #a00000;
	flex-direction: column;
	z-index: 10;
	padding: 70px 0 0 15px;
	transform: translateX(-100%);
	transition: transform 300ms ease-in-out;
	display: flex;
}

#mobilenav-pane.active {
	transform: translateX(0);
}

#mobilenav-pane a {
	font-weight: bold;
	padding: 0.5rem;
	z-index: 11;
	color: white !important;
	cursor: pointer;
}

#mobilenav-pane span {
	display: flex;
	flex-direction: row;
	align-self: end;
	padding: 0 20px;
	color: black;
}

#menuBtn {
	cursor: pointer;
}

/* Headings */
h1,
h2,
h3,
h4 {
	margin: 1rem 0 0.5rem;
}

.status {
	white-space: nowrap;
}

.icon {
	margin: 1rem 1.5em;
	right: 20px;
}

/* Buttons */
input[type="submit"],
button {
	background-color: #a00000;
	color: white;
	border: none;
	padding: 0.6rem 1.2rem;
	margin: 0.5rem 0;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.2s ease;
	font-size: 1rem;
}

input[type="submit"]:hover,
button:hover {
	background-color: #c40000;
}

/* Inputs */
input[type="text"],
input[type="file"],
input[type="password"],
input[type="textarea"] {
	width: 100%;
	padding: 0.6rem;
	margin: 0.5rem 0;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 1rem;
}

input[type="time"] {
	padding: 0.6rem;
	margin: 0.5rem 0;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 1rem;
}

/* Forms and Layout Blocks */
form {
	margin: 1.5rem 0;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
}

tr {
	border-bottom: 1px solid #ddd;
}

td {
	padding: 1rem;
	text-align: left;
	vertical-align: middle;
	border-right: 1px solid #ddd;
}

td:last-child {
	border-right: none;
}

tr:nth-child(even) {
	background-color: #f9f9f9;
}

tr:hover {
	background-color: #f1f1f1;
}

.block {
	max-width: 800px;
	width: 100%;
	align-items: center;
	padding: 5rem 1rem 1rem;
}

.labeledinp {
	display: flex;
	flex-direction: row;
	margin-bottom: 1rem;
}

.clipper.settings {
	margin-bottom: 2rem;
}

.cliprow {
	border: 1px solid #ddd;
	padding: 1rem;
	margin: 1rem 0;
	border-radius: 8px;
	background-color: #f9f9f9;
}

.announcement {
	border: 1px solid #ddd;
	padding: 1rem;
	margin: 1rem 0;
	border-radius: 8px;
	background-color: #f9f9f9;
}

a {
	text-decoration: none;
	color: #a00000;
}

a:hover {
	text-decoration: underline;
}

.labeledinp label {
	margin-right: 1rem;
	font-weight: bold;
	white-space: nowrap;
	align-self: center;
}

/* Audio Player */
audio {
	width: 100%;
	margin-top: 0.5rem;
}

/* Messages & Alerts */
#error,
#loading,
#exported {
	text-align: center;
	margin-top: 1rem;
}

#clipbuttonsmobile {
	display: none;
}

#mobilenav {
	display: none;
}

.feedback {
	display: flex;
	flex-direction: row;
}

/* Checkboxes */
input[type="checkbox"] {
	accent-color: #a00000;
	width: 1.2rem;
	height: 1.2rem;
	margin-right: 0.5rem;
	cursor: pointer;
	vertical-align: middle;
}

/* Checkbox label alignment */
.checkbox-label {
	display: flex;
	align-items: center;
	font-weight: bold;
	margin: 0.5rem 0;
}

/* Select Dropdowns */
select {
	width: 100%;
	padding: 0.6rem;
	margin: 0.5rem 0;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 1rem;
	background-color: white;
	color: black;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D'10'%20height%3D'6'%20viewBox%3D'0%200%2010%206'%20xmlns%3D'http%3A//www.w3.org/2000/svg'%3E%3Cpath%20d%3D'M0%200l5%206%205-6z'%20fill%3D'%23666'%20/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 0.65rem auto;
}

/* Mobile Responsiveness */
@media screen and (max-width: 600px) {
	#clipbuttonsmobile {
		display: block;
	}
	#clipbuttons {
		display: none;
	}

	#mobilenav {
		display: block;
	}
	#desktopnav {
		display: none;
	}

	#loadinginfo {
		flex-direction: column;
	}

	input[type="time"] {
		display: none;
	}
}
