@import url('https://fonts.googleapis.com/css2?family=Homemade+Apple&family=Pixelify+Sans:wght@400..700&display=swap');

* {
	box-sizing: border-box;
	scroll-behavior: smooth;
}

html {
	scroll-snap-type: y mandatory;
}

body {
	height: 100%;
	width: 100%;
	margin:0;
	background: #1b1b1b;
	color: #0d0d0d;
	font-family: "Pixelify Sans", sans-serif;
	--accent-heavy: #f9ce73;
	--accent-light: #c47838;
}

a {
    transition: all 100ms ease-in-out;
}

.baj {
	--accent-heavy: #f9ce73;
	--accent-light: #c47838;
	--portrait-url: url(img/portrait.png);
}

.fray {
	--accent-heavy: #ffab32;
	--accent-light: #617890;
	--portrait-url: url(img/fray/portrait.png);
}

.tin {
	--accent-heavy: #53e4c7;
	--accent-light: #755a75;
	--portrait-url: url(img/tin/portrait.png);
}

.ozzy {
	--accent-heavy: #e6c56d;
	--accent-light: #272727;
}

.alert {
	width: 95%;
	min-width: 450px;
	margin: auto;
	padding: 10px;
	display: flex;
	flex-direction: row;
	align-items: center;
	align-content: center;
	background-color: var(--accent-heavy);
	color: var(--accent-light);
	border: 5px solid var(--accent-light);
	border-radius:10px;
}

.alertpip {
	margin: auto 20px;
	padding-right: 10px;
	font-size: 2em;
	flex-shrink: 1;
}

.alertmobile {
	display: none;
	align-items: top;
	z-index:10;
	position: fixed;
	top: 16px;
	width: 90%;
	min-width: auto;
	margin: 0 5%;
	box-shadow: 0 0 50px 0 rgba(0, 0, 0, 0.5);
	filter: hue-rotate(-40deg) saturate(2) brightness(1.2);
	flex-wrap: wrap;
	flex-direction: column;
}

.alertbuttonholder {
	display: flex;
	flex-direction: row;
	width:100%;
	flex-basis: 100%;
}

.alertbutton {
	background-color: var(--accent-light);
	color: var(--accent-heavy);
	min-width: 20%;
	width: auto;
	padding:10px;
	margin:10px;
	cursor: pointer;
	text-decoration: none;
}

.heavyaccent {
	color: var(--accent-heavy);
}

.lightaccent {
	color: var(--accent-light);
}

hr {
	color: var(--accent-light);
	border-color: var(--accent-light);
}

.faded {
	color: #1e1e1e;
}

.smallfont {
	font-size:0.8em;
}

.readfont {
	font-size: 1.2em;
}

.largefont {
	font-size:1.5em;
}

.bgbox {
	background: #272727;
	padding: 8px;
}

.graphic {
	pointer-events: none;
}

.sheet {
	display: none;
}

.sheetflex {
	padding: 1% 10%;
	width: auto;
	height: 100vh;
	display: flex;
	flex-direction: row;
	color: #000;
	font-family: "Pixelify Sans", sans-serif;
	font-size: 14pt;
}

.refflex {
	padding: 2% 2% 2% 7%;
	width: 100%;
	height: 100vh;
	display: flex;
	flex-direction: column;
	color: #000;
	font-family: "Pixelify Sans", sans-serif;
	font-size: 14pt;
	scroll-snap-align: start;
}

.flex-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  align-content: stretch;
  gap: 8px;
}

.flex-row-spaced {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  align-content: stretch;
  gap: 8px;
}

.flex-stats-spaced {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  align-content: stretch;
  gap: 8px;
}

.flex-character {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  align-content: stretch;
  gap: 8px;
}

.flex-row-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  align-content: stretch;
  gap: 8px;
}

.flex-row-centered {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  align-content: stretch;
  gap: 8px;
}

.flex-column {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  align-items: stretch;
  align-content: stretch;
  gap: 8px;
  height: 100%;
}

.flex-column-center {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  align-content: stretch;
  gap: 8px;
}

.flex-column-stretch {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  align-content: stretch;
  gap: 8px;
  height: 100%;
}

.flex-grow {
  flex-grow: 1;
}

.height-margin {
	margin-top: 8px;
	margin-bottom: 8px;
}

.selection {
	position: fixed;
	top: 16px;
	left: 0;
	z-index: 5;
}

.sprite {
	overflow: visible;
	margin:8px 8px;
	height: 150px;
	width: 150px;
	z-index:2;
}

.sprite img {
	position: relative;
	top: -15px;
	left: -25px;
}

.portrait {
	height:100vh;
	width:35%;
	max-width: 20vw;
	margin-left: calc(57vw + 8px);
	overflow: hidden;
	position:sticky;
	bottom: 0;
	background-size: cover;
	background-position: center bottom;
	background-image: var(--portrait-url);
	z-index: 5;
}

.nameplate {
	font-size:20pt;
	padding: 24px 8px;
}

.nameplate b {
	font-family: "Homemade Apple", cursive;
	color: var(--accent-heavy);
}

.nameplate i {
	font-style: normal;
	color: var(--accent-light);
}

.stats {
	width:25%;
}

.sheetstats {
	scroll-snap-align: start;
}

.info, .plot {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	align-content: stretch;
	height:100%;
	scroll-snap-align: start;
}

.info {
	height: 100vh;
}

.variations {
	width: 80%;
}

.dottedline {
	border-bottom: 3px dotted #1e1e1e;
	margin-bottom: 4px;
	display: inline-block;
	width: 100%;
}

.paddingleft {
	padding-left:16px;
}

.centered {
	text-align: center;
	width:100%;
}

.selection ul {
	list-style-type: none;
	padding: 0;
}

.selection li {
	margin: 3px 0px;
	filter: brightness(0.7) saturate(0.5);
}

.selection li:hover {
	filter: brightness(0.85);
}

.selection li.active {
	filter: brightness(1) !important;
}

.selection li a {
	display: block;
	width: 100%;
	height: 100%;
	padding:7px;
	text-align:left;
	background-color: var(--accent-light);
	color: var(--accent-heavy);
	text-decoration: none;
	display: flex;
	flex-direction: row;
}

.selection li a i {
	padding:5px;
}

.linktext {
	display:block;
	padding:5px;
}

.sticky {
	position: sticky;
	top:0;
}

.scrollsection {
	scroll-snap-align: start;
	min-height: calc(100vh - 170px);
	height: auto;
	max-width: 80vw;
	scroll-margin-bottom: 200px;
}

.spacer {
	height:170px;
	width:100%;
	flex-shrink: 0;
}

.gallery {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-evenly;
	align-items: stretch;
	align-content: stretch;
	gap: 8px;
}

.gallery a {
	max-width: 50%;
}

.galthumb {
	max-height: 150px;
	max-width: 150px;
	height: auto;
	object-fit: cover;
	aspect-ratio: 1 / 1;
}

.refthumb {
	width: 100%;
	height: auto;
	border: 2px solid var(--accent-light);
	aspect-ratio: 1914 / 1394;
	object-fit: contain;
}

.refgal {
	width:auto;
	margin-bottom: 20px;
}

.refgal a {
	max-width:950px;
}

.refheader {
	background-color: var(--accent-light);
	border: 2px solid var(--accent-light);
	color: var(--accent-heavy);
}

.refholder {
	max-width: 950px;
	margin: auto;
}

.litlist {
	margin-top:20px;
}

.litlist a {
	cursor: pointer;
	font-size: 1.3em;
	color: var(--accent-light);
}

.lit {
	width:100%;
	height:100%;
	overflow: auto;
	background: rgba(0, 0, 0, 0.85);
	z-index:999;
	position: fixed;
	top:0;
	left:0;
	overscroll-behavior: none;
}

.litbody {
	width: 90%;
	max-width: 900px;
	margin: auto;
	padding: 20px 80px;
	background: #1b1b1b;
	font-family: "Cascadia Code", sans-serif;
	font-size: 1.2em;
	color: #e6e6e6;
	overscroll-behavior: none;
}

.litbody a {
	color: var(--accent-light);
}

.litclose {
	display: none;
	padding: 50px;
	font-size: 2em;
	position: fixed;
	top: 10px;
	right: 50px;
}

#tabcontainer {
	scroll-snap-type: y mandatory;
	height: 100%;
}

#scrollcontainer {
	scroll-snap-type: y mandatory;
}

#bajSheet {
	scroll-snap-type: y mandatory;
	max-width: 57%;
	margin-left: 10vw;
}

#header {
	padding-right: 33%;
	padding-left: 10%;
	z-index: 4;
	background: #1b1b1b;
	border-bottom: 8px solid #1b1b1b;
}

#gal {
	min-height:100vh;
}

#doc, #para, #filthy, #you {
	display: none;
}

@media screen and (max-width: 1200px) {
	.portrait {
		display: none;
	}
	.linktext {
		display: none;
	}
	.selection li a {
		padding: 5px;
	}
	#bajSheet {
		max-width: 100%;
	}
	.scrollsection {
		max-width: 87vw;
	}
	#header {
		padding-right:0;
	}
	.litclose {
		display: block;
	}
}

@media screen and (max-width: 825px) {
	.alert {
		min-width:1%;
	}
	.alertmobile {
		display: flex;
	}
	#header {
		display: none;
	}
	.spacer {
		height:10px;
	}
	.flex-stats-spaced {
		flex-direction: column;
	}
	.refflex {
		height: auto;
	}
	.variations {
		width: auto;
	}
	.selection li a {
		padding: 3px;
		font-size: 0.8em;
	}v
}