html,
body {
    height: 100%;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    position: fixed;
    width: 100%;
    bottom: 0;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding: 20px 0;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.preloader {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 100;

    transform: translate(-50%, -50%);

    width: 160px;
    height: 20px;

    background-image: url('../images/preloader.gif');
    background-repeat: no-repeat;
    background-size: cover;
}

.calcs__title {
    margin-bottom: 0.4em;

    font-size: 42px;
    font-weight: 700;
    color: #343a40;
    line-height: 1.25em;
    letter-spacing: -0.01em;
}

.calc {
    display: flex;
    flex-direction: column;

    position: relative;

    height: 100%;
    margin: auto 9%;
    padding: 10% 0;

    border-top: 0.5px solid #dee2e6;
    
    color: #dee2e6;

    overflow: auto;

    transition: all 0.3s ease;
}

.calc::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;   

    background-size: 25%;
    background-position: 0% 85%;
    background-repeat: no-repeat;

    opacity: 0.35;
}

.calc--tip::before {
    background-image: url('../images/tip.png');
}

.calc--prihvat::before {
    background-image: url('../images/prihvat.png');
}

.calc--rashag1::before {
    background-image: url('../images/rashag1.png');
}

.calc--rashag2::before {
    background-image: url('../images/rashag2.png');
}

.calc--economic::before {
    background-image: url('../images/economic.png');
}

.calc--permeability::before {
    background-image: url('../images/permeability.png');
}

.calc--composition::before {
    background-image: url('../images/composition.png');
}

.calc:first-child {
    border-top: none;
}

.calc:hover,
.calc:focus {
    margin: auto 0;
    padding: 10% 9%;

    background-color: #f8f9fa;
    
    border-color: transparent;
    border-radius: 6px;

    text-decoration: none;
}

.calc__content {
    flex: 1 0 auto;
}

.calc__title {
    display: block;
    
    margin-bottom: 0.4em;

    font-size: 24px;
    font-weight: 700;
    color: #343a40;
    line-height: 1.25em;
    letter-spacing: -0.01em;
    text-decoration: none;

    word-break: keep-all;
}

.calc__description {
    width: 100%;
    margin-bottom: 0.4em;

    font-size: 15px;
    line-height: 1.5em;
    color: #868e96;
    text-decoration: none;
}

.calc__footer {
    flex-shrink: 0;
    margin-top: 1.5em;
}

.calc__go {
    display: inline-block;
    
    width: 100%;
    
    font-size: 13px;
    color: #868e96;
    text-align: right;
    text-decoration: none;
}

@media (min-width: 768px) {
    .calc::before {
        background-size: 45%;
    }
}

.chart {
    display: flex;
    justify-content: center;
}

.modebar {
    display: none;
}