/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */

body {
    padding-bottom: 40px;
    color: #5a5a5a;
    padding-top: 20px;
}

/* YOUTUBE CONTAINER
-------------------------------------------------- */
.youtube-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}
.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

    /* CUSTOMIZE THE NAVBAR
    -------------------------------------------------- */


/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Carousel base class */
.carousel {
    margin-bottom: 20px;
}

.carousel .container {
    position: relative;
    z-index: 9;
}

.carousel-control {
    height: 80px;
    margin-top: 0;
    font-size: 120px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .4);
    background-color: transparent;
    border: 0;
    z-index: 10;
}

.carousel .item {
    height: 500px;
}

.carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: 80% 50%;
}


.carousel-caption {
    /*position: static;*/
    max-width: 550px;
    padding: 25px 50px;
    /*margin-top: 200px;*/
    background-color: rgba(0, 0, 0, .4);
    position: relative;
    /*left: -50px;*/
}

.carousel-caption h1,
.carousel-caption .lead {
margin: 0;
line-height: 1.25;
color: #fff;
text-shadow: 0 1px 1px rgba(0, 0, 0, .4);
}

.carousel-caption .btn {
margin-top: 10px;
}

/*
body div#myCarousel.carousel.slide div.carousel-inner div.item:first-child div.container div.carousel-caption {
margin-top:150px !important
}
*/


/* Moves first carousel (welcome text) to be left aligned on desktop */
.carousel-inner div:first-child div.container div.carousel-caption
{
    left: 23.5%;
}

/* Centers carousels */
div.container div.carousel-caption {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    right: auto;
    bottom: auto;
    margin-top: 0;
}

.carousel-inner div.item div.container {
    height: 100%;
}

/* Ensures first carousel has correct text size */
div.carousel-caption h1.lead {
    font-size: 30px !important;
}


/* MARKETING CONTENT
-------------------------------------------------- */

/* Center align the text within the three columns below the carousel */
.marketing .span4 {
    text-align: center;
}

.marketing h2 {
    font-weight: normal;
}

.marketing .span4 p {
    margin-left: 10px;
    margin-right: 10px;
}


/* Featurettes
------------------------- */

.featurette-divider {
    margin: 30px 0; /* Space out the Bootstrap <hr> more */
}

.featurette {
    padding-top: 120px; /* Vertically center images part 1: add padding above and below text. */
    overflow: hidden; /* Vertically center images part 2: clear their floats. */
}

.featurette-image {
    margin-top: -120px; /* Vertically center images part 3: negative margin up the image the same amount of the padding to center it. */
}

/* Give some space on the sides of the floated elements so text doesn't run right into it. */
.featurette-image.pull-left {
    margin-right: 40px;
}

.featurette-image.pull-right {
    margin-left: 40px;
}

/* Thin out the marketing headings */
.featurette-heading {
    font-size: 50px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -1px;
}


/* RESPONSIVE CSS
-------------------------------------------------- */

@media (max-width: 979px) {

    .container.navbar-wrapper {
        margin-bottom: 0;
        width: auto;

    }

    .navbar-inner {
        border-radius: 0;
        margin: -20px 0;
    }

    .carousel .item {
        height: 600px;
    }

    .carousel img {
        width: auto;
        height: 600px;
    }

    .featurette {
        height: auto;
        padding: 0;
    }

    .featurette-image.pull-left,
    .featurette-image.pull-right {
        display: block;
        float: none;
        max-width: 40%;
        margin: 0 auto 20px;
    }

    div.carousel-caption p.lead {
        font-size: 18px;
    }

    div.carousel-caption h1.lead {
        font-size: 24px;
    }

    /* Recenter first carousel */
    .carousel-inner div.item div.container div.carousel-caption{
        left: 50%;
    }
}


@media (max-width: 767px) {

    .navbar-inner {
        margin: -20px;
    }

    .carousel {
        margin-left: -20px;
        margin-right: -20px;
    }

    .carousel .container {

    }

    .carousel .item {
        height: 600px;
    }

    .carousel img {
        height: 600px;
    }

    .carousel-caption {
        width: 65%;
        padding: 22px 70px;
        margin-top: 100px;
    }

    .carousel-caption h1 {
        font-size: 30px;
    }

    .carousel-caption .lead,
    .carousel-caption .btn {
        font-size: 18px;
    }

    .marketing .span4 + .span4 {
        margin-top: 40px;
    }

    .featurette-heading {
        font-size: 30px;
    }

    .featurette .lead {
        font-size: 18px;
        line-height: 1.5;
    }

    div.container div.carousel-caption {
        margin-top: 0;
    }

    div.carousel-caption p.lead {
        font-size: 16px;
    }

    div.carousel-caption h1.lead {
        font-size: 20px;
    }

    /* Recenter first carousel */
    .carousel-inner div.item div.container div.carousel-caption{
        left: 50%;
    }

}