@import url("/css/ribbon.css");

@font-face {
	font-family: "Dish Out";
	src: url("/fonts/Dish Out.otf");
}

:root {
	--happy-blue: #336699;
	--happy-yellow: #ffcc66;
	--happy-white: #ffffff;
	--happy-blue-dark: #003366;
	--happy-red: #ea3333;
	--happy-green: #13ae4b;
	--happy-lightgray: #d7d7d7;
	--happy-whitesmoke: whitesmoke;
	--happy-black: black;
	--pit-orange: darkorange;
	--pit-bronze: #150d05;
	--pit-gray: #333333;
}

body {
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	color: var(--happy-whitesmoke);
	height: 100%;
}

hr {
	width: 80%;
	margin: 0 auto;
	border-top: 4px solid var(--happy-whitesmoke);
	border-radius: 5px;
}

img {
	display: block;
	object-fit: contain;
	max-width: 100%;
}

.disabled {
	opacity: 0.7;
	pointer-events: none;
}

.socialsharing {
	display: inline-flex;
	justify-content: flex-start;
	align-items: flex-end;
	width: 100%;
	padding: 1em 0em 1em 0em;
}

.socialsharing > div {
	display: flex;
	flex-direction: row;
}

.socialsharing-a {
	text-align: right;
	padding: 0.7em;
	line-height: 0;
}

.socialsharing-svg {
	text-align: center;
	width: 24px;
	height: 24px;
	filter: invert(91%) sepia(99%) saturate(2555%) hue-rotate(310deg) brightness(105%) contrast(103%);
}

.no-shadow {
	box-shadow: none;
}

div.app {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.top-row {
	height: 3.5rem;
	display: flex;
	align-items: center;
}

.main {
	background-color: var(--happy-blue-dark);
	justify-content: flex-end;
	position: absolute;
	padding: 0;
	margin: 0;
	z-index: 0;
	width: auto;
	min-height: 100%;
	height: auto;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
}

.thumbnail-img {
	display: block;
	border-radius: 0.5em;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: top;
	box-shadow: unset;
	transition: 0.5s ease;
}

.thumbnail-img:hover {
	box-shadow: 0 0 15px var(--happy-yellow);
}

.thumbnail {
	position: relative;
	display: inline-block;
	width: 100%;
	overflow: visible;
	border-radius: 0.5em;
	min-width: 300px;
	max-width: 500px;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.caption {
	position: absolute;
	bottom: 0%;
	left: 5%;
	transform: translate(0%, -50%);
	text-align: left;
	color: var(--happy-yellow);
	font-size: 1.5em;
	pointer-events: none;
	text-shadow: 2px 2px 5px var(--happy-black);
}

.happy-icon-img {
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.happy {
	background-color: var(--happy-blue);
	color: var(--happy-white);
}

.happy-card {
	position: relative;
	border-radius: 10px;
	padding: 2rem;
	z-index: 1;
}

#about-card {
	background-color: var(--happy-blue-dark);
	padding: 2rem;
}

#about-card img {
	box-shadow: 10px 5px 5px var(--happy-yellow);
	flex-shrink: 1;
	max-width: 300px;
}

#about-card-text {
	align-self: center;
	min-width: 60%;
}

#about-card-text h3 {
	color: var(--happy-yellow);
	font-weight: bolder;
}

.happy-card-header {
	color: var(--happy-yellow);
}

#games-container,
#catalog-container {
	display: flex;
	flex-wrap: wrap;
	gap: 1em 1em;
	justify-content: center;
}

#catalog-container h3 {
	font-weight: bolder;
}

.pit-container {
	border-radius: 1rem;
	background-color: var(--pit-gray);
	display: flex;
	row-gap: 10px;
	column-gap: 30px;
	justify-content: center;
	align-items: center;
	padding: 2em;
	flex-wrap: wrap;
	margin-top: 2.5em;
	width: auto;
}

.pit-container-reverse {
	border-radius: 1rem;
	background-color: var(--pit-bronze);
	display: flex;
	row-gap: 10px;
	column-gap: 30px;
	justify-content: center;
	align-items: center;
	padding: 2em;
	flex-wrap: wrap;
	flex-direction: row-reverse;
	margin-top: 2.5em;
	width: auto;
}

.front-card {
	background-color: var(--happy-blue-dark);
}

.front-card h1,
.front-card p {
	font-weight: bolder;
}

.shadowed {
	box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}

.pit-descriptor {
	min-width: 30%;
	flex: 1;
}

.pit-header-main {
	color: var(--pit-orange);
	font-weight: bolder;
}

.pit-header-alt {
	color: var(--pit-orange);
	font-weight: bolder;
}

#pit-title {
	margin: 5%;
}

#pit-title h5 {
	color: var(--pit-orange);
	font-weight: bolder;
}

.happy-weave-texture {
	background:
		linear-gradient(
			135deg,
			var(--happy-blue) 21px,
			var(--happy-blue-dark) 22px,
			var(--happy-blue-dark) 24px,
			transparent 24px,
			transparent 67px,
			var(--happy-blue-dark) 67px,
			var(--happy-blue-dark) 69px,
			transparent 69px
		),
		linear-gradient(
			225deg,
			var(--happy-blue) 21px,
			var(--happy-blue-dark) 22px,
			var(--happy-blue-dark) 24px,
			transparent 24px,
			transparent 67px,
			var(--happy-blue-dark) 67px,
			var(--happy-blue-dark) 69px,
			transparent 69px
		) 0 64px,
		var(--happy-blue);
	background-size: 64px 128px;
	filter: brightness(30%);
	z-index: -3;
}

.flex-unit {
	display: flex;
	flex-wrap: wrap;
	gap: 3em;
}

.sidebar {
	background-color: var(--happy-blue-dark);
	z-index: 1;
}

.sidebar .top-row {
	background-color: var(--happy-blue-dark);
	height: auto;
	padding: 0.5em;
}

.sidebar .oi {
	width: 2rem;
	font-size: 1.1rem;
	vertical-align: text-top;
	top: -2px;
}

.nav-item {
	font-size: 0.9rem;
	padding-bottom: 0.5rem;
}

.nav-item:first-of-type {
	padding-top: 1rem;
}

.nav-item:last-of-type {
	padding-bottom: 1rem;
}

a, a:hover {
	color: var(--happy-yellow);
}

.nav-item a {
	color: var(--happy-lightgray);
	border-radius: 4px;
	height: 3rem;
	display: flex;
	align-items: center;
	line-height: 3rem;
}

.nav-item a.active {
	background-color: rgba(255, 255, 255, 0.25);
	color: var(--happy-white);
}

.nav-item a:hover {
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--happy-white);
}

.navbar-toggler {
	background-color: rgba(255, 255, 255, 0.1);
}

.pit-button {
	background-color: var(--pit-bronze);
	color: var(--happy-white);
	transition: all 0.2s ease-in-out;
	font-size: larger;
	padding: 1em;
	margin-top: 1rem;
}

.pit-button:hover {
	background-color: var(--pit-gray);
	color: var(--pit-orange);
	transition: all 0.4s ease-in-out;
}

.nimbys-img {
	max-width: 90%;
	max-height: 90%;
}

.display-table {
	border-collapse: separate;
	border-spacing: 5em;
}

@media (max-width: 767.98px) {
	hr {
		display: none;
	}

	.happy-icon-img {
		display: none;
	}

	.happy-card {
		padding: 0;
	}

	.happy-weave-texture {
		background: initial;
		background-color: var(--happy-blue);
		background-size: 64px 128px;
		transition: background-color 0.5s ease;
		transition: opacity 0.4s;
		z-index: -3;
		background-attachment: fixed;
	}
}

@media (min-width: 768px) {
	div.app {
		flex-direction: row;
		height: 100%;
	}

	.article {
		border-radius: 0px;
		font-size: larger;
		padding-top: 0.5em;
		padding-left: 15%;
		padding-right: 15%;
		padding-bottom: 0.5em;
		overflow: auto;
	}

	.sidebar {
		width: 250px;
		height: 100vh;
		position: sticky;
		top: 0;
	}

	.navbar-toggler {
		display: none;
	}

	.sidebar .collapse {
		/* Never collapse the sidebar for wide screens */
		display: block;
	}

	.front-card {
		max-width: 100%;
	}

	.thumbnail {
		min-width: 500px;
	}

	.flex-unit {
		flex-wrap: nowrap;
	}
}

.content {
	width: 100%;
	height: 100%;
	overflow-y: scroll;
	pointer-events: all;
}

#content {
	padding: 1.1rem;
}

#article-title {
	align-items: center;
	display: flex;
	gap: 1.5em;
}

#article-title h1 {
	font-weight: bolder;
	display: inline-block;
}

#article-header {
	padding-bottom: 2em;
}

#article-header img {
	height: 300px;
	width: 100%;
	object-fit: cover;
}

#article-description {
	border-style: solid;
	border-left: none;
	border-right: none;
	font-style: italic;
	font-weight: bolder;
	margin-bottom: 1em;
	padding: 1em;
}

.article-content {
	border-style: solid;
	border-left: none;
	border-right: none;
	border-color: var(--happy-yellow);
	padding-top: 1em;
	padding-bottom: 1em;
	margin-top: 1em;
	margin-bottom: 1em;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
	color: var(--happy-yellow);
}
