:root {
	--card-text-shadow:
		0 1px 2px rgba(0,0,0,.85),
		0 2px 6px rgba(0,0,0,.70),
		0 0 10px rgba(0,0,0,.55);

	--status-text-shadow:
		0 1px 2px rgba(0,0,0,.95),
		0 3px 8px rgba(0,0,0,.75),
		0 -1px 2px rgba(255,255,255,.55);
}

html,
body {
	padding: 0;
	margin: 0;
	height: 100%;
	scroll-behavior: smooth;
}

html {
	font-size: 100%;
}

*,
*::after,
*::before {
	box-sizing: border-box;
}

body {
	font-family: 'Lato', Calibri, Arial, sans-serif;
	color: #f2ede3;
	background: #333 url("../images/f8.jpg");
	font-size: 0.9em;
	font-weight: 300;
	-webkit-tap-highlight-color: transparent;
	-webkit-user-select: none;
	user-select: none;
}

a {
	color: #f0f0f0;
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 2px;
	padding: 0 5px;
	text-transform: uppercase;
	font-size: 80%;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.profiles-wrap {
	position: relative;
	min-height: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0;
	border: 1px solid grey;
	opacity: 0;
	animation: fadeIn 0.7s ease-out forwards;
	background: rgba(249, 232, 139, 0.10);
}

.profiles-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: minmax(0, calc(50vh - 3px));
	gap: 6px 12px;
	padding: 13px;
	width: 100%;
}

@media (min-width: 768px) {
	.profiles-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-auto-rows: minmax(0, calc(50vh - 6px));
		gap: 6px 12px;
	}
}

.profile-card-link {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	font-weight: inherit !important;
	font-size: inherit !important;
	color: inherit;
	text-decoration: none;
}

.profile-card-link * {
	text-transform: none;
	letter-spacing: normal;
}

.profile-card.bl-box {
	position: relative;
	width: 100%;
	height: 100%;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: center;
	text-align: center;
	padding: 1rem 1rem 0;
	color: #fff;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, #000 95%, rgba(0,0,0,0));
	mask-image: linear-gradient(to bottom, #000 95%, transparent);
	text-shadow: var(--card-text-shadow);
	background: #333 url("../images/b.jpg");
	border-top: 10px solid rgba(0,0,0,0.2);
}

.profile-card.bl-box .about-avatar {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.profile-card.bl-box .about-avatar:first-of-type {
	margin-bottom: 10px;
}

.profile-card.bl-box .about-avatar img {
	width: 160px;
	height: 160px;
	box-sizing: border-box;
	object-fit: cover;
	display: block;
	border: 10px solid grey;
	box-shadow: 0 3px 4px rgba(0,0,0,.37);
}

.profile-card.bl-box h2 {
	text-align: center;
	margin: 0;
	width: 100%;
	font-size: 1.8em;
	letter-spacing: 1px;
	font-weight: 800;
	text-transform: uppercase;
	white-space: normal;
	overflow: visible;
	overflow-wrap: anywhere;
	word-break: break-word;
	line-height: 1.15;
	padding: 6px 10px;
	color: #000;
	text-shadow: 0 0 6px #fff, 0 0 12px rgba(255,255,255,.7);
}

.status.online {
	color: #22c55e;
}

.status.offline {
	color: #ef4444;
}

.status.online,
.status.offline {
	font-weight: 700;
	font-size: 1.1rem;
	text-shadow: var(--status-text-shadow);
}

.profile-card.bl-box big {
	display: block;
}

.profile-card.bl-box .profile-header {
	width: 100%;
	max-width: 1000px;
	margin-top: 12px;
	padding-bottom: 10px;
	text-align: center;
	color: #fff;
	text-shadow: var(--card-text-shadow);
}

.load-more-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}

/* Prevent iPhone Safari auto-zoom on form controls */
input,
textarea,
select,
button {
	font-family: inherit;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
	font-size: 16px;
	line-height: 1.35;
}

input::placeholder,
textarea::placeholder {
	font-size: 16px;
}

textarea {
	-webkit-appearance: none;
	border-radius: 0;
}

@media screen and (max-width: 46.5em) {
	.profile-card.bl-box {
		font-size: 75%;
	}
}