:root {
	--background: #333333;
	--background-off: #474747;
	--color: #BFDBF7;
	--bad: #D90858;
	--gold: #F2AF29;
	--good: #89CE94;
}

* {
	box-sizing: border-box;
}

body {
	background: var(--background);
	color: var(--color);
	display: grid;
	min-height: 100vh;
	place-content: center;
}

form {
	min-width: 32rem;
}

fieldset {
	border-radius: 10px;
	border-width: 1px;
	padding: 1rem;
	border-color: inherit;
	display: flex;
	gap: 1rem;
	flex-direction: column;
	align-items: center;
}

legend {
	border-width: 0 1px;
	border-style: solid;
	padding: 0.25rem 0.75rem;
}

input:disabled + label[for="file"] {
	color: var(--bad);
}

label[for="file"] {
	display: flex;
	place-content: center;
	color: var(--good);
	border: 2px dashed;
	padding: 1rem;
	gap: 0.25rem;
	width: 100%;
}

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

button[type="submit"] {
	position: relative;
	width: 10rem;
	/* padding: 0; */
	width: 62.5%;
}

button {
	background: var(--good);
	color: var(--background);
	padding: 0.25rem 0.375rem;
	margin: 0;
	border: 1px solid;
	border-radius: 10px;
	font-size: inherit;
}

button:disabled {
	background: var(--bad);
}

progress[value="0"] {
	display: none;
}

progress {
	border-radius: 10px;
	height: 1rem;
	width: 75%;
	outline-offset: -2px;
	outline-width: 1px;
	outline-color: var(--background);
	outline-style: solid;
	border-width: 1px;
	border-color: inherit;
	background: inherit;
}

progress::-webkit-progress-bar, progress::-moz-progress-bar {
	background-color: var(--gold);
}

ul {
	list-style-type: none;
	padding: 0;
	border-width: 1px 0;
	border-style: solid;
	margin: 0;
	width: 100%;
}

ul:not(:has(li)) {
	display: none;
}

li {
	display: grid;
	grid-template-columns: auto min-content;
	gap: 1rem;
	padding: 0.5rem;
	align-items:center;
}

li:nth-child(2n - 1) {
	background-color: var(--background-off);
}
