:root {
	--navbar-height:90px;
	--navbar-height-scrolled-down:45px;
	--transition-speed:0.25s ease-in-out;
	--bgcolor:#fff;
	--bgcolor1:#495867;
	--bgcolor2:#f7ebed;
}

body {
	font-family:"Inter", sans-serif;
	font-size:18px;
	margin:0; padding:0;
}

h1, h2, h3, h4, h5, h6 {
	font-family:"Suez One", sans-serif;
}
h1 {font-size:4rem;}
h2 {font-size:3rem;}
h3 {font-size:2.5rem;}
h4 {font-size:2rem;}
h5 {font-size:1.5rem;}
h6 {font-size:1.25rem;}

nav {
	position:fixed;
	left:0; top:0;
	width:100vw;
	background-color:rgba(0,0,0,1);
	backdrop-filter:blur(10px);
	display:flex;
	flex-direction:row;
	z-index:99;
}
nav > ul {
	display:flex;
	flex-direction:row;
	align-items:center;
	justify-content:flex-start;
	list-style-type:none;
	margin:0 30px; padding:0;
	flex-wrap:nowrap;
}
nav > ul > li > a {
	padding:0 15px;
	color:#ccc;
	text-decoration:none;
	line-height:var(--navbar-height);
	white-space:nowrap;
	transition:var(--transition-speed);
}
nav ul li a:hover {
	color:var(--bgcolor2);
	text-shadow:0 0 10px rgba(255,255,255,0.5);
	text-decoration:none;
}
#nav-buffer {background-color:rgba(0,0,0,1);}
nav, nav > ul li a, #nav-buffer {
	height:var(--navbar-height);
	transition:var(--transition-speed);
}
.scrolled-down nav, .scrolled-down #nav-buffer {
	background-color:rgba(0,0,0,0.75);
}
.scrolled-down nav, .scrolled-down nav > ul li a, .scrolled-down #nav-buffer {
	height:var(--navbar-height-scrolled-down);
}
@media(max-width:900px) {
	nav > ul > li > a {
		font-size:0.95rem;
		padding:0 10px;
	}
}

nav > ul > li.parent {position:relative;}
nav ul ul {
	display:none;
	position:absolute;
	top:100%; left:0;
	margin:0; padding:10px 20px;
	background-color:#000;
	min-width:175px;
	list-style-type:none;
}
nav ul ul li a {
	display:inline-block;
	height:auto;
	color:#ccc;
	padding:7.5px 0;
}



#logo img {
	width:auto; height:150px;
	margin:5px 15px 0 30px;
	border:5px solid #000;
	border-raduis:100%;
	-webkit-border-radius:100%;
	transition:var(--transition-speed);
	object-fit:contain;
	
}
.scrolled-down #logo img {
	height:75px;
}

section {
	position:relative;
	width:100vw;
	overflow-y:hidden;
	display:flex;
	align-items:center;
	justify-content:center;
}
section.full-height {
	height:calc(100vh - var(--navbar-height-scrolled-down));
}
.section-bg {
	position:absolute;
	left:0; top:0;
	width:100%; height:100%;
	object-fit:cover;
}
.section-inner {
	position:relative;
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:center;
	width:100%; height:100%;
	margin:30px;
}
@media(max-width:767px) {
	.section-inner {margin:30px 15px;}
}

.flex-row {
	display: flex;
	flex-direction:row;
}

#main {
	background-color:var(--bgcolor2);
}
#main-inner {
	width:100%;
	min-height:calc(100vh - 90px);
}
#main-inner .section-inner {
	width:calc(100% - 60px);
}
#headline {
	font-family:"Suez One", sans-serif;
	font-size:3rem;
	margin:30px 0;
}
.text-jumbotron {
	background-color:var(--bgcolor1);
	color:#fff;
	padding:90px 60px 60px 60px;
	margin-bottom:45px;
}

section.history {padding:0 60px;}
section.history .section-inner {
	align-items:flex-start;
}
section.history .section-inner > * {
	width:50%;
	padding-top:30px;
	padding-bottom:30px;
}
section.history .section-inner > *:first-child {margin-right:20px;}
section.history .section-inner > *:last-child {margin-left:20px;}
section.history img {
	width:100%; height:auto;
}
section.history h4 {
	margin-bottom:30px;
}
section.history p {
	font-size:1rem;
	line-height:1.25rem;
}

#section-1 {
	color:#fff;
}
#section-1 .section-inner {
	justify-content:space-between;
	padding-top:45px;
	padding-bottom:90px;
}
#section-1 div {text-align:center;}
#section-1 h1 {text-shadow:2.5px 2.5px 5px rgba(0,0,0,0.5);}
#section-1 h4 {margin:0;}

#section-2 {
	background-color:var(--bgcolor2);
}
.info-panel {
	box-shadow:0 0 15px rgba(50,0,0,0.1);
}
.info-panel-content {
	padding:30px;
}
#section-2 .info-panel i {
	margin-right:10px;
}
#section-2 .info-panel-content {
	position:relative;
	overflow:clip;
}
#section-2 .info-panel-content > i.fa-3x {
	position:absolute;
	left:-25%; top:-25%;
	font-size:360px;
	color:var(--bgcolor1);
	opacity:0.1;
	z-index:0;
}
@media(max-width:960px) {
	.info-panels .info-panel {
		display:none;
		flex-basis:48%;
	}
	.info-panels .info-panel:first-child {display:block;}
	.info-panels .info-panel:nth-child(2) {display:block;}
}
@media(max-width:600px) {
	.info-panels {flex-direction:column;}
	.info-panels .info-panel {
		display:block;
		flex-basis:100%;
	}
}

#section-3 {
	display:none;
}
#pot-of-gold {
	width:calc(50vw - 90px); height:calc(50vw - 90px);
	margin-right:30px;
}
#pog-text {
	display:flex;
	flex-direction:column;
	justify-content:center;
	margin:0 30px;
	height:calc(50vw - 90px);
}
@media(max-width:767px) {
	#section-3 {
		padding-bottom:60px;
	}
	#section-3 .flex-row, #pog-text {
		display:block;
	}
	#pot-of-gold {
		float:left;
		width:240px; height:240px;
		margin:15px;
	}
	#section-3 h2 {
		font-size:2.5rem;
		margin-top:10px;
		margin-bottom:0;
	}
	#pog-text {line-height:1.33rem;}
}

#section-4 {
	/* background-color:var(--bgcolor2); */
}
#section-4 h2 {
	margin:15px;
}
#comp-list ul {
	display:flex;
	flex-direction:row;
	flex-wrap:wrap;
	list-style-type:none;
	margin:30px; padding:0;
	justify-content:space-between;
	width:calc(100% - 60px);
	max-width:960px;
}
#comp-list ul li {
	position:relative;
	width:270px;
	margin-bottom:60px;
	padding-bottom:15px;
	line-height:1.33rem;
	background-color:#fff;
	box-shadow:0 0 15px rgba(50,0,0,0.2);
	cursor:pointer;
}
#comp-list ul li div {
	text-align:left;
}
#comp-list ul li div.event-list-name {color:#000;}
@media(max-width:1020px) {#comp-list ul li {width:30%;}}
@media(max-width:900px) {#comp-list ul li {width:47%;}}
@media(max-width:767px) {#comp-list ul {margin:15px; width:calc(100% - 30px);}}
@media(max-width:600px) {#comp-list ul li {width:100%;}}

#comp-list ul li.past-comp:after {
	content:"";
	position:absolute;
	left:-6px; top:-6px;
	width:120px; height:120px;
	background-image:url("/images/web/completed.png");
	background-size:100%;
	background-repeat:no-repeat;
}

#comp-list ul li .event-img-container {
	position:relative;
	width:100%; height:0;
	padding-top:100%;
	margin-bottom:15px;
	margin-left:0;
	border-bottom:1px solid rgba(0,0,0,0.1);
	overflow:clip;
}
#comp-list ul li .event-img-container img {
	position:absolute;
	left:0; top:0;
	width:100%; height:100%;
	object-fit:cover;
	transition:var(--transition-speed);
}
#comp-list ul li:hover {
	transform:scale(105%);
}

#comp-list ul li > div {
	margin:0 15px;
}
#comp-list ul li .event-list-name {
	font-weight:bold;
	margin-bottom:5px;
	font-size:1.1rem;
}
#comp-list ul li .event-list-dates {
	color:#aaa;
}

.modal-header {
	border-bottom:none;
	background-color:var(--bgcolor1);
	color:#fff;
}
.modal-header i.fas {
	padding:10px;
	margin-right:-10px;
	cursor:pointer;
}

#comp-info-modal .modal-body {
	min-height:300px;
}
#comp-tabbar {
	margin-top:-15px; padding:0;
	display:inline-flex;
	flex-direction:row;
	align-items:flex-start;
	flex-wrap:nowrap;
	margin-bottom:15px;
	position:relative;
}
#comp-tabbar button {
	font-size:1rem;
	display:inline-flex;
	flex-direction:row;
	flex-wrap:nowrap;
	align-items:center;
	text-transform:uppercase;
	padding:5px 10px;
	margin-right:10px;
	background-color:#eee;
	border-radius:5px;
	border:none;
	font-weight:500;
}
#comp-tabbar button.selected {
	background-color:var(--bgcolor1);
	color:#fff;
}
#comp-tabbar button:visited, #comp-tabbar button:focus {
	border:none;
	outline:none;
	background-color:var(--bgcolor1);
	color:#fff;
	opacity:0.75;
}
#comp-tabbar button i {margin-left:5px;}
#comp-tabbar button * {pointer-events:none;}
#comp-tabbar ul {
	display:none;
	list-style-type:none;
	position:absolute;
	left:100%;
	background-color:var(--bgcolor1);
	color:#fff;
	padding:10px 15px;
}
#comp-tabbar ul li {
	white-space:nowrap;
	cursor:pointer;
}

#comp-map {
	width:100%; height:300px;
}
#comp-header {
	
}
#comp-logo {
	width:120px; height:120px;
	object-fit:cover;
	border:8px solid #fff;
	margin:-75px 15px 15px -5px;
}
#comp-info-modal #modal-comp-overview table {
	width:100%;
	margin-bottom:15px;
}
#comp-info-modal #modal-comp-overview th {
	width:115px;
	text-align:right;
	font-weight:700;
	font-size:0.9rem;
	text-transform:uppercase;
}
#comp-info-modal #modal-comp-overview td {
	padding-left:20px;
}

#comp-tabbar, #modal-comp-leaderboard {margin-left:128px;}
#modal-comp-leaderboard {
	max-height: calc(100vw - 1100px);
	overflow-y:scroll;
}
#modal-comp-leaderboard table {
	border-collapse:collapse;
	width:100%;
	margin-bottom:10px;
}
#modal-comp-leaderboard th {
	text-align:left;
	vertical-align:top;
	border-bottom:1px solid #ccc;
}
#modal-comp-leaderboard td, #modal-comp-leaderboard th {
	padding:4px 8px;
}

#loading {
	position:fixed;
	left:0; top:0;
	width:100vw; height:100vh;
	pointer-events:none;
	display:flex;
	flex-direction:column;
	justify-content:flex-end;
	align-items:center;
	z-index:1051;
}
#loading-inner {
	width:100%; height:60px;
	background-color:rgba(0,0,0,0.75);
	display:flex;
	flex-direction:row;
	justify-content:center;
	align-items:center;
}
#loading-inner * {
	color:#fff;
	margin:15px;
}

#prize_money {
	margin:-30px 60px 0 60px;
}
#prize_money > h3 {
	display:none;
}
#prize_money table {
	margin-bottom:30px;
	font-size:1.2rem;
}
#prize_money table td {
	padding:5px;
}
#prize_money table tr td:first-child {
	text-align:right;
	padding-right:15px;
}
#prize_money table tr td:last-child {
	font-weight:bold;
	font-size:1.5rem;
	padding-left:15px;
}


footer {
	background-color:var(--bgcolor1);
	padding:60px;
	display:flex;
	flex-direction:column;
	text-align:center;
}
footer, footer * {
	color:#fff;
}
footer .form-row {
	justify-content:center;
}
footer .form-row i {
	font-size:2.5rem;
	margin:15px;
	cursor:pointer;
}
footer a {
	transition:var(--transition-speed);
}
footer a:hover {
	color:#ffffcc;
	text-decoration:none;
	text-shadow:0 0 5px #fff;
}