/* fonts */

@font-face {
    font-family:"montreal" ;
    src: url("typefaces/Neue Montreal/NeueMontreal-Regular.woff2");
}

@font-face {
    font-family:"montreal-italic" ;
    src: url("typefaces/Neue Montreal/NeueMontreal-Italic.woff2");
}

@font-face {
    font-family:"montreal-light" ;
    src: url("typefaces/Neue Montreal/NeueMontreal-Light.woff2");
}


@font-face {
    font-family:"telegraf" ;
    src: url("typefaces/Telegraf/Telegraf-Regular.woff2");
}

@font-face {
    font-family:"noto-thai" ;
    src: url("typefaces/NotoSansThai-Regular.woff2");
}

@font-face {
    font-family:"noto-thai-light" ;
    src: url("typefaces/NotoSansThai-Light.woff2");
}

@font-face {
    font-family:"sf-mono" ;
    src: url("typefaces/SFNSMono.woff2");
}


/* text */


h1{
    font-family:helvetica;
    font-size: 40px;
    line-height: 0.3;
    font-weight: 100;
    letter-spacing: -1.5px;
}

h2{
    font-family:"montreal";
    font-size: 16px;
}

.thai{
    font-family: noto-thai-light;
}

h4{
    font-family: montreal;
    font-weight: 400;
    font-size: 15px;
    width: 90%;
    

}

p{
    font-family: sf-mono;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: -0.3px;
    width: 90%;
    max-width: 700px;
}



/* page layout */

body{
    background-color: white;
    height: 100vh;
    margin: 0;
    padding: 25px 45px;
    display: flex;
    justify-content: space-between;
    overflow: hidden;  
}

#intro{
    margin-top: 50px;
}

#left{
    width: 20%;
    height: max-content;
}

#right{
    width:75%;
    overflow-y: scroll;
    margin-top: 20px;
    /* background-color: red; */
}


/* media */



.projects {
    position: relative;
    height: max-content;
    overflow: hidden;
    margin-bottom: 15px;
}

video, img {
    width: 100%;
    display: block;
    border-radius: 15px;
}

.project-desc {
    position: absolute;
    top: 0;
    left: 0;
    width: 94%;
    height: 93%;
    background: rgba(0,0,0,0.7); /* semi-transparent black */
    color: white;
    padding: 2% 3%;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content:flex-end;
    transition: opacity 0.4s ease-in-out;
    border-radius: 15px;
}

.project-desc-content{
    margin: 1%;
}

/* Show overlay on hover */
.projects:hover .project-desc {
    opacity: 1;
}

.projects:hover{
    filter: drop-shadow(0px 3px 1px #3f3f3f);
}


@keyframes appear {
  from {opacity: 0;}
  to {opacity: 0.8;}
}

/* media queries */

@media only screen and (max-width: 450px) {
body{
    margin: 0;
    padding: 10px 20px;
    flex-direction: column;
}

h1{
    font-family:helvetica;
    font-size: 22px;
    line-height: 0.5;
}

h2{
    font-family:"montreal";
    font-size: 14px;
}

#left{
    width: 100%;
}

#right{
    width:100%;
    /* background-color: red; */
}

    #header{
        display:flex;
    }

#intro{
    margin-top: -10px;
}

#intro>span{
    display: none;
}

       #header>span{
        display: none;
    }


}


@media only screen and (min-width: 450px) {

body{
    margin: 0;
    padding: 10px 20px;
    flex-direction: column;
}

h1{
    font-family:helvetica;
    font-size: 28px;
    line-height: 0.5;
}

h2{
    font-family:"montreal";
    font-size: 14px;
}

#left{
    width: 100%;
}

#right{
    width:100%;
    /* background-color: red; */
}

    #header{
        display:flex;
    }

#intro{
    margin-top: -10px;
}

#intro>span{
    display: block;
}

       #header>span{
        display: none;
    }

}

@media only screen and (min-width: 700px) {

    body{
    height: 100vh;
    margin: 0;
    padding: 20px 40px;
    flex-direction:column;
    justify-content: space-between;
    overflow: hidden;
}

    #left{
        width: 100%;
    }

    #right{
        width: 100%;
    }

    #header{
        display:flex;
    }

    #header>span{
        display: inline-block;
    }

    #intro{
        margin-top: 0px;
    }

    h1{
    font-family:helvetica;
    font-size: 35px;
    line-height: 0.5;
}

h2{
    font-family:"montreal";
    font-size: 16px;
}



}

@media only screen and (min-width: 1000px) {

    #left{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

        #intro{
        margin-top: 0px;
        flex-basis: 0.5;
    }

           #header>span{
        display: none;
    }


}



@media only screen and (min-width: 1500px) {

body{
    background-color: white;
    height: 100vh;
    margin: 0;
    padding: 25px 45px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    overflow: hidden;
}

   #left{
        display: flex;
        flex-direction:column;
        width: 20%;
        height: max-content;
    }

#right{
    width:75%;
    overflow-y: scroll;
    margin-top: 20px;
    /* background-color: red; */
}





}