:root {
	--accent: #A359EE;
}

html {
	font-family: 'Poppins', sans-serif;
	background-color: #C9C8FB;
	margin: 0;
	padding: 0;
}

body {
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: auto 50em auto;
}

nav {
	padding: 2em 0;
	display: grid;
	grid-column-start: 1;
	grid-column-end: 4;
	grid-template-columns: auto 50em auto;
	background-color: white;
	color: var(--accent);
}

	nav h1 {
		grid-column: 2;
		margin: 0;
		padding: 0;
	}

#banner {
	grid-column-start: 1;
	grid-column-end: 4;
	display: flex;
	justify-content: center;
	align-items: center;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}

	#banner a {
		grid-column: 2;
		text-decoration: none;
	}

h2 {
	text-wrap: nowrap;
}

input, textarea, select, button {
	font-family: 'Poppins', sans-serif;
}

.button {
	width: 75%;
	color: white;
	background-color: #1A1855;
	text-decoration: none;
	color: white;
	padding: 0.5em 0;
	border-radius: 2em;
	border: none;
	font-size: 1em;
	text-align: center;
}

.cancel_button {
	background-color: #7A7996;
}

#content {
	min-height: 60vh;
	grid-column: 2;
	display: flex;
	flex-direction: column;
}

.small {
	font-size: 0.8em;
	font-style: italic;
}

.tag {
	background-color: #A7A6C3;
	padding: 0.2em 0.75em;
	border-radius: 0.5em;
}

label {
	font-size: 0.8em;
	margin: 1.5em 0 0.5em 1em;
}

input, select, textarea, button {
	padding: 0.5em 1em;
	border-radius: 2em;
	border: none;
	font-size: 1em;
}

.radio_list {
	display: grid;
	grid-template-columns: 2em auto;
	gap: 0.5em 1em;
}

	.radio_list label {
		font-size: 1em;
		margin: 0;
	}

textarea {
	height: 8em;
}

#lyric_section {
	display: none;
	flex-direction: column;
}

button {
	margin: 2em auto;
	width: 75%;
	color: white;
	background-color: #1A1855;
}

.error {
	marign: 1em;
	padding: 0.5em 1em;
	background-color: #920735;
	color: white;
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 60%;
}

	.error svg {
		margin-right: 0.5em;
	}

code {
	background-color: white;
	padding: 0.25em 1em;
}

.center {
	grid-column: 2;
}

#login {
	display: flex;
	flex-direction: column;
	gap: 1em;
}

#progress_steps {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1em;
}

.progress_step {
	display: grid;
	grid-template-columns: 1em auto;
	gap: 1em;
	align-items: center;
}

	.progress_step p {
		padding: 0;
		margin: 0;
	}

@-webkit-keyframes rotating {
    from{
        -webkit-transform: rotate(0deg);
    }
    to{
        -webkit-transform: rotate(360deg);
    }
}

.spinner {
    -webkit-animation: rotating 5s linear infinite;
}

#save_error {
	position: fixed;
	top: 0.5em;
	right: 0.5em;
	display: flex;
	gap: 0.5em;
	align-items: center;
	justify-content: center;
	background-color: #920735;
	color: white;
	padding: 0.5em 0.75em;
}

#grid_content {
	margin: 1em 0 0 0 ;
	padding: 0;
	display: grid;
	grid-template-rows: 2.5em auto 11em;
	margin-bottom: 4em;
	min-height: 60vh;
}

	#grid_content #progress_spinner,
	#grid_content #error_alert,
	#grid_content #songs {
		grid-row: 2;
	}

	#grid_content #regenerate_instructions {
		grid-row: 3;
	}

	#grid_content h2 {
		margin-top: 0;
	}

#progress_spinner {
	display: flex;
	flex-direction: column;
}

	.bar_background {
		width: 90%;
		height: 1em;
		background-color: #BCBBD1;
		border-radius: 0.25em;
	}

	.bar_fill {
		width: 2%;
		background-color: #1C1798;
		border-radius: 0.25em;
		height: 100%;
	}

#songs {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 1.5em;
	overflow-y: scroll;
	ofverflow-x: hidden;
}

	#songs .song {
		margin-bottom: 0.5em;
		display: grid;
		grid-template-columns: 8em auto;
		grid-template-rows: 8em 5em;
	}

		#songs .song img {
			width: 8em;
			border-radius: 0.5em;
		}

		#songs .song .song_detail {
			margin: 0 1em;
			display: flex;
			flex-direction: column;
			justify-content: space-evenly;
		}

			#songs .song .song_detail h3 {
				margin: 0;
			}

			#songs .song .song_detail audio {
				width: 100%;
			}

		#songs .song .song_actions {
			margin: 1em 0;
			grid-column-start: 1;
			grid-column-end: 3;
			display: flex;
			align-items: center;
			justify-content: center;
			width: 100%;
		}

			#songs .song .song_actions .button {
				background-color: #A1A3F7;
				stroke: white;
				display: flex;
				align-items: center;
				justify-content: center;
				gap: 0.25em;
				width: 80%;
			}

			#songs .song .song_actions .toggle_on {
				stroke: black;
				color: black;
				background-color: #ff6b6b;
			}

#regenerate_instructions {
	/*border-top: solid 2px black;*/
	margin-top: 1.5em;
	background-color: #C9C8FB;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

	#regenerate_instructions #regenerate_button {
		margin: 0 0 0.5em 0;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.5em;
		margin-bottom: 0.5em;
	}

#lyrics_input {
	height: 24em;
}

#progress_spinner {
	margin: 0.6em 0 1.1em 0;
	align-self: start;
}

.button_group {
	display: flex;
	flex-direction: column;
	gap: 1em;
	align-items: center;
	justify-content: center;
	margin-top: 2em;
}

	.button_group button {
		margin: 1em 0 0 0;
	}

.return_options {
	width: 100%;
}

	.return_options form, .return_options button {
		margin: 0;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

		.return_options form button {
			margin: 0.5em;
		}

#download_list {
	display: flex;
	flex-direction: column;
	gap: 1em;
	min-height: 60vh;
}

	#download_list .song {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 1em;
	}

		#download_list .song img {
			width: 75px;
		}

/* Admin table */

#submission_table .numerical {
	text-align: center;
}

#submission_table .headings span {
	writing-mode: vertical-rl;
	text-align: right;
	justify-self: center;
}

#submission_table summary {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 0.5em;
	padding: 0.5em;
}

	#submission_table summary:hover {
		cursor: pointer;
	}

	#submission_table .detail {
		background-color: #D8D7FF;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		padding: 0 0.5em 2em 0.5em;
	}

		#submission_table .detail h3 {
			font-size: 1em;
		}

		#submission_table .detail textarea {
			width: 90%;
			padding: 0.25em;
			border-radius: 0.25em;
			height: 25em;
		}

		#submission_table details[open] > summary {
			background-color: #D8D7FF;
		}

		#submission_table .detail .saved_songs {
			display: flex;
			flex-direction: column;
			align-items: center;
		}

			#submission_table .detail .saved_songs .button {
				margin-bottom: 1em;
			}

#footer {
	margin-top: 1em;
	padding: 2em 0;
	grid-column-start: 1;
	grid-column-end: 4;
	display: grid;
	grid-template-columns: auto 50em auto;
	color: white;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}

	#footer a {
		color: white;
		text-decoration: none;
	}

	#footer_links {
		grid-column: 2;
		display: flex;
		flex-direction: column;
		gap: 1em;
		text-align: center;
	}

		#footer_links div {
			display: flex;
			justify-content: center;
			gap: 2em;
			flex-wrap: wrap;
			text-decoration: underline;
			font-size: 0.8em;
		}

			


/* === Phone === */
@media only screen and (max-width : 800px) {
	nav, body, #footer {
		grid-template-columns: auto 90vw auto;
	}

	nav {
		padding: 1em 0;
	}

	#banner img {
		width: 50vw;
	}
}
