* {
	box-sizing: border-box;
}

body {
	/*background-color: rgb(17, 16, 14);*/
	background-color: #222;
	color: #fff;
	font-family: "Josefin Sans", sans-serif;
	font-size: 18px;
	line-height: 1.6;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-webkit-overflow-scrolling: touch;
	margin: 0;
	padding: 0;
	position: relative;
}

body.page-loading {
	overflow: hidden;
	transition: background .5s ease-in-out;
	-moz-transition: background .5s ease-in-out;
	-webkit-transition: background .5s ease-in-out;
}

body.page-loading .page-loading-indicator {
	display: block;
}

.page-loading-indicator {
	display: none;
	position: fixed;
	z-index: 1000000;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	min-height: 100%;
	min-width: 100%;
	background: rgba(0,0,0,0.4);
	text-align:center;
	vertical-align:middle;
	transition: background-color .5s ease-in-out;
	-moz-transition: background-color .5s ease-in-out;
	-webkit-transition: background-color .5s ease-in-out;
}

.page-loading-indicator > div {
	position: absolute;
	top: 50%;
	left: 50%;
	color: rgb(0, 176, 255);
}

.page-loading-indicator > div > div {
	position: relative;
	left: -50%;
}

.page-loading-indicator > div > div > i {
	display: block;
}

.content {
	padding: 100px 20px 20px;
	min-height: 100vh;
	box-sizing: border-box;
	position: relative;
}

.content-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url('/gfx/CardPileBG.jpg');
	background-size: cover;
	background-position: 50% 50%;
	opacity: 0.4;
	z-index: 0;
}

@media (max-width: 768px) {
	.content-bg {
		background-image: url('/gfx/CardPileBG-Portrait.jpg');
	}
}

.intro-bg {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgb(10,8,9);
}

#record {
   width: 100%;
   height: 100%;
   position: relative;
   overflow: hidden;
   text-align: center;
   -webkit-align-items: center;
   -ms-flex-align: center;
   align-items: center;
   display: -webkit-flex;
   display: flex;
}

#record::before {
   background: url("/gfx/ClanWarsCropCircles2.jpg") no-repeat center center;
   background-size: cover;
   content: "";
   opacity: .6;
   width: 100%;
   height: 100%;
   /*
   width: 2708px;
   height: 2708px;
   left: calc(50% - 1354px);
   top: calc(50% - 1354px);
   */
   position: absolute;
   animation: spin 190s linear infinite;
}

@keyframes spin {
   0% {
	  transform: rotate(0deg);
   }
   100% {
	  transform: rotate(360deg);
   }
}

#intro-logo {
	position: absolute;
	left: calc(50% - 377px);
	top: calc(40% - 158px);
}

#intro-logo > img {
	width: 754px;
	height: 520px;
}

.sign-in-buttons {
	position: absolute;
	bottom: 6%;
	left: calc(50% - 280px);
}

.sign-in-buttons button {
	width: 270px;
}

.sign-in-buttons > .btn {
	padding: 20px 15px;
}

.sign-in-buttons button + button {
	margin-left: 20px;
}

@media (max-width: 600px) {
	.sign-in-buttons {
		left: calc(50% - 135px);
	}
	.sign-in-buttons button {
		display: block;
	}
	.sign-in-buttons button + button {
		margin-top: 20px;
		margin-left: 0px;
	}
	.content {
		padding-left: 10px;
		padding-right: 10px;
	}
}

@media (max-width: 900px) {
	#intro-logo {
		left: calc(50% - 283px);
		top: calc(40% - 95px);
	}
	#intro-logo > img {
		width: 565px;
		height: 390px;
	}
}

@media (max-height: 768px) {
	#intro-logo {
		left: calc(50% - 283px);
		top: calc(40% - 195px);
	}
	#intro-logo > img {
		width: 565px;
		height: 390px;
	}
}

@media (max-width: 700px) {
	#intro-logo {
		left: calc(50% - 189px);
		top: calc(40% - 30px);
	}
	#intro-logo > img {
		width: 377px;
		height: 260px;
	}
}

@media (max-height: 600px) {
	#intro-logo {
		left: calc(50% - 189px);
		top: calc(40% - 130px);
	}
	#intro-logo > img {
		width: 377px;
		height: 260px;
	}
}

@media (max-width: 400px) {
	#intro-logo {
		left: calc(50% - 126px);
		top: calc(40% - 86px);
	}
	#intro-logo > img {
		width: 251px;
		height: 173px;
	}
}

@media (max-height: 375px) {
	#intro-logo {
		left: calc(50% - 126px);
		top: calc(40% - 86px);
	}
	#intro-logo > img {
		width: 251px;
		height: 173px;
	}
}

h1, h2 {
	font-family: "Bungee", display;
	text-align: center;
}

h2 {
	font-size: 30px;
	margin-top: 20px;
	margin-bottom: 20px;
}

a {
	color: rgb(41, 179, 235);
}

.btn {
	background-color: rgb(41, 179, 235);
	color: #555;
	font-family: "Open Sans", sans-serif;
	font-weight: 600;
	font-size: 18px;
	padding: 10px 15px;
	border: none;
	box-sizing: border-box;
	text-decoration: none;
	cursor: pointer;
}

.btn.rev {
	color: #555;
	background-color: #fff;
}

.btn.secondary {
	color: rgb(41, 179, 235);
	background-color: #555;
}

.top {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 100px;
	background-color: rgba(17, 16, 15, 0.8);
	z-index: 10;
}

.sign-out {
	position: absolute;
	top: 20px;
	right: 20px;
}

.sign-out > .btn {
	font-size: 14px !important;
}

.logo {
	position: absolute;
	top: 15px;
	left: 20px;
}

.logo > img {
	height: 66px;
	cursor: pointer;
}

.hamburger {
	display: none;
	position: absolute;
	z-index: 20;
	top: 29px;
	right: 25px;
	background-image: url('/gfx/Hamburger_icon.svg');
	width: 40px;
	height: 40px;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: 50% 50%;
	cursor: pointer;
}

.menu-container {
	display: block;
}

.menu {
	position: absolute;
	top: 38px;
	right: 20px;
	text-transform: uppercase;
	width: auto !important;
	white-space: nowrap;
	display: flex;
	flex-direction: row;
	z-index: 3;
}

.menu a {
	display: inline-block;
	margin-left: 15px;
	margin-right: 15px;
	color: white;
	font-weight: 400;
	border-bottom: solid 3px transparent;
	text-decoration: none;
	font-size: 16px;
}

.menu a:active, .menu a:hover {
	border-bottom: solid 3px rgb(41, 179, 235);
}

.main-section {
	display: flex;
	flex-direction: row;
	justify-content: center;
}

.leaderboard-container {
	flex-grow: 1;
	max-width: 768px;
}

.current-games-container + .leaderboard-container {
	margin-left: 20px;
	flex-grow: 1;
}

.current-games-container {
	margin-right: 20px;
	flex-grow: 1;
}

.current-games-container, .leaderboard-container {
	background-color: rgba(17, 16, 15, 0.6);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	border: solid 1px #555;
	border-radius: 10px;
	margin-top: 40px;
	margin-bottom: 40px;
	padding-bottom: 20px;
}

table.current-games {
	width: 100%;
	border-collapse: collapse;
}

table.current-games td, table.current-games th {
	padding: 5px 10px;
	font-family: "Josefin Sans", sans-serif;
	font-size: 18px;
	font-weight: 400;
	text-align: center;
	width: 20%;
}

table.current-games th {
	font-weight: 700;
	border-bottom: solid 1px #555;
	color: #888;
}

table.current-games tr:nth-child(2) td {
	padding-top: 20px;
}

.no-items-found {
	margin-top: 20px;
	text-align: center;
}

.create-games {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
}

.create-game {
	width: 23%;
	background-color: rgba(17, 16, 15, 0.6);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	padding: 15px 20px;
	color: #fff;
	border: solid 1px #555;
	border-radius: 8px;
	margin-bottom: 40px;
	opacity: 0.9;
}

.create-game-title {
	text-align: center;
	margin-bottom: 20px;
}

.create-game-title a {
	display: block;
}

.create-game-image {
	text-align: center;
	margin-bottom: 0px;
}

.create-game-image > img {
	height: 150px;
}

.uid {
	color: rgb(41, 179, 235);
	text-align: center;
	font-size: 36px;
	font-family: "Open Sans", sans-serif;
	font-weight: 600;
}

.game-type-image {
	height: 36px;
	vertical-align: top;
	position: relative;
	top: -4px;
}

@media (max-width: 1280px) {
	.create-game {
		width: 48%;
	}
}

@media (max-width: 1152px) {
	.menu {
		top: 40px;
	}
	.menu a {
		font-size: 14px;
	}
}

@media (max-width: 1024px) {
	.hamburger {
		display: block;
	}
	.menu-container {
		display: none;
	}
	.menu-container.visible {
		display: block;
	}
	.menu {
		top: 60px;
		background-color: rgba(0, 0, 0, 0.75);
		padding-top: 5px;
		padding-bottom: 5px;
		flex-direction: column;
	}
	.menu a {
		padding-top: 10px;
		margin-bottom: 7px;
	}
	.menu-bg {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 2;
	}
}

@media (max-width: 800px) {
	.sign-out {
		top: 10px;
		right: 10px;
	}
	.logo {
		left: 10px;
		top: 5px;
	}
	.logo > img {
		height: 50px;
	}
	.top {
		height: 60px;
	}
	.hamburger {
		top: 10px;
		right: 15px;
	}
	.menu {
		top: 50px;
	}
	.content {
		padding-top: 60px;
	}
}

@media (max-width: 768px) {
	table.current-games th, table.current-games td {
		font-size: 16px;
	}
	.create-game {
		width: 100%;
	}
	.main-section {
		flex-direction: column;
	}
	.current-games-container + .leaderboard-container {
		margin-left: 0px;
	}
	.current-games-container {
		margin-bottom: 0;
		margin-right: 0px;
	}
}

@media (max-width: 700px) {
	.sign-out > .btn {
		font-size: 13px !important;
		padding: 8px 10px;
	}
}

@media (max-width: 500px) {
	.hide-narrow {
		display: none;
	}
}
