/*

black: rgb(12,11,13)
darker grey: rgb(90,92,98)
light grey: rgb(230,234,244)
white: rgb(249,249,252)
bright blue:rgb(162,206,255)
darker blue: rgb(63,103,173)
rust: rgb(139,77,39)  ??
gold: rgb(243,215,62) ??
orange: rgb(222,115,0)

*/

:root {
    --black: rgb(9,8,10);
    --page-background: rgb(238,240,246);
    --container-background-color: rgb(249,249,252);
    --highlight-text-color: rgb(60,98,173);
    --light-highlight-text-color: rgb(162,206,255);
    --menu-background-color: rgb(90,92,103);  
}

body{
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    font-weight: lighter;
    font-size: 17px;
    line-height: 1.4;
    background-color: var(--page-background);
    color: var(--black); 
}

a{
    color: var(--highlight-text-color);
    text-decoration: none;
    font-weight: normal;
}
a:hover{
    text-decoration: underline;
}

ul{
    padding-left: 1em;
    margin-top: 0px;
}
li{
    margin-top:6px;
}

/*TOP MENU*/
#menu-bar{
    position: fixed;
    top: 0;
    width: 100%;
    height: 48px;
    background-color: var(--menu-background-color);
    z-index: 99;
}

#site-title{
    margin: 0 24px;
    float: left;
    line-height: 48px;
    letter-spacing: 0.0625em;
    font-size:1.5em;
    font-weight: lighter;
    color: var(--page-background);
    text-decoration: none;
}

.menu-item{
    margin: 16px 24px 0 0;
    float: right;
    line-height: 100%;
    font-weight: lighter;
    color: var(--page-background);
}
.menu-item:hover{
    color: var(--light-highlight-text-color);
}

/*CONTENTS*/

#contents-container{
    margin: 24px auto 0 auto;
    padding: 24px 0 0 0;
    max-width: 1400px;
    background-color: var(--page-background);
}

#page-title{
    margin-left: 36px;
    margin-top: 24px;
    font-size: 1.5em;
    line-height: 1;
    font-weight: bold;
    color: var(--highlight-text-color);
}

#page-subtitle{
    margin: 6px 0px 24px 36px;
    line-height:1.25;
    font-weight:lighter;
    color:var(--menu-background-color);
}

.section-title{
    margin: 0 24px -12px 24px;
    padding-top: 6px;
    font-size: 1.25em;
    line-height: 1;
    font-weight: bold;
    color: var(--highlight-text-color);
}

.separator {
    margin: -12px 24px 24px 24px;
    border: 0.5px solid var(--menu-background-color);
}

/*HOME PAGE*/

.introduction-container{
    margin: 48px 0 -24px 0;
    position:relative;
    z-index:2;
    padding: 6px 24px;
    width: calc(100%-48px);
    background-color: var(--container-background-color); 
    border-bottom: 2px solid var(--menu-background-color);
}

.intro-text{
    font-size:1.125em;
    max-width: 950px;
}

.work-container{
    display:flex;
    flex-wrap: wrap;
    justify-content: middle;
    width: calc(100%-48px);
    margin: 24px;
    padding: 0;
    background-color: var(--container-background-color); 
    text-decoration:none;
    color:var(--black);
}

.work-recent-text-container{
    flex: 2;
    padding: 12px;
    max-width: 950px;
}

.work-recent-text-container h4{
    color: var(--highlight-text-color);
    margin: 0 0 12px 0;
    line-height: 1;
    font-size:1.125em;
}

.work-recent-image-container{
    display: flex;
    flex: 1;
    padding: 12px;
}

.work-recent-image-container img{
    width: 100%;
    object-fit: contain;
    object-position: left top; 
}

.work-container:hover{
    text-decoration:none;
}

.work-text-container{
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 6px 24px;
}

.work-text-container h2{
    color: var(--highlight-text-color);
    margin-bottom:0;
    line-height: 1;
    font-size: 1.125em;
}
.work-text-container h2:hover{
    text-decoration:underline;
}

.work-text-description{
    height: 100%;
    font-size: 1.125em;
    font-weight: lighter;
    margin: 12px 0;
}

.work-text-activities-list{
    font-size: 1em;
    margin: 0 0 12px 0;
    padding-left: 0;
    padding-bottom: 3px;
    list-style-type: none;
    font-weight: lighter;
}

.work-image-container{
    display: flex;
    flex: 1;
    justify-content: top;
    height: 100%;
    max-width:240px; 
}

.work-image-container img{
    width: 100%;
    object-fit: cover;
    object-position: center top; 
}

/*SINGLE PROJECT*/
.project-container{
    display:flex;
    flex-wrap: wrap;
    flex-direction:row;
    justify-content: middle;
    width: calc(100%-48px);
    margin: 24px;
    padding: 12px;
    background-color: var(--container-background-color); 
    text-decoration:none;
    color:var(--black);
}

.reverse{
    flex-direction:row-reverse;
}

.project-text-container{
    flex: 1;
    margin: 12px 12px 0 12px;
    max-width: 950px;
}

.project-text-container h3{
    color: var(--highlight-text-color);
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.project-text-container h4{
    color: var(--highlight-text-color);
    margin: -12px 0 12px 0;
    line-height: 1;
    font-size:1.25em;
}

.project-summary-text{
    font-size: 1.125em;
    font-weight: lighter;
    margin:0 0 12px 0;
}

.project-detail-text{
    font-size: 1em;
    font-weight: lighter;
    margin:0 0 12px 0;
}

.project-image-container{
    display: flex;
    flex: 1;
    margin: 12px;
    width: calc(100%-24px);
}

.project-image-container img{
    width: 100%;
    object-fit: contain;
    object-position: left top; 
}

/*BOTTOM OF PAGE*/

#bottom-rule{
    margin: 0 auto;
    max-width: 1400px; 
    height: 6px;
    background-color: var(--menu-background-color);
}

#other-projects-container{
    margin: 0 auto;
    padding: 0;
    max-width: 1400px;
    height: 96px;
    clear: both;
}

#prev-arrow{
    float: left;
    padding: 30px 24px;
    height: 36px;
}

#prev-project-container{
    float: left;
    width: 33%;
    height: 96px;
    line-height: 96px;
}

#prev-project-container:hover{
    color: var(--highlight-text-color);
}

#prev-project-link{
    display: inline-block;
    font-size: 1.25em;
}

#next-arrow{
    float: right;
    padding: 30px 24px;
    height: 36px;
}

#next-project-container{
    float: right;
    width: 33%;
    height: 96px;
    line-height: 96px;
    text-align: right;
}

#next-project-container:hover{
    color: var(--highlight-text-color);
}

#next-project-link{
    display: inline-block;
    font-size: 1.25em;   
}

#footer{
    width: 100%;
    min-height: 6px;
    background-color: var(--menu-background-color);
}

#footer-contents{
    margin: 0 auto;
    padding: 0 24px;
    height: 48px;
    text-align: right;
    font-size: 0.875em;
    line-height: 48px;
}

.footer-text{
    color: var(--page-background);
}

a.footer-text:hover{
    color:var(--light-highlight-text-color);
}

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

    .project-text-container{
        flex:100%;
    }
    .project-image-container{
        flex:100%;
        order: -1;
        padding-top: 0;
    }
}

@media screen and (max-width: 720px){
    .work-text-container{
        flex:100%;
    }
    .work-image-container{
        flex:100%;
        max-height: 240px;
        max-width: none;
    }
    .work-recent-text-container{
        flex:100%;
    }
    .work-recent-image-container{
        flex:100%;
    }
}

@media screen and (max-width: 640px){
    .menu-item{
        display:none;
    }
}



