body {
    margin: 0;
    padding: 0;
    position: absolute;
    background: white;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 300;
}

.name {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-top: 80px;
    padding-top: 50px;
    padding-bottom: 5%;
}

h1 {
    position: relative;
    width: 100%;
    margin-top: 0px;
    padding-top: 10%;
    margin-bottom: 0px;
    text-align: center;
    line-height: 1.2em;
    font-size: 40pt;
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: black;
    /* background: rgb(201, 102, 255); */
}


.intro {
    position: relative;
    float: right;
    width: 100%;
    line-height: 1.8em;
    font-size: 14pt;
    margin-right: 25%;
    margin-left: 25%;
    text-align: justify;
    /* font-family: 'Work Sans', sans-serif; */
    /* font-weight: 900; */
    /* color: grey; */
    ;
}   

.work_link {
    text-decoration: underline;
    text-underline-position: under;
    text-decoration-color: rgb(201, 102, 255);
    text-decoration-thickness: 4px;
}

.download {
    text-decoration: none;
    color: tomato;
    background: white;
    border-radius: 5px;
    padding: 6px;
    border: 1px solid;
    border-color: tomato;
    margin: auto;
    text-transform: uppercase;
    font-size: 10pt;
}

.download:hover {
    cursor: pointer;
    color: white;
    background: tomato;
    border-color: white;
}

.photo {
    position: relative;
    padding-top: 5%;
    width: 30%;
    height: auto;
    margin-left: 10%;
    float: left;
}


/* work_projects */

h3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 900;
}

.all_projects {
    position: relative;
    display: inline-block;
    margin-left: 15%;
    margin-right: 15%;
    width: 70%;
    margin-bottom: 5%;
}

.row_1, .row_2 {
    position: relative;
    display: inline-block;
    width: 70vw;
    height: 30vw;
    margin-bottom: 8%;
    padding: 0;
    /* background: slateblue; */
}

.work_type {
    position: relative;
    display: inline-block;
    width: 30vw;
    height: 30vw;
    margin: 0% 3.3% 0% 3.3%;
    padding: 0;
    z-index: 20000;
}

.work_type:hover{
    background: rgba(0, 0, 0, 0.7);
}

.work_type a {
    position: relative;
    display: inline-block;
    width: 30vw;
    height: 30vw;
}

.project_main img {
    position: relative;
    display: inline-block;
    width: 30vw;
    height: 30vw;
    padding: 0;
    margin: 0;
}

.project_main img:hover{
    opacity: 0.6;
    transition: 0.3s ease-in-out;
}

.project_main {
    position: relative;
    display: block;
    width: 30vw;
    height: 30vw;
    padding-right: 0;
    margin-right: 0; 
}

/* .project_main:hover .project_title {
    opacity: 0.6;
    transition: 0.3s ease-in-out;
} */

.project_textbox {
    position: absolute;
    display: flex;
    top: 0;
    left: 0;
    width: 30vw;
    height: 30vw;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    letter-spacing: 3px;
    /* background: rgba(0, 0, 0, 0.7); */
    overflow-wrap: normal;
}
 
.project_title {
    position: absolute;
    -webkit-text-fill-color: tomato;
    -webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color: white; 
    font-family: 'Source Sans Pro', sans-serif;
    text-transform: uppercase;
    font-style: italic;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    white-space: pre-wrap;
    width: 90%;
    text-align: center;
    font-size: 5vw;
    display: none;
    transition: 1s ease-in-out;
    padding: 0;
    margin: 0;
    /* background: seagreen; */
}

.project_main img:hover {
    transition: 0.3s ease-in-out;
}

.work_type:hover .project_title {
    -webkit-text-fill-color: tomato;
    cursor: pointer;
    display: block;
    transition: 1s ease-in-out;
}

.project_title:hover{
    color: tomato; 
    -webkit-text-fill-color: tomato;
    display: block;
    transition: 1s ease-in-out;
}
/* 
.intro p {
    background: sandybrown;
} */

/* Mobile mode */

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

    .name {
        width: 80vw;
        margin-left: 10%;
         }

    .intro {
        position: relative;
        width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;   
        }

    .all_projects {
        width: 60%;
        margin-left: 20%;
        margin-bottom: 15%;
        }

    .row_1, .row_2 {
        width: 100%;
        height: calc(127vw);
        padding: 0;
        }

    .work_type {
        /* display: inline-block; */
        height: 60vw;
        width: 60vw;
        margin: 5% 0% 5% 0%;
        padding: 0;
        }
    
        
    /* .project_main {
        width: 60vw;
        height: 60vw;
        margin: 0;
        padding: 0;
        }     */

    .project_main img {
        width: 60vw;
        height: 60vw;
        margin: 0;
        padding: 0;
        opacity: 0.6;
        } 

    .project_title {
        display: flex;
        position: relative;
        width: 90%;
        text-align: center;
        font-size: 11vw;
        -webkit-text-fill-color: tomato;
        -webkit-text-stroke-width: 0.5px;
        -webkit-text-stroke-color: white; 
        }


    .project_textbox {
        width: 60vw;
        height: 60vw;
        }

    h3 {
        display: flex;
        position: relative;       
        }  
    
    h1{
        padding-top: 0;
        }
}