/* Body:
    - Give the body element a relative position for the scrollspy to work.
    - Add a font family to the whole page. */
body {
    position: relative;
    font-family: "Vollkorn", sans-serif;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}
/* Video:
    - Set the video as background, make it fixed.
    - Make sure it appears behind all elements.
    - Make it spread across the whole webpage. */
video#bgvideo {
    position: fixed;
    min-height: 100%;
    min-width: 100%;
    z-index: -100;
}

/* Video does not work in small devices:
    - Hide the video and set picture as background (use media queries).
    - Make it spread accross the whole webpage. */

/* Style the navigation bar using a navbar css generator: */
.navbar-brand {
    font-size: 1.57vw;
}

.nav-item {
    text-align: right;
}
/* Style the Home section and elements inside it: 
    - Reduce the margin-bottom of h1 and h2.
    - Style the button and its hover state. */
#home {
    background-color: transparent;
    color: white;
    text-align: center;
    padding-top: 15%;
}
#home h1 {
    margin-bottom: 30px;
    font-size: 3.3vw;
}
#home h2 {
    margin-bottom: 50px;
    font-size: 2.6vw;
}
#home .btn, .row, .carousel-inner {
    border: 1px solid white;
    border-radius: 8px;
}
#home .btn {
    background-color: #5369ac; 
    color: white;
    font-size: 20px;
    padding: 8px 20px;
}
#home .btn:hover, .row, .carousel-inner {
    background-color: rgba(100, 149, 237, 0.5);
}

/* Style the About section:
    - Add padding-top so that the nav link is active before the carousel hits the top border of the page.
    - Limit its width in big devices to 1000px.
    - Make headings bold and set the dimensions of pictures. */
.container {
    max-width: 1000px;
}
.row {
    padding: 20px;
}
#about {
    color: white;
    text-align: center;
    padding-top: 100px;
}
#about h2 {
    font-weight: bold;
}
#about p {
    font-size: 17px;
    margin-bottom: 30px;
}
.aboutImage {
    height: 120px;
    margin: 10px;
}
/* Style the promise section:
    - Add padding-top for early activation of the nav link.
    - Set the width of the carousel and center it.
    - Set the height of pictures and center them inside the carousel items.
    - Move the carousel caption under the pictures. */
#promise {
    padding-top: 100px;
}
#myCarousel {
    width: 60%;
    margin: 0 auto;
}
.carousel-item {
    transition: transform 2s ease, opacity 1s ease-out;
}
.carousel-inner .carousel-item img {
/*    height: 400px;*/
}
.carousel-caption {
    position: relative;
    left: auto;
    right: auto;
/*    height: 200px;*/
}
.carousel-caption h2 {
    font-size: 3vw;
    margin: 10px;
}
/* Style the footer: */
footer {
    background-color: cornflowerblue;
    background-image: -webkit-gradient(linear, left 0%, left 100%, from(#5369ac), to(#87ceeb));
    background-image: -webkit-linear-gradient(top, #5369ac, 0%, #87ceeb, 100%);
    background-image: -moz-linear-gradient(top, #5369ac 0%, #87ceeb 100%);
    background-image: linear-gradient(to bottom, #5369ac 0%, #87ceeb 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff1d6ecb', endColorstr='#ff17569e', GradientType=0);
    border-top: 1px solid white;
    color: white;
    padding: 15px 0;
    margin-top: 150px;
    text-indent: 100px;
}
/* Style the navbar: */
.navbar-dark {
    font-size: 1.5vw;
    background-color: cornflowerblue;
    background-image: -webkit-gradient(linear, left 0%, left 100%, from(#87ceeb), to(#5369ac));
    background-image: -webkit-linear-gradient(top, #87ceeb, 0%, #5369ac, 100%);
    background-image: -moz-linear-gradient(top, #87ceeb 0%, #5369ac 100%);
    background-image: linear-gradient(to bottom, #87ceeb 0%, #5369ac 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff1d6ecb', endColorstr='#ff17569e', GradientType=0);
    border-bottom: 1px solid white;
}
.navbar-dark .navbar-brand {
    color: #fff;
}
.navbar-dark .navbar-brand:hover,
.navbar-dark .navbar-brand:focus {
    color: #fff;
    background-color: transparent;
}
.navbar-dark .navbar-text {
    color: #f0e5e5;
}
.navbar-dark .navbar-nav > a:last-child {
    border-right: 1px solid white;
    margin-right: 0;
}
.navbar-nav .nav-item {
    color: #f0e5e5;
    border-right: 1px solid white;
    margin: 0 10px;
}
.navbar-dark .navbar-nav > a:hover,
.navbar-dark .navbar-nav > a:focus {
    color: #ffffff;
    background-color: transparent;
}
.navbar-dark .navbar-nav > .active > a,
.navbar-dark .navbar-nav > .active > a:hover,
.navbar-dark .navbar-nav > .active > a:focus {
    color: #ffffff;
    background-color: #134681;
    background-image: -webkit-gradient(linear, left 0%, left 100%, from(#134681), to(#195eae));
    background-image: -webkit-linear-gradient(top, #134681, 0%, #195eae, 100%);
    background-image: -moz-linear-gradient(top, #134681 0%, #195eae 100%);
    background-image: linear-gradient(to bottom, #134681 0%, #195eae 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff134681', endColorstr='#ff195eae', GradientType=0);
}
.navbar-dark .navbar-toggler {
    border-color: #dddddd;
}
.navbar-dark .navbar-toggler:hover,
.navbar-dark .navbar-toggler:focus {
    background-color: #dddddd;
}
.navbar-dark .navbar-toggler .icon-bar {
    background-color: #cccccc;
}
.navbar-dark .navbar-collapse,
.navbar-dark .navbar-form {
    border-color: #12457f;
}
.navbar-dark .navbar-nav > .open > a,
.navbar-dark .navbar-nav > .open > a:hover,
.navbar-dark .navbar-nav > .open > a:focus {
    background-color: #134681;
    color: #ffffff;
}
.navbar-dark .navbar-nav > .open > a .caret,
.navbar-dark .navbar-nav > .open > a:hover .caret,
.navbar-dark .navbar-nav > .open > a:focus .caret {
    border-top-color: white;
    border-bottom-color: white;
}

/* Style the pictures and nav-brand for different screens: */
@media (min-width: 767px) and (max-width:1024px) {
    .navbar-brand {
        font-size: 2.2vw;
    }
    .navbar-dark {
        font-size: 2.2vw;
    }
    #home h1 {
        margin-bottom: 22px;
        font-size: 4vw;
    }
    #home h2 {
        margin-bottom: 25px;
        font-size: 3.3vw;
    }
    .aboutImage {
        height: 100px;
    }
    #promise {
        padding-top: 80px;
    }
    #myCarousel {
        width: 65%;
    }
    .carousel-caption h2 {
        font-size: 3.3vw;
    }
}
@media (min-width: 480px) and (max-width: 767px) {
    .navbar-brand {
        font-size: 2.5vw;
    }
    .navbar-dark {
        font-size: 2.5vw;
    }
    #home h1 {
        margin-bottom: 20px;
        font-size: 5vw;
    }
    #home h2 {
        margin-bottom: 30px;
        font-size: 4vw;
    }
    .aboutImage {
        height: 80px;
    }
    .navbar-nav .nav-item {
        border-right: 0px solid white;
    }
    .navbar-dark .navbar-nav > a:last-child {
        border-right: 0px solid white;
        margin-right: 10px;
    }
    #promise {
        padding-top: 60px;
    }
    #myCarousel {
        width: 70%;
    }
    .carousel-caption h2 {
        font-size: 4vw;
    }
    footer {
        text-align: center;
        text-indent: 0;
    }
}
@media (max-width: 480px) {
    #home {
        padding-top: 30%;
    }
    .navbar-brand {
        font-size: 4.2vw;
    }
    .navbar-dark {
        font-size: 4.8vw;
    }
    #home h1 {
        margin-bottom: 15px;
        font-size: 6.5vw;
    }
    #home h2 {
        margin-bottom: 20px;
        font-size: 4.4vw;
    }
    .aboutImage {
        height: 70px;
    }
    .navbar-nav .nav-item {
        border-right: 0px solid white;
    }
    .navbar-dark .navbar-nav > a:last-child {
        border-right: 0px solid white;
        margin-right: 8px;
    }
    #promise {
        padding-top: 40px;
    }
    #myCarousel {
        width: 80%;
    }
    .carousel-caption h2 {
        font-size: 4.4vw;
    }
    footer {
        text-align: center;
        text-indent: 0;
    }
}


