*{
    margin: 0;
    padding: 0;
}



.m_project_thumbnail_container, #m_title, #m_subtitle, #m_first_img, .m_intersection_zone, #progress_bar{
    display: none;
}



:root{
    --body-padding: 20px;
    --body-width: calc(100vw - 2* var(--body-padding));
    --accent-color: rgb(0, 0, 255);
}



i{
    font-style: italic;
}
h1,h2,p{
    font-family: "neue-haas-grotesk-text", sans-serif;
    font-weight: 400;
    font-style: normal;
}
h1{
    line-height: 1;
    font-size: 7rem;
    margin-bottom: 200px;
}
a{
    color: black;
    text-decoration: none;
    height: min-content;
}
a:hover{
    color: var(--accent-color);
    text-shadow: 1px 1px 2px var(--accent-color);
}
::selection{
    background: var(--accent-color);
    color: white;
}



body{
    width: var(--body-width);
    min-height: 100vh;
    padding: var(--body-padding);
    padding-top: calc(40px + var(--body-padding));
}



nav{
    display: flex;
    justify-content: space-between;

    position: fixed;
    top: 0;
    left: 0;
    height: 40px;
    width: var(--body-width);
    padding-left: var(--body-padding);
    padding-right: var(--body-padding);
    padding-top: var(--body-padding);
    z-index: 50;

    background: #ffffff;
    background: linear-gradient(180deg,rgba(255, 255, 255, 1) 85%, rgba(255, 255, 255, 0) 100%);
}
    nav div{
        display: flex;
        width: calc(var(--body-width)/3 - var(--body-padding));
        justify-content: space-between;
    }



.title_section, #projects_container{
    opacity: 0;
    transition: 0.5s;
}
#projects_container{
    display: flex;
    justify-content: space-between;
}
    #project_thumbnail_container{
        width: calc(2* var(--body-width)/3);
        border-radius: 10px;
        height: calc(100vh - 40px - 2* var(--body-padding));
        overflow: hidden;
    }
        #project_thumbnail_container video{
            width: 150%;
            height: 150%;
            object-fit: cover;
            object-position: top left;

            transition: 0.2s;
        }
    #d_project_info_container{
        width: calc(var(--body-width)/3 - 2* var(--body-padding));
        position: relative;
    }
        #d_project_info_container div{
            width: calc(var(--body-width)/3 - var(--body-padding));
        }
                .highlighted{
                    color: var(--accent-color);
                    text-shadow: 0px 0px 3px var(--accent-color);
                }
                #d_title_about{
                    margin-top: var(--body-padding);
                    cursor: default;
                }
            #d_subtitle_container{
                cursor: text;
                margin-top: calc(3* var(--body-padding));
            }



#project_title{
    color: var(--accent-color);
    text-shadow: 0px 0px 6px var(--accent-color);
    margin-bottom: calc(2* var(--body-padding));
}
#page_container{
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
}
        #image_section video, #image_section img, .two_image_container{
            width: calc(2* var(--body-width)/3);
            margin-bottom: var(--body-padding);
            border-radius: 10px;
        }
        #image_section .mobile_format{
            width: calc(var(--body-width)/3 - var(--body-padding));
            margin-left: calc((var(--body-width)/3 - var(--body-padding)) /2);
        }
        #image_section .screenrecording{
            border: black 1px solid;
        }
        .two_image_container{
            display: flex;
            justify-content: space-between;
        }
            #image_section .two_image_container img, #image_section .two_image_container video{
                margin-left: 0;
            }

    #text_section, #project_text_container{
        width: calc(var(--body-width)/3 - var(--body-padding));
    }
        #project_text_container{
            position: sticky;
            top: calc(3*var(--body-padding));
            margin-top: var(--body-padding);
        }
            #project_text_container p{
                margin-top: 20px;
            }






@media only screen and (max-width:1400px) {

    #project_title{
        font-size: 5em;
    }
}

            






@media only screen and (max-width:1200px) {
    h1{
        font-size: 6em;
    }
    h2{
        font-size: 1.2em;
    }

    #subtitle{
        font-size: 1.5em;
    }
}









@media only screen and (max-width:900px) {

:root{
    --body-padding: 15px;
    --body-width: calc(100vw - 30px);
}



h1{
    font-size: 3.5rem;
    margin-bottom: calc(2* var(--body-padding));
}
p{
    margin-bottom: var(--body-padding);
}
a{
    text-decoration: none;
}
a:hover{
    color: black;
    text-shadow: none;
}



nav{
    padding-top: 0;
    height: 35px;
    background: linear-gradient(180deg,rgba(255, 255, 255, 1) 70%, rgba(255, 255, 255, 0) 100%);
}
nav div{
    width: 130px;
}
#progress_bar{
    display: block;

    height: 5px;
    border-radius: 3px;

    position: fixed;
    top: 30px;
    left: var(--body-padding);

    background-color: var(--accent-color);
}



#projects_container{
    flex-direction: column;
}
    #d_project_info_container, #d_first_img{
        display: none;
    }
    .highlighted{
        white-space: wrap;
    }
    #m_title, #m_subtitle{
        display: block;
    }
        #project_thumbnail_container{
            display: block;

            width: var(--body-width);
            height: 500px;
            margin-bottom: var(--body-padding);

            position: sticky;
            top: 50px;
        }
            #m_project_info_container{
                position: sticky;
                top: calc(50px + 500px + var(--body-padding));
                margin-bottom: -30px;
            }
                #m_title{
                    color: var(--accent-color);
                    text-shadow: 0px 0px 3px var(--accent-color);
                    margin-bottom: 5px;
                    padding-right: 10px;
                }
.m_intersection_zone{
    display: block;
    height: 50vh;
    margin-bottom: 100px;
}
#m_intersection_about{
    margin-bottom: 50vh;
}



#page_container{
    display: block;
}
#text_section, #image_section, #image_section video, video, #image_section img, img, #text_section, #project_text_container{
    width: var(--body-width);
}
#text_section{
    height: fit-content;
    position: static;
    display: block;
    margin-bottom: 30px;
}
    #project_title{
        font-size: 5em;
    }
        #project_text_container{
            margin-top: 0;
            position: static;
            height: fit-content;
            display: block;
        }
            #subtitle{
                margin-bottom: var(--body-padding);
            }
            #project_text_container p{
                margin-top: 0;
            }
    #image_section .mobile_format{
        width: var(--body-width);
        margin-left: 0;
    }
        #m_first_img{
            display: block;
            border-radius: 10px;
            margin-bottom: 30px;
        }
        .two_image_container{
            display: flex;
            flex-direction: column;
        }
}