/* General Styles */

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

html,
body {
	width: 100%;
	height: 100%;
}

body {
	background-color: #171c20;
	color: #fff;
	min-width: 50em;
	padding: 1em;
	margin: 0;
	text-align: center;
}

h2 {
	margin: 0 auto 1em;
	font-size: 1.75em;
}

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

.center-page {
	display: flex;
	justify-content: center;
	align-items: center;
	height: calc(100vh - 6.75rem);
}

#loading-notice {
	font-size: 2em;
}

/* Navbar Styles */

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 2em;
	font-size: 1.75em;
}

nav h1 {
	display: inline;
	margin: 0;
	font-size: 1.25em;
}

nav h1 a {
	color: #007bc4;
}

nav #user-menu {
	text-align: right;
	padding: 0.5em 0;
	z-index: 999;
}

nav #user-menu ul {
	display: none;
	position: absolute;
	list-style: none;
	right: 0.5em;
	margin: 0;
	padding: 0;
}

nav #user-menu:hover ul {
	display: block;
	padding-top: 0.5em;
}

nav #user-menu li {
	background-color: #007bc4;
}

nav #user-menu li:hover {
	background-color: #005be1;
}

nav #user-menu a {
	display: block;
	padding: 0.25em 0.5em;
	color: #fff;
}

/* Form Styles */

form {
	font-size: 1.5em;
}

form div {
	padding: 0.2em 0;
}

form div.alert,
form ul {
	margin: 1em 0;
	padding: 0.5em;
	background-color: #a30000;
	border-radius: 0.25em;
}

form ul {
	list-style: none;
}

form label:not([for=_remember_me]) {
	display: inline-block;
	width: 5em;
	text-align: right;
	padding-right: 0.5em;
}

form input:not([type=checkbox]),
form select,
form textarea {
	width: 10em;
	padding: 0.25em;
	font-size: 1em;
	border: 0.1em solid #007bc4;
	border-radius: 0.25em;
}

form input[type=checkbox] {
	transform: scale(1.5);
	accent-color: #007bc4;
	margin-right: 0.25em;
}

form button {
	padding: 0.25em 1em;
	margin: 0 0.25em;
	font-size: 1em;
	background-color: #007bc4;
	border: 0 none;
	border-radius: 0.25em;
}

form button:hover {
	background-color: #005be1;
	cursor: pointer;
}

form button[type=reset] {
	background-color: #c41a00;
}

form button[type=reset]:hover {
	background-color: #e10000;
}

/* Collection Styles */

#collection {
	font-size: 1.5em;
}

#collection #collection-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0.5em;
	margin: 0.5em auto;
	width: 20em;
}

#collection #collection-menu #filter {
	position: relative;
	flex-grow: 0;
	flex-shrink: 0;
	width: 20em;
}

#collection #collection-menu #filter input {
	width: 100%;
	padding: 0.25em;
	padding-right: 5.25em;
	border: 0.1em solid #007bc4;
	border-radius: 0.25em;
}

#collection #collection-menu #filter select {
	position: absolute;
	top: 0;
	right: 0;
	width: 5em;
	padding: 0.25em;
	color: #fff;
	background-color: #007bc4;
	border: 0.1em solid #007bc4;
	border-radius: 0 0.25em 0.25em 0;
	border-left: 0;
	outline: none;
}

#collection #collection-menu p {
	flex-grow: 0;
	margin: 0;
	cursor: pointer;
	width: 9.5em;
}

#collection #collection-list {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
	padding: 1em;
	margin: 0 auto;
	list-style: none;
}

#collection .movie {
	position: relative;
	width: 10em;
}

#collection.sorted-title .movie {
	order: 10 !important;
}

#collection .movie.best-match {
	order: 0 !important;
}

#collection .movie.close-match {
	order: 1 !important;
}

#collection.bookmarks-only .movie:not(.bookmarked) {
	display: none;
}

#collection .movie.filtered {
	display: none;
}

#collection .edit-indicator {
	display: inline-block;
	transform: scaleX(-1);
}

#collection .bookmark-indicator {
	position: absolute;
	top: 0.25em;
	right: 0.25em;
	height: 1.5em;
	width: 1.5em;
	border-radius: 1em;
	cursor: pointer;
	background-color: #000;
	padding: 0.2em 0 0;
}

#collection .bookmarked .bookmark-indicator {
	color: #ffd700;
}

#collection .bookmarked .bookmark-indicator .empty,
#collection .bookmark-indicator:hover .empty {
	display: none;
}

#collection .movie:not(.bookmarked) .bookmark-indicator:not(:hover) .full {
	display: none;
}

#collection .movie > img {
	width: 100%;
}

#collection .movie > p {
	margin: 0;
}

#collection .movie a:not(.edit-indicator) {
	text-decoration: dashed;
}

#collection .source-list {
	display: flex;
	justify-content: center;
	gap: 0.5em;
	padding: 0;
	list-style: none;
}

#collection .source-list img {
	height: 0.75em;
}

#collection-stats {
	font-size: 0.75em;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5em 2em;
	padding: 0.25em;
	background-color: #007bc4;
}

@media (min-width: 1200px) {
	#collection #collection-menu {
		width: 100%;
		justify-content: center;
		gap: 1.5em;
	}

	#collection #collection-menu #filter {
		order: 2;
	}

	#collection #collection-menu #sort-toggle {
		order: 1;
		text-align: right;
	}

	#collection #collection-menu #bookmarked-toggle {
		order: 3;
		text-align: left;
	}
}

/* Add Movies Styles */

#add-movies h2 {
	margin-bottom: 0.5em;
}

#add-movies form {
	font-size: 1em;
}

#add-movies #form {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5em;
}

#add-movies label {
	width: auto;
}

#add-movies #form_movies_container {
	width: 100vw;
}

#add-movies #form_movies_container label {
	display: none;
}

#add-movies #form_movies_container textarea {
	width: 50%;
	height: calc(100vh - 17.5em);
}

/* Edit Movies Styles */

#edit-movie form label {
	width: 6em;
}

#edit-movie form input ,
#edit-movie form select {
	width: 50vw;
	min-width: 25em;
}

#edit-movie img {
	height: 20em;
}

#edit-movie img[src='#'] {
	display: none;
}
