/* General Rules ------------------------------------------------------------ */
body {
	margin: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

main {
	flex: 1;
}

/* Font Styles  --------------------------------------------------------------*/

.category-header {
	font-family: 'Oswald', sans-serif;
	font-weight: 700;
}

/* Site-wide Custom Classes ------------------------------------------------- */

.view-all-link {
	font-family: 'Oswald', sans-serif;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.1s ease-in-out;
}

.view-all-link:hover {
	color: #dc3545 !important;
}

.artist-thumbnail {
	max-width: 20vh;
	max-height: 20vh;
}

#search-results {
	z-index: 2000 !important;
	top: 100%;
	width: 100%;
}

#basket-count {
	bottom: 0;
	left: 0;
	transform: translate(-50%, 50%);
}

.btn-opacity-hover:hover {
	opacity: 0.6;
}

/* Number Input increase disables for different browsers -------------------- */

/* Chrome, Safari, Edge */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

/* base.html Header Rules --------------------------------------------------- */

#brand-logo {
	max-width: 100px;
}

#mobile-logo {
	max-height: 35px;
}

/* 404.html Rules ----------------------------------------------------------- */

#error-image {
	max-width: 300px !important;
	height: auto !important;
}

/* Navigation Bar Rules ----------------------------------------------------- */

header .nav-link {
	font-family: 'Oswald', sans-serif;
	font-weight: 700;
	font-size: 1.2rem;
}

header .nav-link:hover {
	color: #dc3545 !important;
}

/* Footer Rules ------------------------------------------------------------- */

footer h3 {
	font-family: 'Oswald', sans-serif;
	font-weight: 600;
}

footer a,
li {
	font-family: 'Oswald', sans-serif;
	text-decoration: none;
	color: #000;
	font-weight: 600;
}

footer .nav-link:hover {
	color: #dc3545 !important;
}

/* Homepage/Index Rules ----------------------------------------------------- */

.carousel {
	max-width: 45vw;
}

.carousel-inner img {
	height: 100%;
	object-fit: fill;
}

.record-thumbnail {
	max-width: 20vh;
}

/* Search Page Rules -------------------------------------------------------- */

#no-results {
	min-height: 50vh;
}

/* Record Detail Page Rules ------------------------------------------------- */

#record-thumbnails {
	flex-wrap: wrap;
}

#record-description p,
#record-description li,
#record-description ol,
#record-description strong {
	color: white;
}

#record-description li {
	list-style: none;
}

.clickable {
	max-width: 80px;
	flex-shrink: 1;
}

.clickable:hover {
	cursor: pointer;
}

/* Artist Detail Page Rules ------------------------------------------------- */

.artist-profile {
	max-height: 40vh;
	width: auto;
	object-fit: contain;
}

/* Shopping Basket Rules ---------------------------------------------------- */

.basket-image {
	max-width: 100px;
	object-fit: contain;
}

.basket-qty {
	max-width: 70px;
}

/* Checkout Rules ----------------------------------------------------------- */

#card-element {
	min-height: 50px;
	border: 1px solid #444;
	border-radius: 6px;
	background-color: #1a1a1a;
	padding: 10px 12px;
	margin-bottom: 12px;
}

#loader {
	border: 4px solid #333333;
	border-top: 4px solid #dc3545;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Media Queries ------------------------------------------------------------ */

@media (max-width: 1024px) {
	.carousel {
		max-width: 80vw;
	}
}

@media (max-width: 767px) {
	/* base.html - Center the navbar dropdown on small screens */
	.dropdown-genre {
		width: 90vw;
	}

	.dropdown-menu-center {
		left: 50% !important;
		transform: translateX(-50%) !important;
	}

	/* Homepage Carousel */
	.carousel {
		max-width: 100vw;
	}
}

@media(max-width: 1400px) {
	.carousel {
		max-width: 65vw;
	}
}

@media (min-width: 1024px) {
	.dropdown-genre {
		min-width: 30vw;
		max-width: 90vw;
		left: 50% !important;
		transform: translateX(-50%);
	}
}
