/*
 * MIT License
 *
 * Copyright (c) 2016 Milan Kyncl
 * http://www.kyro.cz/
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

html, body{
    -webkit-font-smoothing: antialiased !important;
}

body {
    color: #5a5a5a;
    background: #333;
    font-family: "Open Sans", sans-serif;
    overflow-x: hidden;
    margin-top: 60px;
}

a{
    outline:none;
}


.navbar-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
}

.navbar-wrapper > .container {
    padding-right: 0;
    padding-left: 0;
}

.navbar-wrapper .navbar {
    height:60px;
    background: #243a6a;
    border-bottom:1px solid #2f4779;
    padding-top:10px;
}

.navbar-inverse .navbar-brand {
    padding: 2px;
}

.navbar-inverse .navbar-brand > img {
    max-height: 34px;
}

.navbar-inverse .navbar-nav {
    margin-right: 310px;
}

.navbar-inverse .navbar-nav > li{
    margin-right: 18px;
}

.navbar-inverse .navbar-nav > li > a{
    color:white;
    font-size:16px;
    padding:9px 5px;
    font-family: "Open Sans", sans-serif;
}

.navbar-inverse .navbar-nav > li > a > i {
    position: relative;
    top: -1px;
}

.navbar-inverse .navbar-nav > li > a:hover{
    border-bottom:2px solid #ec971f;
}

.navbar-inverse .navbar-nav > .active> a{
    border-bottom:2px solid #ec971f;
    background: transparent;
}

.navbar-inverse .navbar-nav>.active>a:hover,.navbar-inverse .navbar-nav>.active>a:focus{
    background:transparent;
}

.navbar-wrapper .navbar .container {
    width: auto;
}

.navbar-wrapper .navbar .navbar-collapse ul{
    margin-left:20px;
}

.header{
    position: relative;
    background: url('../img/desk-affigro-min.jpg') center top;
    background-size: cover;
    min-height: 600px;
    text-align: center;
    padding-top: 20px;
}

.header > .arrow{
    position: absolute;
    bottom: 0;
    width: 100%;
    left: 0;
    right: 0;
    background: url('../img/triang.png') center center;
    height: 20px;
}

.header > .container{
    margin-bottom: 140px
}

.header > .container > .navbar-button.left{
    float: left;
}

.header > .container > .navbar-button.right{
    float: right;
}

.header .btn.btn-navbar{
    border: 1px solid white;
    -webkit-border-radius:4px;
    -moz-border-radius:4px;
    border-radius:4px;
    text-transform: uppercase;
    font-size: 15px;
    color: #fff;
    padding: 8px 18px;
    margin: 10px 6px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    box-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.header .btn.btn-navbar:hover,
.header .btn.btn-navbar:active,
.header .btn.btn-navbar:focus{
    background: white;
    color: #333;
}

.header .btn.btn-register{
    background: #ec971f;
    border-color: #ec971f;
    padding: 10px 20px;
    margin: 10px 6px;
    color: white;
    -webkit-border-radius:4px;
    -moz-border-radius:4px;
    border-radius:4px;
    text-transform: uppercase;
    font-size: 17px;
    margin-top: 50px;
}
.header .btn.btn-register:active,
.header .btn.btn-register:focus,
.header .btn.btn-register:hover{
    background: #ec8c11;
    border-color: #ec8c11;
}

.header > .header-logo{
    margin-bottom: 20px;
    text-align: center;
}

.header >.header-logo > img{
    max-width: 350px;
}

.header > h1{
    font-weight: 200;
    font-size: 4.5rem;
    line-height: 1.5;
    color: #fff;
    text-shadow: 1px 1px 15px rgba(0,0,0,1);
    margin-bottom: 0;
}

.header > .container > .navbar-button > .navbar-toggle{
    display: block;
    color: #fff;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: lighter;
    height: 50px;
    margin-top: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,1);
}

.header > .container > .navbar-button > .navbar-toggle .icon-bar {
    background: white;
}

/*      ------------       */

footer{
    width: 100%;
}

footer > .top{
    background: #345398;
    color: white;
    padding: 40px 30px;
    font-size: 15px;
}

footer ul li {
    padding-bottom: 10px;
}

footer > .top p {
    color: #eee;
    line-height: 26px;
}

footer > .top a {
    color: #ddd;
    font-weight: normal;
}

footer > .top a:hover {
    color: #fff;
    text-decoration: none;
}

footer > .bottom{
    background: #243a6a;
    padding: 20px 0;
}

footer > .bottom > p{
    padding-top: 15px;
    color: #eee;
    font-size: 12px;
    text-align: center;
}

footer > .bottom > p > a {
    color: white;
    font-weight: bold;
}

footer > .top h3{
    border-bottom: 1px solid rgba(255,255,255, 0.3);
    padding-bottom: 10px;
    font-weight:200;
}

/*      Modaly      */

.modal-content {
    min-height: 350px;
    padding: 20px 0;
}

.modal-body ul{
    margin: 20px auto;
    padding-bottom: 30px;
}

.modal-body ul > li {
    margin-bottom: 10px;
}

#login-modal .modal-dialog{
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

#login-modal .modal-dialog .modal-body{
}

#login-modal .modal-dialog form{
    padding-top: 20px;
}

/*      ------------       */

section {
    margin-top: -1px;
}

section.bg-dark-blue{
    background: #0f182d;
    padding: 40px 0;
}

.bg-dark-blue{
    background: #0f182d; /* #0a101e */
    padding: 40px 0;
}

.bg-dark-blue .block {
    text-align: center;
    padding: 10px 30px;
}

.bg-dark-blue .block > .block-body{
    border: 1px solid #435479;
    border-radius: 4px;
    padding: 45px 10px;
}

.bg-dark-blue .block > .block-body > .block-logo {
    color: #e28f00;
}

.bg-dark-blue .block > .block-body > .count {
    color: white;
    font-size: 35px;
    padding: 10px 0;
    padding-bottom: 5px;
    width: 100%;
}

.bg-dark-blue .block > .block-body >.info {
    color: #ccc;
    font-size: 15px;
}

/*      Barvy       */

.btn.inzerent{
    background: #e28f00;
    border-color: #e28f00;
}
.btn.inzerent:active,
.btn.inzerent:focus{
    background: #cb8000;
    border-color: #cb8000;
}

.btn.partner{
    background: #3b5998;
    border-color: #3b5998;
}
.btn.partner:active,
.btn.partner:focus{
    background: #2e4a88;
    border-color: #2e4a88;
}

#start-carrier {
    position: absolute;
    top: 0px;
    right: 155px;
    background: #ec971f;
    color: white;
    padding: 9px 10px;
    border: 1px solid #ec971f;
    font-size: 14px;
    text-transform: uppercase;
}

#start-carrier:hover{
    background: #ec8f11;
}

#start-login {
    position: absolute;
    top: 0;
    right: 10px;
    border: 1px solid white;
    background: transparent;
    -webkit-border-radius:4px;
    -moz-border-radius:4px;
    border-radius:4px;
    text-transform: uppercase;
    color: #fff;
    padding: 9px 11px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    font-size: 14px;
}

#start-login:hover{
    background: #fff;
    color: #243a6a;
}

@media (min-width: 768px) {
    .navbar-wrapper .container {
        padding-right: 15px;
        padding-left: 15px;
    }
    .navbar-wrapper .navbar {
        padding-right: 0;
        padding-left: 0;
    }

    .carousel-caption p {
        margin-bottom: 20px;
        font-size: 21px;
        line-height: 1.4;
    }

    .featurette-heading {
        font-size: 50px;
    }
}

@media (min-width: 992px) {
    .featurette-heading {
        margin-top: 20px;
    }

}

@media (max-width: 960px){
    #start-carrier span,#start-login span{
        display:none;
    }
    #start-carrier{
        right: 60px;
    }

    .navbar-inverse .navbar-nav {
        margin-right: 150px;
    }
    .navbar-inverse .navbar-nav > li{
        margin-right: 10px;
    }
    .navbar-inverse .navbar-nav > li > a{
        font-size: 14px;
    }
}

@media (max-width: 767px){

    .header > h1{
        font-size: 3.5rem;
        padding: 10px 15px;
    }

    .header .header-logo > img{
        max-width: 300px;
    }

    .header .btn.btn-register{
        margin-top: 15px;
    }

    #start-carrier{
        top:2px;
        padding:6px 10px;
        right: 105px;
        padding-right:15px;
    }
    #start-login{
        right: 65px;
        padding: 6px;
        padding-bottom: 7px;
        top: 2px;
    }
    .navbar-inverse .navbar-collapse{
        background: #3b5997;
        margin-top: 0px;
        margin-left: -15px;
        margin-right: -15px;
        padding:0px;
        color: white;
        border-top:0px;
    }
    .navbar-wrapper .navbar .navbar-collapse ul {
        margin:0px;
    }
    .navbar-inverse .navbar-nav li a{
        color: white;
        border-top:1px solid #AAA;
    }
    .navbar-inverse .navbar-nav li a:hover{
        background:rgba(236, 151, 31, 1);
        color:white;
        text-decoration:none;
    }
    .navbar-inverse .navbar-nav li,.navbar-inverse .navbar-nav li.active{
        margin:0px;
        padding:0px;
    }
    .navbar-inverse .navbar-nav li a,.navbar-inverse .navbar-nav li.active a{
        padding:12px;
        margin-top:0px;
        border-radius:0px;
    }
    .navbar-inverse .navbar-nav li.active a{
        font-weight:bold;
    }

    .navbar-inverse .navbar-toggle {
        border-color: #fff;
        margin-top: 2px;
        margin-right: 0;
    }
    .navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover {
        background: white;
        border-color: #243a6a;
    }
    .navbar-inverse .navbar-toggle:focus > span.icon-bar,.navbar-inverse .navbar-toggle:hover > span.icon-bar {
        background: #243a6a;
    }

    .carousel .login-container{
        position: absolute;
        top: 10px;
        right:20px;
        height:300px;
    }

    .header > .container{
        margin-bottom: 30px
    }

    .header{
        min-height: 450px;
    }

}
