/* global */

html {
    min-height: 100%;
    position: relative;
}

body {
    background-color: #efefef;
    color: #292F33;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 300;
    margin-bottom: 60px;
    padding-bottom: 10px;
}

a:link, a:visited {
    color: #015EDD;
    text-decoration: none;
}

a:hover, a:active {
    color: #7fb2f7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.img-thumbnail {
    border-radius: 0;
}

/* common */

.blue-spacer {
    background-color: #015edd;
    height: 5px;
    width: 100%;
}

.grey-spacer {
    background-color: #dedede;
    height: 5px;
    width: 100%;
}

.img-full-article {
    margin-bottom: 10px;
    width: 100%;
}

.img-float-left {
    float: left;
    margin-right: 10px;
    width: 30%;
}

.img-float-right {
    float: right;
    margin-left: 10px;
    width: 30%;
}

.margin-top-20 {
    margin-top: 20px;
}

.padding-10-15 {
    padding: 10px 15px;
}

.tag {
    background-color: #777;
    border-radius: 2px;
    color: #fff;
    margin-left: 5px;
    padding: 3px 5px;
    font-size: 0.75em;
}

    /* tag colors */

    .cod-ww2 {
        background-color: #9c7c53;
    }

    .fwm {
        background-color: #015edd;
    }

/* titles */

h1 {
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-size: 2em;
    margin: 20px 0;
    text-transform: uppercase;
}

h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4em;
    font-weight: 300;
    line-height: 1.2em;
    margin: 10px;
}

h3 {
    margin: 0;
}

/* header */

header {
    background-color: #efefef;
    background-image: url('../img/header-bg-light.jpg');
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
}

.logo {
    height: 137px;
}

/* navbar */

.navbar {
    font-family: 'Roboto', sans-serif;
    font-size: 1.25em;
    font-weight: 700;
    margin-bottom: 0px;
    margin-top: 85px;
    text-transform: uppercase;
}

.navbar-default {
    border: none;
    background-color: transparent;
}

/* carousel */

.carousel-caption {
    font-family: 'Roboto', sans-serif;
    text-align: left;
    text-shadow: none;
}

.carousel-caption .title {
    background-color: rgba(1, 94, 221, 0.8);
    font-size: 2.5em;
    padding: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,.6);
    text-transform: uppercase;
}

.carousel-caption p {
    margin-top: 20px;
}

.carousel-caption .legend {
    background-color: rgba(83, 151, 244, 0.8);
    font-size: 1.25em;
    padding: 10px;
    text-shadow: 0 1px 1px rgba(0,0,0,.4);
}

    .carousel-caption a:link, .carousel-caption a:visited {
        color: #fff;
        text-decoration: none;
    }

    .carousel-caption a:hover, .carousel-caption a:active {
        color: #ddd;
        text-decoration: none;
    }

/* news */

.news {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
}

.article {
    background-color: #fff;
    border: 1px solid #dedede;
    margin-bottom: 20px;
    width: 49%;
}

.article figure {
    position: relative;
}

.article figure img {
    width: 100%;
}

.article figure a:link, .article figure a:visited {
    color: #fff;
}

.article figure a:hover, .article figure a:active {
    color: #ddd;
}

.article figcaption {
    background-color: rgba(83, 151, 244, 0.8);
    bottom: 0;
    display: block;
    float: left;
    position: absolute;
    width: 100%;
}

.article figcaption h2 {
    opacity: 1;
    text-shadow: 0 1px 1px rgba(0,0,0,.4);
}

.article figcaption h2:hover {
    color: #eee;
}

.article p {
    text-align: justify;
}

.article-info {
    color: #777;
    margin-bottom: 0;
}

.full-page {
    background-color: #fff;
    border: 1px solid #dedede;
    margin: 20px 0;
    padding: 15px;
    width: 100%;
}

.full-page h1 {
    margin: 0 0 5px;
    text-align: justify;
}

.full-page .full-article-info {
    color: #777;
}

/* page */

.page {
    align-items: center;
    background-color: #555;
    display: flex;
    height: 90px;
    justify-content: flex-start;
    width: 100%;
}

/* sidebar */

.side-block {
    background-color: #fff;
    border: 1px solid #dedede;
    margin: 20px 0;
    padding: 15px;
    width: 100%;
}

footer {
    background-color: #0f0f0f;
    bottom: 0;
    color: #777;
    height: 60px;
    padding: 20px;
    position: absolute;
    width: 100%;
}

footer a:link, footer a:visited {
    color: #777;
}

footer a:hover, footer a:active {
    color: #ddd;
}

/* 404 */

.error-404 {
    color: #0f0f0f;
    font-size: 8em;
    margin-top: 150px;
    text-align: center;
    width: 100%;
}

.page-not-found {
    color: #0f0f0f;
    font-size: 3em;
    text-align: center;
    width: 100%;
}

.back-to-site {
    font-size: 1.25em;
    margin-top: 30px;
    text-align: center;
    width: 100%;
}

.back-to-site a:link, .back-to-site a:visited {
    color: #0f0f0f;
    text-decoration: none;
}

.back-to-site a:hover, .back-to-site a:active {
    color: #858585;
    text-decoration: none;
}

/* video embedding */

.video-container {
    height: 0;
    margin: 0 auto;
    padding-bottom: 45%;
    position: relative;
    width: 80%;
}
.video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* teams */

.team ul {
    list-style: none;
    padding: 0;
}


@media(max-width:1200px) {

    .img-float-left {
        width: 40%;
    }

    .img-float-right {
        width: 40%;
    }

    .navbar {
        font-size: 1.2em;
    }

}


@media(max-width:992px) {

    .blue-spacer {
        height: 4px;
    }

    .grey-spacer {
        height: 4px;
    }

    .img-float-left {
        width: 50%;
    }

    .img-float-right {
        width: 50%;
    }

    .logo {
        height: 85px;
        text-align: center;
    }

    .logo img {
        height: 85px;
    }

    .nav {
        padding-right: 0;
    }

    .navbar {
        font-size: 1.1em;
        margin-top: 0;
    }

    .navbar-right {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .carousel-caption {
        padding-bottom: 0;
    }

    .carousel-caption .title {
        font-size: 1.5em;
    }

    .carousel-caption .legend {
        font-size: 1em;
    }

    .error-404 {
        margin-top: 100px;
    }

}


@media(max-width:768px) {

    .blue-spacer {
        height: 3px;
    }

    .grey-spacer {
        height: 3px;
    }

    .img-float-left {
        margin-bottom: 10px;
        margin-right: 0;
        width: 100%;
    }

    .img-float-right {
        margin-bottom: 10px;
        margin-left: 0;
        width: 100%;
    }

    header {
        background: none;
        background-size: cover;
    }

    .navbar {
        font-weight: 400;
    }

    .navbar-right {
        display: block;
    }

    .carousel-inner {
        max-height: 200px !important;
        width: 100%;
    }

    .carousel-caption {
        padding-bottom: 0;
        text-align: center;
    }

    .carousel-caption p {
        margin-top: 0;
    }

    .carousel-caption .legend {
        display: none;
    }

    .article {
        width: 100%;
    }

    .article:last-of-type {
        margin-bottom: 0;
    }

    .error-404 {
        font-size: 6em;
    }

    .page-not-found {
        font-size: 2em;
    }

    .back-to-site {
        font-size: 1em;
    }

}


@media(max-width:500px) {

    body {
        margin-bottom: 78px;
    }

    .carousel-caption {
        bottom: 10px;
    }

    footer {
        height: 78px;
    }

}
