﻿a,
a:visited,
a:focus,
a:hover {
    outline: 0;
}

body,
html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 170px;
}

.form-horizontal .control-label.col-md-2 {
    text-align: left;
}

.form-group__control {
    text-align: center;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    padding-left: 15px;
    padding-right: 15px;
    margin: auto;
}

.header,
.body-content {
    min-width: 320px;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    max-width: 280px;
}

/* Carousel */
.carousel-caption p {
    font-size: 20px;
    line-height: 1.4;
}

/* buttons and links extension to use brackets: [ click me ] */
.btn-bracketed::before {
    display:inline-block;
    content: "[";
    padding-right: 0.5em;
}
.btn-bracketed::after {
    display:inline-block;
    content: "]";
    padding-left: 0.5em;
}

/* Make .svg files in the carousel display properly in older browsers */
.carousel-inner .item img[src$=".svg"]
{
    width: 100%;
}

/* Hide/rearrange for smaller screens */
@media screen and (max-width: 767px) {
  /* Hide captions */
  .carousel-caption {
    display: none
  }
}

.img-responsive--centered {
    margin: auto;
}

.navbar-nav {
    max-width: 100%;
}

.navbar-inverse .navbar-nav > li > a {
    color: #fff;
}

.navbar-inverse .navbar-nav > li > a:hover {
    color: #999;
}

.navbar-inverse .btn-link {
    color: #fff;
}

.navbar-fixed-top .navbar-collapse {
    max-height: 100%;
}

.header {
    background: linear-gradient(#777, #222);
}

.navbar > .container .header__logo {
    margin-left: 0;
}

.header__logo{
    position: absolute;
    padding: 0;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.header__banner {
    position: relative;
    text-align: center;
    color: #fff; 
}

.header__title {
    font-size: 14px;
    line-height: 16px;
    font-weight: bold;
}

.header__title--ministry {
    font-size: 16px;
    line-height: 18px;
}

.header__link {
    display: none;
}

.footer {
    text-align: center;
}

.err-feedback {
    color: #a94442;
    font-weight: bold;
}

.nav li .languageSwitcher {
    display: block;
    padding: 0;
    margin: 15px 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.cell-half {
    width: 45%;
}

.error-modal-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .8);
    z-index: 1500;
}

.error-modal {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    transform: translateY(-50%);
    margin: auto;
    width: 400px;
}

.about-project-modal {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    transform: translateY(-50%);
    margin: auto;
    width: 80%;
    height: calc(100vh - 100px);
}

.about-project-modal .panel-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    text-align: center;
}

.page-container {
    position: relative;
}

.hint-icon {
    position: absolute;
    top: 30px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

.hint-well {
    display: none;
}

@media screen and (max-width: 768px) {
    .header__logo {
        top: 0;
        transform: translateY(0);
    }

    .header__ministry-info {
        display: none;
    }

    .header__link {
        display: inline-block;
    }

    body {
        padding-top: 55px;
    }

    .body-content {
        width: 100%;
    }

    .navbar-nav {
        margin-left: 0;
    }
}

@media screen and (min-width: 768px) {
    .body-content {
        width: 750px;
    }
}


@media screen and (min-width: 992px) {
    .body-content {
        width: 970px;
    }
}

@media screen and (min-width: 1200px) {
    .body-content {
        width: 1170px;
    }
} 