.user-avatar img {
	width: 40px;
}
.user-avatar {
	margin-left: 20px;
	border-radius: 50%;
	overflow: hidden;
	cursor: pointer;
}
ul.user-links {
    position: absolute;
    background: #fff;
    right: 0;
    top: 100%;
    z-index: 2;
    text-align: left;
    list-style: none;
    font-weight: normal;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: .25rem;
    padding-left: 0;
    box-shadow: 0 4px 12px 0 rgba(43, 43, 43, 0.1);
}
ul.user-links li {
    padding: 1rem;
    min-width: 220px;
    color: #2c3e50;
}
ul.user-links.hidden {
	display: none;
}
.user-links hr {
	margin: 0;
}
#mainNav .container {
	position: relative;
	padding: 0 10px;
}
.section {
	background-color: #29254f;
	border-radius: 10px;
	padding: 15px;
	margin-bottom: 30px;
	box-shadow: 2px 2px 5px 0 rgba(0,0,0,0.05);
}
.section-title {
	font-size: 1.3rem;
}
.page-title {
	margin-top: 5px;
	margin-bottom: 20px;
}
.profile-username {
	font-size: 20px;
	font-weight: bold;
	margin-top: 20px;
}
.user-page {
	background-color: #120e31;
	color: #b4b8bb;
}
.user-page .single-title {
	margin-top: 0;
	margin-bottom: 10px;
	padding-top: 25px;
	font-size: 1.5rem;
}
.user-page .section-title {
	font-weight: bold;
	margin-bottom: 15px;
}
.profile-bio {
	margin-top: 10px;
}
.profile-join {
	color: #d6793a;
	font-style: italic;
}
.progress-bar {
	background-color: #19bae0;
}
.level-badge {
	float: left;
	margin-right: 10px;
}
.profile-game-item {
	max-width: 80px;
	border-radius: 10px;
	overflow: hidden;
	margin-right: 15px;
}
.profile-gamelist-horizontal {
	position: relative;
}
.profile-gamelist-horizontal ul {
	overflow: hidden;
	white-space: nowrap;
	display: block;
	list-style: none;
	padding: 0;
	margin-bottom: 0;
}

.profile-gamelist-horizontal li {
	display: inline-block;
	text-align: center;
}

.profile-comment-item {
	position: relative;
	border: 1px solid #6f69a4;
	padding: 15px;
	border-radius: 10px;
	margin-top: 20px;
}

.comment-date {
	font-style: italic;
}

.btn-left {
	position: absolute;
	left: 0;
	background-color: #fff;
	border-radius: 50%;
	top: 14px;
	margin: 5px;
	box-shadow: 0 0 5px 0 rgba(0,0,0,0.3);
	z-index: 1;
}
.btn-right {
	position: absolute;
	right: 0;
	background-color: #fff;
	border-radius: 50%;
	top: 14px;
	margin: 5px;
	box-shadow: 0 0 5px 0 rgba(0,0,0,0.3);
	z-index: 1;
}
.label-xp {
	color: #d6793a;
	font-style: italic;
}
.delete-comment {
	position: absolute;
	right: 10px;
	bottom: 10px;
	cursor: pointer;
}
.input-hidden {
  position: absolute;
  left: -9999px;
}

input[type=radio]:checked + label>img {
  border: 1px solid #fff;
  box-shadow: 0 0 0 3px #14ca14;
}

.avatar-chooser .col-3 {
	padding-right: 5px;
	padding-left: 5px;
}

.avatar-chooser {
	margin-right: 0;
	margin-left: 0;
}
/* site overrides */
.site-logo {
	height: 44px;
	width: auto;
	padding: 0;
	display: block;
}

@media (max-width: 767.98px) {
	.site-logo { height: 34px; }
}

/* the theme prints its version number next to the copyright */
.dsb-panel { display: none !important; }

.footer h4,
.footer .widget-title {
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 10px;
}

.footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer li { margin: 5px 0; }

.footer a { color: rgba(255, 255, 255, 0.78); }

.footer a:hover { color: #fff; }

/* long-form content: game description and homepage text */
.single-description table,
.hp-bottom-container table {
	width: 100%;
	border-collapse: collapse;
	margin: 18px 0 24px;
	font-size: 15px;
}

.single-description th,
.single-description td,
.hp-bottom-container th,
.hp-bottom-container td {
	border: 1px solid rgba(127, 127, 127, 0.42);
	padding: 10px 12px;
	vertical-align: top;
}

.single-description thead th,
.hp-bottom-container thead th {
	background: rgba(127, 127, 127, 0.16);
	text-align: left;
	font-weight: 700;
}

.single-description tbody tr:nth-child(even) td,
.hp-bottom-container tbody tr:nth-child(even) td {
	background: rgba(127, 127, 127, 0.07);
}

.single-description h2,
.hp-bottom-container h2 {
	margin: 28px 0 12px;
	font-size: 1.5rem;
}

.single-description h3,
.hp-bottom-container h3 {
	margin: 22px 0 10px;
	font-size: 1.2rem;
}

.single-description ul,
.single-description ol,
.hp-bottom-container ul,
.hp-bottom-container ol {
	margin: 14px 0 18px;
	padding-left: 22px;
}

.single-description li,
.hp-bottom-container li {
	margin-bottom: 7px;
	line-height: 1.65;
}

.single-description p,
.hp-bottom-container p {
	line-height: 1.7;
}

.single-description img,
.hp-bottom-container img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}



/* long-form copy inherits the theme's 60% grey, which reads washed out
   next to the game grid. Headings go full white, body copy up to 84%. */
.hp-bottom-container {
	color: rgba(255, 255, 255, 0.84);
}
.hp-bottom-container h1,
.hp-bottom-container h2,
.hp-bottom-container h3,
.single-description h2,
.single-description h3 {
	color: #fff;
}

/* long-form links: the browser default blue fights the theme */
.single-description a,
.hp-bottom-container a,
.single-instructions a {
	color: #E84393;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.single-description a:hover,
.hp-bottom-container a:hover,
.single-instructions a:hover {
	color: #FD79A8;
	border-bottom-color: #E84393;
}

.hp-bottom-container {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 767.98px) {
	.single-description table,
	.hp-bottom-container table {
		display: table;
		width: 100% !important;
		table-layout: auto;
		white-space: normal;
	}

	.single-description th,
	.single-description td,
	.hp-bottom-container th,
	.hp-bottom-container td {
		white-space: normal;
		word-break: break-word;
		padding: 9px 10px;
		font-size: 14px;
	}
}

/* controls table lives in its own block on game pages */
.single-instructions table {
	width: 100%;
	border-collapse: collapse;
	margin: 14px 0 22px;
	font-size: 15px;
}

.single-instructions th,
.single-instructions td {
	border: 1px solid rgba(127, 127, 127, 0.42);
	padding: 10px 12px;
	vertical-align: top;
}

.single-instructions thead th {
	background: rgba(127, 127, 127, 0.16);
	text-align: left;
}

.single-instructions h2 {
	margin: 18px 0 10px;
	font-size: 1.25rem;
}

/* footer layout: one row of links, quieter copyright */
.footer {
	padding: 34px 0 18px;
}

.footer h4 {
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	margin-bottom: 14px;
	color: #fff;
}

.footer ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 24px;
	margin: 0;
	padding: 0;
}

.footer li {
	margin: 0;
	line-height: 1.4;
}

.footer a {
	font-size: 0.94rem;
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
}

.footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.copyright {
	font-size: 0.8rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.58);
	padding: 16px 0 20px;
}

.copyright p {
	margin: 0 0 4px;
}

.copyright p:last-child {
	margin-bottom: 0;
}

.copyright .foot-note {
	font-size: 0.74rem;
	color: rgba(255, 255, 255, 0.42);
}

@media (max-width: 575.98px) {
	.footer ul {
		gap: 8px 16px;
	}

	.footer a {
		font-size: 0.88rem;
	}
}

/* the footer is a three-column bootstrap row but only the first column has
   content; let the link list use the whole width so it sits on one line */
.footer .row {
	display: block;
}

.footer .col-lg-4 {
	width: 100%;
	max-width: 100%;
	flex: 0 0 100%;
	margin-bottom: 0 !important;
}

/* mobile header: a little breathing room, logo a touch larger, smaller burger */
@media (max-width: 991.98px) {
	.navbar {
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.site-logo {
		height: 40px;
	}

	.navbar-toggler {
		padding: 4px 8px;
		font-size: 1rem;
		line-height: 1;
	}

	.navbar-toggler-icon {
		width: 1.15em;
		height: 1.15em;
	}
}

/* grid tiles: show the whole thumbnail instead of clipping it */
.grid-layout .list-thumbnail {
	overflow: hidden;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.25);
}

img.small-thumb {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
}
