/* page layout - sticky footer */
html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

body > nav, body > div {
    flex: 1 0 auto;
}

#message_area {
    flex: 0 1 auto;
}

footer {
    flex-shrink: 0;
}


/* font face */
@font-face {
    font-family: 'bariolregular';
    src: url('/static/fonts/bariol_regular-webfont.eot');
    src: url('/static/fonts/bariol_regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('/static/fonts/bariol_regular-webfont.woff2') format('woff2'),
         url('/static/fonts/bariol_regular-webfont.woff') format('woff'),
         url('/static/fonts/bariol_regular-webfont.ttf') format('truetype'),
         url('/static/fonts/bariol_regular-webfont.svg#bariolregular') format('svg');
    font-weight: normal;
    font-style: normal;
}


/* General page appearance - colors, fonts, margins, etc. */
body {
    padding-top: 70px;  /* space for header */
    font-size:16px;
}

h1,h2 {
    font-family:bariolregular;
    font-weight: 900;
    margin-top: 32px;
    margin-bottom: 32px;
}

a {
    color: #2b7bb9;
}

a:hover, a:active {
    color: #2b7bb9;
    text-decoration: none;
    transition: 1000ms;
}


/* move anchors to make space for fixed header */
a[name] {
    position: absolute;
    top: -56px;
}


/* header and footer */
#header, footer {
    color: white;
    background: #507282;
    border: none;
}

#header {
    font-family:bariolregular;
    font-size:18px;
	box-shadow: 0px 0px 30px 0px #444;
}

#header a.navbar-brand {
	background: transparent url("/static/css/img/logo.png") no-repeat center;
    background-size: contain;
    text-indent: -9999px;
    width: 110px;
    height: 50px;
    color: white;
}

#header p.navbar-text,
#header .navbar-nav > li > a {
    color: white;
    line-height:20px;
}

@media screen and (max-width: 768px) {
    .navbar-collapse .navbar-nav .open .dropdown-menu > li > a {
	color: #eee;
    }
}

footer {
    margin-top: 40px;
    padding-top: 30px;
    padding-bottom: 40px;
    font-size: 14px;
    color: #bbb;
}

footer a {
    color: #ddd;
}

footer a:hover, footer a:active {
    color: white;
}

footer i.fab {
    font-size: 250%;
    padding-right: .5em;
}

footer h4 {
    padding-bottom: 2px;
    margin-bottom: 8px;
    border-bottom: 1.5px solid white;
    color: white;
}


/* Content types */

/* Responsive gallery */
.responsive-gallery div {
    padding: 0px;
}
.responsive-gallery img {
    box-sizing: border-box;
    padding: 5px;
}
.responsive-gallery img {
    filter: grayscale(67%);
    transition: 500ms;
}
.responsive-gallery img:hover {
	filter: grayscale(0%);
	transition: 500ms;
}


/* Map */
div.map {
    margin-top:3em;
}
div.map > iframe {
    width:100%;
    border:0;
}

/* Committee pages */
.portraits {
	display:flex;
	flex-wrap: wrap;
	justify-content: center;
}
.portraits div {
	position: relative;
	display: inline-block;
	vertical-align: top;
	margin: 0px;
	font-size: larger;
}
.portraits img {
	width: 100%;
	filter: grayscale(100%);
	transition: 500ms;
}
.portraits div:hover img {
	filter: grayscale(0%);
	transition: 500ms;
}
.portraits div:hover p {
    height: 60px;
    transition: height 500ms;
}
.portraits p {
	position: absolute;
	bottom: 0px;
	width: 100%;
	height: 0px;
	margin: 5px 0px 0px 0px;
	overflow: hidden;
	background-color: white;
	opacity: 0.8;
}
.portraits p::first-line {
	font-weight: bold;
}
.portraits p.hover {
	height: auto;
}
