/* BACKGROUNDS */ 

@font-face {
    font-family: 'header';
    src: url('../fonts/header.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}



.background-no-repeat { background-repeat: no-repeat; }
.background-repeat { background-repeat: repeat; }
.background-repeat-x { background-repeat: repeat-x; }
.background-repeat-y { background-repeat: repeat-y; }

.background-pos-tl { background-position: top left; }
.background-pos-tc { background-position: top center; }
.background-pos-tr { background-position: top right; }
.background-pos-cl { background-position: center left; }
.background-pos-c { background-position: center; }
.background-pos-cr { background-position: center right; }
.background-pos-bl { background-position: bottom left; }
.background-pos-bc { background-position: bottom center; }
.background-pos-br { background-position: bottom right; }

.background-size-auto { background-size: auto; }
.background-size-contain { background-size: contain; }
.background-size-cover { background-size: cover; }

/* LAYOUT */
.game-container {
	display: flex;
	flex-direction: row;
	padding-bottom: 50px;
}

html, body {
	height: 100%;
	position: relative;
	background-color: #aa995f;
	color: #222;
}

.top-nav-bar {
	margin-top: 315px;
	position: relative;
}

.top-nav-bar:before {
	position: absolute;
	bottom: 100px;
	left: 50px;
	background-image: url(../images/logo.png);
	background-position: bottom left;
	background-size: cover;
	content: "";
	height: 196px;
	width: 280px;
}

.top-nav-bar:after {
	position: absolute;
	bottom: -4px;
	right: 10px;
	background-image: url(../images/commander.png);
	background-position: bottom left;
	background-size: cover;
	content: "";
	height: 240px;
	width: 260px;
}

pre,
.error-well {
	z-index: 1;
}

body > * {
	position: relative;
}

a {
	color: inherit;
}

hr {
	border-color: #594d24;
}

.img-responsive {
	margin: auto;
}

.img-thumbnail {
	border-radius: 5px;
	background-color: #000;
	border-color: #000;
}

.character-class-image {
    border-radius: 5px;
    width: 100%;
    height: 175px;
    object-fit: cover;
    object-position: center;
    border: 2px solid;
}

.character-class-image-bottom {
    object-position: bottom;
}

.character-class-image-sm {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

.page-feature {
    background-image: url(../images/background-blank-min.png);
    height: 66%;
    background-position: top center;
    background-size: 2000px;
    position: absolute;
    background-repeat: no-repeat;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    -webkit-mask-image: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 1) 80%);
}

.overflow-right,
.overflow-left {
	position: absolute;
	left: calc((100% - 2000px) / 2);
	top: 0px;
	bottom: 0px;
	width: 100px;
	background-color: #aa995f;
	z-index: 1;
}

.overflow-right {
	left: auto;
	right: calc((100% - 2000px) / 2);
}

.overflow-right:before,
.overflow-left:before {
	content: "";
	position: absolute;
	left: 0px;
	top: 0px;
	right: 0px;
	bottom: 0px;
    background-size: 2000px;
	background-position: top left;
    background-image: url(../images/background-blank-min.png);
    -webkit-mask-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 1) 80%);
}
.overflow-right:before {
    -webkit-mask-image: -webkit-linear-gradient(right, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 1) 80%);
	background-position: top right;
}

.user-info {
	border: 1px solid rgba(0, 0, 0, 0.4);
	background-color: rgba(0, 0, 0, 0.1);
	height: 26px;
	margin-bottom: 5px;
	display: block;
}
.user-info:hover {
	color: inherit;
}
.user-info .icon {
	float: left;
	line-height: 24px;
	border-right: 1px solid rgba(0, 0, 0, 0.2);
	background-color: rgba(0, 0, 0, 0.3);
	width: 30px;
	text-align: center;
}
.user-info .stat {
	float: right;
	line-height: 24px;
	padding-right: 5px;
}

.user-info-avatar {
	position: relative;
	margin-bottom: 10px;
}

.user-info-avatar > .label {
	position: absolute;
	top: 5px;
	right: 5px;
	border-radius: 3px;
	border: 1px solid;
}

.user-info-avatar .row {
	position: absolute;
	bottom: 0px;
	left: 15px;
	right: 15px;
}

.user-info-avatar .row .label {
	border-radius: 3px;
	margin-bottom: 5px;
	display: block;
	border: 1px solid;
}

.side-bar {
	width: 300px;
	padding:  0px 5px;
}

.game-area {
	flex-grow: 1;
	padding:  0px 5px;
}

/* ALERTS */
.alert {
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* TABLE */
.table-striped>tbody>tr:nth-of-type(odd) {
	background-color: rgba(0, 0, 0, 0.15);
}

.table-bordered>thead>tr>th, .table-bordered>tbody>tr>th, .table-bordered>tfoot>tr>th, .table-bordered>thead>tr>td, .table-bordered>tbody>tr>td, .table-bordered>tfoot>tr>td {
	border-color: #594d24;
}

.panel > .table {
	border-top: 1px solid #594d24;
}

/* PANEL */
.pagination > li > a, .pagination > li > span,
.popover,
.breadcrumb,
.panel {
	background-color: #aa995f;
	background-image: url(../images/textures/dirt-2-min.jpg);
	background-size: cover;
	background-position: top left;
    box-shadow: 0 0 10px #aa995f, 0 0 300px 25px #aa995f inset;
    box-shadow: inset 0px 0px 10px 3000px rgba(170,153,95,0.9), 5px 5px 15px -6px rgba(0,0,0,0.75);
    border: 1px solid #6a5f3e;
}

.pagination > li > a, .pagination > li > span {
	color: inherit;
}

.pagination > li > a:hover, .pagination > li > span:hover {
	border-color: #69603e !important;
}

.panel-heading {
	background-color: rgba(0, 0, 0, 0) !important;
	border: none;
    padding: 0px;
    font-size: 22px;
    text-align: center;
    line-height: 36px;
}

.panel-heading.has-bottom-border {
    border-bottom: 1px solid #6a5f3e;
}

.panel-body {
    border: 5px solid transparent;
    border-radius: 15px;
    margin: 15px;
	background-origin: border-box;
	background-clip: padding-box, border-box;
    border-image: url(../images/textures/dirt-1-red-min.png) 5;
}

.panel-footer {
	background-color: rgba(0, 0, 0, 0.15);
	border-top: 1px solid #6a5f3e;
}

.panel .panel-heading + .panel-body {
	margin-top: 0px;
}

.breadcrumb {
	text-align: left;
}

.breadcrumb .breadcrumb-item.active {
	color: #fff;
}

/* POPOVER */
.popover.top > .arrow:after {
    border-top-color: #9f8e5a;
}

/* LIST GROUP */
.well, 
.list-group {
    border-color: #6a5f3e;
}

.well,
.list-group-item {
	background-color: rgba(0, 0, 0, 0.1);
    border-color: #6a5f3e;
}

/* BOOTSTRAP OVERIDES */
.popover {
	max-width: 350px;
}

.popover-content > .list-group {
	margin-bottom: 0px;
}

/* CHARACTER INFORMATION */
.character-information {
	padding: 10px;
}

.character-information .progress {
	margin-bottom: 5px;
}

.popover-user-info {
	width: 350px;
}

/* FORMS */
.form-control {
	background-color: rgba(0, 0, 0, 0.25);
	border-color: rgba(0, 0, 0, 0.35);
	color: #fff;
}

.form-control-inline {
	width: 250px;
	display: inline-block;
	text-align: center;
}

/* NAVIGATION MENU */

.navigation-menu {
	padding: 0px;
	margin: 0px;
}

.navigation-menu > li {
	list-style: none;
}

.navigation-menu > li > a {
	background-color: var(--brand-primary);
	background: -webkit-linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.15));  /* Chrome 10-25, Safari 5.1-6 */
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.15)); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
	display: block;
	padding: 0px 5px;
	line-height: 26px;
	text-decoration: none;
	text-align: center;
	font-weight: bold;
	font-size: 110%;
	border-top: 1px solid #6a5f3e;
	border-bottom: 1px solid #6a5f3e;
}

.navigation-menu > li > ul  {
	padding-left: 0px;
}

.navigation-menu > li > ul > li {
	list-style: none;
}

.navigation-menu > li > ul > li > a {
	display: block;
	padding: 1px 6px;
	border-bottom: 1px solid #6a5f3e;
	line-height: 21px;
	font-size: 90%;
}	
.navigation-menu > li > ul > li > a > .pull-right {
	line-height: 21px;
}	

.navigation-menu > li > ul > li:nth-last-child(1) > a {
	border-bottom: none;
}

.side-bar .panel {
	margin-bottom: 5px;
}

.character-select {
	margin: 5px -3px;
}

.character-select .col-xs-3 {
	padding: 0px 3px;
}

.character-select .col-xs-3 .panel {
	inline-size: fit-content;
	aspect-ratio: 1;
	width: 100%;
	display: flex;
	text-align: center;
	justify-content: center;
	align-items: center;
	margin-bottom: 0px;
}

.character-select .col-xs-3 .panel .icon {
	font-size: 24px;
}

.character-select .col-xs-3 .panel img {
	vertical-align: middle;
}

.nav.nav-pills {
	margin-bottom: 15px;
}

.nav.nav-pills > li {
	display: inline-block;
	float: none;
}

.nav.nav-pills > li > a {
	background-color: rgba(0, 0, 0, 0.15);
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 5px;
	padding: 3px 12px;
}

/* TIMERS */
[data-timer] {
	background-color: var(--gray-lighter);
	padding: 2px 4px;
	border-radius: 4px;
}

/* CRIME HOLDER */

.crime-holder {
    position: relative;
    background-color: var(--gray-lighter);
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    margin-bottom: 15px;
	overflow: hidden;
    padding: 15px;
}

.crime-holder > p {
	margin: 0px;
	text-align: left;
	display: flex;
	flex-direction: row;
}

.crime-holder .action {
	justify-content: flex-start;
	flex-grow: 1;
	order:  1;
}

.crime-holder .cooldown {
	justify-content: flex-end;
	order:  2;
	padding: 0px 15px;
}

.crime-holder .commit {
	background-color: var(--gray-light);
	padding: 0px 10px;
	border-radius: 4px;
	justify-content: flex-end;
	order:  3;
}

.crime-holder .crime-perc {
	position: absolute;
	bottom: 0px;
	left: 0px;
	right: 0px;
	height: 4px;
	background-color: var(--gray-light);
	overflow: hidden;
}

.crime-holder .crime-perc .perc {
	position: absolute;
	display: block;
	height: 100%;
	left: 0px;
	top: 0px;
	right: 0px;
	background-color: var(--brand-success);
}