html {
	height: 100%;
	box-sizing: border-box;
}

body {
	background-color: #f0f8ff;
	background-attachment: fixed;
	background-image: url(/img/background_cerrillos.jpg);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	font-family: 'Noto Sans', sans-serif;
	padding-top: 0;
	position: relative;
	min-height: 100%;
	margin: 0;
}

.container {
	/* TODO add 1x1 pixel for fallback */
	/* background: url('img/rcustom_transparent_background.png'); */
	background-color: rgba(255,255,255,0.91);
}

.navbar {
	z-index: 9;
}

.pre-nav {
	position: inherit;
	width: auto;
	top: initial;
}
.pre-nav h1 {
	color: #000000;
	font-weight: 300;
	font-size: 1.4rem;
	letter-spacing: 0.1rem;
	margin-top: 0rem;
	text-align: center;
	text-transform: uppercase;
}

.pre-nav blockquote {
	font-family: "Noto Sans", sans-serif;
	font-size: 1.2rem;
}

.navbar .container {
	background-color: transparent;
}
.footer .container {
	background-color: transparent;
}
.pre-nav .container {
	background-color: transparent;
}
.navbar-brand img {
	height: auto;
	width: 50px;
}
.navbar-collapse {
	background-color: #ffffff;
	border: 1px solid #f0f0f0;
	padding-left: 10px;
}

.nav-link {
	color: #636363 !important;
	font-size: 1.2rem;
	font-weight: 400;
	letter-spacing: 0.1rem;
	text-transform: uppercase;
}
.nav-link:hover {
	text-decoration: underline;
}
.nav-link.logout {
	color: #285d79;
}

h1 {
	margin-bottom: 0.5rem;
}

h2 {
	font-size: 1.5rem;
	text-align: center;
	margin-bottom: 2rem;
}
h5, h5.card-title {
	text-transform: uppercase;
}

a, a:active, a:visited {
	color: #1479ba;
}

.lead {
	font-weight: bold;
}

.btn-primary {
    background-color: #1479ba;
    border-color: #1479ba;
}
.btn-primary:hover {
    background-color: #636363;
    border-color: #434343;
}
.btn-primary:visited {
    color: #ffffff !important;
}
.btn-outline-primary {
    background-color: #1479ba;
    border-color: #1479ba;
    color: #ffffff !important;
}
.btn-outline-primary:hover {
    background-color: #636363;
    border-color: #434343;
    color: #ffffff !important;
}
.btn-outline-primary:visited {
    color: #ffffff !important;
}

/* forms */
fieldset {
	margin-top: 1rem;
	margin-bottom: 1rem;
}
textarea {
	resize: both;
}

.starter-template {
	padding: 2rem 0.5rem;
	/*text-align: center;*/
	text-align: left;
}
.card-deck .card,
.card {
	margin-bottom: 1.0rem;
	margin-top: 1.0rem;
	min-width: 300px;
}
.card-locations-container, 
.card-files-container {
	margin-top: 20px;
}
.card-location {
	background-color: #f0f0f0;
	border: 1px solid #cccccc;
	border-radius: 3px;
	margin-bottom: 10px;
	margin-top: 10px;
	padding-top: 10px;
	padding-bottom: 10px;
}
.card-map {
	height: auto;
	margin-bottom: 10px;
	min-height: 200px;
	width: 100%;
}
.card-link {
	display: block;
}
.card-link+ .card-link {
	margin-left: 0;
}
.location-map {
	height: auto;
	margin-bottom: 25px;
	margin-top: 15px;
	min-height: 300px;
	width: 100%;
}
.location-view-map {
	height: auto;
	margin-bottom: 15px;
	margin-top: 15px;
	min-height: 300px;
	width: 100%;
}

.card-approver {
	min-width: 150px !important;
}

.list-group {
	margin-bottom: 1rem;
	margin-top: 1rem;
}

/* Permits */
.permit-meta {
	float: none;
}
.permit-history-link {
	font-size: 0.9em;
	font-color: #999999;
}
.permit-filetype {
	text-transform: capitalize;
}
#chart_div {
	width: 100%;
}

h4 {
	font-weight: bold;
}
h4.card-title {
	font-weight: 500;
}
h4.permit-locations-title,
h4.permit-locations-files-title {
	font-weight: 500;
	margin-top: 25px;
	text-transform: uppercase;
}

.permit-location-date {
	font-size: 0.8rem;
}

p.explanation {
	margin-left: 20px;
}

/* approvals */
form.form-approval {
	display: inline-block;
}
form.form-approval+ form.form-approval {
	margin-left: 1.25em;
}
.comment-trigger {
	cursor: pointer;
}

/* comments */
.comments blockquote {
	border-radius: 5px;
	border-width: 1px;
	border-color: #e0e0e0;
	border-style: solid;
	padding: 10px;
}

.comments cite {
	.font-size: 0.8rem;
}

input.daterange,
input.constructiondaterange {
	max-width: 300px;
	display: inline;
}
.daterange-delete,
.constructiondaterange-delete {
	display: inline;
	font-size: 1.4em;
}

.col-contact p { 
	margin-left: 4rem;
}


.footer {
	/* TODO add 1x1 pixel for fallback */
	/* background: url('img/rcustom_transparent_background.png'); */
	background-color: rgba(130,176,201,0.95);
	color: #000000;
	font-size: 1.1rem;
	text-align: center;
}
.footer > .container {
	margin-bottom: 0;
	margin-top: 20px;
}
.footer p:first-of-type {
	margin-top: 20px;
}
.footer p {
	margin-bottom: 0;
}
.footer a,
.footer a:visited {
	color: #f0f8ff;
}

.footer .col-sm {
	text-align: center;
	vertical-align: middle;
}
.subfooter {
	font-size: 0.8rem;
}
.bottom-links {
	margin-bottom: 20px;
}

/* faq */
ul.answer li {
	margin-top: 5px;
}
ul.answer li ul li {
	margin-top: 5px;
}

/* tags */
#tag-list {
	margin-top: 20px;
}
.tag-filter {
}
.active-tag {
	font-weight: bold;
}

.hidden {
	display: none;
}

@media (min-width: 576px) {

	body {
		padding-bottom: 200px;
	}

	.pre-nav {
		position: absolute;
		width: 100%;
		top: 0;
	}

	.pre-nav blockquote {
		margin-top: 1.2rem;
	}

	.pre-nav .container > * {
		margin-left: 140px;
	}

	.pre-nav h1 {
		font-size: 1.9rem;
		margin-top: 1rem;
	}

	.navbar-brand img {
		width: 154px;
	}

	.navbar-collapse {
		background-color: transparent;
		border: 0;
		margin-top: 90px;
		padding-left: 0;
	}

	.nav-item {
		margin-left: 70px;
		margin-right: 70px;
	}

	.logged-in .nav-item {
		margin-left: 15px;
		margin-right: 15px;
	}

	.container {
		/* margin-bottom: 20px; */
	}

	.starter-template {
		text-align: left;
	}

	.home-login,
	.home-create {
		max-width: 300px;
	}

	/* permits */
	.permit-meta {
		float: right;
	}
	.permit-meta > div {
		display: inline-block;
	}

	.footer {
		position: absolute;
		bottom: 0;
		right: 0;
		left: 0;
		height: 200px;
		width: 100%;
	}

	.footer .col-sm {
		text-align: left;
	}

	.card-link {
		display: initial;
	}
	.card-link+ .card-link {
		margin-left: 1.25em;
	}

}

/* print styling for permit printout */
@media print {
	.navbar, .pre-nav, .footer { display: none; }
	.location-view-map { display:inline-block; }
	.location-view-map img { display:inline-block; max-width: initial !important; width: initial !important; }
	body { background-color: #ffffff; background-image: none; }
}