/* Miligram overrides */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
}

.top-nav-links,
.side-nav,
h1, h2, h3, h4, h5, h6 {
    font-family: "Raleway", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    color: #363637;
}

a {
    color:#2f85ae;
    -webkit-transition:all 0.2s linear;
    transition:all 0.2s linear;
}

a:hover,
a:focus,
a:active  {
    color:#2a6496;
    -webkit-transition:all 0.2s easeout;
    transition:all 0.2s ease-out;
}

.side-nav a,
.top-nav-links a,
th a,
.actions a {
    color: #606c76;
}

.side-nav a:hover,
.side-nav a:focus,
.actions a:hover,
.actions a:focus {
    color:#2f85ae;
}

/* Utility */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Main */
body {
    background: #f5f7fa;
}
.content {
    padding: 2rem;
    background: #ffffff;
    border-radius: 0.4rem;
    /* Thanks Stripe */
    box-shadow: 0 7px 14px 0 rgba(60, 66, 87, 0.1),
        0 3px 6px 0 rgba(0, 0, 0, 0.07);
}
.actions a {
    font-weight: bold;
    padding: 0 0.4rem;
}
th {
    white-space: nowrap;
}

/* Nav bar */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 112rem;
    padding: 2rem;
    margin: 0 auto 2rem;
}
.top-nav-title a {
    font-size: 2.4rem;
    color: #d33c43;
}
.top-nav-title span {
    color: #404041;
}
.top-nav-links a {
    margin: 0 0.5rem;
}
.top-nav-title a,
.top-nav-links a {
    font-weight: bold;
}

.side-nav-item {
    display: block;
    padding: 0.5rem 0;
}

/* View action */
.view.content .text {
    margin-top: 1.2rem;
}
.related {
    margin-top: 2rem;
}

/* Flash messages */
.message {
    padding: 1rem;

    background: #eff8ff;
    color: #2779bd;

    border-color: #6cb2eb;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    margin-bottom: 2rem;
}
.message.hidden {
    display: none;
}
.message.success {
    background: #e3fcec;
    color: #1f9d55;
    border-color: #51d88a;
}
.message.error {
    background: #fcebea;
    color: #cc1f1a;
    border-color: #ef5753;
}

/* Forms */
.input.radio,
.input.checkbox {
    margin-bottom: 2.0rem;
}
.input.radio input,
.input.checkbox input {
    margin: 0;
}
.input.radio label,
.input.checkbox label {
    margin: 0;
    display: flex;
    align-items: center;
}
.input.radio label > input,
.input.checkbox label > input {
    margin-right: 1.0rem;
}
.input.radio label:first-of-type {
    margin-bottom: 2.0rem;
}

/* Paginator */
.paginator {
    text-align: right;
}
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.pagination li {
    margin: 0 0.5rem;
}
.prev.disabled a,
.next.disabled a {
    cursor: not-allowed;
    color: #606c76;
}
.asc:after {
    content: " \2193";
}
.desc:after {
    content: " \2191";
}

/* Error */
.error-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
}

@media screen and (max-width: 640px) {
    .top-nav {
        margin: 0 auto;
    }
    .side-nav {
        margin-bottom: 1rem;
    }
    .heading {
        margin-bottom: 1rem;
    }
    .side-nav-item {
        display: inline;
        margin: 0 1.5rem 0 0;
    }
    .asc:after {
        content: " \2192";
    }
    .desc:after {
        content: " \2190";
    }
}

div.related {
	border-color: silver;
	border-width: 1px;
	border-style: solid;
	border-radius: 1em;
	padding: 0.5em;
}

.view .related table td img {
	max-height: 7em;
	max-width: 25em;
}

fieldset img,
#uploadimage img {
	max-height: 15em;
	max-width: 35em;
}

fieldset img,
#uploadimage img,
.colordisplay,
.texturefield {
	border-color: silver;
	border-width: 1px;
	border-style: solid;
	border-radius: 0.5em;
	padding: 0.2em;
}

.actions {
	text-align: right;
}

form fieldset legend h3 {
	color: orange;
}

fieldset {
	display: table;
	width: 100%;
}

fieldset > div.input {
	display: table-row;
	width: 100%;
}

fieldset > div.input > label {
	display: table-cell;
	padding-right: 1em;
}

fieldset > div.input > select {
	display: table-cell;
	width: 25em;
}

fieldset > div.input > input {
	display: table-cell;
	width: 25em;
}

fieldset > div.input > div {
	display: table-cell;
	height: 5.3rem;
	padding-top: 0.6rem;
    padding-right: 1rem;
    padding-bottom: 0.6rem;
    padding-left: 1rem;
}

table tr.active_false td {
	color: silver;
}

.input.checkbox label {
	display: table-cell;
}

input[type='checkbox'] {
	background-color: transparent;
    border: 0.1rem solid #d1d1d1;
    border-radius: .4rem;
    box-shadow: none;
    box-sizing: inherit;
    height: 3rem;
    
    padding-top: 0.6rem;
    padding-right: 1rem;
    padding-bottom: 0.6rem;
    padding-left: 1rem;
    
    
}

div.active_true {
	color: green;
}

div.active_false {
	color: red;
	font-weight: bold;
}

div.related canvas {
	width: 100%;
	border-radius: 0.5em;
}

.collapsible {
	background-color: #777;
	color: white;
	cursor: pointer;
	width: 100%;
	border: none;
	text-align: left;
	outline: none;
	font-size: 15px;
	margin-bottom: 0px;
	margin-top: 0.5em;
}

.active, .collapsible:hover {
	background-color: #555;
}

.collapsible + div {
	padding: 0 18px;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.2s ease-out;
	/* background-color: #f1f1f1; */
}

.related > h4 {
	display: inline;
	margin-right: 1em;
}

.container {
	width: 90%;
	max-width: 90%;
}

.texturefield {
	display: inline-block;
	margin-right: 1em;
	margin-bottom: 1em;
}

.texturefield #textureimage img {
	max-height: 10em;
	max-width: 10em;
}

.texturecontainer div {
	max-width: 12em;
	word-break: break-all;
}

.texturefield #textureimage img {
	border-color: silver;
	border-width: 1px;
	border-style: solid;
	border-radius: 0.5em;
	padding: 0.2em;
}

.texturefield {
	text-align: center;
}

input#red,
input#green,
input#blue {
	display: none;
}

.textureselectionheader {
	display: grid;
}

.button, button, input[type='button'], input[type='reset'], input[type='submit'] {
	background-color: #0000ff3f;
	border-color: #0000ff5f;
}

.view fieldset legend {
	display: flex;
}

.view fieldset legend a {
	margin-left: 2em;	
}

.sortfield a {
	border-left-style: solid;
	border-left-width: 1px;
	border-left-color: silver;
	padding-left: 0.2em;
}

.sortfield {
	margin-bottom: 1em;
}

.config_button {
	width: 10em;
	height: 10em;
	
	border-style: solid;
	border-width: 1px;
	border-color: silver;
	border-radius: 0.5em;
	
	display: inline-block;
	text-align: center;
}

.tablethumbnail {
	max-height: 7em;
    max-width: 25em;
}

.counterbadge {
	display: inline;
	
	border-radius: 0.5em;
	
	padding-left: 0.5em;
	padding-right: 0.5em;
	padding-top: 0.1em;
	padding-bottom: 0.1em;
	
	background-color: #777;
	color: white;
}

.unused {
	color: red;
}

.searchbar ul li {
	display: inline-block;
}

.colordisplay {
	vertical-align: middle;
}

select {
	min-width: max-content;
}

.exitfullscreen {
	position: absolute;
	top: 1em;
	left: 1em;
}

/* */

.modal {
	z-index: 1;
	padding-top: 7em;
	padding-bottom: 5em;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
}

.modal-content {
	background-color: #000f28;
	color: white;
	margin: auto;
	padding: 20px;
	border: 1px solid #888;
	border-radius: 1em;
	width: 80%;
}

.close {
	color: #aaaaaa;
	font-size: 4em;
	font-weight: bold;
	border-style: solid;
	border-width: thick;
	border-radius: 0.3em;
	padding-left: 0.5em;
	padding-right: 0.5em;
	padding-bottom: 0.1em;
	padding-top: 0em;
	text-align: center;
}

.close:hover,
.close:focus {
	color: white;
	text-decoration: none;
	cursor: pointer;
}

@font-face {
  font-family: "Poppins-Regular";
  src: url(/font/Poppins-Regular.ttf);
}

.modal-content .dialog {
	height: 100%;
}


.modal-content .dialog .keyboardlayout {
	display: table-cell;
	vertical-align: top;
	width: 50%;
}

.modal-content .dialog .keyboardlayout img {
	width: 100%;
}

.modal-content .dialog .description {
	display:table-cell;
	vertical-align: middle;
	width: 50%;
	font-size: 1.5em;
	font-family: Poppins-Regular, Arial;
}

.modal-content .dialog .description p {
	margin-top: 0.2em;
	margin-bottom: 0.2em;
}

.modal-content .dialog .dialogmessage {
	font-size: 2em; 
	width: 100%;
	text-align: center;
	padding-top: 1em;
	padding-bottom: 1em;
	font-family: Poppins-Regular, Arial;
}

#loadcounter {
	font-size: 2em; 
	width: 100%;
	text-align: center;
	padding-top: 1em;
	padding-bottom: 1em;
	font-family: Poppins-Regular, Arial;
	
}

@media only screen and (max-width: 1000px) {
	.modal {
		padding-top: 2em;
	}
	.modal-content .dialog .description {
		width: 100%;
		text-align: center;
		display: inline-block;
	}
	
	.modal-content .dialog .dialogmessage {
		padding-top: 0.5em;
	}
	
	.modal-content .dialog .keyboardlayout {
		display: none;
	}
}

@media only screen and (max-height: 500px) {
	.modal-content .dialog .description {
		display: none;
	}
}

/* */
