@import url(reset.css);
@import url(https://fonts.googleapis.com/css?family=Roboto+Condensed&subset=latin,latin-ext);
@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,100&subset=latin,latin-ext);
@import url(https://fonts.googleapis.com/css?family=Playfair+Display:400italic&subset=latin,latin-ext);

body,
html {
    width: 100%;
    height: 100%;
}

body {
    background: #060c17;
    font-family: 'Roboto', sans-serif;
    color: #d9dee8;
    font-size: 16px;
    font-weight: normal;
}

* {
    box-sizing: border-box;
}

a {
    color: #C2D1E1;
}

a:hover {
    color: #A4C1DF;
}

a:visited {
    color: #9AADC2;
}

a img {
    border: 0;
}

a:focus,
a:active {
    outline: 0;
}

b,
strong {
    font-weight: bold;
}

i,
em {
    font-style: italic;
}

h2,
h3 {
    font-size: 150%;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 400;
}

h1 {
    display: none;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    margin-bottom: 50px;
    font-size: 30px;
}

.center {
    text-align: center !important;
}

#page {
    background: #071227;
    max-width: 1400px;
    width: 100%;
    position: relative;
    margin: 0 auto;
}

#header {
    height: 300px;
    width: 100%;
    position: absolute;
    top: 0;
    z-index: 2;
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIwLjY1Ii8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDAwMDAiIHN0b3Atb3BhY2l0eT0iMCIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
    background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(0, 0, 0, 0.65)), color-stop(100%, rgba(0, 0, 0, 0)));
    background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
    background: -o-linear-gradient(top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
    background: -ms-linear-gradient(top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
    filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#a6000000', endColorstr='#00000000', GradientType=0);
}

#header.nobg {
    background: none;
    position: relative;
    top: auto;
    height: 100px;
}

#header img {
    height: 50px;
    width: 183px;
}

#header ul {
    list-style: none;
    text-align: center;
    padding-top: 25px;
}

#header li {
    display: inline-block;
    margin: 0 10px;
}

#header li a:not(#logo),
#header li a:not(#logo):visited,
#lang a,
#submenu a {
    text-decoration: none;
    color: white;
    font-family: 'Roboto Condensed', sans-serif;
    transition: border .5s;
    -webkit-transition: border .5s;
    text-shadow: 0 0 1px rgba(0, 0, 0, .5);
    padding: 5px;
    display: block;
    letter-spacing: 1px;
    font-size: 19px;
}

#submenu a {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    display: inline-block;
    font-size: 20px;
}

#header li a:not(#logo):after,
#lang a:after,
#submenu a:after {
    content: '';
    display: block;
    height: 1px;
    width: 10%;
    background: #fff;
    position: relative;
    top: 5px;
    left: 50%;
    transition: all .5s cubic-bezier(0.680, -1, 0.265, 2);
    opacity: 0;
}

#header li a:not(#logo):hover:after,
#lang a:hover:after,
#submenu a:hover:after,
a.active:after,
#hu:lang(hu):after,
#en:lang(en):after,
#de:lang(de):after {
    opacity: .3 !important;
    width: 100% !important;
    left: 0 !important;
}

#logo {
    position: relative;
    top: 15px;
    margin: 10px;
}

#lang {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

#lang a {
    font-size: 14px;
    display: inline-block;
}

#bigpicture {
    position: relative;
    overflow: hidden;
    height: 700px;
    width: 100%;
}

.first,
.second,
.third,
.himage {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
}

.first {
    animation: firstanim 18s linear infinite;
    -webkit-animation: firstanim 18s linear infinite;
}

@keyframes firstanim {
    0% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    34% {
        opacity: 0;
    }

    95% {
        opacity: 0;
    }

    96% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

@-webkit-keyframes firstanim {
    0% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    34% {
        opacity: 0;
    }

    95% {
        opacity: 0;
    }

    96% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

.second {
    animation: secondanim 18s linear infinite;
    -webkit-animation: secondanim 18s linear infinite;
}

@keyframes secondanim {
    0% {
        opacity: 0;
    }

    30% {
        opacity: 0;
    }

    33% {
        opacity: 1;
    }

    66% {
        opacity: 1;
    }

    67% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@-webkit-keyframes secondanim {
    0% {
        opacity: 0;
    }

    30% {
        opacity: 0;
    }

    33% {
        opacity: 1;
    }

    66% {
        opacity: 1;
    }

    67% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.third {
    animation: thirdanim 18s linear infinite;
    -webkit-animation: thirdanim 18s linear infinite;
}

@keyframes thirdanim {
    0% {
        opacity: 0;
    }

    60% {
        opacity: 0;
    }

    66% {
        opacity: 1;
    }

    96% {
        opacity: 1;
    }

    99% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@-webkit-keyframes thirdanim {
    0% {
        opacity: 0;
    }

    60% {
        opacity: 0;
    }

    66% {
        opacity: 1;
    }

    96% {
        opacity: 1;
    }

    99% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.first .himage {
    animation: firstanim2 18s linear infinite;
    -webkit-animation: firstanim2 18s linear infinite;
}

@keyframes firstanim2 {
    0% {
        transform: scale(1.0);
    }

    34% {
        transform: scale(1.1);
    }

    35% {
        transform: scale(1.0);
    }

    100% {
        transform: scale(1.0);
    }
}

@-webkit-keyframes firstanim2 {
    0% {
        -webkit-transform: scale(1.0);
    }

    34% {
        -webkit-transform: scale(1.1);
    }

    35% {
        -webkit-transform: scale(1.0);
    }

    100% {
        -webkit-transform: scale(1.0);
    }
}

.second .himage {
    animation: secondanim2 18s linear infinite;
    -webkit-animation: secondanim2 18s linear infinite;
}

@keyframes secondanim2 {
    0% {
        transform: scale(1.0);
    }

    30% {
        transform: scale(1.0);
    }

    67% {
        transform: scale(1.1);
    }

    68% {
        transform: scale(1.0);
    }

    100% {
        transform: scale(1.0);
    }
}

@-webkit-keyframes secondanim2 {
    0% {
        -webkit-transform: scale(1.0);
    }

    30% {
        -webkit-transform: scale(1.0);
    }

    67% {
        -webkit-transform: scale(1.1);
    }

    68% {
        -webkit-transform: scale(1.0);
    }

    100% {
        -webkit-transform: scale(1.0);
    }
}

.third .himage {
    animation: thirdanim2 18s linear infinite;
    -webkit-animation: thirdanim2 18s linear infinite;
}

@keyframes thirdanim2 {
    0% {
        transform: scale(1.0);
    }

    60% {
        transform: scale(1.0);
    }

    99% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1.0);
    }
}

@-webkit-keyframes thirdanim2 {
    0% {
        -webkit-transform: scale(1.0);
    }

    60% {
        -webkit-transform: scale(1.0);
    }

    99% {
        -webkit-transform: scale(1.1);
    }

    100% {
        -webkit-transform: scale(1.0);
    }
}

.twos,
.threes,
.fours,
.fives {
    position: relative;
    z-index: 2;
    clear: both;
}

.twos a,
.threes a,
.fours a,
.fives a {
    display: block;
    float: left;
    width: 20%;
    height: 180px;
    overflow: hidden;
    background: no-repeat center center / cover;
    text-decoration: none;
    color: white;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    text-align: center;
}

.twosa a {
    width: 50%;
}

.threes a {
    width: 33.333%;
    width: calc(100% / 3)
}

.fours a {
    width: 25%;
}

.twos a div,
.threes a div,
.fours a div,
.fives a div {
    width: 100%;
    height: 100%;
    position: absolute;
    margin: 0 auto;
    text-align: center;
    background: no-repeat center center / cover;
    opacity: 0;
    transition: opacity .7s ease;
}

.twos a:hover div,
.threes a:hover div,
.fours a:hover div,
.fives a:hover div {
    opacity: 1;
}

.twos a span,
.threes a span,
.fours a span,
.fives a span {
    display: inline-block;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 4px;
    font-size: 16px;
    position: relative;
    top: 70px;
    height: 40px;
    line-height: 20px;
    transition: all .3s .2s cubic-bezier(0.680, 0, 0.265, 1.3);
}

.twos a:hover span,
.threes a:hover span,
.fours a:hover span,
.fives a:hover span {
    top: 135px;
    background: rgba(0, 0, 0, .4);
}

.button,
.button:visited {
    display: inline-block;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 4px;
    font-size: 16px;
    position: relative;
    height: 40px;
    line-height: 20px;
    transition: background .3s ease;
    font-family: 'Roboto Condensed', sans-serif;
    font-style: normal;
    top: auto;
    color: white;
    text-decoration: none;
}

.button:hover {
    background: #414b5f;
    color: white;
}

#motto {
    width: 50%;
    float: left;
    padding: 50px;
    font-size: 30px;
    line-height: 50px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    margin-top: 70px;
}

#motto span {
    font-size: 18px;
    line-height: 30px;
    color: #96a0b3;
    display: block;
    margin-bottom: 30px;
}


#news {
    width: 50%;
    float: left;
    padding: 60px 50px 50px 50px;
    line-height: 160%;
    position: relative;
}

#news .button {
    position: absolute;
    top: 50px;
    right: 50px;
}

.newsitem,
.newsitem:visited,
.newsitem:hover {
    display: block;
    color: #283346;
    text-decoration: none;
    text-align: justify;
    font-size: 14px;
    line-height: 20px;
    position: relative;
    padding: 10px;
    background: #eee;
    margin-bottom: 10px;
}

.newsitem strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-weight: normal;
    font-style: italic;
    text-align: left;
    color: #0a347a;
    font-size: 18px;
    line-height: 25px;
    margin-bottom: 10px;
}

hr {
    height: 1px;
    border: 0;
    background: rgba(255, 255, 255, .2);
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    clear: both;
}

#news hr {
    margin-bottom: 40px;
}

.newsitem:after {
    bottom: 10px;
    right: 10px;
    margin: 0;
    top: auto;
    content: "Részletek";
    display: inline-block;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 4px;
    font-size: 12px;
    height: 10px;
    line-height: 10px;
    transition: all .5s ease;
    -webkit-transition: all .5s ease;
    font-family: 'Roboto Condensed', sans-serif;
    font-style: normal;
    position: absolute;
    bottom: 4px;
    right: 4px;
    color: white;
    text-decoration: none;
    background: #071227;
}

.newsitem:lang(en):after {
    content: "Details";
}

.newsitem:lang(de):after {
    content: "Weiter";
}

.newsitem:hover:after {
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(255, 255, 255, 1);
    color: black;
}

.newsitem {
    transition: all .5s ease;
    -webkit-transition: all .5s ease;
}

.newsitem:hover {
    background: #d9dee8;
}

.newsitem span {
    display: block;
    font-size: 75%;
    margin-top: 10px;
    opacity: .5;
}

#contact {
    padding: 60px 50px 50px 50px;
    text-align: center;
}

#contact a,
#contact a:visited {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .3);
    transition: border-bottom .5s;
    -webkit-transition: border-bottom .5s;
}

#contact a:hover {
    border-bottom: 1px solid rgba(255, 255, 255, .7);
}

#contact strong {
    font-size: 20px;
}

#c0 {
    font-size: 25px;
    color: white;
}

#c0 strong {
    font-size: 30px;
}

#details {
    margin: 40px 0;
}

#details div {
    width: 50%;
    float: left;
    line-height: 23px;
    font-size: 14px;
}

#details div strong {
    color: white;
}

#contactbutton {
    clear: both;
    margin-top: 100px;
    text-align: center;
}

#page.aboutus,
#page.news,
#page.services,
#page.partners,
#page.contact,
#page.nonprofit {
    background: #071227 url(images/rolunk_bg.jpg) no-repeat top center / 100%;
}

#page.news {
    background-image: url(images/hirek_bg.jpg);
}

#page.services {
    background-image: url(images/szolgaltatasok_bg.jpg);
}

#page.partners {
    background-image: url(images/partnerek_bg.jpg);
}

#page.contact {
    background-image: url(images/elerhetosegek_bg.jpg);
}

#page.news {
    background-image: url(images/hirek_bg.jpg);
}

#page.nonprofit {
    background-image: url(images/kozhasznu_bg2.jpg);
}


#submenu {
    text-align: center;
}

#submenu hr {
    width: 90%;
    max-width: 800px;
}

.article {
    width: 100%;
    margin: 150px auto;
}

.article h2 {
    color: white;
    font-size: 30px;
    line-height: 40px;
    text-align: center;
    margin: 0 auto 0;
    max-width: 90%;
    text-wrap: balance;
}

.article p,
.article ul {
    text-align: justify;
    font-size: 16px;
    line-height: 26px;
    margin: 15px auto;
    max-width: 750px;
    padding: 0 20px;
}

.article ul {
    list-style: disc inside;
}

.article img {
    max-width: 710px;
    width: 95%;
    margin: 15px auto;
    display: block;
}

.article .small {
    font-size: 75%;
}

.article .date {
    text-align: center;
    color: #96a0b3;
    font-size: 75%;
}

.article h3,
caption {
    font-family: 'Playfair Display', serif;
    font-weight: normal;
    font-style: italic;
    text-align: left;
    color: white;
    font-size: 18px;
    line-height: 25px;
    max-width: 750px;
    padding: 0 20px;
    margin: 50px auto 0 auto;
}

hr+h3 {
    margin-top: 10px !important;
}

table {
    line-height: 26px;
    margin: 30px auto;
    max-width: 750px;
    padding: 0 20px;
    width: 100%;
}

caption {
    text-align: center;
    margin-bottom: 30px;
}

tr {
    border-top: 1px solid rgba(255, 255, 255, .1);
}

tr:first-child {
    border: none;
}

td span {
    display: block;
    color: #96a0b3;
    font-size: 14px;
}

td {
    padding: 10px;
    vertical-align: middle;
}

.videos {
    text-align: center;
    margin: 50px 0;
}

.videos div {
    display: inline-block
}

.videos a {
    font-size: 12px;
    text-align: center;
    display: block;
    margin: 10px 0 40px 0;
}

.photos {
    text-align: center;
    margin: 30px 0;
}

.photos img {
    max-width: 100%;
    width: auto;
    margin: 0;
    display: inline-block;
}

.two img {
    max-width: 46%;
    margin: 1%;
}

.three img {
    max-width: 31%;
    margin: 1%;
}

.bigphotos img {
    display: block;
    width: 33.33%;
    float: left;
}

.bigphotos:after {
    content: '';
    display: block;
    clear: both;
}

.bigphotos+h3 {
    margin-top: 15px;
}

#page.aboutus #submenu a,
#page.nonprofit #submenu a,
#page.services #submenu a,
#page.partners #submenu a {
    font-size: 14px;
    margin: 0 10px;
}

#submenu+.section {
    margin-top: 25%;
}

.section {
    position: relative;
}

.section .picture {
    background: no-repeat top right / 50%;
}

.section:nth-child(5) .picture,
.section:nth-child(9) .picture {
    background: no-repeat top left / 50%;
}

.section .picture img {
    width: 50%;
    height: auto;
    display: block;
    position: relative;
}

.section:nth-child(5) .picture img,
.section:nth-child(9) .picture img {
    left: 50%;
}

.right img {
    margin-left: 50%;
}

.section .text {
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
}

.section:nth-child(5) .text,
.section:nth-child(9) .text {
    left: 50%;
}

.section .article {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    margin: 0;
    padding: 30px;
}

.section .article p {
    font-size: 16px;
    line-height: 21px;
}

#page.partners .article p {
    text-align: center;
}

.section hr {
    margin: 10px auto;
}

.right .article {
    right: 0;
}

.pic300 {
    background: no-repeat top right / 50.5%;
}

.pic300 img {
    width: 50%;
    display: block;
}

#belsoepiteszet .picture {
    background-image: url(images/belsoepiteszet_big.jpg);
}

#belsoepiteszet+.pic300 {
    background-image: url(images/300_1b.jpg);
}

#muemlekfelujitas .picture {
    background-image: url(images/muemlekfelujitas_big.jpg);
}

#muemlekfelujitas+.pic300 {
    background-image: url(images/300_2b.jpg);
}

#generalkivitelezes .picture {
    background-image: url(images/generalkivitelezes_big.jpg);
}

#generalkivitelezes+.pic300 {
    background-image: url(images/300_3b.jpg);
}

#homlokzatok_es_terek .picture {
    background-image: url(images/homlokzatok_es_terek_big.jpg);
}

#homlokzatok_es_terek+.pic300 {
    background-image: url(images/300_4b.jpg);
}

#ingatlanfejlesztes .picture {
    background-image: url(images/ingatlanfejlesztes_big.jpg);
}

#ingatlanfejlesztes+.pic300 {
    background-image: url(images/300_5b.jpg);
}

#famuveszet .picture {
    background-image: url(images/famuveszet_big.jpg);
}

#famuveszet+.pic300 {
    background-image: url(images/300_6b.jpg);
}

#komuveszet .picture {
    background-image: url(images/komuveszet_big.jpg);
}

#komuveszet+.pic300 {
    background-image: url(images/300_7b.jpg);
}

#gipszmuveszet .picture {
    background-image: url(images/gipszmuveszet_big.jpg);
}

#gipszmuveszet+.pic300 {
    background-image: url(images/300_8b.jpg);
}

#uvegmuveszet .picture {
    background-image: url(images/uvegmuveszet_big.jpg);
}

#uvegmuveszet+.pic300 {
    background-image: url(images/300_9b.jpg);
}

#footer {
    clear: both;
    color: #7B8699;
    padding: 50px;
    font-size: 12px;
    text-align: center;
    position: relative;
}

#footer a,
#footer a:visited {
    color: #7B8699;
}

#footer img {
    margin-bottom: 20px;
    opacity: .3;
    width: 200px;
}

@media screen and (max-width: 767px) {
    h1 {
        display: block;
        background: url(images/laki.svg) no-repeat top center / contain;
        position: absolute;
        top: 20px;
        left: 50%;
        margin-left: -90px;
        z-index: 3;
        text-indent: -999px;
        width: 180px;
        height: 50px;
    }

    #header {
        height: 400px;
        position: relative;
        background: url(images/header.jpg) no-repeat center center / cover;
    }

    #header.nobg {
        height: auto;
    }

    #lang {
        top: 10px;
    }

    #header ul {
        position: relative;
        padding-top: 90px;
    }

    #header ul li {
        -webkit-transform: none;
        transform: none;
        -webkit-animation: none;
        animation: none;
        margin-bottom: 5px;
    }

    #header ul li:nth-child(4) {
        display: none;
    }

    #bigpicture {
        display: none;
    }

    .twos a,
    .threes a,
    .fours a,
    .fives a {
        width: 100%;
        height: 100px;
    }

    .twos a span,
    .twos a:hover span,
    .threes a span,
    .threes a:hover span,
    .fours a span,
    .fours a:hover span,
    .fives a span,
    .fives a:hover span {
        top: 30px;
    }

    .twos a div,
    .threes a div,
    .fours a div,
    .fives a div {
        background: none;
        display: none;
    }

    #motto {
        font-size: 25px;
        line-height: 30px;
    }

    #motto,
    #news {
        width: 100%;
        float: none;
    }

    #details {
        margin-bottom: 50px;
    }

    #c0,
    #c0 strong {
        font-size: 20px;
    }

    #details div {
        width: 100%;
        float: none;
        margin-bottom: 50px;
    }

    #contact {
        padding-bottom: 0;
    }

    #contactbutton {
        margin: 0;
    }

    .two img,
    .three img {
        max-width: 100%;
        margin: 0;
    }

    .bigphotos img {
        width: 100%;
        float: none;
    }

    #submenu+.section {
        margin-top: 20px;
    }

    .section .picture {
        background: none !important;
        display: none;
    }

    .section .text,
    .section:nth-child(5) .text,
    .section:nth-child(9) .text {
        width: 100%;
        left: 0;
        position: relative;
    }

    .section .article {
        width: 100%;
        position: relative;
        top: auto;
        -webkit-transform: none;
        -ms-transform: none;
        transform: none;
    }

    .pic300 {
        background: none !important;
        ;
    }

    .pic300 img {
        width: 100%;
        display: block;
    }

    video {
        max-width: 100%;
        width: 480px;
        height: 270px;
    }

    #page.services,
    #page.partners {
        background: #071227 url(images/hirek_bg.jpg) no-repeat top center / contain;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    #header ul {
        padding-top: 35px;
    }

    #header li {
        margin: 0 5px;
    }

    #header ul li a {
        font-size: 16px !important;
        padding: 4px !important;
    }

    #header img {
        height: 40px;
        width: 146px;
    }

    #logo {
        margin: 5px;
    }

    #bigpicture {
        height: 500px;
    }

    .twos a,
    .fours a {
        width: 50%;
    }

    .fives a:nth-child(1),
    .fives a:nth-child(2) {
        width: 50%;
    }

    .fives a:nth-child(3),
    .fives a:nth-child(4),
    .fives a:nth-child(5) {
        width: 33.333%;
    }

    #motto,
    #news {
        width: 100%;
        float: none;
    }

    #c0,
    #c0 strong {
        font-size: 28px;
    }

    #details div {
        width: 50%;
        margin-bottom: 50px;
    }

    .two img,
    .three img {
        max-width: 100%;
        margin: 0;
    }

    #page.services,
    #page.partners {
        background-size: 1310px;
    }

    #page.services #submenu a,
    #page.partners #submenu a {
        font-size: 13px;
        margin: 0 5px;
    }

    #submenu+.section {
        margin-top: 42%;
    }

    #submenu hr {
        margin: 10px auto;
    }

    .section {
        overflow: hidden;
    }

    .section .picture {
        background: none !important;
    }

    .section .picture img {
        left: 0 !important;
        width: 100%;
        position: absolute;
        top: 0;
    }

    .section .text,
    .section:nth-child(5) .text,
    .section:nth-child(9) .text {
        width: 100%;
        left: 0;
        position: relative;
    }

    .section .article {
        width: 100%;
        position: relative;
        top: auto;
        -webkit-transform: none;
        -ms-transform: none;
        transform: none;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1199px) {
    #header ul {
        padding-top: 35px;
    }

    #header ul li a {
        font-size: 16px !important;
        padding: 4px !important;
    }

    #header img {
        height: 40px;
        width: 146px;
    }

    #header li {
        margin: 0 5px;
    }

    #logo {
        margin: 5px;
    }

    #bigpicture {
        height: 608px;
    }

    .twos a,
    .threes a,
    .fours a,
    .fives a {
        height: 160px;
    }

    .twos a span,
    .twos a:hover span,
    .threes a span,
    .threes a:hover span,
    .fours a span,
    .fours a:hover span,
    .fives a span,
    .fives a:hover span {
        top: 60px;
    }

    .twos a span,
    .threes a span,
    .fours a span,
    .fives a span {
        font-size: 14px;
    }

    #news hr {
        margin: 10px auto 30px auto;
    }

    #contact {
        padding: 20px;
    }

    #details div strong {
        font-size: 16px;
    }

    #details div {
        font-size: 14px;
    }

    #submenu hr {
        margin: 10px auto;
    }

    #submenu+.section {
        margin-top: 24%;
    }

    .section .article {
        padding: 15px;
    }

    .section .article p {
        font-size: 14px;
        line-height: 18px;
    }
}