/*
 * Globals
 */


/* Links */
a,
a:focus,
a:hover {
    color: #333;
}

/* Generated by Font Squirrel (http://www.fontsquirrel.com) on April 16, 2015 */
@font-face {
    font-family: 'WebFont';
    src: url('../fonts/titillium-regular-webfont.eot');
    src: url('../fonts/titillium-regular-webfont.eot?#iefix') format('embedded-opentype'),
    url('../fonts/titillium-regular-webfont.woff2') format('woff2'),
    url('../fonts/titillium-regular-webfont.woff') format('woff'),
    url('../fonts/titillium-regular-webfont.ttf') format('truetype'),
    url('../fonts/titillium-regular-webfont.svg#titilliumregular') format('svg');
    font-weight: normal;
    font-style: normal;

}

p, h1, h2, h3, h4, h5, h6, a, address{
    font-family: 'WebFont', Arial, sans-serif;
}

/*
 * Base structure
 */

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}
body {
    background-color: #f5f5f5;
}

.chapter{
    height: 600px;
}
.footer {
    bottom: 0;
    width: 100%;
    padding-top: 2em;
    padding-bottom: 2em;
}

.container{
/*height: inherit;
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction: column;
    -webkit-flex-direction: column;*/
    padding: 1em 1em 1em 1em;
    opacity: 0.7;
}

code {
    font-size: 80%;
}

/* Padding for spacing */
.inner {
    padding: 30px;
}

#intro{
    background: url("../images/jeemuTausta.jpg")  no-repeat;
    background-size: cover;
    margin-top: 3em;

}


/*
* Carousel
*/

/* Carousel base class */
.carousel {
    height: 300px;
/*    margin-bottom: 60px;*/
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}
/* Since positioning the image, we need to help out the caption */
.carousel-caption {
    z-index: 10;
}

.carousel-inner{
    width: 450px;
    margin-left: auto;
    margin-right: auto;
}
/* Declare heights because of positioning of img element */
.carousel .item {
    height: 300px;

}
.carousel-inner > .item > img {
    display: block;
    margin-left: auto;
    margin-right: auto
}
.carousel-control{
    background-image: none !important;
    color: #674E4E;
}

/*
 * Affix and center
 */

@media (max-width: 767px){
    .nav > li > a {
        border-bottom: 2px solid transparent;
    }
    .nav > li > a:hover,
    .nav > li > a:focus {
        background-color: transparent;
        text-decoration: underline;
    }
    .nav > .active > a,
    .nav > .active > a:hover,
    .nav > .active > a:focus {
        text-decoration: underline;
    }
}

@media (min-width: 768px) {
    /*
 * Navbar
 */

    /* TODO: for small layout underline too long!!*/
    .nav > li > a {
        border-bottom: 2px solid transparent;
    }
    .nav > li > a:hover,
    .nav > li > a:focus {
        background-color: transparent;
        border-bottom-color: ghostwhite;
    }
    .nav > .active > a,
    .nav > .active > a:hover,
    .nav > .active > a:focus {
        border-bottom-color: ghostwhite;
    }
}

@media (min-width: 1024px) {

    .container{
        padding: 3em 1em 1em 1em;
    }
}
