

/* ==========================================================================
   Custom styles
   ========================================================================== */

html {
    height: 100%;
}

body {
    font-family: "Montserrat", sans-serif;
    padding-top: 70px;
    padding-bottom: 70px;
    background-position: center, center;
    background-repeat: no-repeat;
    background-size: cover;
}

.navbar-brand {
    font-weight: bold;
    color: rgba(255,255,255,.5);
    text-shadow: 1px 1px 0 #df691a, 3px 4px 0 rgba(0,0,0,0.15);
    font-size: 2em;
    font-family: "Roboto Slab", serif;
}

h1 {
    font-weight: 700;
    margin-bottom: 0;
    font-family: "Roboto Slab", serif;
}
h2 {
    margin-bottom: 0;
}
.title {
    padding-bottom: 20px;
    border-bottom: 1px solid #596a7b;
    margin-bottom: 20px;
}
.title h1 {
    display: inline-block;
    max-width: calc(100% - 30px);
}
.home h1 {
    margin-right: 20px;
}

.title .back {
    font-size: 45px;
    line-height: 0;
    margin-right: 10px;
}
.title a.back:hover,
.title a.back:focus {
    text-decoration: none;
    color: #b15315;
}

.title h2 {
    /* margin-left: 20px; */
    text-transform: uppercase;
    font-family: Montserrat;
    opacity: .5;
    font-size: calc(85% + 0.5vw);
    display: inline-block;
    margin-top: 0;
}

label, .radio label, .checkbox label, .help-block {
    font-weight: normal;
    font-size: 14px;
}

.img-thumbnail {
    border-radius: 4px;
    border-color: rgba(255,255,255,.3);
    min-width: 350px;
    min-height: 168px;
}

.keywords-grid .btn {
    margin-bottom: 4px;
}
.number {
    font-family: "Montserrat", sans-serif;
    font-size: 4.5em;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,.2);
    height: 1.3em;
    overflow: hidden;
    display: block;
}
.fact .number {
    font-family: "Montserrat", sans-serif;
    font-size: 10em;
    line-height: 1em;
    font-size: calc(800% + 2vw);
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,.2);
    overflow: hidden;
    display: block;
    margin-bottom: 10px;
    width: 100%;
    color: #fff;
}
.fact .big-number {
    letter-spacing: -.08em;
    font-size: calc(500% + 2vw);
}

.fact .description {
    font-family: "Roboto Slab", serif;
    font-size: 1.7em;
    text-align: center;
    opacity: .9;
}

.number-container, .about-section {
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 100px;
    height: 20em;
    -webkit-transform: translateZ(0);
}

.btn {
    font-family: "Montserrat", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fact-card {
    padding: 20px 30px;
    background-color: #344b61;
    border-radius: 4px;
    transition: .3s all;
}
.fact-card .number {
    font-size: 4em;
}
.fact-card .description {
    font-size: 1.2em;
}
.fact-card:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 30px rgba(0,0,0,0.6);
    background-color: #3b556d;
}

.round-btn {
    color: rgba(255,255,255,.2);
    border: 2px solid rgba(255,255,255,.2);
    opacity: 1;
    font-size: 2em;
    border-radius: 50px;
    width: 32px;
    height: 32px;
    text-align: center;
    text-decoration: none;
    transition: all .1s;
}
.round-btn:hover, .round-btn:focus {
    color: #fff;
    border-color: #fff;
    text-decoration: none;
}
.close {
    line-height: 0.97em;
    position: absolute;
    right: 0;
}
.info {
    position: fixed;
    bottom: 60px;
    right: 30px;
    font-size: 1.3em;
    font-family: 'Roboto Slab';
    font-weight: bold;
}

.sans-serif {
    font-family: "Montserrat", sans-serif;
}
.serif {
    font-family: "Roboto Slab", serif;
}


/* Responsive */
@media only screen and (max-width: 576px) {
    .number {
        font-size: 3em;
        height: 1.7em;
        letter-spacing: -.08em;
    }
    .fact .number {
        font-size: 20vw;
    }
    .fact .big-number {
        font-size: 13vw;
        height: 2em;
    }
    .fact .description {
        font-size: 1.4em;
    }
    h1 {
        font-size: 30px;
    }
    .close {
        position: fixed;
        top: -10vh;
        right: 2vw;
    }
}


/* Submit */
.background-fields {
    display: none;
}
.gly-spin {
    -webkit-animation: glyphicon-spin-r 2s infinite linear;
    animation: glyphicon-spin-r 2s infinite linear;
}
@-webkit-keyframes glyphicon-spin-r {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}


/* Common style */
.grid figure {
	position: relative;
	float: left;
	overflow: hidden;
	min-width: 320px;
	max-width: 800px;
	max-height: 460px;
	width: 100%;
	height: auto;
	text-align: center;
    margin-bottom: 30px;
}

.grid figure img {
	position: relative;
	display: block;
	min-height: 100%;
	max-width: 100%;
	opacity: 0.8;
}

.grid figure figcaption {
	padding: 2em;
	color: #fff;
	text-transform: uppercase;
	font-size: 1.25em;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.grid figure figcaption::before,
.grid figure figcaption::after {
	pointer-events: none;
}

.grid figure figcaption,
.grid figure figcaption > a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.grid figure figcaption > a {
	z-index: 1000;
	text-indent: 200%;
	white-space: nowrap;
	font-size: 0;
	opacity: 0;
}

.grid figure .number {
	word-spacing: -0.15em;
}

.grid figure .number span {
	font-weight: 800;
}

.grid figure h2,
.grid figure .number {
	margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.grid figure h2 {
	letter-spacing: 1px;
	font-size: 68.5%;
}


/*-----------------*/
/***** Goliath *****/
/*-----------------*/

figure.effect-goliath {
	background: #bf5a16;
}

figure.effect-goliath img,
figure.effect-goliath .number {
	-webkit-transition: all 0.35s;
	transition: all 0.35s;
}

figure.effect-goliath img {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

figure.effect-goliath h2,
figure.effect-goliath .number {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 30px 10px;
}

figure.effect-goliath .number {
	bottom: 50px;
}

figure.effect-goliath h2 {
	text-transform: none;
	font-size: 90%;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(0,50px,0);
	transform: translate3d(0,50px,0);
}

figure.effect-goliath:hover img {
	-webkit-transform: translate3d(0,-80px,0);
	transform: translate3d(0,-80px,0);
}

figure.effect-goliath:hover .number {
	-webkit-transform: translate3d(0,-100px,0);
	transform: translate3d(0,-100px,0);
    height: 1.6em;
}

figure.effect-goliath:hover h2 {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}



/* ==========================================================================
   Themes
   ========================================================================== */
