html{
    min-height: 100vh; 
min-height: -webkit-fill-available;

    scroll-behavior: smooth;
  
}

body{
    background: #141414;
    color: #ffffff;
    font-family:"azo-sans-web", "arial", "serif";
    font-size: 30px;
    line-height: normal;
    margin:0;
    padding-top: 300px;
    /* min-height:100%; */
}

a{
    
    stroke:#ffffff;
    color:#ffffff;
    text-decoration: none;
    transform-style: preserve-3d;
    -webkit-transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
    transition: all 0.1s ease-in-out;
    word-break: break-all;
}


/* .anchor-nav{

    scroll-padding-top:200px;
} */

:target {
    scroll-margin-top:100px;
}


/* html:not([data-scroll='0']) {
    #top-menu {
    height: 100px;
}
} */

#top-menu{
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex:1;
    height: 300px;
    font-weight: 700;
    /* padding: 0px 200px; */
    justify-content: center;
    align-items: center;
    gap: 100px;
    align-self: stretch;
    position: absolute;
    top:0;
    width:1920px;
    max-width: 100%;
    background:  linear-gradient(#141414, #14141400);

    -webkit-transition: all 0s ease-in-out;
    -moz-transition: all 0s ease-in-out;
    -o-transition: all 0s ease-in-out;
    transition: all 0s ease-in-out;
}

#top-menu.collapse{
    height: 100px;
    position: fixed;
}



#top-menu canvas {
    display: flex;
    width:60px;
    height:70px;
}

#top-menu-left{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 100px;
    flex: 1 0 0;
}

#top-menu-right{
    display: flex;
    align-items: center;
    gap: 100px;
    flex: 1 0 0;
}


.mobile-menu{
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap:50px;
    /* padding-top:150px; */
    background:  linear-gradient(#141414, #141414ee);
    position: fixed;
    top:0;
    width: 100%;
    height:100%;
    font-weight: 600;
}

.show-menu{
    display: none;
}

#mobile-menu-button{
    position: absolute;
    right:20px;
    display: none;
}

h1{
    line-height: normal;
    text-align: center;
}

.nowrap{
    display:inline-block;
}

.section{
    /* padding:50px; */
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    margin-left:50px;
    margin-right:50px;
}

.center{
    justify-content: center;
    align-items: center;
    align-content: center;
}

.section.paragraph{
    font-size: 30px;
    font-weight: 300;
    line-height:125%;
    /* padding:50px; */
    padding-top: 50px;
    padding-bottom: 50px;
    gap: 50px;
    /* flex-direction: column; */
}


.text404{
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    font-size: 40px;
    font-weight: 600;
    font-smooth: none;
    flex-direction: column;
    gap:20px;
    width:100vw;
    height:100vh;
    position: absolute;
    top:0;
    left:0;
}

.section.paragraph p{
    width:50%;
    padding:10%;
}

.section.paragraph img{
    width:400px;
    border-radius: 20px;
}

.section.paragraph.half p{
    width:30%;
}
.section.paragraph.half img{
    width:50%;
}

.leftalign p{
    order:1;
}

.leftalign img{
    order:2;
} 



.section.grey{
    border-radius: 20px;
    background: #1B1B1B;
}

#wrapper{
    max-width: 100%;
    width: 1920px;
    margin-left: auto;
    margin-right: auto;
    display: flex; 
    flex-direction: column;
    
}

.video.section, .work{
    padding-top:50px;
    padding-bottom:50px;
}

.aspect16x9 *{
    aspect-ratio: 16 / 9;
}
.aspect2x1 *{
    aspect-ratio: 2 / 1;
}
.aspect1x1 *{
    max-width:80vh;
    max-height: 80vh;
    aspect-ratio: 1 / 1;
}

/* .video.square iframe{
    aspect-ratio: 1 / 1;
} */


.video iframe, .work img{
    width:100%;
    border-radius: 20px;
}

#social{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding:50px;
}

#social svg, #social svg:active{
    width:60px;
    fill:#ffffff;
    -webkit-transition: all 0.1s linear;
    -moz-transition: all 0.1s linear;
    -o-transition: all 0.1s linear;
    transition: all 0.1s linear;
}





#about{
    padding: 100px;
    gap: 200px;
    flex-shrink: 0;
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: 35px;
    text-align: center;
}

#work{
    padding:0;
    display: grid;
    /* justify-items: center; */
    grid-template-columns: repeat(3, 1fr);

    /* flex-wrap: wrap;
    flex-basis: 33.333333% */
    gap: 50px;
    padding-top: 50px;
    padding-bottom: 50px;
    position: relative;
    z-index: 0;
}

#work div{
    /* flex: 0 0 33.333333%; */
    /* display: block; */
    /* width: 100%; */
    border-radius: 10px;
    aspect-ratio: 1146 / 888;
    /* background: #ff0000; */
    position: relative;
    overflow: clip;
    /* perspective:1px;
    perspective-origin: center center; */
    /* clip-path: rect(0px 0px 200px 200px round 0%); */
    /* transform-style: preserve-3d; */
    /* aspect-ratio: 16 / 9; */
}

#work div img, #work div video{
    width:100%;
    position: absolute;
    /* transform-style: preserve-3d; */
    /* transform: translateZ(-10px) scale(12); */
    /* border-radius: 10px; */
}
/* #work div::after{
    border-radius: 10px;
    overflow: hidden;
} */

.parallax, .parallax2, .parallax3, .parallax4, .parallax5{
    animation: parallax linear;
    animation-timeline: view(block);
    animation-range: cover 0% cover 100%;
}

.parallax{
    --parallax0:2vh;
    --parallax100:-2vh;
}

.parallax2{
    --parallax0:3vh;
    --parallax100:-1vh;
}

.parallax3{
    --parallax0:1vh;
    --parallax100:-1vh;
}



@keyframes parallax{
    0%{ 
        transform: translateY(var(--parallax0));
    }
    100%{ 
        transform: translateY(var(--parallax100));
    }
}

/* .parallax2{
    animation: parallax2 linear;
    animation-timeline: view(block);
    animation-range: cover 0% cover 100%;
}

@keyframes parallax2{
    0%{ 
        transform: translateY(2vh);
    }
    100%{ 
        transform: translateY(-2vh);
    }
} */

    /* overflow: hidden; */
    /* overflow: visible; */
    /* position: relative; */
	/* transform:rotate3d(0, 0, 0, 0);
	transform-origin: center;
  	transform-style:preserve-3d; */
    /* height:120vh; */
    /* perspective: 1px;
    perspective-origin: center center; */
/* } */



#work div img{
    position: absolute;
    /* width:100%;
    height:100%; */
}

.zpush{
    /* position: absolute; */
    /* transform: translateZ(-10px) scale(1); */
}


.contact{
    /* padding: 150px 0px; */
    /* gap: 50px; */
    flex-shrink: 0;
    flex-wrap: wrap;
    padding:50px;
}

.formfield, .formbutton{
    width:100%;
    box-sizing: border-box;
    align-items:center;

    border-radius: 10px;
    border: 2px solid #A6A6A6;
    height:50px;
    
    font-family:"azo-sans-web", "arial", "serif";
    font-size: 20px;
    font-weight: 700;
    line-height:50px;
    padding:10px;
    padding-left:20px;
    padding-right:20px;
    -webkit-transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
    transition: all 0.1s ease-in-out;
}

.formfield.incorrect{
    border: 2px solid #920000;
    background-color: #cea9a9;
}

.contact textarea{
    height:150px;
    line-height:30px;
}

.contact label{
    line-height: 50px;
    margin-right: auto;
    width:auto;
}

.contact h3{
    margin-right: auto;
    margin-bottom: 0;
}

.contact form{
    display: flex;
    flex-direction: column;
    width:100%;
    max-width: 800px;
    /* gap:10px; */
}

#form-messages{
    display: flex;
    justify-content: center;
    justify-items: center;
    padding-top: 20px;
    text-align: center;
    font-size: 15px;
    line-height: 20px;
}

.formbutton{
    /* font-size:30px; */
    display: flex;
    align-items: center;
    justify-content: center;
    width:300px;
    height:auto;
    /* line-height:30px; */
    -webkit-appearance: none;
    border: 2px solid #141414;
    box-sizing: content-box;
    background-color: #ffffff;
    color:#141414;
    aspect-ratio: 3/1;
    /* text-align:left; */
    padding:0;
    position: relative;
    overflow: hidden;
}

.formbutton:disabled{
    background-color: #999999;
    color:#444444;
    color:#ffffff;
}

.formbutton span{
    margin-right: auto;
    max-width: 300px;
    padding:20px;
    -webkit-user-select: none; 
    -ms-user-select: none; 
    user-select: none; 
    pointer-events: none;
}

.formbutton canvas{

    position: absolute;

    /* top:-2px; */
    /* left:-2px; */
    width:100%;
    height:100%;
    /* aspect-ratio: 3/1; */
    /* border-radius: 10px; */
}
.formbutton span{
    position: relative;
}

input[type=submit]:active, input[type=button]:active{
    background-color: #aaaaaa;
    color:#ffffff;
}

#name, #website, #mail {
    display: none;
}

#logo{
    background: rgba(0,0,0,0);
}

#footer{
    aspect-ratio: 16 / 9;
    /* box-sizing: border-box; */
    padding:0;
    margin: 0;
}



#footer img, #footer svg{
    width:200px;
}

.text404 img, .text404 svg{
    width:400px;
}

@media (max-width:1400px) { 

    #work{
        grid-template-columns: repeat(2, 1fr);
    }
    #about{
        flex-direction: column;
        font-size: 25px;
        gap:20px;
    }
 }

 @media (max-width:900px) { 

    body{
        font-size: 20px;
        padding-top: 100px;
    }
    
    h1{
        font-size: 30px;
    }
    #top-menu{
        height: 100px;
        position: fixed;
    }
    
    #mobile-menu-button{
        display: block;
    }

    .section{
        margin-left:20px;
        margin-right:20px;
    }

    .video.section, .work{
        padding-top:20px;
        padding-bottom:20px;
    }
    
    #social img, #social svg{
        width:40px;
    }

    #footer svg{
        width:100px;
    }
    
    

    #work{
        grid-template-columns: repeat(1, 1fr);
    }

    #top-menu-left, #top-menu-right{
        display: none;
    }

    #about{
        font-size: 20px;
        line-height: 25px;
        padding: 30px;
    }

    #about img{
        display:none;
    }

    .contact{
        padding:20px;
    }

    #footer img{
        width:100px;
    }

    .show-menu{
        display: flex;
    }

    .section.paragraph{
        flex-direction: column;
        gap:0;
        /* padding:20px 0 20px 0; */
        padding:0;
        font-size: 20px;
    }

    .section.paragraph img{
        width:100%;
    }

    .section.paragraph.half img{
        width:100%;
    }

    .section.paragraph p, .section.paragraph.half p{
        width:auto;
        padding:20px;
    }

    .text404{
        font-size: 20px;
        gap:10px;
    }

    .text404 img, .text404 svg{
        width:200px;
    }
    

    .leftalign p{
        order:2;
    }
    
    .leftalign img{
        order:1;
    } 
    
    
    .rightalign p{
        order:2;
    }
    
    .rightalign img{
        order:1;
    } 

    .formbutton{
        width:100%;
    }

    .formbutton canvas{
        -webkit-user-select: none; 
        -ms-user-select: none; 
        user-select: none; 
        pointer-events: none;
    }

    .formbutton:disabled canvas{
        -webkit-user-select: auto; 
        -ms-user-select: auto; 
        user-select: auto; 
        pointer-events: auto;
    }
    
 }

 @media (max-width:900px) and (orientation:landscape) { 
    .mobile-menu{
        flex-direction: row;
        padding-top: 0;
    }

 }


 @media (hover: hover) {
    input[type=submit]:hover, input[type=button]:hover{
        background-color: #eeeeee;
        /* color:#ffffff; */
    }
    
    #top-menu a:hover{
        color:#aaaaaa;
        fill:#aaaaaa;
        stroke:#aaaaaa;
        transform: perspective(100px) translateZ(10px) rotateZ(-5deg);
    }

    #work a:hover, #footer a:hover{
        color:#aaaaaa;
        fill:#aaaaaa;
        stroke:#aaaaaa;
        transform: perspective(100px) translateZ(10px) rotateZ(0deg);
    }

    
    #social svg:hover{
        fill:#aaaaaa;
        transform-origin: center;
        transform: perspective(100px) translateZ(10px) rotateZ(-5deg);
    }
}