body.fullscreen{
	height: 100vh;
	width: 100vw;
	overflow: hidden;
	height: 100vh;
	width: 100vw;
	overflow: hidden;
	top: 0;
	left: 0;
	position: fixed;
}

body[data-user-faction]:before,
body[data-user-faction]:after {
	content: "";
	position: absolute;
	left: 0;
	width: 100vw;
	height: 2px;
	z-index: 999;
}
body[data-user-faction]:before {
	top: 0;
}
body[data-user-faction]:after {
	bottom: 0;
}
body:before,
body:after {
	background-color: #222222;
}
body[data-user-faction="1"]:before,
body[data-user-faction="1"]:after {
	background-color: #44da76;
}
body[data-user-faction="2"]:before,
body[data-user-faction="2"]:after {
	background-color: #ffae48;
}
body[data-user-faction="3"]:before,
body[data-user-faction="3"]:after {
	background-color: #caa5fb;
}

body[data-user-faction] .nav_fixed.top_right .username span {
	color: #FFFFFF;
}
body[data-user-faction] .nav_fixed.top_right .factionicon {
	filter: saturate(0) brightness(1.5);
}



body .nav_fixed.top_left,
body .nav_fixed.top_center,
body .nav_fixed.top_right,
body .nav_fixed.bottom_left,
body .nav_fixed.bottom_right,
body .nav_fixed .map_stats,
body .top_left .map_stats,
body .nav_fixed .currencies span {
	-webkit-transition: filter 2s ease-in-out, color 2s ease-in-out, filter 0s;
	-moz-transition:    filter 2s ease-in-out, color 2s ease-in-out, filter 0s;
	-o-transition:      filter 2s ease-in-out, color 2s ease-in-out, filter 0s;
	-ms-transition:     filter 2s ease-in-out, color 2s ease-in-out, filter 0s;
	transition:         filter 2s ease-in-out, color 2s ease-in-out, filter 0s;
}
body[data-user-faction="1"] .nav_fixed.top_left,
body[data-user-faction="1"] .nav_fixed.top_center,
body[data-user-faction="1"] .nav_fixed.top_right,
body[data-user-faction="1"] .nav_fixed.bottom_left,
body[data-user-faction="1"] .nav_fixed.bottom_right {
    filter: hue-rotate(289deg) brightness(1.3) saturate(0.75);
}
body[data-user-faction="2"] .nav_fixed.top_left,
body[data-user-faction="2"] .nav_fixed.top_center,
body[data-user-faction="2"] .nav_fixed.top_right,
body[data-user-faction="2"] .nav_fixed.bottom_left,
body[data-user-faction="2"] .nav_fixed.bottom_right {
    filter: hue-rotate(182deg) brightness(1.4);
}
body[data-user-faction="3"] .nav_fixed.top_left,
body[data-user-faction="3"] .nav_fixed.top_center,
body[data-user-faction="3"] .nav_fixed.top_right,
body[data-user-faction="3"] .nav_fixed.bottom_left,
body[data-user-faction="3"] .nav_fixed.bottom_right {
    filter: hue-rotate(46deg) brightness(1.3);
}
body[data-user-faction] .nav_fixed.top_left.no-bg,
body[data-user-faction] .nav_fixed.top_right.no-bg {
	filter: hue-rotate(0) brightness(1) saturate(1);
}
body[data-user-faction="1"] .nav_fixed .map_stats,
body[data-user-faction="1"] .top_left .map_stats,
body[data-user-faction="1"] .nav_fixed .currencies span {
	color: #44da76;
}
body[data-user-faction="2"] .nav_fixed .map_stats,
body[data-user-faction="2"] .top_left .map_stats,
body[data-user-faction="2"] .nav_fixed .currencies span {
	color: #ffae48;
}
body[data-user-faction="3"] .nav_fixed .map_stats,
body[data-user-faction="3"] .top_left .map_stats,
body[data-user-faction="3"] .nav_fixed .currencies span {
	color: #caa5fb;
}

.tile{
	width:80px;
	height:70px;
	position: absolute;
	/* background-color: rgba(255,255,255,0.1);
	border: 1px solid  rgba(255,255,255,0.2); */
	z-index: 1;
	cursor: pointer;
	-webkit-transform: scale(0.9);
	-ms-transform: scale(0.9);
	transform: scale(0.9);
}
.tile.active,
.tile:hover{
	/* background-color: rgba(255,255,255,0.15);
	border-color: rgba(255,255,255,0.5); */
	z-index: 10;
	-webkit-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
}
.tile:after{
	clear:both;
	content:" ";
	display:block;
}

.tile .hex{
	fill: #FFFFFF;
  stroke: #FFFFFF;
  stroke-opacity: 0.6;
  fill-opacity: 0.35;
  stroke-width: 3;
}

.tile[data-permanent-owner="1"],
.tile[data-permanent-owner="2"],
.tile[data-permanent-owner="3"]{
	background-image: url('https://qf-dist.s3.us-east-2.amazonaws.com/faction-1-shadow.png');
	background-repeat: none;
	background-position: center;
	background-size: cover;
}
.tile[data-permanent-owner="1"]{
	background-image: url('https://qf-dist.s3.us-east-2.amazonaws.com/faction-1-shadow.png');
}
.tile[data-permanent-owner="2"]{
	background-image: url('https://qf-dist.s3.us-east-2.amazonaws.com/faction-2-shadow.png');
}
.tile[data-permanent-owner="3"]{
	background-image: url('https://qf-dist.s3.us-east-2.amazonaws.com/faction-3-shadow.png');
}

.tile .hex,
.tile[data-permanent-owner="1"] .hex,
.tile[data-permanent-owner="2"] .hex,
.tile[data-permanent-owner="3"] .hex,
.tile[data-controlled_by="1"] .hex,
.tile[data-controlled_by="2"] .hex,
.tile[data-controlled_by="3"] .hex{
	-webkit-transition: fill 0.3s, fill-opacity 0.85s;
	-o-transition: fill 0.3s, fill-opacity 0.85s;
	transition: fill 0.3s, fill-opacity 0.85s;
}
.tile[data-permanent-owner="1"] .hex,
.tile[data-permanent-owner="2"] .hex,
.tile[data-permanent-owner="3"] .hex,
.tile[data-controlled_by="1"] .hex,
.tile[data-controlled_by="2"] .hex,
.tile[data-controlled_by="3"] .hex{
  stroke-opacity: 1;
}
.tile[data-controlled_by="1"] .hex,
.tile[data-permanent-owner="1"] .hex{
	stroke: #43b569;
	fill: #00ffcc;
  fill-opacity: 0.35;
}
.tile[data-controlled_by="2"] .hex,
.tile[data-permanent-owner="2"] .hex{
	stroke: #ff9f26;
	fill: #ffcc00;
  fill-opacity: 0.35;
}
.tile[data-controlled_by="3"] .hex,
.tile[data-permanent-owner="3"] .hex{
	stroke: #cda5ff;
	fill: #cc00ff;
  fill-opacity: 0.35;
}
.tile:hover .hex,
.tile[data-permanent-owner="1"]:hover .hex,
.tile[data-permanent-owner="2"]:hover .hex,
.tile[data-permanent-owner="3"]:hover .hex,
.tile[data-controlled_by="1"]:hover .hex,
.tile[data-controlled_by="2"]:hover .hex,
.tile[data-controlled_by="3"]:hover .hex{
	fill-opacity: 1;
	-webkit-transition: fill 0.1s, fill-opacity 0.1s;
	-o-transition: fill 0.1s, fill-opacity 0.1s;
	transition: fill 0.1s, fill-opacity 0.1s;
}

.tile[data-controlled_by="1"]{
	/* border-color: #43b569;
	background-color: rgba(0, 255, 204, 0.25); */
	z-index: 2;
}
.tile[data-controlled_by="1"]:hover{
	/* background-color: rgba(0, 255, 204, 0.4); */
}
.tile[data-controlled_by="2"]{
	/* border-color: #ff9f26;
	background-color: rgba(255, 204, 0, 0.25); */
	z-index: 2;
}
.tile[data-controlled_by="2"]:hover{
	/* background-color: rgba(255, 204, 0, 0.4); */
}
.tile[data-controlled_by="3"]{
	/* border-color: #cda5ff;
	background-color: rgba(204, 0, 255, 0.25); */
	z-index: 2;
}
.tile[data-controlled_by="3"]:hover{
	/* background-color: rgba(204, 0, 255, 0.4); */
}

.tile[data-permanent-owner]:before {
	content: ' ';
	position: absolute;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: contain;
	display:block;
	transform: translateZ(30px);
	/* width: 50px;
	height: 50px;
	top:50%;
	left:50%;
	margin: -25px 0 0 -25px; */
	width: 70%;
	height: 70%;
	top:15%;
	left:15%;
	margin: 0;
}
.tile[data-permanent-owner="1"]:before{
	background-image: url('https://qf-dist.s3.us-east-2.amazonaws.com/faction-1.png');
}
.tile[data-permanent-owner="2"]:before{
	background-image: url('https://qf-dist.s3.us-east-2.amazonaws.com/faction-2.png');
}
.tile[data-permanent-owner="3"]:before{
	background-image: url('https://qf-dist.s3.us-east-2.amazonaws.com/faction-3.png');
}

.tile[data-has-battle]:after {
	content: ' ';
	position: absolute;
	width: 90px;
	height: 90px;
	top: 50%;
	left: 50%;
	margin: -45px 0 0 -45px;
	background: url('https://qf-dist.s3.us-east-2.amazonaws.com/ui/ui-icons.png') no-repeat -395px -180px;
	background-size: auto 300%;
	z-index: 5;
	pointer-events: none;
	animation: battle-intro 0.5s ease-out, pulse-battle 1.5s ease-in-out 0.5s infinite;
}

@keyframes battle-intro {
	0% { opacity: 0; transform: scale(0) rotate(-45deg); }
	60% { opacity: 1; transform: scale(1.3) rotate(10deg); }
	80% { transform: scale(0.9) rotate(-3deg); }
	100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes pulse-battle {
	0%, 100% { opacity: 0.7; transform: scale(1); }
	50% { opacity: 1; transform: scale(1.15); }
}

@keyframes battle-outro {
	0% { opacity: 1; transform: scale(1); filter: brightness(1); }
	40% { opacity: 1; transform: scale(1.4); filter: brightness(2); }
	100% { opacity: 0; transform: scale(0); filter: brightness(3); }
}

.tile[data-battle-ending]:after {
	animation: battle-outro 0.6s ease-in forwards !important;
}

/* Battle faction outline glow */
@keyframes battle-glow {
	0%, 100% { stroke-opacity: 0.6; }
	50% { stroke-opacity: 1; }
}

.tile[data-has-battle][data-battle-faction] .hex {
	stroke-width: 9;
	animation: battle-glow 1.5s ease-in-out infinite;
	/* pointer-events: none; */
}

.tile[data-has-battle][data-battle-faction="1"] .hex {
	stroke: #43b569;
}
.tile[data-has-battle][data-battle-faction="2"] .hex {
	stroke: #ff9f26;
}
.tile[data-has-battle][data-battle-faction="3"] .hex {
	stroke: #cda5ff;
}

.tile[data-has-battle][data-battle-faction]:after {
	/* pointer-events: none; */
}
.tile[data-has-battle][data-battle-faction="1"]:after {
	filter: sepia(1) hue-rotate(90deg) saturate(3) brightness(0.9);
}
.tile[data-has-battle][data-battle-faction="2"]:after {
	filter: sepia(1) hue-rotate(-10deg) saturate(3) brightness(1);
}
.tile[data-has-battle][data-battle-faction="3"]:after {
	filter: sepia(1) hue-rotate(210deg) saturate(3) brightness(0.8);
}

.tile .particle{
	position: absolute;
	top:0;
	left:0;
}

@keyframes EXPLOSION {
  to {
    background-position: top right;
  }
}
.tile .particle.explosion{
	height: 100%;
	width: 100%;
	background: transparent url('https://qf-dist.s3.us-east-2.amazonaws.com/animations/explosion-1.png') top left;
	background-size: auto 100%;
	animation: EXPLOSION 2s steps(17, end) forwards;
	-webkit-transform: translateZ(30px);
	-ms-transform: translateZ(30px);
	transform: translateZ(30px);
}

.effects .line1,
.effects .line2{
	position: absolute;
	pointer-events: none;
	background: rgba(44,157,255,0.4);
	display:none;
}
.effects .line1{
	width:100%;
	left:0;
	height:1px;
	margin-top: -1px;
	top:50%;
}
.effects .line2{
	height:100%;
	top:0;
	width:1px;
	margin-left: -1px;
	left:50%;
}

.map .tiles{
	position: relative;
	float: left;
}
.map .tiles:after{
	clear:both;
	content:" ";
	display:block;
}

.gfx-3 .map_container{
	perspective: 1000px;
}
.gfx-9 .map_container{
	perspective: 1000px;
	/* -moz-animation: MAP_PULSE 5s infinite;
	-webkit-animation: MAP_PULSE 5s infinite;
	-o-animation: MAP_PULSE 5s infinite;
	animation: MAP_PULSE 5s infinite;
	animation-timing-function: ease-in-out; */
}
@keyframes MAP_PULSE {
    /* 0% { perspective: 900px; }
    50% { perspective: 1200px; }
    100% { perspective: 900px; } */
}
@-moz-keyframes MAP_PULSE {
    /* 0% { perspective: 900px; }
    50% { perspective: 1200px; }
    A100% { perspective: 900px; } */
}
@-webkit-keyframes MAP_PULSE {
    /* 0% { perspective: 900px; }
    50% { perspective: 1200px; }
    100% { perspective: 900px; } */
}
@-o-keyframes MAP_PULSE {
    /* 0% { perspective: 900px; }
    50% { perspective: 1200px; }
    100% { perspective: 900px; } */
}

/* Experimental and/or GFX-specific settings */
.gfx-3 .tile{
	-webkit-transition: background-color 0.6s, border-color 0.6s, box-shadow 0.6s, transform 0.3s, -webkit-transform 0.3s, -ms-transform 0.3s, box-shadow 0.3s;
	-o-transition: background-color 0.6s, border-color 0.6s, box-shadow 0.6s, transform 0.3s, -webkit-transform 0.3s, -ms-transform 0.3s, box-shadow 0.3s;
	transition: background-color 0.6s, border-color 0.6s, box-shadow 0.6s, transform 0.3s, -webkit-transform 0.3s, -ms-transform 0.3s, box-shadow 0.3s;
	-webkit-box-shadow: 0 0 0 rgba(44,157,255,0);
	box-shadow: 0 0 0 rgba(44,157,255,0);
	transform-style: preserve-3d;
}

.gfx-3 .tile {
	background-size: 80%;
	background-position: center;
	background-repeat: no-repeat;
}
.hastilebackgrounds.gfx-3 .tile:nth-child(2n) {
	background-image: url('https://qf-dist.s3.us-east-2.amazonaws.com/tiles/star-10.png');
}

.hastilebackgrounds.gfx-3 .tile:nth-child(3n) {
	background-image: url('https://qf-dist.s3.us-east-2.amazonaws.com/tiles/star-12.png');
}
.hastilebackgrounds.gfx-3 .tile:nth-child(4n) {
	background-image: url('https://qf-dist.s3.us-east-2.amazonaws.com/tiles/star-13.png');
}
.hastilebackgrounds.gfx-3 .tile:nth-child(5n) {
	background-image: url('https://qf-dist.s3.us-east-2.amazonaws.com/tiles/star-7.png');
}
.hastilebackgrounds.gfx-3 .tile:nth-child(6n) {
	background-image: url('https://qf-dist.s3.us-east-2.amazonaws.com/tiles/star-2.png');
}
.hastilebackgrounds.gfx-3 .tile:nth-child(42),
.hastilebackgrounds.gfx-3 .tile:nth-child(63) {
	background-image: url('https://qf-dist.s3.us-east-2.amazonaws.com/tiles/planet-1.png');
}
.hastilebackgrounds.gfx-3 .tile:nth-child(6),
.hastilebackgrounds.gfx-3 .tile:nth-child(45) {
	background-image: url('https://qf-dist.s3.us-east-2.amazonaws.com/tiles/planet-2.png');
}

.hastilebackgrounds.gfx-3 .tile:nth-child(22),
.hastilebackgrounds.gfx-3 .tile:nth-child(117) {
	background-image: url('https://qf-dist.s3.us-east-2.amazonaws.com/tiles/planet-3.png');
}
.gfx-3 .tile.active{
	-webkit-transform: translateZ(60px) scale(1.1);
	-ms-transform: translateZ(60px) scale(1.1);
	transform: translateZ(60px) scale(1.1);
	/* border-width: 4px; */
	/* -webkit-box-shadow: 0 0 4px rgba(44,157,255,0.4), 0 0 16px rgba(255,255,255,0.2); */
	/* box-shadow: 0 0 4px rgba(44,157,255,0.4), 0 0 16px rgba(255,255,255,0.2); */
}
.gfx-3 .tile.active .hex{
	fill-opacity: 0.6;
}
.gfx-3 .tile.active,
.gfx-3 .tile:hover{
	-webkit-transition: background-color 0.1s, border-color 0.1s, box-shadow 0.1s, transform 0.3s, -webkit-transform 0.3s, -ms-transform 0.3s, box-shadow 0.3s;
	-o-transition: background-color 0.1s, border-color 0.1s, box-shadow 0.1s, transform 0.3s, -webkit-transform 0.3s, -ms-transform 0.3s, box-shadow 0.3s;
	transition: background-color 0.1s, border-color 0.1s, box-shadow 0.1s, transform 0.3s, -webkit-transform 0.3s, -ms-transform 0.3s, box-shadow 0.3s;
}
.gfx-9 .tile[data-permanent-owner="1"],
.gfx-9 .tile[data-controlled_by="1"]{
	/* box-shadow: 0 0 4px rgba(0, 255, 204, 0.25), 0 0 24px rgba(0, 255, 204, 0.25); */
}
.gfx-9 .tile[data-controlled_by="1"].active,
.gfx-9 .tile[data-controlled_by="1"]:hover{
	/* box-shadow: 0 0 4px rgba(0, 255, 204, 0.5), 0 0 24px rgba(0, 255, 204, 0.5); */
}
.gfx-9 .tile[data-permanent-owner="2"],
.gfx-9 .tile[data-controlled_by="2"]{
	/* box-shadow: 0 0 4px rgba(255, 204, 0, 0.25), 0 0 24px rgba(255, 204, 0, 0.25); */
}
.gfx-9 .tile[data-controlled_by="2"].active
.gfx-9 .tile[data-controlled_by="2"]:hover{
	/* box-shadow: 0 0 4px rgba(255, 204, 0, 0.5), 0 0 24px rgba(255, 204, 0, 0.5); */
}
.gfx-9 .tile[data-permanent-owner="3"],
.gfx-9 .tile[data-controlled_by="3"]{
	/* box-shadow: 0 0 4px rgba(204, 0, 255, 0.25), 0 0 24px rgba(204, 0, 255, 0.25); */
}
.gfx-9 .tile[data-controlled_by="3"].active
.gfx-9 .tile[data-controlled_by="3"]:hover{
	/* box-shadow: 0 0 4px rgba(204, 0, 255, 0.5), 0 0 24px rgba(204, 0, 255, 0.5); */
}

.ship_container {
	cursor: pointer;
}
.ship_container .top_ui {
	position: absolute;
	pointer-events: none;
	top: 0;
	left: 0;
	width: 100%;
}
.ship_container .top_ui [data-key="name"] {
	width: 100%;
	text-align: center;
	font-weight: bold;
	-webkit-transition: color 0.3s;
	-o-transition: color 0.3s;
	transition: color 0.3s;
	color: rgba(255,255,255,0.4);
}
.ship_container:hover .top_ui [data-key="name"] {
	color: #FFFFFF;
}
.ship_container .top_ui .hp_bar_container {
	width: 60%;
	margin: 8px 20%;
	border: 2px solid #b7c1cc;
	border-radius: 3px;
	background: rgba(0,0,0,0.5);
	position: relative;
	-webkit-transition: opacity 0.3s;
	-o-transition: opacity 0.3s;
	transition: opacity 0.3s;
	opacity: 0.4;
	height: 12px;
	box-shadow: 0 2px 3px rgba(0,0,0,0.6), 0 5px 8px rgba(0,0,0,0.6);
}
.ship_container:hover .top_ui .hp_bar_container {
	opacity: 1;
}
.ship_container .top_ui .hp_bar {
	width: 60%;
	position: absolute;
	top: 0;
	left: 0;
	height: 8px;
	/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#bfd255+0,8eb92a+50,72aa00+51,9ecb2d+100;Green+Gloss */
	background: #bfd255; /* Old browsers */
	background: -moz-linear-gradient(top,  #bfd255 0%, #8eb92a 50%, #72aa00 51%, #9ecb2d 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(top,  #bfd255 0%,#8eb92a 50%,#72aa00 51%,#9ecb2d 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to bottom,  #bfd255 0%,#8eb92a 50%,#72aa00 51%,#9ecb2d 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#bfd255', endColorstr='#9ecb2d',GradientType=0 ); /* IE6-9 */
}
.test_container_for_ships {
	overflow: hidden;
}
.ship_image_container {
	text-align: center;
	width: 100%;
}

.tile_actions .btn {
	margin: 0 10px 10px 0;
}

.tile-battle-info { text-align: center; margin: 8px 0; }
.tile-battle-btn {
	display: flex;
	width: 100%;
	align-items: center;
	background: rgba(255, 60, 60, 0.15);
	border: 1px solid rgba(255, 60, 60, 0.4);
	color: #fff;
	padding: 6px 8px;
	border-radius: 6px;
	font-size: 0.95em;
	cursor: pointer;
	transition: background 0.2s;
	text-decoration: none;
}
.tile-battle-btn:hover { background: rgba(255, 60, 60, 0.35); color: #fff; text-decoration: none; }
.tile-battle-side {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}
.tile-battle-side-left { padding-right: 6px; }
.tile-battle-side-right { padding-left: 6px; }
.tile-battle-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: bold;
}
.tile-battle-side-left .tile-battle-name { text-align: right; }
.tile-battle-side-right .tile-battle-name { text-align: left; }
.tile-battle-icon {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	background: url('https://qf-dist.s3.us-east-2.amazonaws.com/ui/ui-icons.png') no-repeat -122.8px -56px;
	background-size: auto 300%;
}
/* .tile-battle-hp / .tile-battle-hp-fill: segmented bar, see glass.css (.qf-seg, .tile-battle-hp.qf-seg) */