/* Colors used throughout:
   #323536 page background      #3A3E3F footer background
   #efe1c6 light text           #BDB199 muted text, borders
   #AA5321 highlight            #ff9760 links in the show list and contact section */

/* ------------------------------------------------------------------ base */

html {
	scroll-behavior: smooth;
}

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

::selection {
	background-color: #AA5321;
	color: #323536;
}

a {
	text-decoration: inherit;
	color: inherit;
}

body {
	font-family: "Faculty Glyphic", sans-serif;
	color: #efe1c6;
	font-size: 16px;
	background-color: #323536;
}

/* ------------------------------------------------------------------ social buttons (top left) */

/* Lined up with the 50px menu button on the other side */
.shareBtn {
	position: absolute;
	top: 5%;
	left: 5%;
	height: 50px;
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Facebook and Instagram icons, here and in the footer. */
.shareBtn img,
.socialBanner img {
	display: block;
	width: 50px;
	height: 50px;
}

/* ------------------------------------------------------------------ hamburger menu (top right) */

.menu {
	position: fixed;
	display: flex;
	justify-content: center;
	align-items: center;
	top: 5%;
	right: 5%;
	width: 50px;
	height: 50px;
	background-color: #efe1c6;
	border: solid 2px #efe1c6;
	border-radius: 50%;
	cursor: pointer;
	z-index: 3;
	padding: 0;
	font: inherit;
	color: inherit;
	-webkit-appearance: none;
	appearance: none;
}

.menu .line {
	position: absolute;
	left: 25%;
	height: 1px;
	transform-origin: left;
	background-color: #323536;
}

.menu .line1 {
	top: 35%;
	width: 50%;
	transition: all ease-in-out 250ms;
	transform: translateY(-50%) scaleX(0.5);
}

.menu .line2 {
	top: 50%;
	width: 50%;
	transition: all ease-in-out 250ms;
	transform: translateY(-50%) scaleX(1);
}

.menu .line3 {
	top: 65%;
	width: 50%;
	transition: all ease-in-out 250ms;
	transform: translateY(-50%) scaleX(0.75);
}

.menu:hover .line1 {
	transform: scaleX(1);
}

.menu:hover .line3 {
	transform: scaleX(1);
}

/* The five section links. They sit behind the menu button until opened. */
.ss-menu {
	position: fixed;
	display: flex;
	justify-content: center;
	align-items: center;
	top: 5%;
	right: 5%;
	width: 50px;
	height: 50px;
	background-color: #323536;
	border: solid 2px #BDB199;
	border-radius: 50%;
	cursor: pointer;
	transition: all ease-in-out 100ms;
	opacity: 0;
	z-index: -1;
}

.ss-menu img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 20px;
	height: 20px;
	transition: all ease-in-out 100ms;
}

.ss-menu:hover img {
	transform: translate(-50%, -50%) scale(1.2);
}

.ss-menu:hover {
	background-color: #AA5321;
	transition: all ease-in-out 100ms;
}

/* Menu open: the three lines collapse into one */
.menu.active .line1 {
	top: 50%;
	width: 50%;
	transform: scaleX(1);
	transition: all ease-in-out 250ms;
	transition-delay: 25ms;
}

.menu.active .line2 {
	width: 50%;
	transform: scaleX(1);
	opacity: 0;
	transition: all ease-in-out 250ms;
}

.menu.active .line3 {
	top: 50%;
	width: 50%;
	transform: scaleX(1);
	transition: all ease-in-out 250ms;
	transition-delay: 25ms;
}

/* Menu open: the section links slide down one after another (classes added by js/mainFunctions.js) */
.visible1, .visible2, .visible3, .visible4, .visible5 {
	opacity: 1;
	transition: all ease-in-out 250ms;
	z-index: 1;
}

.visible1 {
	transform: translateY(75px);
	transition-delay: 25ms;
}

.visible2 {
	transform: translateY(150px);
	transition-delay: 50ms;
}

.visible3 {
	transform: translateY(225px);
	transition-delay: 100ms;
}

.visible4 {
	transform: translateY(300px);
	transition-delay: 125ms;
}

.visible5 {
	transform: translateY(375px);
	transition-delay: 150ms;
}

/* ------------------------------------------------------------------ sections and hero */

section {
	min-height: 80vh;
	padding: 50px 15% 50px 15%;
	background-color: #323536;
}

.separator {
	width: 20vw;
	height: 2px;
	margin-top: 30px;
	margin-bottom: 30px;
	background-color: #BDB199;
}

.mainView {
	position: relative;
	min-height: 100vh;
	max-height: 100vh;
	color: #efe1c6;
	background: transparent url("../img/hero-band.webp") 60% center / cover no-repeat;
}

/* The logo over the hero image (see .hero-logo near the end of this file) */
h1 {
	position: absolute;
	text-align: center;
	width: 100%;
	max-width: 700px;
	margin: 0;
	left: 50%;
	transform: translateX(-50%);
	bottom: 20%;
	line-height: 0;
	opacity: 0;
	animation: opacity 2s cubic-bezier(0.17, 0.67, 0.14, 0.97) both;
	animation-delay: 1s;
}

@keyframes opacity {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

h2 {
	font-family: "Amatic SC", cursive;
	font-size: 3rem;
	font-weight: 700;
	color: #BDB199;
}

/* The tagline under the hero logo */
h2#slogan {
	position: absolute;
	text-align: center;
	width: 80%;
	left: 50%;
	bottom: 10%;
	font-size: 7vh;
	font-weight: 700;
	color: #efe1c6;
	text-shadow: 0 2px 10px #323536;
	opacity: 0;
	transform: translateY(-45px);
	animation: slideY 2s cubic-bezier(0.17, 0.67, 0.14, 0.97) both;
	animation-delay: 1s;
}

@keyframes slideY {
	from {
		opacity: 0;
		transform: translateY(-45px) translateX(-50%);
	}
	to {
		opacity: 1;
		transform: translateY(0) translateX(-50%);
	}
}

p {
	color: #efe1c6;
	line-height: 30px;
	margin: 50px 0 50px 0;
}

/* Large centered text: the next show line, the quote, the contact text */
.hardLight {
	font-size: 3vh;
	line-height: 40px;
	font-weight: 900;
	text-align: center;
	width: 70%;
	margin: 70px auto 70px auto;
	color: #BDB199;
}

/* ------------------------------------------------------------------ band member cards */

.imgContent {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	align-items: center;
	margin: auto;
	width: 80%;
}

.imgContent .card {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.imgContent .card p {
	text-align: center;
	margin: 0;
}

/* Member name */
.imgContent .card p:first-of-type {
	font-family: "Amatic SC", cursive;
	font-weight: 700;
	font-size: 2.3rem;
	margin-bottom: 5px;
	color: #efe1c6;
}

.imgContent img {
	position: relative;
	height: auto;
	width: 100%;
	max-width: 250px;
	margin: 15px auto;
	border-radius: 15px;
}

/* Small uppercase links: "Show all dates" and "Watch more on YouTube" */
p.more-link {
	color: #BDB199;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 250ms cubic-bezier(0, 0.69, 0.46, 0.95);
}

p.more-link:hover {
	transform: translateX(5px);
}

/* ------------------------------------------------------------------ show list (rows built by js/shows.js) */

.date table {
	margin: 70px 0;
	width: 100%;
	border-spacing: 0;
}

.date table td {
	border-bottom: solid 1px #BDB199;
	color: #BDB199;
	padding-top: 10px;
	padding-bottom: 10px;
}

.date table td a {
	display: inline-block;
}

.date table td a:hover {
	transform: translateX(5px);
	transition: all 250ms cubic-bezier(0, 0.69, 0.46, 0.95);
}

/* Date column */
.date table td:first-of-type {
	color: #efe1c6;
}

/* Venue column */
.date table td:nth-of-type(even) {
	padding-left: 7px;
}

/* Venue name */
.date table span {
	color: #efe1c6;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

#next-show {
	color: #BDB199;
}

.ss-nextShow {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 30vh;
}

/* ------------------------------------------------------------------ contact and footer */

.contact p {
	text-align: center;
}

footer {
	background-color: #3A3E3F;
	min-height: 15vh;
	text-align: center;
	padding: 50px 0 50px 0;
}

footer p {
	margin: 10px 0 10px 0;
	color: #BDB199;
	letter-spacing: 0.2rem;
	font-weight: bolder;
}

footer .socialBanner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.footerBaner {
	display: flex;
	justify-content: center;
	align-items: center;
}

.footerBaner .bandBanner {
	margin-bottom: 15px;
	width: 100%;
	max-width: 100px;
}

/* ------------------------------------------------------------------ back-to-top arrow (shown by js/mainFunctions.js) */

/* Hidden with opacity (not display: none) so it can still receive keyboard focus */
#upArrow {
	position: fixed;
	bottom: 5%;
	right: 5%;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
}

#upArrow.shown,
#upArrow:focus-visible {
	opacity: 1;
	pointer-events: auto;
}

#upArrow img {
	display: block;
	width: 100%;
	height: 100%;
}

#upArrow:hover {
	animation: animeLogo ease-in-out 0.3s;
}

@keyframes animeLogo {
	0% {
		transform: scale(1);
	}
	10% {
		transform: scale(1.1);
	}
	100% {
		transform: scale(1);
	}
}

/* ------------------------------------------------------------------ fade-in on scroll (js/mainFunctions.js adds .showed) */

.animatableY {
	opacity: 0;
	transform: translate3d(0, 3vh, 0);
	transition: all ease-in-out 1s;
}

.animatableX {
	opacity: 0;
	transform: translate3d(-3vw, 0, 0);
	transition: all ease-in-out 1s;
}

.animatableOpacity {
	opacity: 0;
	transition: all ease-in-out 1s;
}

.showed {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	transition: all ease-in-out 1s;
}

/* ------------------------------------------------------------------ tablets and phones */

@media screen and (max-width: 1024px) {
	.menu:hover .line1 {
		transform: scaleX(0.5);
	}

	.menu:hover .line3 {
		transform: scaleX(0.75);
	}

	.menu.active .line3 {
		transform: scaleX(1);
	}
}

@media screen and (max-width: 767px) {
	h1 {
		width: 100%;
		bottom: 40%;
	}

	h2#slogan {
		width: 90%;
		font-size: 5vh;
		bottom: 20%;
	}

	section {
		padding: 50px 2% 50px 2%;
	}

	.hardLight {
		width: 100%;
	}

	p.more-link:hover {
		transform: none;
	}

	.date table td a:hover {
		transform: none;
	}

	#upArrow {
		width: 48px;
	}

	#upArrow:hover {
		animation: none;
	}

	.date table td:nth-of-type(even) {
		padding-left: 1px;
	}
}

/* Very small phones: smaller table text, and the time column is hidden */
@media all and (max-width: 320px) {
	table {
		font-size: 0.8rem;
	}

	table td:last-of-type {
		display: none;
	}

	.hardLight {
		font-size: 2vh;
	}
}

/* ------------------------------------------------------------------ video gallery (built by js/videos.js) */

#video-gallery {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 50px 0;
}

.video-gallery-inner {
	position: relative;
	width: 100%;
}

.video-scroller {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 10px;
	scrollbar-color: #BDB199 #323536;
	padding-bottom: 15px;
}

.video-scroller:focus-visible {
	outline: 2px solid #BDB199;
	outline-offset: 4px;
}

.video-list {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0 10px;
	list-style: none;
}

.video-item {
	flex: 0 0 min(80vw, 380px);
	scroll-snap-align: start;
}

.video-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 15px;
	overflow: hidden;
	background-color: #000;
}

.video-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* The thumbnail button that is swapped for the YouTube player when clicked */
.video-play {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.video-play:focus-visible {
	outline: 3px solid #BDB199;
	outline-offset: -3px;
}

.video-play img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform ease-in-out 250ms;
}

.video-play:hover img {
	transform: scale(1.05);
}

/* Round play button drawn over the thumbnail; ::after is the triangle */
.video-playicon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 50%;
	background-color: #efe1c6;
	transition: transform ease-in-out 250ms;
}

.video-playicon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -12px 0 0 -8px;
	border-style: solid;
	border-width: 12px 0 12px 20px;
	border-color: transparent transparent transparent #323536;
}

.video-play:hover .video-playicon {
	transform: scale(1.1);
}

.video-title {
	margin: 12px 0 0 0;
	color: #efe1c6;
	text-align: center;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* Previous/next arrows (desktop only) */
.video-arrow {
	position: absolute;
	top: calc(50% - 40px);
	z-index: 2;
	width: 44px;
	height: 44px;
	padding: 0 0 4px 0;
	border: 0;
	border-radius: 50%;
	background-color: #BDB199;
	color: #323536;
	font-size: 2rem;
	line-height: 44px;
	cursor: pointer;
	transition: transform ease-in-out 250ms;
}

.video-arrow:hover {
	transform: scale(1.1);
}

.video-arrow-prev {
	left: -22px;
}

.video-arrow-next {
	right: -22px;
}

@media screen and (max-width: 767px) {
	.video-arrow {
		display: none;
	}
}

/* ------------------------------------------------------------------ show list extras (built by js/shows.js) */

/* Notes and the "Event details" link under a venue */
.show-extra {
	display: inline-block;
	margin-top: 4px;
	font-size: 14px;
	line-height: 20px;
	color: #BDB199;
}

.date table td a.show-event-link {
	color: #ff9760;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 700;
}

/* The collapsed "Past shows" section */
.past-shows summary {
	margin-top: 20px;
	color: #BDB199;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
}

.past-shows summary:focus-visible {
	outline: 2px solid #ff9760;
	outline-offset: 4px;
}

/* ------------------------------------------------------------------ contact email link */

.email-link {
	color: #ff9760;
	font-weight: 400;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
	transition: color ease-in-out 250ms;
}

.email-link:hover,
.email-link:focus-visible {
	color: #efe1c6;
}

/* ------------------------------------------------------------------ quote and hero logo */

/* The quote in the band section */
.quote {
	font-family: "Amatic SC", cursive;
	font-size: 5.2vh;
	font-weight: 700;
	line-height: 1.2;
	color: #BDB199;
}

/* Fills the width up to the h1's max-width, and is never taller than half the screen */
.hero-logo {
	display: block;
	width: 100%;
	height: auto;
	max-height: 50vh;
	object-fit: contain;
	filter: drop-shadow(0 2px 10px #323536);
}

/* ------------------------------------------------------------------ keyboard focus on round buttons */

.menu:focus-visible,
.ss-menu:focus-visible,
#upArrow:focus-visible {
	outline: 3px solid #AA5321;
	outline-offset: 3px;
}
