@keyframes bounceInDown {
    0%,90%,to {
        -webkit-animation-timing-function: cubic-bezier(.215,.61,.355,1);
        animation-timing-function: cubic-bezier(.215,.61,.355,1)
    }

    0% {
        -webkit-transform: translate3d(0,-150px,0);
        transform: translate3d(0,-150px,0);
        opacity: .2
    }

    90% {
        -webkit-transform: translate3d(0,-10px,0);
        transform: translate3d(0,0,0);
        opacity: .9
    }

    to {
        -webkit-transform: none;
        transform: none
    }
}

@keyframes bounceInDownLine {
    0%,90%,to {
        -webkit-animation-timing-function: cubic-bezier(.215,.61,.355,1);
        animation-timing-function: cubic-bezier(.215,.61,.355,1)
    }

    0% {
        -webkit-transform: translate3d(0,-2px,0);
        transform: translate3d(0,-2px,0);
        opacity: .2
    }

    90% {
        -webkit-transform: translate3d(0,-1px,0);
        transform: translate3d(0,0,0);
        opacity: .9
    }

    to {
        -webkit-transform: none;
        transform: none
    }
}

@font-face{
    font-family: 'Lato';
    font-display: fallback;
    src: url(https://fonts.googleapis.com/css?family=Lato:400,700;subset=latin-ext);
}

html{
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: 'Lato','Arial', sans-serif;
    
}

 ol{
list-style-type: none
 }

#about>figure img{
    width: 49vw;
    max-width: 700px;
    vertical-align: middle
}

section {
    padding: 2.5em;
    font-size: 1.1em
}

.button,section>header {
    text-align: center
}

.sepwrapper {
    width: 100%;
    display: grid
}

.separator {
    width: 80px;
    border: 2px solid #484680;
    margin-bottom: 2em;
    z-index: 1;
    justify-self: center
}

.verticalseparator {
    width: 1px;
    height: 5em;
    background-color: #fff;
    margin-top: 1.33em;
    display: grid;
    justify-self: center;
    list-style-type: none;
    margin-left:24px
}

section>header>h2 {
    font-family: 'Mr Dafoe',cursive;
    font-size: 3em;
    font-weight: 400;
    margin-bottom: 0;
    margin-top: 0
}

section>header>h3 {
    margin-top: 0;
    font-size: 2em
}

.button {
    margin-top: 1em;
    width: 20vw;
    background-color: #fff;
    color: #484680;
    border: 1px solid #484680;
    padding: .8em;
    font-size: .9em;
    font-weight: 700;
    cursor: pointer;
    border-radius: 5em;
    text-transform: uppercase;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    transition: all .3s;
    outline: 0
}

.button:hover {
    color: #211e37;
    border: 1px solid #211e37
}

.icon-right-open::before {
    padding-left: 1em
}

.mainheader {
    height: 100%;
    
}

.headnav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 3fr 5fr;
    grid-template-areas: " . . ." "logo logotype menu";
    background-color: #12102446;
    position: absolute;
    -webkit-box-shadow: 0 0 12px 2px rgba(0,0,0,.3);
    -moz-box-shadow: 0 0 12px 2px rgba(0,0,0,.3);
    box-shadow: 0 0 12px 2px rgba(0,0,0,.3);
    z-index: 2;
    overflow: hidden;
    transition: all .5s ease-in-out
}

.headnav:hover {
    background-color: #12102491
}

#mailto,#phonecall {
    display: none
}

#phonecall {
    grid-area: phonecall
}

#mailto {
    grid-area: mailto
}

.mainpage {
    grid-area: logo
}

.logo img {
    height: 50px
}

.logotypehyperwrapper {
    grid-area: logotype
}

.headnav .logotype {
    font-family: 'Mr Dafoe',cursive;
    text-shadow: 2px 1px 4px rgba(0,0,0,.548);
    align-self: center;
    font-size: 3.2em
}

.headnav ol {
    grid-area: menu;
    grid-template-columns: repeat(4,1fr);
    margin: 0;
  
}

.headnav ol {
    display: grid
}

.headnav a {
    text-align: center;
    width: 100%;
    height: 100%;
    display: grid
}

.headnav a>span{
    align-self: center;
}


.hvr-overline-from-center {
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px transparent;
    position: relative;
    overflow: hidden;
    transition: all .3s ease-in-out;
    min-height: 3em
}

.hvr-overline-from-center:before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 51%;
    right: 51%;
    top: 0;
    opacity: .7;
    background-color: #fff;
    height: 1.5px;
    transition: all .5s ease-in-out
}

.hvr-overline-from-center:active:before,.hvr-overline-from-center:focus:before,.hvr-overline-from-center:hover:before {
    left: 0;
    right: 0;
    height: 2px;
    opacity: 1;
    -webkit-animation-name: bounceInDownLine;
    animation-name: bounceInDownLine;
    -webkit-animation-duration: .5s;
    animation-duration: .5s
}



a {
    transition: all .5s ease-in-out
}

a,a:hover {
    text-decoration: none
}

.sticky {
    position: fixed;
    background-color: #f9f9f9
}

.sticky:hover {
    background-color: #fff
}

.sticky .hvr-overline-from-center:before {
    background-color: #45437b
}

.intro h2,.sticky a {
    color: #484680
}

.sticky .logo img {
    height: 29px
}

.sticky .logotype {
    font-size: 2.4em;
    text-shadow: none
}

.show {
    animation-name: bounceInDown;
    -webkit-animation-duration: 1s;
    animation-duration: 1s
}

a:active {
    text-decoration: none;
    color: #5b1e36
}

#slider {
    display: grid;
    height: 100vh;
    grid-template-columns: minmax(40px,0.2fr) 2fr 1fr;
    grid-template-rows: repeat(5,1fr);
    align-items: center;
    justify-items: left;
    text-align: center;
    background-color:#5b1e36;
    background-image: url(../images/tlo-konferansjera-dominika-kowalczyka.jpg);
    background-position: center center;
    background-repeat:   no-repeat;
    background-size: cover
}

.webp #slider {
    background-image: url(../images/tlo-konferansjera-dominika-kowalczyka.webp);
}

#headwrap {
    display: grid;
    grid-area: 3/2/auto/auto
}

#faceimage {
    height: 100%;
    width: 100%;
    position: absolute;
    background: url(../images/wyprostowany-dominik-popiersie.png) right bottom no-repeat;
    background-size: 95vh
}

.webp-alpha #faceimage{
    background-image: url(../images/wyprostowany-dominik-popiersie.webp);
}

#name,#tagline {
    font-weight: 400;
    z-index: 1
}

#tagline {
    margin: 0;
    grid-area: 2/1;
    text-shadow: 2px 1px 4px rgba(0,0,0,.548);
    font-size: 1.6em
}

#name {
    grid-area: 1/1;
    font-family: 'Mr Dafoe',cursive;
    text-shadow: 2px 1px 6px rgba(0,0,0,.546);
    font-size: 4.68em
}

#name,#name h2,#tagline h1 {
    margin: 0
}

#about {
    display: grid;
    grid-template-columns: 1fr 1fr
}

#about>figure {
    margin: 0;
    align-self: end
}

#about>figure img {
    width: 100%;
    height: 100%
}

.intro {
    color: #211e37
}

#portfolio {
    background: url(../images/mikrofon-dla-konferansjera.jpg) no-repeat center center fixed;
    background-size: cover;
    display: grid;
    justify-items: center
}

.webp #portfolio {
    background-image: url(../images/mikrofon-dla-konferansjera.webp);
}

.pwrapper {
    margin: 5em;
    background-color: #5b1e36;
    background-color: #5b1e36ca;
    width: 50vw;
    display: grid
}

#pfwrapper {
    justify-content: center;
    justify-items: center
}

#portfoliodownload{
    width: 25vw;
}

#portfoliodownload>a,.purple>header {
    text-shadow: 2px 1px 4px rgba(0,0,0,.548)
}

#portfoliodownload,#references {
    background-color: #5b1e36
}

#portfoliodownload>a,.extract figcaption {
    color: #f9f9f9;
    transition: all ease-in-out .3s;
    font-weight: 700
}

#portfoliodownload:hover>a,a {
    color: #fff
}

#portfoliodownload:hover {
    border-color: #fff;
    -webkit-box-shadow: 0 0 12px 2px rgba(0,0,0,.3);
    -moz-box-shadow: 0 0 12px 2px rgba(0,0,0,.3);
    box-shadow: 0 0 12px 2px rgba(0,0,0,.3)
}

#portfoliodownload i,#portfoliodownload p {
    display: inline-block
}

#references {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    width: 100%;
    padding: 2.5em 0;
    min-height: 100vh
}

#references>header,.extract>header {
    grid-area: 1/1/auto/span 4
}

#references img {
    min-height: 2em;
    max-height: 3em
}

#values {
    display: grid;
    grid-template-columns: 1fr 1fr
}

#values>figure {
    margin: 2em 0
}

#summary,.extract {
    display: grid;
    justify-items: center
}

.extract {
    background-color: #211e37;
    grid-area: 2/1/auto/span 2;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 2em;
    text-align: center;
    text-shadow: 2px 1px 4px rgba(0,0,0,.548);
    padding: 2.5em 0
}

.extract i {
    font-size: 5em
}

.extract figcaption {
    font-size: 1.5em;
    margin-top: .5em;
    transition: all ease-in-out .5s
}

.extract #honesty figcaption {
    margin-left: 1em
}

#summary {
    background: url(../images/mikrofon-dla-konferansjera.jpg) no-repeat center center fixed;
    background-size: cover
}

.webp #summary {
    background-image: url(../images/mikrofon-dla-konferansjera.webp);
}


#sumwrapper {
    justify-content: left;
    text-align: left
}

#contact {
    background-color: #211e37;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    font-size: 0.9em
}

#contactwrapper {
    width: 42vw;
    padding: 3vw
}

#contactadress {
    display: grid;
    justify-items: left;
    grid-template-columns: .5fr 1fr .5fr 1fr;
    grid-template-areas: "mailico mailinfo telico telinfo" "officeico officeinfo social social"
}

.smallico {
    margin-left: 2.5em;
    margin-top: 1em;
    margin-right: 1em
}

#mailico {
    grid-area: mailico
}

#mailinfo {
    grid-area: mailinfo
}

#telico {
    grid-area: telico
}

#telinfo {
    grid-area: telinfo
}

#officeico {
    grid-area: officeico
}

#officeinfo {
    grid-area: officeinfo;
}

#social {
    width: 100%;
    grid-area: social;
    display: grid;
    justify-items: stretch;
    align-items: center;
    grid-template-columns: repeat(3,1fr);
    font-size: 2em
}

#contact form {
    display: grid;
    justify-content: center;
    width: 42vw
}

input {
    font-family: 'Lato','Arial', sans-serif;
    width: 42vw;
    margin-bottom: 1em
}

input[type=email],input[type=tel],input[type=text] {
    background-color: #fff;
    border: 1px solid #484680;
    border-radius: 13px;
    padding: 10px;
    box-sizing: border-box;
    outline: 0;
    color: #211e37;
    margin-top: 20px
}

input[type=email]:focus,input[type=tel]:focus,input[type=text]:focus {
    -webkit-box-shadow: 1px 2px 13px 1px #000;
    -moz-box-shadow: 1px 2px 13px 1px #000;
    box-shadow: 1px 2px 13px 1px #000;
    color: #211e37
}

.g-recaptcha {
    border-radius: 20px;
    padding: 13px;
    box-sizing: border-box;
    font-size: 18px;
    cursor: pointer;
    outline: 0;
    margin-top: 2.5em;
    margin-bottom: 2.5em;
    transition: all .3s ease-in-out;
    text-transform: none;
    background-color: #211e37;
    border: 1px solid #484680;
    color: #fff
}

.g-recaptcha:hover {
    background-color: #484680;
    border: 1px solid #fff;
    color: #fff
}

textarea:focus,.g-recaptcha:focus {
    -webkit-box-shadow: 1px 2px 13px 1px #000;
    -moz-box-shadow: 1px 2px 13px 1px #000;
    box-shadow: 1px 2px 13px 1px #000
}

textarea {
    width: 100%!important;
    height: 15vw;
    font-family: 'Lato','Arial', sans-serif;
    background-color: #fff;
    border: 1px solid #484680;
    border-radius: 13px;
    padding: 10px;
    box-sizing: border-box;
    outline: 0;
    color: #211e37;
    margin-top: 20px;
    resize: none
}

#mapwrapper {
    padding: 0 0 2.5em;
    width: 50vw
}

#map {
    color: #211e37;
    width: 100%;
    height: 100%
}

footer {
    background-color: #5b1e36;
    padding: 1em 2.5em
}

.footergrid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    justify-items: center
}

.footnav ol,footer ul {
    margin: 0;
    padding: 0;
    list-style-type: none
}

footer img {
    height: .9em
}

.copyrights {
    grid-area: 2/1/auto/span 3;
    justify-self: center;
    padding-top: 1em
}

.articlemainheader {
    height: 60vh;
    background-color: #5b1e36;
    background: url(../images/tlo-konferansjera-dominika-kowalczyka.jpg) no-repeat center center;
    background-size: cover
}



.webp .articlemainheader {
    background-image: url(../images/tlo-konferansjera-dominika-kowalczyka.webp);
}

.articleslider {
    grid-area: slider;
    display: grid;
    height: 60vh;
    grid-template-columns: 1fr 10fr 1fr;
    align-items: center;
    justify-items: center;
    position: relative;
    text-align: center
}

.articleslider>header {
    display: grid;
    grid-area: 2/2
}

.extention,.title {
    font-weight: 400;
    text-shadow: 2px 1px 4px rgba(0,0,0,.548);
    grid-area: 2/1/auto/auto;
    margin: 0;
    z-index: 1
}

.title {
    font-family: 'Mr Dafoe',cursive;
    text-shadow: 2px 1px 6px rgba(0,0,0,.546);
    grid-area: 1/1/auto/auto
}

.extention h1 {
    margin: 0 0 .5em;
    font-size: 3em
}

.title h2 {
    margin: 0;
    font-size: 4.5em
}

.extended {
    color: #211e37;
    padding-left: 20vw;
    padding-right: 20vw
}

.goback {
    margin-left: 20vw;
    margin-top: 0;
    margin-bottom: 5em
}

.signature {
    font-family: 'Mr Dafoe',cursive;
    font-size: 1.5em
}

@media (max-width:1366px) {
    #slider {
        background-image: url(../images/tlo-konferansjera-dominika-kowalczyka1366px.jpg)
    }

    .webp #slider {
        background-image: url(../images/tlo-konferansjera-dominika-kowalczyka1366px.webp)
    }

    #portfolio, #summary {
        background-image: url(../images/mikrofon-dla-konferansjera1366px.jpg)
    }

    .webp #portfolio, .webp #summary {
        background-image: url(../images/mikrofon-dla-konferansjera1366px.webp)
    }
}

@media (max-width:1350px) {
    header {
        margin: 2.5em
    }

    .articlemainheader,.mainheader {
        margin: 0
    }

    .logo img {
        height: 29px
    }

    .headnav .logotype {
        font-size: 2.4em
    }

    #tagline {
        font-size: 1.2em
    }

    #name {
        font-size: 3.51em
    }

    .extention,.title {
        font-size: .75em
    }

    figure {
        justify-self: center
    }

    #references > figure {
        justify-self: stretch
    }

    #about>figure img, #values>figure img {
        width: 50vw
    }

    #about {
        grid-template-columns: 1fr
    }

    #comperephoto {
        grid-area: 2/1/auto/auto
    }

    #references {
        grid-template-columns: repeat(2,1fr)
    }

    #references>header {
        grid-area: 1/1/auto/span 2
    }

    .extract {
        background-color: #211e37;
        grid-area: auto/auto/auto/auto;
        display: grid;
        grid-template-columns: 1fr 1fr
    }

    .extract>header {
        grid-area: auto/auto/auto/span 2
    }

    #pfwrapper {
        margin: 0;
        padding: 2.5em 0;
        width: 100%
    }
    #pfwrapper h4 {
        padding-left: 1.4em;
        padding-right: 1.4em;
    }

    #values {
        grid-template-columns: 1fr
    }

    #sumwrapper {
        margin: 0;
        padding: 2.5em 0;
        width: 100%
    }

    #sumwrapper p {
        padding-left: 1em;
        padding-right: 1em
    }

    #contact {
        grid-template-columns: 1fr
    }

    #contactwrapper {
        width: 80vw;
        padding-bottom: 0
    }

    #contact form {
        display: grid;
        justify-content: center;
        width: 80vw
    }

    input {
        font-family: 'Lato','Arial', sans-serif;
        width: 80vw
    }

    #mapwrapper {
        width: 100%
    }

    #map {
        height: 50vh
    }
}

@media (max-width:1040px) {
    .logo img {
        height: 25px
    }

    .headnav .logotype,.logotypehyperwrapper {
        display: none
    }

    .headnav {
        grid-template-columns: 1fr 3fr 5fr;
        grid-template-areas: " . . ." "logo menu menu"
    }

    section {
        font-size: 1em
    }

    #slider {
        
    }

    #headwrap {
        grid-area: 3/2
    }
}

@media (max-device-aspect-ratio:7/4) {
    #slider {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6,1fr);
        align-items: start;
        justify-items: center;
    }

    #faceimage {
        position: static;
        background-position: center bottom;
        background-size: auto 100%;
        grid-area: 3/1/span 4
    }

    #headwrap {
        display: grid;
        grid-area: 2/1
    }
}

@media (max-width:1000px) {
    #tagline {
        font-size: 1em
    }

    #name {
        font-size: 2.92em
    }

    .button {
        width: 35vw;
    }
}

@media (max-width:850px) {
    ol {
        -webkit-padding-start: 0
    }

    #slider {
        align-items: start
    }

    #tagline {
        font-size: .8em
    }

    #name {
        font-size: 2.34em
    }

    .extention,.title {
        font-size: .6em
    }

    .extended {
        padding-left: 10vw;
        padding-right: 10vw
    }

    .goback {
        margin-left: 10vw
    }
}

@media (max-width:720px) {
    #slider {
        background-image: url(../images/tlo-konferansjer-dominika-kowalczykah1280px.jpg)
    }

    .webp #slider {
        background-image: url(../images/tlo-konferansjer-dominika-kowalczykah1280px.webp)
    }

    #portfolio, #summary{
        background-image: url(../images/mikrofon-dla-konferansjerah1280px.jpg)
    }

    .webp #portfolio, #summary{
        background-image: url(../images/mikrofon-dla-konferansjerah1280px.webp)
    }

    #tagline {
        font-size: .7em
    }

    #name {
        font-size: 2.05em
    }
}

@media (max-width:670px) {
    #contactadress {
        display: grid;
        justify-items: left;
        grid-template-columns: .5fr 1fr;
        grid-template-areas: "mailico mailinfo" "telico telinfo" "officeico officeinfo" "social social"
    }

    #social {
        margin-top: 1em;
        margin-bottom: 1em;
        justify-items: center
    }

    ul {
        padding-right: 1em
    }
}

@media (max-width:615px) {
        #tagline {
        font-size: .7em
        }

    #name,section>header>h3 {
        font-size: 1.5em
        }
}

@media (max-width:600px) {
    header {
        margin: 1em
    }

    .articlemainheader,.extract figure,.mainheader {
        margin: 0
    } 

    .extention,.title {
        font-size: .5em
    }

    #faceimage{
    background-image: url(../images/wyprostowany-dominik-popiersieh634px.png);
    }

    .webp-alpha #faceimage{
        background-image: url(../images/wyprostowany-dominik-popiersieh634px.webp);
    }

    section {
        padding: 1em
    }

    #about>figure img, #values >figure img {
        width: 100%
    }

    section>header>h2 {
        font-size: 2em
    }

    .extract {
        grid-template-columns: 1fr
    }

    .extract figcaption {
        font-size: 1em;
        margin: 0
    }

    .extract>header {
        grid-area: auto/auto/auto/auto
    }

    footer {
        font-size: .8em
    }

    .extended {
        padding-left: 7vw;
        padding-right: 7vw
    }

    .goback {
        margin-left: 7vw
    }
}

@media (max-width:550px) {
    #mailto,#phonecall {
        font-size: 1.5em;
        display: block;
        align-self: center;
        text-align: center
    }

    #mailto figure,#phonecall figure {
        margin: 0
    }

    #mailto figcaption,#phonecall figcaption {
        font-size: .25em
    }

    .headnav {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-areas: "phonecall logo mailto" "menu menu menu"
    }

    .headnav ol {
        grid-template-columns: repeat(2,1fr)
    }

    .mainpage {
        justify-self: center
    }
}

@media (max-width:415px) {
    .extention,.title {
        font-size: .4em
    }

    .extended {
        padding-left: 5vw;
        padding-right: 5vw
    }

    .goback {
        margin-left: 5vw
    }

    .footergrid {
        display: block
    }
}

@media (max-width:375px) {
    #slider {
        background-image: url(../images/tlo-konferansjer-dominika-kowalczykah667px.jpg)
    }

    .webp #slider {
        background-image: url(../images/tlo-konferansjer-dominika-kowalczykah667px.webp)
    }

   
    #portfolio, #summary {
        background-image: url(../images/mikrofon-dla-konferansjerah667px.jpg)
    }

    .webp #portfolio, .webp #summary {
        background-image: url(../images/mikrofon-dla-konferansjerah667px.webp)
    }

    #contactadress {
        justify-items: center;
        grid-template-columns: 1fr;
        grid-template-areas: "mailico" "mailinfo" "telico" "telinfo" "officeico" "officeinfo" "social"
    }

    #contactadress i {
        margin: 0
    }
}

@media (max-width:310px) {
    #contactadress p {
        font-size: .8em
    }
}

@media (max-width:200px) {
    #contactadress p {
        font-size: .6em
    }
}

@media(max-device-aspect-ratio:4/7){
    #slider {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    #faceimage {
        grid-area: 4/1/span 3
    }

    #headwrap {
        grid-area: 3/1;
      
    }
}