@import url(https://fonts.googleapis.com/css?family=Montserrat:400,700);

:focus {
    outline: 0 none;
}
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
body {
    font-family: 'Montserrat',Helvetica,Arial,Verdana,sans !important;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    margin: 0;
    background: rgb(7, 31, 61);
}
ol, ul {
    margin: 0;
    padding: 0;
    list-style: none outside none;
}
.table {
    display: table;
}
.table .row {
    display: table-row;
}
.table .cell {
    display: table-cell;
}

/*
NAV
*/
.nav {
    position: fixed;
    background: rgba(18, 25, 44, 0.8);
    width: 200px;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999;
}
.nav .logo {
    position: relative;
    width: 100%;
    height: 188px;
    display: block;
    background: url(../images/logimed-logo.png) no-repeat center;
    background-size: 100%;
}
.nav .button {
    position: absolute;
    display: none;
    height: 60px;
    width: 64px;
    top: 0;
    right: 0;
    padding: 20px;
    cursor: pointer;
    z-index: 9;
}
.nav .button:hover {
    background: #376f92;
}
.nav .button > div {
    position: relative;
    width: 100%;
    height: 3px;
    background: #eee;
    margin: 2px auto 4px;

    transition: all .3s;
}
body.opened .nav .button > div:nth-child(1) {
    -webkit-transform: rotate(45deg) scale(1.3,1) translate(5px,5px);
    -moz-transform: rotate(45deg) scale(1.3,1) translate(5px,5px);
    -ms-transform: rotate(45deg) scale(1.3,1) translate(5px,5px);
    transform: rotate(45deg) scale(1.3,1) translate(5px,5px);
}
body.opened .nav .button > div:nth-child(2) {
    opacity: 0;
}
body.opened .nav .button > div:nth-child(3) {
    -webkit-transform: rotate(-45deg) scale(1.3,1) translate(3px,-4px);
    -moz-transform: rotate(-45deg) scale(1.2,1) translate(3px,-4px);
    -ms-transform: rotate(-45deg) scale(1.2,1) translate(3px,-4px);
    transform: rotate(-45deg) scale(1.2,1) translate(3px,-4px);
}
.nav .menu ul li a {
    padding: 15px 20px 15px 20px;
    color: #ddd;
    text-decoration: none;
    width: 100%;
    display: block;
    text-transform: uppercase;
}
.nav .menu ul li a:hover,
.nav .menu ul li a.active {
    color: #376f92;
}
.nav .nav-detail {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: url(../images/menu-bg.png) left bottom no-repeat;
    background-size: 100%;
    opacity: 1;
    z-index: -1;
}

/*
CONTAINER
*/
#container {
    position: fixed;
    width:100%;
    height: 100%;
}

#container .image {
    position:absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    padding-left: 400px;
    cursor: default;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 0;
}

#container .image.show {
    z-index:1
}

#container .caption {
    z-index:600;
    color:#fff;
    background: rgba(18, 25, 44,.6);
    padding: 20px 80px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/*
FOOTER
*/
#footer {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 20px;
}
#footer span {
    color: #fff;
    font-size: .9em;
}

@media (min-width: 801px) and (max-width: 1024px) {
    .nav {
        width: 100%;
        height: 60px;
        padding-bottom: 0;
    }
    .nav .logo {
        width: 180px;
        display: inline-block;
        vertical-align: middle;
        height: 100%;
        background-size: auto 130%;
        background-position: left top 20%;
        z-index: 1;
    }
    .nav .menu {
        position: relative;
        display: inline-block;
        vertical-align: middle;
    }
    .nav .menu li {
        position: relative;
        display: inline-block;
        margin: 0 !IMPORTANT;
        vertical-align: middle;
    }
    .nav .country {
        position: relative;
        display: inline-block;
        float: right;
        width: auto;
    }
    .nav .country ul li {
        position: relative;
        padding: 20px 20px 0;
    }
    #container .image {
       padding-left: 0 !important;
    }
}

@media(max-width: 800px) {
    .nav {
        width: 100%;
        height: 60px;
        padding-bottom: 0;
        text-align: center;
        background: rgba(7, 31, 61, 0.95);
    }
    .nav .logo {
        width: 100%;
        height: 100%;
        background-size: auto 130%;
        background-position: left top 20%;
        z-index: 1;
    }
    .nav .button {
        display: block;
    }
    .nav .menu {
        background: rgba(7, 31, 61, 0.95);
        width: 100%;
        margin-top: -380px;
        position: relative;
        transition: margin-top .3s;
    }
    body.opened .nav .menu {
        margin-top: 0px;
    }
    .nav .country {
        position: relative;
        background: rgba(7, 31, 61, 0.95);
        padding-bottom: 30px
    }
    .nav .country ul li {
        position: relative;
        padding: 20px 20px 0;
    }
    #container {
        position: relative;
        margin-top: 60px;
        height: auto;
        background-attachment: fixed !IMPORTANT;
    }
    #container .arrow {
        display: none;
    }
    #container .image {
        position: relative;
        padding-left: 0 !important;
        opacity: 1 !IMPORTANT;
    }
    #container .image:before {
        content:"" !important;
        display: block !important;
        padding-top: 60% !important;
    }
    #container .caption {
        position:relative;
        margin: 0 !important;
        padding: 20px !important;
    }
    #container .caption h1 {
        font-size: 2em !important;
    }
    #container .caption p,
    #container .caption li {
        font-size: 1em !important;
        margin: 0 !important;
    }
    #container .image {
       
    }
    #footer {
        position: relative;
        text-align: right;
    }
}