html {
    box-sizing: border-box;
    overflow-x: hidden; /* preventing from displaying horizontal scroll */
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 14px !important;
    color: #999999;
}

a {
    color: #FFFFFF;
    text-decoration: none;
}

button {
    cursor: pointer;
}

.intro::before {
    content: '';
    position: absolute;
    background-image: url('../images/header-bg.png');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100vw;
    z-index: -1;
    top: -30px;
    bottom: 0;
    left: calc(-50vw + 50%); /* przesuniecie tla wzgledem headera */
    box-sizing: border-box;
}

.intro {
    position: relative;
    margin: 0 auto;
    height: 100vh;
    box-sizing: border-box;
    padding: 30px;
}

.page-nav {
    visibility: hidden;
    opacity: 0;
    z-index: 10;
    box-shadow: 2px 2px 5px 1px #444444; /* TODO */
    width: 100%;
    background-color: #FFFFFF;
    position: fixed;
    top: 0;
    left: 0;
    transition: visibility 0s linear 0.3s, opacity 0.3s linear;  /* last argument in visibility is delay, optional, but it prevents from hiding menu without fade out */
}

.page-nav .page-logo {
    text-transform: none;
    position: absolute;
    top: 30px;
    left: 30px;
}

.page-nav ul {
    list-style: none;
    text-align: center;
    padding-left: 0;
    margin-top: 60px;
}

.page-nav ul li {
    padding: 10px 0;
}

.page-nav a {
    color: #000000;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.2em;
    
}

.page-nav a:hover {
     color: #FCE38A;
}

.menu-link {
    font-family: 'Montserrat', sans-serif;
}

.page-nav-opened {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.page-menu {
    display: none;
    position: relative;
}

.menu-hamburger {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #FFFFFF;
    display: inline;
    font-size: 1.2em;
}

.menu-hamburger:active {
    color: #FCE38A;
}

.menu-hamburger-hidden {
    display: none;
}

.menu-close {
    color: #000000;
    background: none;
    border: none;
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 1.2em;
}



.page-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    font-weight: bold;
}

a.page-logo:hover {
    color: #FFFFFF;
}

a.page-logo:active {
    color: #FCE38A;
}

.welcome {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.page-title {
    text-transform: uppercase;
    text-align: center;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 3em;
    padding: 0;
    margin-top: 20px;
}

.page-sub-title {
    font-size: 1.5em;
    text-align: center;
    font-family: 'Kaushan Script', cursive;
    color: #FFFFFF;
    padding: 0;
    margin: 0;
}

.simple-button {
    text-transform: uppercase;
    border: 3px solid #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8em;
    padding: 10px 15px;
    display: block;
    width: 120px;
    box-sizing: border-box;
    margin: 0 auto;
}

.simple-button:hover {
    color: #FCE38A;
    border: 3px solid #FCE38A;
}

.list-progress {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    list-style: none;
    color: #FFFFFF;
}

.list-progress li {
    display: block;
    width: 25%;
}

.progress-title {
    font-size: 0.5em;
}

.rectangle-white {
    width: 50px;
    height: 3px;
    margin: 20px auto;
    background: #FFFFFF;
}

.rectangle-red {
    width: 50px;
    height: 3px;
    margin: 20px auto;
    background-color: #F38181;
}

/* main */

.page-main {
    padding: 0 30px;
}

section.narrow {
    padding-top: 50px;
}

.section-sub-title {
    font-family: 'Kaushan Script', cursive;
    font-size: 1em;
    text-align: center;
    margin-bottom: 5px;
    color: #333333;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    color: #333333;
}

.description {
    text-align: center;
    line-height: 1.2em;
    margin-bottom: 20px;
}

.about-images li img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.dynamic-numbers {
    position: relative;
}

.dynamic-numbers ul {
    color: #FFFFFF;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

.dynamic-numbers:before {
    content: '';
    display: block;
    width: 100vw;
    background-color: #95E1D3;
    position: absolute;
    top: 0;
    left: -30px;
    z-index: -1;
    box-sizing: border-box;
    height: 100%;
}

.dynamic-numbers ul li {
    display: block;
    text-align: center;
    border-bottom: 1px solid #B5EAE0;
    padding: 10px 0;
}

.dynamic-numbers ul li:last-of-type {
    border-bottom: none;
}

.odometer {
    display: block;
    font-size: 3.5em;
    font-weight: bold;
    color: #FFFFFF;
}

.service {
    padding-bottom: 30px;
}

.services-list {
    list-style: none;
    text-align: center;
}

.services-list li {
    display: block;
    margin-bottom: 20px;
}

.services-list li:last-of-type {
    margin-bottom: 0;
}

.services-list li dt {
    text-transform: uppercase;
    color: #333333;
    margin-bottom: 5px;
    font-weight: bold;
}

.services-list li span {
    font-size: 1.7em;
    margin-bottom: 10px;
    color: #95E1D3;
}

.design {
    position: relative;
    box-sizing: border-box;
    padding-bottom: 20px;
    padding-top: 0;
}

.design-inner {
    position: relative;
    min-height: 350px;
    padding-top: 30px;
}

.design-inner:before {
    content: '';
    position: absolute;
    top: 0;
    left: -30px;
    width: 100vw;
    height: 100%;
    background-image: url('../images/design-bg.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center top;
    background-size: cover;
    z-index: -1;
}

.tablet {
    position: absolute;
    bottom: 0;
    left: calc(50% - 90px);
    width: 180px;
}

.phone {
    position: absolute;
    bottom: 0;
    left: calc(50% + 30px);
    width: 90px;
}

.what-we-do-list-wrapper {
    margin-bottom: 30px;
}

.image-photography {
    width: 100%;
    height: auto;
}

.what_we_do-list {
    margin-bottom: 20px;
}

.what_we_do-list dt {
    text-transform: uppercase;
    padding: 10px;
    border: 1px solid #E5E5E5;
    box-sizing: border-box;
    position: relative;
    color: #333333;
    font-weight: bold;
}

.what_we_do-list dd {
    border-bottom: 1px solid #E5E5E5;
    border-left: 1px solid #E5E5E5;
    border-right: 1px solid #E5E5E5;
    margin-bottom: 10px;
    padding: 10px;
    line-height: 1.2em;
    display: none;
}

.what_we_do-list dt .glyphicon {
    color: #95E1D3;
    margin-right: 10px;
}

.what_we_do-list .arrow-down {
    position: absolute;
    top: 10px;
    right: 0;
    color: #E5E5E5;
    background: none;
    border: none;
    padding: 0;
}

.what-we-do-icon {
    margin-right: 10px;
    color: #95E1D3;
}

.quotes-slider-item {
    text-align: center;
}

.quote-wrapper {
    color: #999999;
    display: block;
    width: 80%;
    padding: 15px 10px;
}

.quote {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: row;
    align-content: center;
}

.quote-icon-wrapper {
    display: flex;
    align-items: center;
}

.quote-icon {
    border: 2px solid #95E1D3;
    color: #95E1D3;
    padding: 15px;
    margin-right: 10px;
    font-size: 1.5em;
}

.quote-image {
    margin-right: 10px;
    width: 50px;
    height: auto;
}

.quote-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quotes-slider ul {
    height: 200px;
}

.quotes-slider {
    position: relative;
}

.quotes-slider:before {
    content: '';
    background-color: #F8F8F8;
    position: absolute;
    left: -30px;
    width: 100vw;
    z-index: -1;
    height: 100%;
}

.quote footer {
    margin-top: 5px;
    font-weight: bold;
    color: #333333;
    font-family: 'Kaushan Script', cursive;
}

.quote footer:before {
    content: "\2014";
    color: #F38181;
    margin-right: 5px;
}

.quotes-slider-item {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.quote-arrow-left {
    background: none;
    border: none;
    line-height: 100px;
    height: 100%;
    width: 10%;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 1em;
    color: #999999;
}

.quote-arrow-right {
    background: none;
    border: none;
    line-height: 100px;
    height: 100%;
    width: 10%;
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1em;
    color: #999999;
}

/* Meet our team */

.member-photo {
    width: 100%;
    height: auto;
    margin: 20px 0;
}

.member-name {
    text-transform: uppercase;
    font-weight: bold;
    display: block;
    text-align: center;
    margin: 5px;
    color: #333333;
}

.member-title {
    display: block;
    text-align: center;
}

.companies {
    background-color: #F5F5F5;
    text-align: center;
    position: relative;
    margin-top: 20px;
    box-sizing: border-box;
}

.companies:before {
    content: '';
    background-color: #F5F5F5;
    position: absolute;
    width: 100vw;
    left: -30px;
    height: 100%;
    z-index: -1;
}

/* Some of our works */

.our-works {
    position: relative;
    margin-left: -30px;
}

.our-works ul {
    font-size: 0;
}

.our-works:before {
    content: '';
    position: absolute;
    width: 100vw;
    z-index: -1;
    height:100%;
    left: -30px;
}

.our-works ul li a img {
    width: 100vw;
    height: auto;
    outline: 0;
}

/* What people say */

.opinions {
    position: relative;
    padding-top: 50px;
}

.opinions::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -30px;
    background-image: url('../images/opinions-bg.png');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100vw;
    z-index: -1;
}

.people-opinions {
    margin-top: 50px;
}

.people-opinions li {
    margin-bottom: 50px;
}

.opinion {
    position: relative;
    display: flex;
    flex-direction: row;
}

.opinion-content {
    margin-left: 20px;
    line-height: 1.3em;
}

.opinion-author-img {
    display: inline;
}

.opinion-author {
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    color: #333333;
}

.opinion-author-job {
    font-style: italic;
    font-weight: lighter;
    color: #333333;
}

.opinion-separator {
    width: 50px;
    height: 3px;
    margin: 10px 0;
    background-color: #F38181;
}

.opinions {
    padding-bottom: 20px;
}

/* Latest blog */

.blog-post {
    margin-bottom: 20px;
}

.blog-post-image {
    position: relative;
}

.blog-post-image img {
    width: 100%;
    height: auto;
}

.blog-post-image .date {
    color: #FFFFFF;
    background: #95E1D3;
    width: 50px;
    text-align: center;
}

.blog-post-image .date {
    font-style: italic;
    padding: 10px 5px;
    position: absolute;
    bottom: 10px;
    left: -10px;
}

.blog-post-image .date .date-day {
    font-style: normal;
    font-size: 2em;
    font-weight: bold;
    font-family: 'Montserrat';
}

.blog-post-title {
    text-transform: uppercase;
    color: #333333;
    margin: 10px 0;
    font-weight: bold;
}

.blog-post-text {
    line-height: 1.3em;
    padding-bottom: 10px;
    border-bottom: 1px solid #E5E5E5;
}

.blog-post-icons {
    margin-top: 10px;
}

.blog-post-number {
    display: inline-block;
    margin-right: 10px;
}

.blog-post-icon {
    color: #95E1D3;
    margin-right: 5px;
}

/* footer */

.page-footer {
    padding: 0 30px;
}

.map::before {
    content: '';
    background-image: url('../images/map-bg.png');
    position: absolute;
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100vw;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: calc(-50vw + 50%);
    box-sizing: border-box;
}

.map {
    position: relative;
    text-align: center;
    padding: 30px 0;
}

.map-marker {
    color: #F38181;
    font-size: 1.5em;
}

.map-link {
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

.map-link a {
    color: #F38181;
    font-size: 1.3em;
}

.map-rectangle {
    width: 50px;
    height: 3px;
    margin: 10px auto;
    background-color: #F38181;
}

.footer-sections {
    padding: 30px 0;
    border-bottom: 1px solid #E5E5E5;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-title {
    color: #CCCCCC;
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    font-weight: 900;
    margin-bottom: 20px;
}

.footer-text {
    margin-bottom: 20px;
    line-height: 1.3em;
}

.footer-followers {
    color: #333333;
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.footer-followers-number {
    font-weight: bold;
}

.social-media {
    font-style: italic;
    margin-bottom: 20px;
}

.social-media-icons {
    color: #95E1D3;
    display: inline-block;
    margin-left: 10px;
}

.subscribe-form input {
    padding: 9px 8px;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid #E5E5E5;
    border-right: none;
    width: 60%;
}

.subscribe-form button {
    background-color: #95E1D3;
    text-transform: uppercase;
    color: #FFFFFF;
    border: none;
    padding: 10px 16px;
    box-sizing: border-box;
    width: 40%;
    font-size: 1em;
}

.footer-section-title {
    text-transform: uppercase;
    color: #333333;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 1.2em;
}

.blog-miniature {
    display: flex;
    flex-direction: row;
    position: relative;
    margin-bottom: 20px;
}
.blog-miniature-image {
    margin-right: 10px;
}

.blog-miniature-image img {
    width: 120px;
    height: 80px;
}

.blog-miniature-text {
    position: absolute;
    top: 50%;
    left: 130px;
    transform: translateY(-50%);
}

.blog-miniature-title {
    color: #333333;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 5px;
}

.blog-miniature-date {
    font-style: italic;
    color: #999999;
}

.instagram-miniatures {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.more-photos-link {
    font-style: italic;
    color: #333333;
}

.copyrights {
    text-align: center;
    color: #333333;
    font-weight: bold;
    padding: 30px 0;
}

.copyrights a {
    color: #F38181;
}


/* Tablet version: */

@media only screen and (min-width: 768px) { 

    .page-logo {
        font-size: 2em;
    }

    .menu-hamburger {
        font-size: 2em;
    }

    .menu-close {
        font-size: 2em;
    }

    .page-nav ul li {
        padding: 20px 0;
    }

    .menu-link {
        font-size: 2em;
    }

    .about-images {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .about-images li {
        width: 32%;
    }

    .about-images li img {
        width: 100%;
        height: auto;
    }

    .dynamic-numbers ul {
        display: flex;
        justify-content: space-between;
    }

    .dynamic-numbers ul li {
        padding: 60px 0;
    }

    .services-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .services-list li {
        width: 30%;
        text-align: left;
    }

    .design-inner {
        min-height: 480px;
        padding-top: 50px;
    }

    .tablet {
        width: 300px;
        left: calc(50% - 150px);
    }
    
    .phone {
        width: 180px;
        left: calc(50% + 45px);
    }

    .quote-image {
        width: 100px;
        height: auto;
    }

    .what-we-do-list-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .what-we-do-list-image {
        width: 48%;
    }

    .what_we_do-list {
        width: 50%;
    }

    .quote-icon {
        padding: 12px;
        font-size: 2em;
    }
    
    .quote-arrow-left {
        font-size: 2em;
    }
    
    .quote-arrow-right {
        font-size: 2em;
    }

    .team-members {
        display: flex;
        justify-content: space-between;
        padding-bottom: 30px;
    }

    .team-members li {
        width: 32%;
    }

    .companies {
        box-sizing: border-box;
    }

    .companies ul {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 50px 0;
    }

    .companies ul li {
        width: 15%;
    }

    .companies ul li img {
        width: 100%;
        height: auto;
    }

    .our-works ul {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        height: 50vw;
    }

    .our-works ul li {
        width: 25vw;
        position: absoulte; 
    }

    .our-works ul li a img {
        outline: 0;
        width: 100%;
        height: auto;
    }

    .people-opinions {
        display: flex;
        direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .people-opinions li {
        width: 46%;
    }

    .blog-posts {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .blog-post {
        width: 30%;
    }

    .map-marker {
        font-size: 2em;
    }

    .map-link {
        font-size: 1.7em;
    }

    .footer-sections {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-section {
        width: 32%;
    }

    .instagram-miniature {
        width: 33%;
    }

    .instagram-miniature img {
        width: 100%;
        height: auto;
    }

}


/* Desktop version */

@media only screen and (min-width: 1200px) { 

    .page-logo {
        font-size: 3em;
    }

    .page-title {
        font-size: 5em;
    }

    .page-sub-title {
        font-size: 3em;
    }

    .menu-hamburger {
        display: none;
    }

    header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .page-nav {
        visibility: visible;
        opacity: 1;
        box-shadow: none;
        background-color: transparent;
        position: static;
        width: 600px;
        box-sizing: border-box;
    }

    .page-nav ul {
        display: flex;
        justify-content: space-between;
        margin-top: 0;
     }


    .logo-nav-opened {
         display: none;
     }

     .page-nav a {
         color: #FFFFFF;
         font-size: 1.2em;
     }

     .page-nav a:hover {
        color: #FCE38A;
     }

     .page-nav li:hover {
        border-bottom: 3px solid #FCE38A;
     }

     .menu-link {
        font-weight: normal;
     }

     .menu-close {
         display: none;
     }

     .narrow {
        width: 960px;
        margin: 0 auto;
     }

     .quote-icon {
         margin-right: 30px;
     }

     .quote-image {
         margin-right: 30px;
     }

     .tablet {
        width: 450px;
        left: calc(50% - 225px);
    }
    
    .phone {
        width: 250px;
        left: calc(50% + 125px);
    }

    .design-inner {
        min-height: 700px;
        padding-top: 50px;
    }
}

