/* Base */

* {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html.dragging body {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a {
    color: #3396FF;
    text-decoration: none;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

a:hover {
    color: #FF4BD8;
}


/* Clearfix */

.cf:before,
.cf:after {
    content: " ";
    display: table;
}

.cf:after {
    clear: both;
}


/* Material icons */

.material-icons {
    display: inline-block;
    vertical-align: top;
    line-height: inherit;
}


/* Buttons */

.btn {
    display: inline-block;
    position: relative;
    vertical-align: top;
    margin: 0;
    border: 0;
    outline: 0;
    padding: 0px 15px;
    font-size: 16px;
    font-weight: 400;
    line-height: 40px;
    height: 40px;
    text-align: center;
    white-space: nowrap;
    background: #4a9ff9;
    color: #fff;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border-radius: 3px;
}

/* Forms */

.form-control {
    display: block;
    width: 100%;
    height: 40px;
    padding: 5px 15px;
    font-size: 16px;
    line-height: 26px;
    color: inherit;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    -webkit-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
    appearance: none;
}

select.form-control {
    padding-right: 40px;
    cursor: pointer;
}

select.form-control::-ms-expand {
    display: none;
}

.select-arrow {
    position: absolute;
    right: 10px;
    top: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

.form-control:focus {
    outline: 0;
    border-color: #4a9ff9;
}

/* Footer */

footer {
    margin: 0 auto;
    max-width: 940px;
    text-align: center;
    border-top: 2px solid #e5e5e5;
    padding-top: 30px;
    padding-bottom: 30px;
}

footer p {
    margin: 0;
}

footer .credits {
    color: #aaa;
    margin-bottom: 5px;
    font-style: italic;
}

footer .copyright i {
    font-size: 24px;
    height: 27px;
    line-height: 32px;
    display: inline-block;
    vertical-align: top;
}


/* Sections */

section.demo {
    margin: 60px auto;
    padding-top: 0;
    max-width: 940px;
    border-top: 2px solid #e5e5e5;
    text-align: left;
}

section.demo {
    margin-top: 30px;
}

section.demo h4 {
    margin: 30px 0 15px 0;
    font-weight: 500;
    font-size: 20px;
    color: #3e3e3e;
}

@media (max-width: 600px) {
    section.demo {
        border-top: 0;
    }
}


/* Section titles */

.section-title {
    color: #3e3e3e;
    font-size: 26px;
    font-weight: 700;
    margin: 40px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

.section-title> span {
    position: relative;
    display: inline-block;
    vertical-align: top;
}

.section-title> span:after {
    content: "";
    display: block;
    position: absolute;
    left: 10px;
    bottom: 0;
    right: 10px;
    height: 2px;
    background: #3e3e3e;
}


/* Feature list */

.feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-list-item {
    position: relative;
    padding-left: 80px;
    margin: 30px 0;
    overflow: hidden;
}

.feature-list-icon {
    display: block;
    float: left;
    margin-left: -80px;
    width: 80px;
    font-size: 48px;
    line-height: 48px;
    text-align: left;
    color: #3396FF;
}

.feature-list-text h4 {
    margin: 0 0 15px 0;
    font-weight: 500;
    font-size: 20px;
}

@media (max-width: 600px) {
    .feature-list-item {
        padding-left: 0;
    }
    .feature-list-icon {
        margin: -4px 10px 0 0;
        width: 24px;
        font-size: 24px;
        line-height: inherit;
    }
}


/* Author */

.author {
    margin: 60px 0;
    font-weight: 500;
    font-size: 20px;
    color: #3e3e3e;
    font-style: italic;
    text-align: center;
}


/* Controls */

.controls {
    margin: 30px -10px;
}

.control {
    position: relative;
    /*float: left;*/
    width: 25%;
    padding: 0 10px;
    margin: 0 auto;
    display: block;
}

@media (max-width: 600px) {
    .control {
        float: none;
        width: auto;
        margin: 0 0 15px 0;
    }
    .control.layout {
        margin: 0;
    }
}

.control-icon {
    position: absolute;
    left: 10px;
    top: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

.control-field {
    position: relative;
    padding-left: 40px;
    z-index: 1;
}


/* Grid */

.grid {
    position: relative;
    max-width: 1722px;
    /*margin: 0 -10px;*/
    margin: 0 auto;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

.item {
    position: absolute;
    width: 100px;
    height: 100px;
    line-height: 100px;
    margin: 10px;
    z-index: 1;
    transition-duration: 0.1s;
    transition-timing-function: ease-out;
}

.item.muuri-item-positioning {
    z-index: 2;
}

.item.muuri-item-dragging,
.item.muuri-item-releasing {
    z-index: 9999;
}

.item.muuri-item-dragging {
    cursor: move;
}

.item.muuri-item-hidden {
    z-index: 0;
}

/*
================================
Efekty po najechaniu kursorem
================================
*/

/* Ukrycie zawrtości boxa */
.card {
    opacity: 0;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
}

/* Pokazanie zawartości boxa po najechaniu kursorem */
.item:hover .card {
    opacity: 1;
    transition-duration: 0.3s;
    transition-timing-function: ease-in;
}

/* Powiększenie treści po najechaniu kursorem */
.item:hover, .item:hover .item-content {
    z-index: 9;
}
.item:hover .item-content {
    transform: scale(1.05) !important;
    transition-duration: 0.3s;
    transition-timing-function: ease-in;
    -webkit-box-shadow: 10px 9px 34px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 10px 9px 34px 0px rgba(0,0,0,0.75);
    box-shadow: 10px 9px 34px 0px rgba(0,0,0,0.75);
}

/* Ustawienie tła. */
.w1 .item-content {
    background-size: 100%;
    background-position: top center;
    background-repeat: no-repeat;
}
.w2 .item-content {
    background-size: 100%;
    background-position: top center;
    background-repeat: no-repeat;
}

/* Szerokości kwardatów */
/* TODO: Zrobić szerokość mobilną */
.item.w1 {
    width: 267px;
}
.item.w2 {
    width: 554px;
}
.item.h3, .item.h2, .item.h1 {
    height: auto;
}
.item img {
    width: 100%;
}

.item-content {
    position: relative;
    width: 100%;
    height: 100%;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
    cursor: none;
}

/* Zmiana kolorów */

.card {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    font-size: 24px;
    font-weight: 300;
    /*border: 2px solid;*/
    color: #fff;
    border-radius: 4px;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
    overflow: hidden;
}
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
    color: #fff;
}

.card--content {
    top: 30%;
    position: absolute;
    width: 100%;
    background-color: rgba(17, 15, 15, 0.74);
    padding: 25px 0;
}

.item--open {
    top:0;
    left:0;
    width: 100vw;
    min-height: 100vh;
    height: 100%;
    background-color: rgba(37, 33, 33, 0.6);
    position: absolute;
    z-index: 99999999999999999999999999;
    padding-top: 20px;
}

.uk-modal-dialog {
    width: 100% !important;
    max-width: 1200px;
}

.modal--image {
    display: block;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.item.red .card {
    color: #f94a7a;
}

.item.green .card {
    color: #2ac06d;
}

.item.blue .card {
    color: #4A9FF9;
}

.card-id {
    position: absolute;
    left: 7px;
    top: 0;
    height: 30px;
    line-height: 30px;
    text-align: left;
    font-size: 16px;
    font-weight: 400;
}

.card-remove {
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    -moz-transform: scale(0);
    -webkit-transform: scale(0);
    -o-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
    -webkit-transition: all 0.15s ease-out;
    -moz-transition: all 0.15s ease-out;
    -ms-transition: all 0.15s ease-out;
    -o-transition: all 0.15s ease-out;
    transition: all 0.15s ease-out;
}

.card:hover> .card-remove {
    -moz-transform: scale(1);
    -webkit-transform: scale(1);
    -o-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}


/* Grid Footer */

.grid-footer {
    margin: 60px 0;
    text-align: center;
}

.grid-footer .btn .material-icons {
    margin-right: 10px;
    font-size: 24px;
}


/*
Dopsaowanie kolorów szablonu
*/

.szare-tlo {
    /*background-color: #d8d8d8;*/
    background-color: #fdfdfd;
}

#kontakt {
    background-color: #81807f;
    color: #dddddc;
}

#kontakt input,
#kontakt textarea {
    border-color: #dddddc;
    background-color: #a0a0a09c;
    color: #fff;
}

#kontakt h3,
#kontakt label,
#kontakt .material-icons {
    color: #dddddc;
}


body .uk-dotnav > li.uk-active > a {
    background: #ff832a;
}
body .uk-dotnav > li.uk-active {
    border-color: #00a8e6;
}
.md-input-focus {
    color: #00a8e6 !important;
}
body #header_main .uk-navbar-nav > li.current_active a {
    -webkit-box-shadow: inset 0 -4px 0 #ff832a;
    box-shadow: inset 0 -4px 0 #ff832a;
}

#jasny-niebieski {
    background-color: #ff832a !important;
}

.jasno-niebieskie-tlo {
    background-color: #00a8e6 !important;
}

body .bialy-kolor h2 {
    color: #fff;
}

/*
Naprawienie paska przewijania aby nie zwężał strony
powoduje to niechciane podskakiwanie strony podczas
włączania modalu w portfolio.
*/
html {
  overflow-y: scroll !important;
}

.header_sticky {
    padding-right: 0 !important;
}


.uk-slider img {
    max-width: 170px;
}

@media only screen and (max-width: 600px) {
    .banner .uk-slideshow > li {
        background-image: url(/assets/kawa.png) !important;
        background-size: 45%;
        background-position: center bottom;
    }
}

/* Ukrycie portfolio na malych ekranach */
@media only screen and (max-width: 574px) {
    #doswiadczenie .portfolio {
        display: none;
    }
}
@media only screen and (max-width: 479px) {
    .uk-slider img {
        margin: 0 auto;
        display: block;
    }
    .margin-top-mobile {
        margin-top: 0 !important;
    }
}
