html,
body {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

header {
    height: 75px;
}

main {
    flex: auto;
}

footer {
    height: 25px;
}


/* Wersja z jedną grafiką  */

#img1 {
    -webkit-clip-path: polygon(61.1% 0, 0 0, 0 100%, 41% 100%);
    clip-path: polygon(61.1% 0, 0 0, 0 100%, 41.1% 100%);
    position: relative;
    float: left;
}

#img1:hover,
#img2:hover {
    animation: zaznaczoneZdjecie 1s;
    filter: contrast(1.1) saturate(1.1);
}


/* #img1:hover:after,
#img2:hover:after {

    animation: zaznaczoneZdjeciePowrot .5s;
    filter: contrast(0.9) saturate(0.9);
} */

#img2 {
    -webkit-clip-path: polygon(61% 0, 100% 0, 100% 100%, 41% 100%);
    clip-path: polygon(61% 0, 100% 0, 100% 100%, 41% 100%);
    position: relative;
    margin-left: -100%;
    float: right;
    text-align: right;
    float: right;
}

.bgimg {
    /* background: url(../images/tlo_1.jpg) center center no-repeat; */
    background-size: cover;
    width: 100%;
    height: 100%;
    display: inline-block;
    color: white;
    /* transition: all 1s; */
}


/*
.bgimg.bgimg2 {
    background: url(../images/tlo_2.jpg) center center no-repeat;
    background-size: cover;
} */


/* koniec wersji z jedną grafiką */

#img1 {
    -webkit-clip-path: polygon(60.1% 0, 0 0, 0 100%, 40% 100%);
    clip-path: polygon(60.1% 0, 0 0, 0 100%, 40.1% 100%);
    background-size: cover;
    position: relative;
    float: left;
    background: url(/images/lewa.jpg) center center no-repeat;
    background-size: cover;
}

#img2 {
    -webkit-clip-path: polygon(61% 0, 100% 0, 100% 100%, 41% 100%);
    clip-path: polygon(61% 0, 100% 0, 100% 100%, 41% 100%);
    background: url(/images/prawa.jpg) center center no-repeat;
    position: relative;
    margin-left: -100%;
    float: right;
    text-align: right;
    float: right;
    background-size: cover;
}

.bgimg {
    background-size: cover;
    width: 100%;
    height: 100%;
    display: inline-block;
    color: white;
    filter: contrast(0.9) saturate(0.9);
    /* transition: all 1s; */
}


/* koniec wersji z dwoma obrazkami */

.ieFix {
    width: 50%;
}

#img2.ieFix {
    background-position-x: 50%;
    background-position: left;
}

#img1.ieFix {
    background-position-x: 0%;
    background-position: left;
}

@keyframes zaznaczoneZdjecie {
    from {
        /* filter:brightness(1); */
        filter: contrast(0.9) saturate(0.9);
    }
    to {
        /* filter:brightness(1.2); */
        filter: contrast(1.1) saturate(1.1);
    }
}

@keyframes zaznaczoneZdjeciePowrot {
    from {
        /* filter:brightness(1); */
        filter: contrast(1.1) saturate(1.1);
    }
    to {
        /* filter:brightness(1.2); */
        filter: contrast(0.9) saturate(0.9);
    }
}

.headertxt {
    font-family: "Roboto", "Nunito", "Helvetica", "Arial", sans-serif;
    font-weight: bold;
    font-size: calc(32px + 6 * ((100vw - 320px) / 680));
    margin-top: calc(100px + (100vh / 6));
    margin-left: 9%;
    margin-right: 9%;
    line-height: 1.2;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.8);
}

#txt1 {
    padding-top: 5%;
    position: relative;
    margin-bottom: 1%;
    -webkit-text-stroke: 1px black;
    -webkit-text-fill-color: white;
}

#btn1,
#btn2 {
    margin-left: 9%;
    margin-right: 9%;
    height: 58px;
    line-height: 56px;
    font-size: 40px;
    transition: all 1s;
    opacity: 0.01;
    text-transform: lowercase;
}

#btn1:hover,
#btn2:hover {
    background-color: #000;
    border-color: #900;
    color: #EEBE00;
    color: #FFF;
}

#txt2 {
    padding-top: 5%;
    position: relative;
    margin-bottom: 1%;
    -webkit-text-stroke: 1px black;
    -webkit-text-fill-color: white;
}

#txt2 .t2 {
    display: none
}

.bgimg:hover {
    /*transform: scaleX(1.1);*/
}

.bgimg:hover .headertxt {
    text-shadow: 2px 2px 3px #000000;
    color: #FFF;
}

.bgimg:hover #btn1,
.bgimg:hover #btn2 {
    opacity: 1;
}

@media (max-width: 1280px) {
    .headertxt,
    #btn1,
    #btn2 {
        margin-left: 8%;
        margin-right: 8%;
        font-size: 33px;
    }
}

@media (max-width: 1024px) {
    .headertxt,
    #btn1,
    #btn2 {
        margin-left: 8%;
        margin-right: 8%;
        font-size: 33px;
    }
    .bgimg {
        height: 49%;
        width: 100%;
    }
    #img1 {
        margin-bottom: 1%;
    }
    #img1,
    #img2 {
        clip-path: none;
        float: none;
        margin-left: 0;
    }
    .bgimg .headertxt {
        margin-top: 40px;
        font-size: 40px;
        text-align: left;
        color: #fff;
    }
    #btn2 {
        float: left;
    }
    #btn1,
    #btn2 {
        opacity: 1;
    }
}

@media (max-width: 640px) {
    #txt1 {
        white-space: pre-wrap;
    }
    #txt2 {
        white-space: pre-wrap;
    }
}

@media (max-width: 640px) {
    #txt1 {
        font-size: 32px;
    }
    #txt2 {
        font-size: 32px;
    }
}

.logo_pgg {
    position: absolute;
    left: 50%;
    z-index: 10;
    margin-top: 30px;
}

.logo_pgg img {
    position: relative;
    left: -50%;
    max-height: 100px;
}

#toogle,
#toogle2 {
    border: 1px solid #080;
    background: #040;
    padding: 3px;
    position: fixed;
    bottom: 3px;
    right: 3px;
    color: #fff;
    font-weight: 800;
    font-size: 8px;
    cursor: hand;
    cursor: pointer;
}

#logo2 {
    display: none;
    background: rgb(255, 255, 255);
    padding: 0 5px 0 10px;
    position: absolute;
    left: 0px;
    top: 0px;
}

#logo2::after {
    background: rgb(255, 255, 255);
    position: absolute;
    margin: 0 1em 1em 0;
    height: 80px;
    width: 40px;
    border-bottom-right-radius: 80px;
    border-top-right-radius: 80px;
    content: " ";
    top: 0;
    margin-left: 5px;
}

@media (max-width:991px) {
    .social {
        text-align: center;
        padding: 2px 0;
    }
    #footer {
        height: auto;
    }
}