body {
	font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 100%;
	font-weight: bold;
	margin: 0;
	background-color: black;
}

.container {
	height: 100%;
	margin: 0 auto;
	max-width: 70em;
	background-color: #222;
	border-radius: 10px;
}

#header {
	position: relative;
	background-color: #222;
	background-image: url(../img/header_image_team-1536x285.webp);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	border-radius: 10px;
	text-align: center;
	aspect-ratio: 1536 / 285;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

#header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.55) 0%,
		rgba(0, 0, 0, 0.25) 45%,
		transparent 75%
	);
}

#header .title {
	position: relative;
	z-index: 1;
}

#coaches {
	color: #eee;
	text-align: center;
	font-size: 0.8em;
	font-weight: normal;
	/* padding: 8px 12px 8px 12px; */
	border-radius: 8px;
}

#header .title {
	display: block;
	width: 100%;
	margin-top: auto;
	font-family: Firecrackers;
	font-size: clamp(2rem, 7.5vw, 4rem);
	line-height: 1;
	letter-spacing: 0.07em;
	white-space: nowrap;
	color: #df2828;
	-webkit-text-stroke: clamp(1px, 0.4vw, 4px) white;
	paint-order: stroke fill;
}

#header .subtitle {
	font-size: 0.86em;
}

#header a {
	text-decoration: none;
	color: inherit;
}

.content {
	width: 100%;
	margin: 0 auto;
	text-align: center;
	padding-top: 0.75em;
	padding-bottom: 0.75em;
}

.playerbox {
	margin: 10px;
	border: 1px black solid;
	display: inline-block;
	word-wrap: break-word;
	min-width: 220px;
	border-radius: 10px;
	padding: 6px;
	position: relative;
	background-color: #eee;
	box-shadow: 6px 6px 16px black;
}

.playerbox img {
	border-radius: 10px;
	border: 1px black solid;
}

.linkspan {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 1;
}

.pb1 {
	display: flex;
	align-items: center;
}

.pbnum {
	font-size: 3.5em;
	padding-left: 0.3em;
}

.pb2 {
	padding-top: 2px;
}

.pbname {
	font-size: 1.5em;
}

.playerpage {
	margin: 10px;
	border: 1px black solid;
	display: inline-block;
	word-wrap: break-word;
	min-width: 80%;
	max-width: 100%;
	border-radius: 10px;
	padding: 6px;
	position: relative;
	background-color: #eee;
	box-shadow: 6px 6px 16px black;
}

.playerpage .playerphoto {
	border-radius: 10px;
	border: 1px black solid;
	width: 100px;
}

.playerpage img.icon {
	padding: 4px;
	padding-right: 6px;
	vertical-align: middle;
	height: 34px;
}

table.playerinfo {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	font-weight: bold;
	font-size: medium;
}

.playerinfo td {
	font-size: 1em;
	padding: 4px;
	background-color: white;
	text-align: center;
}

.playerinfo td.tlabel {
	color: white;
	background-color: #444;
	text-align: right;
}

.playerlinks {
	margin-top: 1em;
	width: 100%;
	font-size: 1em;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25em 1em;
	justify-content: center;
}

.plink {
	display: inline-block;
	width: auto;
	flex: 0 0 auto;
	white-space: nowrap;
}

.plink a {
	overflow-wrap: normal;
	word-wrap: normal;
}

.contactpage {
	margin: 10px;
	border: 1px black solid;
	display: inline-block;
	word-wrap: break-word;
	min-width: 80%;
	max-width: 100%;
	border-radius: 10px;
	padding: 6px;
	position: relative;
	background-color: #eee;
	box-shadow: 6px 6px 16px black;
}

.contactpage td {
	font-size: 1.1em;
}

/* Previous/next player navigation (player pages only).
   On desktop these are the only way to move between players; on touch
   devices they are hidden and the page is navigated by swiping. */
.pnav {
	margin: 10px;
	padding: 0.6em 0.9em;
	border: 1px black solid;
	border-radius: 10px;
	background-color: #eee;
	box-shadow: 6px 6px 16px black;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em 1em;
	font-size: 0.95em;
}

.pnav a {
	text-decoration: none;
	color: #222;
}

.pnav a:hover,
.pnav a:focus-visible {
	color: #df2828;
}

.pnav-next {
	margin-left: auto;
	text-align: right;
}

/* Touch devices navigate by swiping, so the links are not needed there. */
@media (hover: none) and (pointer: coarse) {
	.pnav {
		display: none;
	}
}

/* Contact page: keep the card and its table within narrow (portrait) viewports.
   The card is sized with border-box so its padding/border/margin don't add to
   the width, and the table uses a fixed layout so a long email address wraps
   instead of pushing the row past the edge of the screen. */
.contactpage {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	margin: 10px 0;
}

.contactpage .playerinfo {
	table-layout: fixed;
	width: 100%;
}

.contactpage .playerinfo td {
	overflow-wrap: anywhere;
}

.contactpage .playerinfo td.tlabel {
	width: 30%;
	white-space: nowrap;
}

/* Small phones: give the label column more room so longer labels still fit. */
@media only screen and (max-width: 30em) {
	.contactpage .playerinfo td.tlabel {
		width: 36%;
	}

	.contactpage .playerinfo td {
		font-size: 0.95em;
	}
}

/* Keep the desktop label width used by the .playerinfo rules above.
   On desktop the contact card is capped so it doesn't stretch across the
   whole 70em container; .content centers it (text-align: center). */
@media only screen and (min-width: 54em) {
	.contactpage {
		max-width: 34em;
	}

	.contactpage .playerinfo td.tlabel {
		width: 33%;
		padding-right: 1.5em;
	}
}

/* Main navigation.
   A sticky bar under the header, so the menu is always reachable no
   matter how far down a long page (roster, player bios) the user scrolls.
   The home page doubles as the roster, so there is no separate Roster
   entry. Player pages are not in the menu, so no item is highlighted. */
#nav {
	position: sticky;
	top: 0;
	z-index: 20;
	background-color: #1a1a1a;
	border-bottom: 3px solid #df2828;
}

#nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.25em;
}

#nav a {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.85em 1em;
	color: #eee;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.9em;
}

#nav a:hover,
#nav a:focus-visible {
	color: #df2828;
}

#nav a.active {
	color: #df2828;
	box-shadow: inset 0 -3px 0 #df2828;
}

/* The social icons are black PNGs, so invert them for the dark bar. */
#nav .nav-icon {
	height: 22px;
	width: 22px;
	vertical-align: middle;
	filter: invert(1);
}

#footer {
	padding: 1.5em;
	background-color: #222;
	color: #ccc;
	text-align: center;
}

#footer p {
	margin: 0.35em 0;
}

#footer .copyright {
	font-size: 0.9em;
}

/* The "Powered by" credit is secondary to the site content. */
#footer .credit {
	font-size: 0.85em;
}

a {
  overflow-wrap: break-word;
  word-wrap: break-word;
  text-decoration: underline;
}

#footer a:link {
  color: #fff;
}

#footer a:visited {
    color: #ccc;
}

#footer a:hover {
  color: #f66;
}

#footer .credit a:link,
#footer .credit a:visited {
	color: #999;
}


@media only screen and (min-width: 34em) {
	.playerpage {
		font-size: 1.3em;
		min-width: 50%;
	}
	.playerpage .playerphoto {
		width: 180px;
	}
	.playerpage .pbnum {
		font-size: 5em;
	}
}


@media only screen and (min-width: 54em) {
	.playerpage {
		font-size: 1.5em;
		min-width: 50%;
	}

	.playerpage .playerphoto {
		width: 200px;
	}

	.playerpage .pbnum {
		font-size: 5em;
	}

	.playerpage td {
		font-size: 1.1em;
	}

	.playerpage .plink {
		font-size: 0.8em;
	}

	.playerinfo td.tlabel {
		width: 33%;
		padding-right: 1.5em;
	}

	#coaches {
		font-size: 1em;
	}
}

/* For small phones */
@media only screen and (max-width: 360px) {

	.playerbox {
		min-width: 200px;
	}
}

/* For the stupid Galaxy Fold */
@media only screen and (max-width: 360px) {
	body {
		font-size: 72%;
	}
}

/* Small phones: shrink the nav social icons so the menu stays compact.
   This must come after the base #nav rules, since media queries add no
   specificity and equal-specificity rules are decided by source order. */
@media only screen and (max-width: 30em) {
	#nav .nav-icon {
		height: 16px;
		width: 16px;
	}
}

@font-face {
	font-family: "Firecrackers";
	src: url("fonts/circus-of-innocents.tff") format("truetype");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}
