@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap");
@font-face {
	font-family: "Freebooter";
	src: url("/fonts/FB.woff") format("woff");
}

:root {
	--main-width: 1880px;
	--leaderboards-brick-width: 640px;
	--rules-brick-width: 460px;
	--nightmare-brick-width: 460px;
	--live-brick-width: 460px;
	--offline-brick-width: 360px;
	--masonry-gap: 1rem;
	--masonry-gap-infopage: 2rem;
}

*,
*:before,
*:after {
	box-sizing: inherit;
	margin: 0;
}

html {
	box-sizing: border-box;
	background: #0e0d0f;
	scrollbar-width: none;
}

body {
	min-height: 100svh;
	background: linear-gradient(rgba(70, 60, 85, 1), rgba(70, 60, 85, 0.7)), url(/images/background.jpg) right 50%;
	background-position: top center;
	background-attachment: fixed;
	background-size: cover;
	background-blend-mode: overlay;
	user-select: none;
	color: #fff;
	font-family: "Lato", sans-serif;
	text-shadow: 1px 1px 1px #000;
	-ms-overflow-style: none;
	margin-bottom: -16px;
}

body::-webkit-scrollbar {
	width: 0 !important;
}

h1,
h2 {
	font-size: 2rem;
	text-transform: uppercase;
	margin: 0 0 1rem;
	letter-spacing: 1px;
}

h2 {
	font-size: 1.5rem;
}

/* HEADER START */

header {
	width: 100vw;
	height: 6em;
	position: relative;
	margin-bottom: 2rem;
}

h1.info-header {
	max-width: var(--main-width);
	display: block;
	margin: 0 auto 2rem auto;
}

.bottom-margin {
	margin-bottom: 30px;
}

.header-slogan {
	position: absolute;
	left: 1rem;
	bottom: 3em;
	font-family: "Freebooter";
	font-size: 2em;
	color: #ddd;
	z-index: 5;
}

.header-nav {
	position: absolute;
	right: 1rem;
	bottom: 3em;
	display: flex;
	align-items: center;
	gap: 2em;
	z-index: 75;
}

.navbar-link {
	text-transform: uppercase;
	font-weight: 700;
	text-indent: 1.6em;
	color: #8f8899;
	font-size: 1em;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0.5em;
	text-shadow: none;
}

.navbar-link:hover {
	color: #ccc;
}

.icon-rules {
	background: url(/images/icons/temp/rules.webp) no-repeat;
	background-position: left center;
	background-size: contain;
}

.icon-leaderboard {
	background: url(/images/icons/temp/crown.webp) no-repeat;
	background-size: contain;
}

.header-logo {
	position: relative;
	display: block;
	margin: 0 auto;
	height: 6em;
	z-index: 70;
	text-align: center;
}

.header-logo img {
	margin-top: 0.4rem;
	display: inline-block;
	max-height: 100%;
	filter: drop-shadow(0 0 4px #111);
}

.header-bg-bottom,
.header-bg-top {
	position: absolute;
	left: 0px;
	width: 100%;
}

.header-bg-bottom {
	bottom: 1.5em;
	height: 5em;
	background-color: rgba(47, 44, 58, 1);
	background-size: contain;
	-webkit-mask-image: url(/images/navbar/bg2.svg);
	mask-image: url(/images/navbar/bg2.svg);
	-webkit-mask-size: contain;
	mask-size: contain;
	z-index: 55;
}

.header-bg-top {
	bottom: 0.5em;
	height: 5em;
	background: linear-gradient(rgba(25, 21, 28, 1), rgba(19, 15, 20, 1));
	transform: scaleX(-1);
	-webkit-mask-image: url(/images/navbar/bg2.svg);
	mask-image: url(/images/navbar/bg2.svg);
	-webkit-mask-size: contain;
	mask-size: contain;
	z-index: 56;
}

.top-highlight {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 10em;
	background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
	background-blend-mode: overlay;
	z-index: 2;
}

/* HEADER END */

/* START MASONRY */
.masonry.masonry-rules {
	--masonry-brick-width: var(--rules-brick-width);
}

.masonry.masonry-leaderboards {
	--masonry-brick-width: var(--leaderboards-brick-width);
}

.masonry.masonry-nightmare {
	--masonry-brick-width: var(--nightmare-brick-width);
}

.masonry.masonry-live {
	--masonry-brick-width: var(--live-brick-width);
}

.masonry.masonry-offline {
	--masonry-brick-width: var(--offline-brick-width);
}

.masonry.info {
	column-gap: var(--masonry-gap-infopage);
}

.masonry {
	column-gap: var(--masonry-gap);
	column-fill: initial;
	column-width: var(--masonry-brick-width);
}

.masonry.info > * {
	break-inside: avoid;
	margin-bottom: var(--masonry-gap-infopage);
}

.masonry > * {
	break-inside: avoid;
	margin-bottom: var(--masonry-gap);
}

@supports (grid-template-rows: masonry) {
	.masonry {
		display: grid;
		gap: var(--masonry-gap);
		grid-template-rows: masonry;
		grid-template-columns: repeat(auto-fill, minmax(var(--masonry-brick-width), 1fr));
		align-tracks: stretch;
	}

	.masonry > * {
		margin-bottom: initial;
	}
}

.masonry .brick {
	position: relative;
	top: 0;
}

/* END MASONRY */

/* DARK OVERLAYS START */

#HistoryOverlay {
	z-index: 7;
}

#InfopageOverlay {
	z-index: 50;
}

.dark-overlay,
.dark-overlay-light {
	position: fixed;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	display: none;
}

.dark-overlay {
	background: rgba(0, 0, 0, 0.9);
}

.dark-overlay-light {
	background: rgba(0, 0, 0, 0.4);
}

/* DARK OVERLAYS END */

/* CONTENT PAGES START */

#ContentWrapper {
	position: relative;
	max-width: var(--main-width);
	margin: 0 auto;
	padding: 0 2rem;
}

#LeaderboardsContent,
#RulesContent {
	display: none;
	margin-top: -20px;
	padding-top: 20px;
}

#RulesContent,
#LeaderboardsContent {
	position: relative;
	z-index: 60;
}

#Rules h3 {
	color: #da3c3b;
}

#Leaderboards h3 {
	color: #aa8f53;
}

article#Leaderboards,
article#Rules {
	margin-top: 0;
	opacity: 1;
	transition: 0.5s ease-in-out all;
}

article {
	max-width: var(--main-width);
	margin: 0 auto;
	padding-bottom: 3rem;
	opacity: 0;
	margin-top: -40px;
}

.info-content h3 {
	margin-bottom: 0.5rem;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.content-upper {
	position: relative;
	width: 100%;
}

.content-top-right {
	position: absolute;
	right: 0px;
	top: 0px;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 3rem;
}

.text-input {
	padding: 0.5rem 0.7rem;
	background: #8b8896;
	font-size: 1.2rem;
	border: 0;
	width: 180px;
	border-radius: 5px;
	outline: none;
}

.text-input:active {
	outline: none;
}

.text-input::placeholder {
	color: #444;
}

.highlight {
	/*background: rgba(218, 60, 59, 0.5);*/
	/*color: rgba(218, 60, 59, 0.7);*/
	color: #f1a622;
	transition: 0.25s ease-in-out all;
}

.content-close {
	width: 3.2em;
	height: 3.2em;
	background: rgba(47, 44, 58, 1) url(/images/icons/close.webp) no-repeat;
	background-position: center;
	background-size: 35%;
	cursor: pointer;
	border-radius: 50%;
}

.content-close:hover {
	background: rgba(74, 70, 90, 0.9) url(/images/icons/close.webp) no-repeat;
	background-position: center;
	background-size: 35%;
}

/* CONTENT PAGES END */

/* RULES START */

.rules-container {
	width: 100%;
	text-shadow: none;
	border-style: solid;
	border-width: 1px;
	-moz-border-image: url(/images/borders/temp/border-rules.webp) 1 1 1 1 stretch stretch;
	-webkit-border-image: url(/images/borders/temp/border-rules.webp) 1 1 1 1 stretch stretch;
	-o-border-image: url(/images/borders/temp/border-rules.webp) 1 1 1 1 stretch stretch;
	border-image: url(/images/borders/temp/border-rules.webp) 1 1 1 1 stretch stretch;
	background: rgba(47, 44, 58, 0.35);
	padding: 1.2rem;
	user-select: text !important;
}

.rules-container ul {
	margin: 0;
	padding: 0 0 0 1.5rem;
	font-size: 1.1em;
	line-height: 1.4em;
	color: #ccc;
	list-style-type: square;
	list-style: none;
}

.rules-container ul li::before {
	content: "•";
	color: #da3c3b;
	display: inline-block;
	width: 1em;
	margin-left: -1.1rem;
}

.rules-container ul li:not(:last-child) {
	margin-bottom: 1rem;
}

/* RULES END */

/* LEADERBOARDS START */

.leaderboard-wrapper {
	width: 100%;
}

.leaderboard-container {
	width: 100%;
	text-shadow: none;
	border-style: solid;
	border-width: 1px;
	-moz-border-image: url(/images/borders/border-leaderboard.webp) 1 1 1 1 stretch stretch;
	-webkit-border-image: url(/images/borders/border-leaderboard.webp) 1 1 1 1 stretch stretch;
	-o-border-image: url(/images/borders/border-leaderboard.webp) 1 1 1 1 stretch stretch;
	border-image: url(/images/borders/border-leaderboard.webp) 1 1 1 1 stretch stretch;
}

.leaderboard-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	width: 100%;
	/*padding: 1rem 0;*/
	min-height: 70px;
	gap: 1rem;
	position: relative;
}

.leaderboard-row.even {
	background: rgba(48, 44, 59, 0.5);
}

.leaderboard-row.odd {
	background: rgba(48, 44, 59, 0.35);
}

.lb-left {
	display: flex;
	flex-direction: row;
}

.lb-position {
	display: flex;
	width: 54px;
	font-size: 1.3em;
	padding-left: 1rem;
	justify-content: left;
	align-items: center;
}

.lb-solo {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.lb-image {
	display: flex;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
}

.lb-image img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.lb-name-and-date {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.15rem;
}

.lb-name {
	display: flex;
	flex-wrap: wrap;
	font-size: 1.05em;
	font-weight: 700;
}

.lb-name.completed {
	font-size: 1.05em;
}

.lb-date {
	font-size: 0.8em;
	color: #aaa;
}

.in-progress,
.is-live {
	padding: 3px 3px 4px 3px;
	border-radius: 3px;
	font-weight: 700;
	font-size: 0.65rem;
	letter-spacing: 1px;
	text-shadow: none;
	color: #fff;
	text-align: center;
	text-transform: uppercase;
	margin-top: 2px;
}

.in-progress {
	background: #2a5028;
	width: 90px;
}

.is-live {
	background: #791616;
	width: 50px;
}

.lb-team {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
}

.lb-member-images {
	width: 40px;
	height: 40px;
	position: relative;
	flex-shrink: 0;
}

.lb-member-images img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	position: absolute;
}

.lb-member-images img:nth-of-type(1) {
	top: -0.1rem;
	left: -0.4rem;
}

.lb-member-images img:nth-of-type(2) {
	bottom: -0.1rem;
	right: -0.2rem;
}

.lb-levels {
	display: flex;
	flex-direction: row;
	margin-left: auto;
	margin-right: 1rem;
	gap: 1rem;
}

.lb-company {
	display: flex;
	align-items: center;
	gap: 0.2rem;
	width: 25%;
}

.lb-company.completed {
	width: 33.3% !important;
}

.lb-icon {
	display: flex;
	align-items: center;
	height: 32px;
}

.lb-icon img {
	height: 90%;
}

.lb-rank {
	font-size: 2.2em;
	font-family: "Freebooter";
}

/* LEADERBOARDS END */

/* CHARTS POPUP START */

.fixed-wrapper {
	width: min(640px, 100% - 2em);
	position: fixed;
	display: flex;
	align-items: center;
	justify-content: center;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
}

.absolute-wrapper {
	width: min(640px, 100% - 2em);
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -47%);
	z-index: 10;
}

#HighlightContainer {
	width: 100%;
	position: relative;
	margin-top: -50px;
	transition: 0.5s ease-in-out all;
	opacity: 0;
	/*max-width: 640px;*/
	box-sizing: border-box;
}

#HighlightContainer .brick {
	position: relative;
}

#HighlightContainer .brick.live,
#HighlightContainer .brick.offline {
	background: rgba(26, 22, 28, 1) !important;
}

#HighlightContainer .name {
	font-size: 1.2rem;
}

#HighlightContainer .description {
	font-size: 0.9rem;
}

#HighlightContainer .tracker-container {
	width: 85%;
}

#chartJS {
	image-rendering: optimizeSpeed; /* Older versions of FF */
	image-rendering: -moz-crisp-edges; /* FF 6.0+ */
	image-rendering: -webkit-optimize-contrast; /* Webkit (non standard naming) */
	image-rendering: -o-crisp-edges; /* OS X & Windows Opera (12.02+) */
	image-rendering: crisp-edges; /* Possible future browsers. */
	-ms-interpolation-mode: nearest-neighbor; /* IE (non standard naming) */
}

.highlight-upper {
	--upper-margin: 0.5rem;
	margin-bottom: var(--upper-margin);
	position: relative;
	width: 100%;
	container-type: inline-size;
}

.close-button {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0.6em 0.8em;
	background: #252525 url(/images/icons/close.webp) no-repeat;
	background-position: 0.8em center;
	background-size: 0.85em;
	text-indent: 1.6em;
	font-size: 0.7em;
	position: absolute;
	border-radius: 0.2rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	right: 0;
	bottom: 0;
	cursor: pointer;
	z-index: 20;
	text-shadow: none;
}

.close-button::after {
	content: "Close";
}

.close-button:hover {
	background: #454545 url(/images/icons/close.webp) no-repeat;
	background-position: 0.8em center;
	background-size: 0.85em;
}

.chart-container {
	height: 0px;
	width: 100%;
	position: relative;
}

.canvas {
	display: none;
}

/* CHARTS POPUP END */

/* START STREAMER BOXES */

#Content {
	user-select: none;
	position: relative;
	z-index: 3;
}

.brick.nightmare {
	border-style: solid;
	border-width: 1px;
	-moz-border-image: url(/images/borders/border-nightmare.webp) 1 1 1 1 stretch stretch;
	-webkit-border-image: url(/images/borders/border-nightmare.webp) 1 1 1 1 stretch stretch;
	-o-border-image: url(/images/borders/border-nightmare.webp) 1 1 1 1 stretch stretch;
	border-image: url(/images/borders/border-nightmare.webp) 1 1 1 1 stretch stretch;
	background: rgba(28, 7, 7, 0.8);
}

.brick.live {
	border-style: solid;
	border-width: 1px;
	-moz-border-image: url(/images/borders/border-live-purple.webp) 1 1 1 1 stretch stretch;
	-webkit-border-image: url(/images/borders/border-live-purple.webp) 1 1 1 1 stretch stretch;
	-o-border-image: url(/images/borders/border-live-purple.webp) 1 1 1 1 stretch stretch;
	border-image: url(/images/borders/border-live-purple.webp) 1 1 1 1 stretch stretch;
	background: rgba(16, 13, 17, 0.75);
}

.brick.offline {
	border-style: solid;
	border-width: 1px;
	-moz-border-image: url(/images/borders/border-offline.webp) 1 1 1 1 stretch stretch;
	-webkit-border-image: url(/images/borders/border-offline.webp) 1 1 1 1 stretch stretch;
	-o-border-image: url(/images/borders/border-offline.webp) 1 1 1 1 stretch stretch;
	border-image: url(/images/borders/border-offline.webp) 1 1 1 1 stretch stretch;
	background: rgba(16, 13, 17, 0.75);
}

/* UPPER BOX START */
.box-upper {
	display: flex;
	flex-direction: row;
	gap: 1rem;
	position: relative;
	padding: 1rem;
	overflow: hidden;
}

.box-upper:hover {
	cursor: pointer;
}

.streamer-logo {
	border-radius: 50%;
	flex-shrink: 0;
}

.streamer-logo img {
	border-radius: 50%;
	width: 100%;
	height: 100%;
}

.streamer-info {
	display: flex;
	flex-direction: column;
}

.stream-stats {
	position: absolute;
	right: 1rem;
	top: 1rem;
	display: flex;
	gap: 20px;
}

.live-viewers {
	text-indent: 26px;
	height: 1rem;
	background: url(/images/icons/live-viewers.webp) no-repeat;
	font-size: 0.8rem;
	line-height: 1rem;
	font-weight: 600;
}

.brick.nightmare .streamer-info,
.brick.live .streamer-info {
	justify-content: center;
}

.brick.live .streamer-logo,
.brick.nightmare .streamer-logo {
	width: 90px;
	height: 90px;
}

.brick.live .name,
.brick.nightmare .name {
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 0.4rem;
}

.title {
	font-size: 0.95rem;
	color: #adadad;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.game {
	font-size: 0.75rem;
	text-transform: uppercase;
	font-weight: 600;
}

.nightmare .game {
	color: #f26161;
}

.live .game {
	color: #9267ab;
}

.brick.nightmare .team-divider {
	border-top: 1px solid;
	border-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 20%, rgba(255, 0, 0, 0.3) 50%, rgba(255, 255, 255, 0) 80%) 10% round;
}

.brick.live .team-divider {
	border-top: 1px solid;
	border-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 20%, rgba(145, 74, 187, 0.3) 50%, rgba(255, 255, 255, 0) 80%) 10% round;
}

.brick.offline .streamer-logo {
	width: 60px;
	height: 60px;
}

.brick.offline .streamer-info {
	gap: 4px;
}

.brick.offline .name {
	font-weight: 700;
	font-size: 1rem;
}

.description {
	font-size: 0.8rem;
	line-height: 1.15rem;
	color: #adadad;
	font-weight: 400;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.info-container {
	position: absolute;
	right: 0.5rem;
	top: 0.5rem;
	display: flex;
	gap: 0.5rem;
}

.roundedbox {
	padding: 3px 3px 3px 5px;
	border-radius: 3px;
	font-weight: 700;
	font-size: 0.65rem;
	letter-spacing: 1px;
	text-shadow: none;
}

.team-type {
	background: #0d8c5e;
}

.tracker-history {
	background: #333;
}

.brick.offline .team-divider {
	border-top: 1px solid;
	border-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 20%, rgba(115, 103, 116, 0.7) 50%, rgba(255, 255, 255, 0) 80%) 10% round;
}

/* UPPER BOX END */

/* LOWER BOX START */

.box-lower {
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: rgba(0, 0, 0, 0.3);
	padding: 0.6vh 0;
}

.box-lower h4 {
	margin: 1rem auto 0rem auto;
	font-size: 0.9em;
	text-transform: uppercase;
	/*letter-spacing: 1px;*/
	color: #aaa;
}

.tracker-wrapper {
	display: flex;
	justify-content: space-around;
	width: 100%;
	container-type: inline-size;
	padding-right: 0.5rem;
}

.tracker-container {
	display: flex;
	width: 100%;
	justify-content: space-around;
}

.tracker-history {
	justify-content: center;
	width: 8cqw;
	background: url(/images/icons/charts-icon.webp) no-repeat;
	background-size: 60%;
	background-position: center;
	cursor: pointer;
}

.company {
	display: flex;
	justify-content: center;
	gap: 1.2cqw;
	font-size: 8cqw;
}

.company-icon {
	width: 5.75cqw;
	height: 100%;
}

.company.gh .company-icon {
	background: url(/images/company-tracker/gh.webp) left center no-repeat;
	background-size: contain;
}

.company.ma .company-icon {
	background: url(/images/company-tracker/ma.webp) left center no-repeat;
	background-size: contain;
}

.company.oos .company-icon {
	background: url(/images/company-tracker/oos.webp) left center no-repeat;
	background-size: contain;
}

.company.rb .company-icon {
	background: url(/images/company-tracker/rb.webp) left center no-repeat;
	background-size: contain;
}

.company.resets .company-icon {
	background: url(/images/company-tracker/resets.webp) left center no-repeat;
	background-size: contain;
}

.company-rank {
	flex: 0 1 auto;
	font-family: "Freebooter";
	margin-bottom: -2px;
}

.company.resets .company-rank {
	padding-left: 0.5cqw;
}

/* LOWER BOX END */

@media (max-width: 1080px) {
	.header-logo {
		height: 5em;
	}
	.header-logo img {
		margin-top: 0.6rem;
	}
}

@media (max-width: 1000px) {
	header {
		margin-bottom: 5rem;
	}
	#ContentWrapper {
		padding: 0 1rem;
	}
	#RulesLiveSearch {
		display: none;
	}
	.header-nav {
		position: relative;
		z-index: 50;
		right: 0;
		bottom: 0;
		justify-content: center;
		margin-top: 2rem;
		gap: 1rem;
	}
	.navbar-link {
		background-color: rgba(78, 74, 99, 0.3);
		border: 1px solid rgba(255, 255, 255, 0.1);
		border-radius: 0.2rem;
		color: #ddd;
		padding: 0.5rem 0.7rem;
	}
	#HistoryOverlay {
		z-index: 70;
	}
	.fixed-wrapper,
	.absolute-wrapper {
		z-index: 80;
	}
}

@media (max-width: 600px) {
	.leaderboard-row {
		flex-direction: column;
		align-items: flex-start;
		padding: 1rem 0;
		gap: 0.5rem;
	}
	.header-bg-bottom {
		display: none;
	}
}

@media (max-width: 500px) {
	.leaderboard-button {
		width: 2.7em;
		height: 2.7em;
		top: 1rem;
		left: 1rem;
	}
}
