@font-face {
	font-family:'copy';
	font-style:normal;
	font-weight:normal;
	src:url('fonts/Inter_18pt-Regular.woff2') format('woff');
}
@font-face {
	font-family:'copy';
	font-style:italic;
	font-weight:normal;
	src:url('fonts/Inter_18pt-Italic.woff2') format('woff');
}
@font-face {
	font-family:'copy';
	font-style:normal;
	font-weight:bold;
	src:url('fonts/Inter_18pt-SemiBold.woff2') format('woff');
}
@font-face {
	font-family:'heading';
	src:url('fonts/Merriweather-Regular.woff') format('woff');
}
* {
	box-sizing:border-box;
	margin:0;
	padding:0;
}
html {
	scroll-behavior:smooth; /* class times link */
}
body {
	background:#201411 url('bg.jpg');
	color:#3d2f2c;
	font:15px/140% 'copy', sans-serif;
	/* consolidate font on all devices! */
	text-size-adjust:none;
	-moz-text-size-adjust:none;
	-webkit-text-size-adjust:none;	
}
main {
	background:radial-gradient(transparent,#291612), url('bg2-.jpg') center / cover fixed;
	border:8px solid #1a0e0e;
	border-radius:20px;
	width:916px; /* 900px + 8*2 */
}
p {
	margin-bottom:0.75rem;
}

/* links */

a, button {
	background:none; /* button */
	border:none; /* button */
	color:#51b8c7; /* #49abc1 or cadetblue */
	outline:none; /* button */
	text-decoration:none;
	transition:all 1s ease;
}
a:hover {
	color:#51b8c7; /* teal */
	filter:sepia(85%);
}
button:hover, button.on, ol li:hover {
	color:azure;
	cursor:pointer;
	text-shadow:0 0 25px rgba(255,200,100,0.5); /* umber tint */
}
#lightbox button:hover, ol li:hover {
	transform:scale(1.1);
}

/* content */

header, footer {
	align-items:center;
	clear:both; /* footer */
	display:flex;
	justify-content:center;
}
header button, footer button, #burger button {
	font:1.2rem/100% 'heading', serif;
	padding:2.25rem 1.15rem;
}
footer button {
	font-size:1.15rem;
} 
header img {
	height:4rem;
	margin:1.35rem 0;
	min-height:95px;
	width:auto; /* hostinger */
}
.tab { /* none script */
	background:#f9f6f1; /* beige */
	box-shadow:inset 0 0 5em rgba(227,222,202,0.8); /* original design */
	height:335px;
	overflow-y:scroll; /* scroll blurs font WITH animation */
	padding:1.5rem 2rem;
	position:relative; /* video + classes */
	width:550px;
}
::-webkit-scrollbar { width:10px; }
::-webkit-scrollbar-track { background:#f9f6f1; /* beige */ box-shadow:inset 1px 1px 7px rgba(50,0,0,0.4); }
::-webkit-scrollbar-thumb { background:#51b8c7; /* teal */ }
::-webkit-scrollbar-thumb:hover { background:#348698; /* dark teal */ }

/* details */

h1 {
	font:1.35rem/1.5rem 'heading', serif;
	padding-bottom:1rem;
}
h1 + h3 {
	margin-top:-0.75rem;
}
h3 {
	align-items:center;
	display:grid;
	gap:7px;
	grid-template-columns:1fr auto 1fr;
	/* ^ lines */
	padding:0.75rem 0;
}
h3:before, h3:after {
	background:rgba(50,0,0,0.1);
	content:'';
	height:1px;
}
h4 { /* testimonials */
    font-size:80%;
	margin-bottom:0.75rem;
	text-align:center;
}
ul { /* classes, affiliates, Patti's testimonial */
	list-style-type:circle;
	margin:0 0 0.75rem 32px;
}
address { /* FAQs */
    display:inline;
    font:inherit;
}

/* classes */

.info {
	padding-right:1rem;
	float:left;
}
.classtimes {
	margin-bottom:1.5rem;
}
.classtimes time {
	display:inline-block;
	width:calc((100% / 3) - 1%);
}
.register, .riders { /* button to contact form */
	background:#51b8c7; /* teal */
	border-radius:10px;
	color:#3d2f2c;
	display:block;
	font:inherit;
	font-weight:bold;
	margin:1.5rem auto 2.5rem auto;
	padding:0.75rem 2rem;
	text-align:center;
}
.register:hover, .register.on, form button:hover {
	color:#3d2f2c;
	filter:brightness(115%) grayscale(0.1);
}
.riders {
	position:absolute;
	right:0.5rem;
	top:0;
}

/* carousel */

.carousel {
	background:#f9f6f1; /* beige */
	float:left;
	height:335px;
	overflow:hidden;
	position:relative;
	width:350px;
}
.carousel img {
	display:block; /* bug fix */
	height:100%; /* maintain aspect ratio */
	width:auto;
}
.carousel .left { right:25%; }
.carousel .right { right:65%; }
.aster { /* none script */
	animation:go 10s ease-in-out infinite;
}
@keyframes go {
	0%  { opacity:0; }
	25% { opacity:1; }
}

/* photos */

ol {
	display:grid;
	gap:1rem;
	grid-template-columns:repeat(7,1fr);
	grid-template-rows:repeat(3,1fr);
}
ol li {
	border-radius:5px;
	height:50px;
	overflow:hidden;
	transition:all 0.3s ease;
}
ol img {
	height:auto;
	width:150%;
}
#lightbox, #lightbox button {
	position:fixed;
	right:0;
	top:0;
}
#lightbox { /* none script */
	background:rgba(0,0,0,0.8);
	height:100vh;
	overflow:hidden;
	width:100vw;
}
#lightbox button {
	font:bold 3rem/3.25rem sans-serif;
	min-width:35px;
	width:5%; /* back */
	user-select:none; /* no highlighting */
}
.yay img {
	border-radius:7px;
	display:block; /* bug fix */
	max-height:80vh;
	max-width:80vw;
}
.yay:after { /* image captions */
	color:#fff;
	content:attr(data-i);
	display:block;
	font:0.8rem/2.5rem 'heading', serif;
	text-align:center;
}
.back, .next { height:100vh; }
.back { left:0; }

/* REPEATS = under .rise and under none/block scripts */

main, .carousel img, .yay {
	position:absolute;
	right:50%;
	top:50%;
	transform:translate(50%,-50%);
}
h3, #classes a {
	font:inherit;
	font-weight:bold;
}
.tab, .aster, #lightbox, #burger, #easy, .oak {
	display:none; /* script */
}
.on { /* show landing page, goes after .tab */
	display:inline-block; /* inline for buttons inside tabs */
}
.register, ol li, form button {
	box-shadow:1px 1px 2px rgba(50,0,0,0.4);
}

/* video */

#video, video {
	overflow:hidden;
	position:absolute;
	width:100%;
	z-index:3;
}
video {
	background:#1a0e0e;
	height:100%;
	left:0;
	top:0;
}

/* social media */

.social {
	position:absolute;
	text-align:center;
	width:100%;
}
.social a img {
	height:1.25rem;
	margin:1rem 0.25rem 0.25rem 0.25rem;
	opacity:0.5;
	width:auto;
}
.social a img:hover {
	opacity:0.9;
}


/* mobiles, laptops, minimized desktops */
@media only screen and (max-width:916px) {
	body {
		background:none;
	}
	main { 
		border:0;
		border-radius:0;
		margin:0;
		min-height:100vh;
		position:static;
		transform:none;
		width:auto;
	}
	header, footer, .carousel, #burger {
		display:none; /* script for #burger */
	}
	#easy { /* holds burger */
		background:url('logo.png') 32px center / 95px auto no-repeat;
		display:block; /* script */
		font:50px/140px sans-serif;
		text-align:right;
		width:100%;
	}
	#burger {
		background:#f9f6f1; /* beige */
		box-shadow:inset 0 0 50px rgba(255,255,255,0.2), 0 0 15px rgba(50,0,0,0.8); /* same */
		border-radius:20px;
		margin:1.75rem;
		padding:0.5rem 0;
		position:absolute;
		top:0;
		z-index:7;
	}
	#burger button {
		padding:0.3rem 0;
		width:100%;
	}
	#burger button.on, #burger button:hover {
		background:#51b8c7; /* teal */
	}
	.tab {
		height:auto;
		min-height:calc(100vh - 140px - 1.25rem); /* height + #easy + social */
		overflow:visible;
		width:100%;
	}
	#video, .social {
		position:relative;
	}
	video {
		height:calc(100vh - 140px);
	}
	.tab:before { /* combine class and id = #content.myClass */
		content:'';
		display:block;
		height:335px;
		margin:-1.5rem -2rem 1.5rem -2rem;
		width:calc(100% + 4rem);
	}
	#about.tab:before { background:url('photos/tomliz.jpg') center / cover; }
	#classes.tab:before { background:url('photos/Lydia-GreenJump.jpg') center / cover; }
	#events.tab:before { background:url('photos/debrio.jpg') center / cover; }
	#testimonials.tab:before { background:url('photos/rioseye.jpg') center / cover; }
	#location.tab:before { background:url('photos/sunrise.jpg') center / cover; }
	#setsusapart.tab:before { background:url('photos/rachel&walter.jpg') center / cover; }
	#FAQs.tab:before { background:url('photos/tbird3.jpg') center / cover; }
	#affiliates.tab:before { background:url('photos/shadow.jpg') center / cover; }
	#showing.tab:before { background:url('photos/Red.jpg') center / cover; }
	#photos.tab:before { background:url('photos/FinalsChampions.jpg') center / cover; }
	#contact.tab:before { background:url('photos/billrun.jpg') center / cover; }
}

@media only screen and (max-width:549px) { /* must be .tab width: under 550px */
	.classtimes { column-count:2; }
	.classtimes h3 { column-span:all; }
	.classtimes time { width:100%; }
	ol {
		grid-template-columns:repeat(4,1fr);
		grid-template-rows:repeat(5,1fr);
	}
}


/* desktops */
@media only screen and (min-width:1200px) {
	body      { font:18px/140% 'copy', sans-serif; }
	main      { width:1151px; } /* 435px + 700px + 8*2 */
	.carousel { height:400px; width:435px; } /* 335px x 350px */
	.tab      { height:400px; width:700px; } /* 335px x 550px */
}


/* print view */

@media print { 
	body {
		background:none;
		box-shadow:none;
		color:#000;
	}
	main {
		border:0;
		left:0;
		position:static;
		top:0;
		transform:none;
		width:100%;
	}
	footer, .carousel, .social {
		display:none;
	}
	.tab {
		box-shadow:none;
		overflow:visible;
		width:100%;
	}
}