html,
body {
    height: 100%;
    width: 100%;
    color: #383838;
}
body {
    font-family: 'Raleway', 'Open Sans', Arial, sans-serif;
}
a {
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
    color: #00AA98;
}
a:hover,
a:focus {
    color: #eb3812;
}
p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}
.bg-primary {
    color: #e4e4e4;
    background-color: #393A3A;
}
.text-faded {
    color: rgba(255, 255, 255, 0.7);
}
section {
    padding: 50px 0; position: relative;
}
.section-logo, .nav-fb-logo, .fb-logo {
    background: #00AA98; border-radius: 3px; display: inline-block;
    text-align: center; vertical-align: bottom;
    transform:rotate(45deg); -webkit-transform:rotate(45deg); -moz-transform:rotate(45deg); -ms-transform:rotate(45deg); -o-transform:rotate(45deg);
}
.section-logo, .fb-logo {
    width: 44px; height: 44px; line-height: 54px;
}
.section-logo {
    position: absolute; top:-22px; left: 50%; margin-left: -22px;
}
.nav-fb-logo {
    width: 30px; height: 30px; line-height: 15px !important; padding: 9px 10px !important; margin-top: 10px; margin-left: 10px;
}
.section-logo i, .nav-fb-logo i, .fb-logo i {
    color: #FFF;
    transform:rotate(-45deg); -webkit-transform:rotate(-45deg); -moz-transform:rotate(-45deg); -ms-transform:rotate(-45deg); -o-transform:rotate(-45deg);
}

aside {
    position: relative;
    padding: 50px 0;
}
aside.logos {
    margin-top: 3px;
}
aside.logos > div {
    overflow: hidden;
}
footer {
    position: relative;
    padding: 40px 0 30px 0;
}
.no-padding {
    padding: 0;
}
.navbar.center .navbar-collapse {
    text-align: center;
}

.navbar.center .navbar-collapse .nav {
    display: inline-block;
    float: none;
    vertical-align: top;
}
.navbar-default {
    background-color: white;
    border-color: rgba(34, 34, 34, 0.05);
    font-family: 'Raleway', 'Open Sans', Arial, sans-serif;
    -webkit-transition: all 0.35s;
    -moz-transition: all 0.35s;
    transition: all 0.35s;
}
.navbar-default .nav > li.lang > a { color: #000; padding-right: 40px; background: url(/img/lang-en.png) no-repeat 30px center; }
.navbar-default .nav > li.lang > a.pl { background-image: url(/img/lang-pl.png); }
@media (max-width: 767px) {
    .navbar-default .nav > li.lang > a { background-position: 35px center; }
}
.navbar-default .navbar-header .navbar-brand {
    color: #00AA98;
    font-family: 'Raleway', 'Open Sans', Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1px 5px;
}
.navbar-default .navbar-header .navbar-brand img {
    max-height: 50px;
}
.navbar-default .navbar-header .navbar-brand:hover,
.navbar-default .navbar-header .navbar-brand:focus {
    color: #eb3812;
}
.navbar-default .navbar-header .navbar-toggle {
    font-weight: 700;
    font-size: 12px;
    color: #222222;
    text-transform: uppercase;
}
.navbar-default .nav > li > a,
.navbar-default .nav > li > a:focus {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px;
    color: #222222;
}
.navbar-default .nav > li > a:hover,
.navbar-default .nav > li > a:focus:hover {
    color: #00AA98;
}
.navbar-default .nav > li > a.nav-fb-logo:hover,
.navbar-default .nav > li > a.nav-fb-logo:focus,
.navbar-default .nav > li > a.nav-fb-logo:focus:hover {
    background-color: #00AA98;
}
.navbar-default .nav > li.active > a,
.navbar-default .nav > li.active > a:focus {
    color: #FFF;
    background-color: #00AA98;
}
.navbar-default .nav > li.active > a.nav-fb-logo,
.navbar-default .nav > li.active > a.nav-fb-logo:focus {
    color: #FFF !important;
    background-color: #00AA98;
}
.navbar-default .nav > li.active > a:hover,
.navbar-default .nav > li.active > a:focus:hover {
    color: #FFF !important;
    background-color: #00AA98;
}
.navbar-default .nav > li.active > a.nav-fb-logo:hover,
.navbar-default .nav > li.active > a.nav-fb-logo:focus:hover {
    background-color: #00AA98;
}
@media (max-width: 767px) {
    .nav-fb-logo {
        margin: 0 auto;
    }
}
@media (min-width: 768px) {
    .navbar-default {
        border-color: rgba(60, 60, 60, 0.3);
    }
    .navbar-default .navbar-header .navbar-brand:hover,
    .navbar-default .navbar-header .navbar-brand:focus {
        color: white;
    }
    .navbar-nav > li > a { padding: 5px 10px; margin: 10px 5px; border-radius: 3px; }
    .navbar-default .nav > li > a:hover,
    .navbar-default .nav > li > a:focus:hover {
        background-color: #00AA98;
        color: #FFF;
    }
    .navbar-default.affix {
        background-color: white;
        border-color: rgba(30, 30, 30, 0.05);
    }
    .navbar-default.affix .navbar-header .navbar-brand {
        color: #00AA98;
        font-size: 14px;
    }
    .navbar-default.affix .navbar-header .navbar-brand:hover,
    .navbar-default.affix .navbar-header .navbar-brand:focus {
        color: #eb3812;
    }
    .navbar-default.affix .nav > li > a:hover,
    .navbar-default.affix .nav > li > a:focus:hover {
        color: #FFF;
        background-color: #00AA98;
    }
}
header {
    position: relative;
    width: 100%;
    min-height: auto;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;
    background-position: center;
    background-image: url('/img/header.jpg');
    text-align: center;
    color: white;
}
header h1 {
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 30px;
    background: rgba(57,58,58,.7);
    padding: 0 10px;
    border-radius: 5px 5px 0 0;
}
header p {
    font-weight: 300;
    text-transform: uppercase;
    background: rgba(0, 170, 152, 0.9);
    border-radius: 0 0 5px 5px;
    font-size: 16px;
    margin-bottom: 50px;
    padding: 8px 0;
    text-align: center;
    letter-spacing: 2px;
}
@media (min-width: 768px) {
    header {
        min-height: 100%;
    }
    header h1 {
        font-size: 50px;
    }
    header p {
        font-size: 18px;
        letter-spacing: 6px;
    }
}
@media (min-width: 768px) and (max-width: 992px) {
    header h1 {
        font-size: 40px;
    }
}
.section-heading {
    margin-top: 0;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.section-heading:before, .section-heading:after, .section-text:before, .section-text:after { display: inline-block; content: " "; width: 30px; height: 22px; background: url(/img/head-shapes.png) no-repeat left center; margin-right: 10px; }
.section-text:before, .section-text:after { width: 21px; height: 11px; background-size: cover; }
.section-heading:after, .section-text:after { background-position: right center; margin-left: 10px; }

.portfolio-box {
    position: relative;
    display: block;
    max-width: 650px;
    margin: 0 auto;
}
.portfolio .gallery-box {
    padding: 2px;
}
.portfolio .gallery-box .portfolio-box img, .portfolio .gallery-box .portfolio-box .portfolio-box-caption {
    border-radius: 4px;
}
.offer .offer-box {
    padding: 10px;
}
.offer .portfolio-box {
    max-width: none;
}
.offer .portfolio-box ul { list-style-type: none; padding-left: 0; }
.offer .portfolio-box ul li:before{ content: "\2022\0020 "; }
.poster .btn-success { background-color: #393A3A; border-color: #000; }

.portfolio-box .portfolio-box-head {
    opacity: 1;
    color: #FFF;
    text-transform: uppercase;
    font-size: 1.8em;
    font-weight: bold;
}
.portfolio-box .portfolio-box-caption {
    color: white;
    opacity: 0;
    display: block;
    background: rgba(0, 170, 152, 0.9);
    position: absolute;
    bottom: 0;
    top: 0;
    right: 0;
    left: 0;
    text-align: center;
    -webkit-transition: all .75s;
    -moz-transition: all .75s;
    transition: all .75s;
}
/*
.offer .portfolio-box img {
    -webkit-transition: all .75s;
    -moz-transition: all .75s;
    transition: all .75s;
    transform: rotateY(0deg);
}
.offer .portfolio-box .portfolio-box-caption {
    transform: rotateY(-180deg);
    transform-style: preserve-3d;
}
*/
.portfolio-box .portfolio-box-caption-content {
    width: 100%;
    text-align: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.portfolio-box .portfolio-box-caption-content .project-category,
.portfolio-box .portfolio-box-caption-content .project-name {
    padding: 0 15px;
}
.portfolio-box .portfolio-box-caption-content .project-category {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.4em;
    color: #383838;
}
.portfolio-box .portfolio-box-caption-content .project-name {
    font-size: 1.2em;
    text-transform: uppercase;
}
.portfolio-box:hover .portfolio-box-caption,
.portfolio-box.hovered .portfolio-box-caption {
    opacity: 1;
}
.portfolio-box:hover .portfolio-box-head,
.portfolio-box.hovered .portfolio-box-head {
    opacity: 0;
}
@media only screen and (max-device-width : 1024px) {
/*    .portfolio-box { cursor: pointer; }*/
}
/*
.offer .portfolio-box:hover .portfolio-box-caption,
.offer .portfolio-box:focus .portfolio-box-caption {
    transform: rotateY(0deg);
}
.offer .portfolio-box:hover img,
.offer .portfolio-box:focus img {
    transform: rotateY(-180deg);
}
*/
.portfolio-box:focus {
    outline: none;
}
@media (min-width: 768px) {
    .portfolio-box .portfolio-box-caption-content .project-category {
        font-size: 1.5em;
    }
    .portfolio-box .portfolio-box-caption-content .project-name {
        font-size: 1.3em;
    }
    .portfolio-box .portfolio-box-head {
        font-size: 2.2em;
    }
}
@media (max-width: 768px) {
    .portfolio-box .portfolio-box-caption-content .project-category {
        font-size: 1.1em;
    }
    .portfolio-box .portfolio-box-caption-content .project-name {
        font-size: .9em;
    }
    .portfolio-box .portfolio-box-caption-content .project-description {
        font-size: .75em;
    }
    .portfolio-box .portfolio-box-caption-content .project-description ul {
        margin-bottom: 3px;
    }
    .portfolio-box .portfolio-box-caption-content .project-description .btn {
        padding: 3px 6px;
    }
    .portfolio-box .portfolio-box-head {
        font-size: 1.7em;
    }
}
@media (max-width: 500px) {
    .portfolio-box .portfolio-box-caption-content .project-description {
        font-size: .65em;
    }
}
.popup-gallery { display: none; }
.popup-gallery.active { display: block; }

section.contact { padding-bottom: 0; }
section.contact img { width: 100px; }
.map { position: relative; }
#contact-map, .map-mask { width: 100%; height: 450px; }
.map-mask { position: absolute; background: rgba(255, 255, 255, 0.1); z-index: 100; }
.contact-form { position: absolute; z-index: 101; background: #FFF; min-height: 235px; max-height: 330px; top: 50%; margin-top:-125px; }
.contact-form form { padding: 15px 0; }
.contact-form .form-group { margin-bottom: 10px; }
.contact-form .text-danger { color: #a94442; }
.contact-form .alert { margin-bottom: 10px; padding: 10px; }
.contact-form ul { list-style-type: none; font-size: .8em; padding-left: 1.5em; }
.contact-form .btn { color: #FFF; background: #00AA98; }

.text-primary {
    color: #00AA98;
}
.open > .dropdown-toggle.btn-default {
    color: #222222;
    background-color: #f2f2f2;
    border-color: #ededed;
}
.open > .dropdown-toggle.btn-default {
    background-image: none;
}
.open > .dropdown-toggle.btn-primary {
    color: white;
    background-color: #ee4b28;
    border-color: #ed431f;
}
.open > .dropdown-toggle.btn-primary {
    background-image: none;
}
::-moz-selection {
    color: white;
    text-shadow: none;
    background: #222222;
}
::selection {
    color: white;
    text-shadow: none;
    background: #222222;
}
img::selection {
    color: white;
    background: transparent;
}
img::-moz-selection {
    color: white;
    background: transparent;
}
body {
    webkit-tap-highlight-color: #222222;
}

#clients { display:none; }
.nbs-flexisel-container {
    position:relative;
    max-width:100%;
}
.nbs-flexisel-ul {
    position:relative;
    width:99999px;
    margin:0px;
    padding:0px;
    list-style-type:none;
    text-align:center;
}
.nbs-flexisel-inner {
    position: relative;
    float:left;
    width:100%;
}
.nbs-flexisel-item {
    float:left;
    margin:0px;
    padding:0px;
    position:relative;
    line-height:0px;
}
.nbs-flexisel-item img {
    max-width: 100%;
    position: relative;
    margin-top: 10px;
    margin-bottom: 10px;
    opacity: .3;
    transition: all 0.5s;
    -moz-transition: all 0.5s;
    -webkit-transition: all 0.5s;
    cursor: pointer;
}
.nbs-flexisel-item img:hover,
.nbs-flexisel-item img:focus {
    opacity: 1;
    background: rgba(0, 0, 0, .5);
    -webkit-transform:scale(1.1);
    -moz-transform:scale(1.1);
    -o-transform:scale(1.1);
    transform:scale(1.1);
}

/*** Navigation ***/
.nbs-flexisel-nav-left, .nbs-flexisel-nav-right {
    position: absolute;
    width: 31px;
    height: 100%;
    cursor: pointer;
}
.nbs-flexisel-nav-left:before, .nbs-flexisel-nav-right:before {
    border-radius:4px;
    -moz-border-radius:4px;
    -webkit-border-radius:4px;
    position: absolute;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    z-index: 4;
    top:50%;
    margin-top: -13px;
    background: #E7E5E2;
    color: #00AA98;
    transition: all 0.5s;
    -moz-transition: all 0.5s;
    -webkit-transition: all 0.5s;
    font-family: FontAwesome;
    font-size: 1.2em;
}
.nbs-flexisel-nav-left:hover:before, .nbs-flexisel-nav-right:hover:before {
    background: #00AA98;
    color: #fff;
}
.nbs-flexisel-nav-left {
    left: -30px;
}
.nbs-flexisel-nav-left:before {
    content: "\f0d9";
    left: 0;
}
.nbs-flexisel-nav-left.disabled {
    opacity: 0.4;
}
.nbs-flexisel-nav-right {
    right: -30px;
}
.nbs-flexisel-nav-right:before {
    content: "\f0da";
    right: 0;
}
.nbs-flexisel-nav-right.disabled {
    opacity: 0.4;
}

#news { position: absolute; top: 10%; left: 5%; background: rgba(0, 170, 152, 0.9); border-radius: 10px; width: 95px; padding: 0 12px; color: #FFF; font-size: 1.2em; font-weight: bold; }
#news .news-link { padding: 70px 0 5px 0; display: inline-block; color: #FFF; cursor: pointer; }

#news .news-icon {
    position: absolute;
    top: 40%;
    left: 50%;
    width: 56px;
    height: 56px;
    margin:-28px 0 0 -28px;
    -webkit-animation:spin 5s linear infinite;
    -moz-animation:spin 5s linear infinite;
    animation:spin 5s linear infinite;
}
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }

#news-content { display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2000; padding: 10px 5%; background: rgba(0,0,0,0.2); }
#news-content:after { content: "X"; position: absolute; top: 10%; right: 5%; font-size: 2em; font-weight: bold; border: 3px solid red; border-radius: 20px; padding: 5px 15px; background: rgba(255,0,0,0.5); cursor: pointer; z-index: 9999; }
#news-content img { max-height:100%; margin: 0 auto; }