:root {
	--app-header-text: #fff;
	--app-highlight-text:  #333333;    
	--app-grey-box: #aaa;          
	--app-highlight-font: Bahnschrift, Arial, sans-serif;
	--app-background: #232530;
	--app-black: black;
	--app-yellow: #f1d429;
	--app-header-background: #414B58;  
	--app-greyed-out: #cdcccc;
}

@font-face {
  font-family: 'Bahnschrift';
  src: url('Barlow-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Bahnschrift';
  src: url('BAHNSCHRIFT_1.TTF') format('truetype');
  font-weight: 700;
  font-style: normal;
}

body {
	font-family: Bahnschrift, sans-serif;
	background-color: var(--app-background);
	margin: 0!important;
}

header {
	background: var(--app-header-background);
	z-index: 100;
	height: 70px;
	/*display: flex;*/
	/*position: sticky;*/
	position: fixed;
	width: 100%;
	top: 0;
	
}
#section-login,
#section-people,
#section-evidence,
#section-home,
#section-tools,
#section-questions,
#section-evidenceDetail,
#section-personDetail,
#section-search,
#section-showWin{
	margin-top: 100px;
	width: 60% !important;
	margin-right: auto;
	margin-left: auto;
}
.sidebar.button {
	float: left;
}


header img {
	height: 70px;
}
header .title {
	padding-bottom: 20px
}

header .nuvola, header .client-name {
	color: var(--app-header-text);
	font-weight: normal;
}
header .ts {
	color: var(--app-background);
	font-weight: bold;
}

header .offline-warning {
	display: none;
	background-color: var(--app-highlight-text);
	color: var(--app-background);
}
body.offline header .offline-warning {
	display: block;
	clear: both;
}

section.screen-page {
	scroll-x: auto;
	margin-top: 50px;
	display: none;
	padding: 1% 1% 50px 1%;
}
body.offline section.screen-page {
	margin-top: 70px;
}

a {
	color: var(--app-black);
}
img {
	max-width: 100%;		/*ensure images are never wider than their container*/
}
h1 {
	color: var(--app-header-text);
}
h2 {
	color: var(--app-background);
	text-transform: uppercase;
}

.action-button {
	border: 2px solid var(--app-black);
	color: var(--app-background);
	background: var(--app-highlight-text);
	font-size: 30px;
}
.cancel-button {
	border: 2px solid var(--app-black);
	color: var(--app-highlight-text);
	background: var(--app-background);
	font-size: 30px;
}
.action-object {
	cursor: pointer;
	background-color: var(--app-yellow);
	color: var(--app-background);
	text-transform: uppercase;
	font-weight: 700;
}
.page-title {
	text-align: center;
}

/**LIGHTBOXES**/
.lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2000000;
	margin: 0;
	padding: 35px;
	background: rgba(0, 0, 0, .75);
	box-sizing: border-box;
}

.lightbox.small-box {
	padding: 35vh 20vw;
}
.lightbox-inner {
	margin: auto;
	padding: 10px;
	background: white;
	max-height: 100%;
	box-sizing: border-box;
	height: 100%;
	width: 100%;
	border-radius: 10px;
	overflow: auto;
	/*position: relative;*/
}
/*.lightbox-inner::before {
	content: "\00d7";
	position: fixed;
	top: 5px;
	right: 5px;
	color: var(--app-background);
	font-size: 35px;
	cursor: pointer;
}*/
#lightbox-loader .lightbox-inner {
	background: #eee;
}

.lightbox-inner li {
	margin-left: 2em;
}

.lightbox-inner h2 {
	text-align: center;
}

.lightbox-inner .buttons {
	position: absolute;
	bottom: 10px;
	left: 10px;
}
.lightbox.small-box .lightbox-inner .buttons {
	width: 60vw;
	left: 20vw;
	bottom: 35vh;
	box-sizing: border-box;
	padding: 10px;
}
/** END LIGHTBOXES **/

/** NAV BAR **/
nav.navbar {
	position: fixed;
	bottom: 0;
	left: 0;
	height: 55px; 
	background: var(--app-header-background);
	width: 100vw;
	z-index: 10;
	display: none;
}
body.has-navbar-labels nav.navbar {
	height: 60px;
}
nav.navbar ul {
	display: flex;
	padding: 0;
	margin: 0;
	width: 100%;
}
nav.navbar ul li {  
	text-align: center;
	width: 20%;
	list-style: none;
	background-color: transparent;
	transition: background-color .4s;
	font-size: 20px;
	font-weight: normal;
	padding: 5px 0;
	color: var(--app-black);
	position: relative;
}

/* nav bar icon images */
nav.navbar img {
	height: 24px;
	width: 24px;
}

nav.navbar ul li.active {
	background-color: var(--app-background);
	color: var(--app-highlight-text);
}
nav.navbar ul li label {
	display: block;
	font-size: 16px;
}

nav.navbar ul li span.indicator {
	position: absolute;
	border-radius: 5px;
	font-size: 10px;
	top: 5px;
	right: 15px;
	padding: 2px 4px;
	color: var(--app-background);
	background: var(--app-highlight-text);
}
.home-info-content {
	color: white;
}

/*header*/

.header-image-container {
	display: flex;
	justify-content: center;
}
.header-image {
	position: relative;
	top: 20px;
}



/** filters **/
.radio-holder input[type="radio"], .radio-holder input[type="checkbox"]  {
	display: none;
}
.radio-holder label {
	display: inline-block;
	background: var(--app-header-text);
	padding: 8px;
	border-radius: 8px;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 700;
}
.radio-holder input:checked + label {
	background: var(--app-yellow);
	color: var(--app-background);
	border-color: var(--app-yellow);
	text-transform: uppercase;
}

.record-list {
	padding: 0;
	margin: 10px 0;
}
.record-list li {
	padding: 10px;
	box-sizing: border-box;
	border-radius: 8px;
	background: var(--app-grey-box);
	width: 100%;
	list-style: none;
	margin: 5px 0;
}

.record-list li.victim {
	background-color: var(--app-header-background)/*#224488*/;
}
.record-list li.suspect {
	background-color: var(--app-header-background) /*#884422*/;
}
.record-list li.witness {
	background-color: var(--app-header-background)/*#888822*/;
}

button {
	background: var(--app-grey-box);
	border: 0;
	padding: 10px;
	border-radius: 8px;
}


/**
case code page
**/

.login-holder {
	background-color: var(--app-background);
	color: var(--app-header-text);
	text-align: center;
	border: solid;
	border-width: 2px;
	border-color: var(--app-header-text);
	border-radius: 10px;
	padding-top: 10px;
	padding-right: 5px;
	padding-bottom: 20px;
	padding-left: 5px;
	margin-left: 50px;
	margin-right: 50px;
	margin-top: 100px;
	margin-bottom: 100px;
}
.login-holder label {
	font-family: Bahnschrift, sans-serif;
	font-size: 12px;
	/*z-index: 1;*/
	position: relative;
	margin-bottom: 10px;
	/*word-wrap: inherit;*/
	display: block;
}
.login-image {
	padding: 10px;
}

#input-login-gameKey {
	background-color: var(--app-yellow);
	color: var(app-background);
	font-weight: 700;
	font-family: Bahnschrift, sans-serif;
	text-align: center;
	/*add font when loaded*/
	border-color: var(--app-yellow);
	border-radius: 5px;
	z-index: 1;
	position: relative;
	padding: 8px;

	margin-top: 50px;
}
#login-button {
	color: var(--app-header-text);
	font-family: Bahnschrift, sans-serif;
	background-color: var(--app-background);
	border-width: 2px;
	border-style: solid;
	border-color: var(--app-header-text);
	border-radius: 5px;
	margin: 10px;
	padding: 5px;
	z-index: 3;
	
}
.login-holder h1 {
	font-size: 40px;
}

	
/*	*/

/**
questioner
**/
.next-question-holder {
	display: none;
}

#section-questions {
	background-color: var(--app-header-text);
	display: block;
  	margin-left: auto;
  	margin-right: auto;
  	width: 90%;
	border-radius: 5px;
	margin-bottom: 20px;

}
.answer-holder input[type="text"] {
	background-color: var(--app-background);
	color: var(--app-header-text);
	border-radius: 5px;
	border-color:var(--app-background);
	text-transform: uppercase;
}
#section-questions h1 {
	color: var(--app-background);
	position: relative;
	top: -10px; 
}
#section-questions #questions-input-select-answer {
	display: block;
	margin-top: 20px;
	width: 65%;
	background-color: var(--app-background);
	border-radius: 5px;
    color: white;
    -ms-box-sizing:content-box;
	-moz-box-sizing:content-box;
	-webkit-box-sizing:content-box; 
	box-sizing:content-box;
	padding: 3px;

}
#section-questions select,
#section-questions input{
	display: block;
	margin-top: 20px;
	width: 65%;
	background-color: var(--app-background);
	border-radius: 5px;
    color: white;
    -ms-box-sizing:content-box;
	-moz-box-sizing:content-box;
	-webkit-box-sizing:content-box; 
	box-sizing:content-box;
	padding: 3px;
}
#section-questions select {
	text-transform: uppercase;
}
.hint-holder {
	margin-bottom: 10px;
}
.information-holder {
	font-weight: bold;
	text-transform: uppercase;
}

#section-questions #questions-input-text-answer {
	width: 65%;
	-ms-box-sizing:content-box;
	-moz-box-sizing:content-box;
	-webkit-box-sizing:content-box; 
	box-sizing:content-box;
	padding: 3px;
}
#section-questions .action-object[data-action="answerQuestion"] {
	width: 100%;
}


#section-questions select:after {
	color: blue;
}
#section-questions .hint-1,
#section-questions .hint-2 {
	font-weight: normal;
}
.previous-answers-holder {
	display: none;
}
.previous-answers {
	padding-left: 1.5em;
}
.previous-answers li {
	margin: 10px 0;
}

/*
#section-login
*/
/*.header-image {*/
/*	display: none !important;*/
/*}*/
#section-login #sidebar-open-button {
	display: none;
}

#section-login {
	padding-bottom: 0;
	padding-top: 0;
}

/*
#section-home
*/

#section-home img {
	height: 50%;
	width: 50%;
	margin: auto;
	display: block;
}


/*
#section-personDetail
*/

#section-personDetail img {
	/*width: 125px;*/
	/*height: 150px;*/
	/*width: 200px;*/
	height: 250px;
	
	
	/* 200x200*/
	position: relative;
	top: 20px;
}
#section-personDetail h1 {
	text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: auto;
    width: 80%;
    border-radius: 5px;
    padding: 5px;
    box-sizing: border-box;
    font-size: 24px;
}

/*#section-personDetail .transcript,*/
#section-personDetail .record-view {
	background-color: white;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin: auto;
	width: 80%;
	border-radius: 5px;
	padding: 25px;
	box-sizing: border-box;
	font-size: 24px;
	/*padding-top: 100px;*/
	/*padding-bottom: 100px;*/
}

#section-personDetail .transcript {
	margin-top: 20px;
	width: 95%;
	border-radius: 5px;
	background-color: white;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 5px;
	box-sizing: border-box;
	margin-right: auto;
	margin-left: auto;
	margin-bottom: 20px;
}
#section-personDetail .record-view .content {
	width: 100% !important;
}
#section-personDetail .record-view p:first-of-type {
	align-self: flex-end;
	/*margin-right: 100px;*/
	margin-right: 60px;
}
#section-personDetail .record-view-field.occupation,
#section-personDetail .record-view-field.age,
#section-personDetail .record-view-field.dob,
#section-personDetail .record-view-field.sex,
#section-personDetail .record-view-field.height,
#section-personDetail .content,
#section-personDetail h2:first-of-type{
	/*align-self: flex-start;*/
	/*margin-bottom: 200px;*/
	/*position: relative;*/
	/*bottom: 200px;*/
}

#section-personDetail .record-view-field.containerOpen {
	display: none;
}
#section-personDetail .record-list {
	width: 80%;
	margin-right: auto;
	margin-left: auto;
}
#section-personDetail .record-list img {
	top: 0 !important;
}

#section-personDetail .record-view-field.occupation span,
#section-personDetail .record-view-field.age span,
#section-personDetail .record-view-field.dob span,
#section-personDetail .record-view-field.sex span,
#section-personDetail .record-view-field.height span,
#section-personDetail .record-view-field.hair span,
#section-personDetail .record-view-field.age span,
#section-personDetail .record-view-field.address span,
#section-personDetail .record-view-field.eyes span,
#section-personDetail .record-view-field.employer span {
	display: block;
	font-size: 10px;
	text-transform: uppercase;
	font-weight: bold;
}
#section-personDetail .record-view-field.occupation label,
#section-personDetail .record-view-field.age label,
#section-personDetail .record-view-field.dob label,
#section-personDetail .record-view-field.sex label,
#section-personDetail .record-view-field.height label,
#section-personDetail .record-view-field.hair label,
#section-personDetail .record-view-field.age label,
#section-personDetail .record-view-field.address label,
#section-personDetail .record-view-field.eyes label,
#section-personDetail .record-view-field.employer label
  {
	font-size: 8px;
	text-transform: uppercase;
}
#section-personDetail h2:first-of-type {
	font-size: 20px;
}
#section-personDetail h2:first-of-type:before {
	content: "Name:";
	display: block;
	font-size: 8px;
	font-family: Bahnschrift, sans-serif;
    /*background-color: var(--app-background);*/
}


#section-personDetail .container {
	width: 60%;
	position: relative;
	/*bottom: 190px;*/
	bottom: 280px;
	/*margin-bottom: -190px;*/
	margin-bottom: -280px;
}
#section-personDetail .container div:nth-child(even) {
	
	width: 50%;
}
#section-personDetail .container div:nth-child(odd) {
	width: 50%;
	/*float: right;*/
}
#section-personDetail .record-view-field.containerOpen2,
#section-personDetail .record-view-field.containerClose{
	display: none;
}
#section-personDetail button {
	margin-left: 5px;
}

@media only screen and (max-width: 780px) {
	/*600px*/
	#section-personDetail .record-view {
	width: 95%;
	border-radius: 5px;
	}
	#section-personDetail h1 {
		width: 95%;
	}
	#section-personDetail .record-view img {
		width: 155px !important;
		height: 150px !important;
	}
	#section-personDetail .record-view p:first-of-type {
	margin-right: 10px !important;
	}
	#section-personDetail .container {
		bottom: 215px !important;
		margin-bottom: -215px !important;
	}
	#section-evidenceDetail img {
		width: 95% !important;
	}
	#section-personDetail .record-list {
		width: 95% !important;
	}
}
.sideNavCaseCode span {
	display: block;
	text-align: right;
	text-transform: lowercase;
}
.sideNavCaseCode {
	text-transform: uppercase;
	font-weight: bold;
}
.header-case-code-container {
	position: fixed;
    top: 15px;
    z-index: 101;
    /* display: none; */
    visibility: visible;
    background: none !important;
    right: 15px;
    color: white;
    font-family: var(--app-highlight-font);
    text-transform: uppercase;
    /*font-weight: bold;*/
    font-size: 15px;
}
.header-case-code-container span {
	display: block;
	text-align: right;
	text-transform: lowercase;
}
/* generic */ 
.record-list li {
	margin: 5px;
/*	text-align: left; */
	display: flex;
	align-items: center;
	flex-direction: column;
	flex: 1 1 47%;
	/*width: 48%;*/
	margin-left: 5px;
	margin-right: 5px;
	padding-left: 5px;
	padding-right: 5px;
	max-width: 47% !important;
}
.record-list  {
	display: flex;
	flex-wrap: wrap;
}

.filter-holder {
	margin-left: 5px;
}
.filter-holder label {
	margin-right: 10px;
	margin-bottom: 5px;
	padding: 3px 10px 3px 10px;
	border-radius: 5px;
}


/*
#section-people
*/
#section-people .filter-holder {
	margin-left: 5px;
}
#section-people .filter-holder label {
	margin-right: 10px;
	padding: 3px 10px 3px 10px;
	border-radius: 5px;
}



#section-people .action-object {
	display: flex;
	align-items: flex-start !important;
	
	
}
/*#section-people .record-list li:first-child,*/
/*#section-people .record-list li:last-child{*/
/*	margin-right: auto;*/
/*}*/


#section-people .record-list  {
	display: flex;
	flex-wrap: wrap;
	/*justify-content: center;*/
}
#section-people .record-list li {
	margin: 5px;
/*	text-align: left; */
	display: flex;
	align-items: center;
	flex-direction: column;
	flex: 0 1 42vw; /* 42vw */
	padding-left: 5px;
	padding-right: 5px;
	max-height: 450px;
}
.record-list li {
	max-height: 450px !important;
	max-width: 350px !important;
	/* amended eh to 350 from 300 and uncommented */
}
#section-people .action-object span {
	color: var(--app-header-text);
	text-align: left;
	position: relative;
	bottom: 5px;
}
.record-list img{
	/*width: 120px !important;*/
	/*height: 120px !important;*/
    display: block;
    margin-right: auto;
    margin-left: auto;
    padding-bottom: 10px;
    /*object-fit: cover;*/
    width: -webkit-fill-available;
    height: 100%;
    width: 100%;
    object-fit: contain;
}

/*
#section-evidence
*/
#section-evidence .record-list  {
	display: flex;
}
#section-evidence .record-list li {
	margin: 5px;
	text-align: center;
	background-color: var(--app-header-background);
	background-image: url('../img/evidence-blank-sm.png'); /*not working*/
	position: relative;
}
#section-evidence .action-object .fragment {
	
	background-color: hotpink;
}
#section-evidence .action-object {
	padding-top: 30px;
	padding-bottom: 50px;
	font-size: 14px;
}
#section-evidence .action-object span {
	color: var(--app-header-text);
/*	background-color: red;*/
	position: absolute;
	bottom: 20px;
}
/*#section-evidence .action-object span::before {*/
/*	content: "<< ";*/
/*	color: var(--app-header-text);*/
/*}*/
/*#section-evidence .action-object span::after {*/
/*	content: " >>";*/
/*	color: var(--app-header-text);*/
/*}*/


/*
#section-evidenceDetail
*/
#section-evidenceDetail {
	margin-bottom: 20px;
}
#section-evidenceDetail h1 {
	text-align: center;
	text-transform: uppercase;
}
#section-evidenceDetail .record-view {
	background-color: var(--app-background-color);

}
#section-evidenceDetail .record-view  h2{
	color: var(--app-header-text);
	text-align: center;
	font-size: 35px;
	letter-spacing: 3px;
	position: relative;
/*	top: 400px; */
	
}	

#section-evidenceDetail .record-view .content {
	color: var(--app-header-text);
	padding-bottom: 50px;
}
#section-evidenceDetail .record-view img {
	display: block;
  	margin-left: auto;
  	margin-right: auto;
  	width: 100%;
	object-fit: contain;
}
#section-evidenceDetail .content {
	background-color: white;
	color: black !important;
	border-radius: 5px;
	width: 95%;
	padding: 15px;
	margin-top: 15px;
	margin-right: auto;
	margin-left: auto;
}
#section-evidenceDetail .content p {
	padding: 5px;
}
#section-evidenceDetail button {
	margin-left: 5px;
}


/* navigation screen */

#mySideNav {
	
}

.sidenav .action-object.submit,
.sidenav .action-object.search{
	background-color: var(--app-yellow);
	color: var(--app-header-background);
}
.sidenav .action-object.search {
	/* color: grey; */
	/* font-size: inherit; */
	/* border-radius: 5px; */
	/* padding: 5px; */
}

#sidebarOpen {
	position: fixed;
	top: 10px;
	left: 5px;
	z-index: 101;
	/*display: none;*/
	visibility: visible;
	background: none !important;
}
#sidebarOpen img{
	width: 25px !important;
	height: 25px !important;
}
.sideNavCaseCode {
	position: absolute;
	top: 0;
	right: 0;
	padding-right: 15px;
	font-size: 14px;
	font-family: "Bahnschrift" ,sans-serif;
}
.sideNavLogo {
	position: absolute;
	top: 0px;
	/*left: 40%;*/
	max-width: 25%;
	padding-top: 10px;
}

.sidenav .action-object {
	display: block;
	margin-bottom: 10px;
	margin-right: auto;
	margin-left: auto;
	color: white;
	background: none;
	font-size: 24px;
	width: 35%;
}

.sidenav {
  display: none;
  height: 100%;
  width: 100%;
  /*position: absolute;*/
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  background-color: var(--app-header-background);
  /*overflow-x: hidden;*/
  /*overflow-y: hidden;*/
  /*padding-top: 60px;*/
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 300ms, opacity 300ms;
  -webkit-transition: visibility 0s linear 300ms, opacity 300ms;
  -moz-transition: visibility 0s linear 300ms, opacity 300ms;
  -o-transition: visibility 0s linear 300ms, opacity 300ms;
  
}
.sidenav button {
	transition: transform .2s;
}

.sidenav button:hover {
  color: #f1f1f1;
  transform: scale(1.1);
}
.sidenav button:active {
	background-color: var(--app-yellow);
}
.sidenav button:focus {
	background-color: var(--app-yellow);
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  color: white;
  left: 0;
  padding-left: 15px;
  font-size: 36px;
  
}

/*@media screen and (max-height: 450px) {*/
/*  .sidenav {padding-top: 15px;}*/
/*  .sidenav a {font-size: 18px;}*/
/*}*/

.record-view-field label::after {
	content: ':';
}
.record-view-field span {
	/*font-weight: bold;*/
}

.code-digit {
	width: 2em;
	height: 2em;
	font-size: 24px;
	display: inline-block;
	margin: 10px;
}

#section-showWin {
	color: var(--app-header-text);
	
}

@media only screen and (max-width: 900px) {
	#section-login,
	#section-people,
	#section-evidence,
	#section-home,
	#section-tools,
	#section-questions,
	#section-evidenceDetail,
	#section-personDetail,
	#section-search,
	#section-showWin {
		/*width: 90% !important;*/
		width: 95% !important;
	}
	.sidenav .action-object {
		width: 70%;
	}
}

.loading-overlay {
	display: none;
	background-color: #000000c0;
	background-image: url('../img/spinner.svg');
	background-position: center center;
	background-repeat: no-repeat;
	z-index: 1000000;
	width: 100vw;
	height: 100vh;
	position: absolute;
	top: 0;
	left: 0;
	/*background-size: 80px 80px;*/
}


.lightbox-inner button {
	background-color: var(--app-yellow);
}

.win-image {
	text-align: center;
}