html, body {
    height: 100%;
}

body {
  	background-color: #f9f9f9;
    font-family: "Lato";
    font-weight: 300;
    font-size: 16px;
    color: #555;
    padding: 0;

	background-repeat: no-repeat;
	background-position: center center;
	background-attachment: fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;

    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

body > .container {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

.fill {
    min-height: 100%;
    height: 100%;

    float: none;
    margin: 0 auto;
}

.navigation {
    float: none;
    margin: 0 auto;
}

/* Titles */
h1, h2, h3, h4, h5, h6 {
    font-family: "Raleway";
    font-weight: 300;
    color: #333;
}


/* Paragraph & Typographic */
p {
    line-height: 28px;
    margin-bottom: 25px;
}

.centered {
    text-align: center;
}

/* Links */
a {
    color: #e40000;
    word-wrap: break-word;

    -webkit-transition: color 0.1s ease-in, background 0.1s ease-in;
    -moz-transition: color 0.1s ease-in, background 0.1s ease-in;
    -ms-transition: color 0.1s ease-in, background 0.1s ease-in;
    -o-transition: color 0.1s ease-in, background 0.1s ease-in;
    transition: color 0.1s ease-in, background 0.1s ease-in;
}

a:hover,
a:focus {
    color: #7b7b7b;
    text-decoration: none;
    outline: 0;
}

a:before,
a:after {
    -webkit-transition: color 0.1s ease-in, background 0.1s ease-in;
    -moz-transition: color 0.1s ease-in, background 0.1s ease-in;
    -ms-transition: color 0.1s ease-in, background 0.1s ease-in;
    -o-transition: color 0.1s ease-in, background 0.1s ease-in;
    transition: color 0.1s ease-in, background 0.1s ease-in;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

.w {
	background-color: #ffffff;
	border: 1px solid #dddddd;
	-moz-box-shadow: 5px 5px rgba(0,0,0,0.2);
	-webkit-box-shadow: 5px 5px rgba(0,0,0,0.2);
	box-shadow: 5px 5px rgba(0,0,0,0.2);
}


.col-md-4 {
	padding-left: 0;
	padding-right: 0;
}

.col-md-8 {
	padding-left: 0;
	padding-right: 0;
}

.nav-tabs.nav-justified > li {
    float: left;
    width: 50%;
}

.nav-tabs > li > a,
.nav-tabs.nav-justified > li > a {
    width: 100%;
    margin-right: 2px;
    line-height: 1;
    border: none;
    border-radius: 0;
    /*border-radius: 0 0 8px 8px;*/
    /*background-color: red;*/
    border-bottom: 2px solid white;
    color: black;
    padding-top: 8px;
    padding-bottom: 8px;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus,
.nav-tabs.nav-justified > li.active > a,
.nav-tabs.nav-justified > li.active > a:hover,
.nav-tabs.nav-justified > li.active > a:focus {
    width: 100%;
	cursor: default;
    border: none;
	/*background-color: darkred;*/
    border-bottom: 2px solid red;
    /*color: white;*/
}

.tab-content {
	background-color: #ffffff;
	padding-left: 15px;
	padding-top: 20px;
	padding-right: 15px;
}

.text-vertical-center {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

.tab-content h5 {
	color: #bdc3c7;
	font-weight: 700;
	letter-spacing: 1px;
}

.red i {
	font-size: 12px;
	color: #e74c3c;
}

i {
	vertical-align: middle;
}

.sm {
	font-size: 14px;
}

a h6{
	color: #e40000;
}

a h6:hover {
	color: #7b7b7b;
}

/* Custom */

.fill {
    min-height: calc(100% - 62px);
    height: 400px;
}

#map {
    width: 100%;
    height: auto;
    min-height: 0;
    background: white;
    display: block;
    float: left;
}

.map-content {
    display: table;
    width: 100%;
    text-align: center;
}

.content-top {
    height: 60%;
}

.content-bottom {
    height: 40%;
}

.map-pane,
.map-pane.active  {
    float: none;
    display: table-cell;
    vertical-align: middle;
}

.content-top .map-pane h3 {
    margin-top: 10px;
}

.content-bottom .map-pane {
    padding-bottom: 10px;
}

.contact-icon {
    font-size: 44px;
    color: #333333;
    padding: 10px;
}

a:hover .contact-icon {
    color: #e40000;
}

#mright {
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: white;
    display: block;
}

.tab-content {
    display: table;
    width: 100%;
    height: calc(100% - 102px);
    padding: 0;
}

.tab-pane, .tab-pane.active {
    display: table-cell;
    width: 100%;
    height: 100%;
    min-height: 100%;

    float: none;
    vertical-align: middle;
}

.tab-pane .row {
    text-align: center;
}

.tab-pane .row .col-xs-12 {
    display: inline-block;
    max-width: 80%;
    margin: 0;
    text-align: left;
}

.tab-pane input, .tab-pane textarea {
    width: 100%;
}

.tab-pane input[type="submit"] {
    width: 120px;
    float: right;
    margin-top: 20px;
}

.bottom-copy {
    float: right;
    font-size: 14px;
    margin-bottom: 0;
    color: #000;
    padding-right: 6px;
}

#about {
    position: relative;
}

#about .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;

    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

#about .slide_1 {
    background-image: url("../img/avatar_1.jpg");
}
#about .slide_2 {
    background-image: url("../img/avatar_2.jpg");
}

@media (min-width: 768px) {
    .fill {
        min-height: calc(100% - 34px);
    }
    #map {
        width: 30%;
        height: 100%;
        min-height: 100%;
    }
    #mright {
        width: 70%;
        float: right;
    }
    .content-top .map-pane h3 {
        margin-top: 20px;
    }
    .content-bottom .map-pane {
        padding-bottom: 40px;
    }
    .tab-content {
        height: 100%;
        min-height: 100%;
    }
    .tab-pane .row .col-xs-12 {
        width: 600px;
    }
    .nav-tabs.nav-justified > li {
        float: none;
        width: 1%;
    }
    .navigation .row .menu {
        max-width: 30%;
    }
    .navigation .row .copy {
        width: auto;
        margin-left: 30%;
        margin-right: 0;
        float: none;
        height: 34px;
        border-bottom: 2px solid #ffffff;
    }
    .navigation .row .copy p {
        float: right;
        height: 34px;
        line-height: 34px;
    }
}