/* Global */

body {
    font-family: sans-serif;
    margin: 0 auto;
    padding: 0;
    line-height: 1.6;
    color: #333;
    font-family: 'Karla', sans-serif; 
    font-weight:400;
    font-size:18px;
    --white: #F4F3F1;
    --gray: #D5D1CC;
    --gray-light: #E7E2DE;
    --gray-very-light: #F2EEEA;
    --headliner: #1D3952;
    --copy: #565552;
    --alt: #ce4f84;
    background-color: var(--white);
    color: var(--copy);
    display: flex;
    flex-direction: column;
    align-items: center;
}
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2em 0 3em 0;
    width:70%;
    max-width:1000px;
}
.nav-container {
    width:100%;
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    flex-wrap: wrap;
    flex-direction: row;

}
.site-title {
    font-weight: medium;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 0.5em 0;
}
a.site-title{
    color:var(--headliner);
}
nav {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
}
.highlight{
    color: var(--alt);
}
nav a {
    text-decoration: none;
    padding-bottom: 2px;
    color: var(--copy);
}
nav a:hover{
    text-decoration:none;
}
nav a.active {
    border-bottom: 2px solid var(--alt);
}
nav a:hover:not(.active) {
    border-bottom: 2px solid var(--gray);
}
footer{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    font-size: .9em;
    border-top:1px solid #ddd;
    margin:0;
    width: 100%;
}
footer nav{
}
footer nav a{
    text-decoration:none;
    padding: 0;
}
footer nav a:hover:not(.active){
    border-bottom:none;
}
h1, h2{
    font-family: "Fraunces", serif;
    Font-weight: 700;
    color: var(--headliner);
    letter-spacing: .01em;
  }
h1{
    font-size: 2.75em;
    line-height:1.25em;
}
h2{
    font-size: 2em;
}
h3{
    font-weight: 500;
    font-size: 1.1em;
}
p{

}
ul {
    padding-left: 2em;
  }
ul li{
    margin: .25em;
}
li::marker{
    color: var(--alt);
}

/* Pages */
.resume-grid {
    display: flex;
    flex-direction: row;
    gap: 6rem;
    margin: 4em 0 0 0;
    width:70%;
    max-width:1000px;
}
.resume-grid h2{
    margin-top:0;
}
.resume-grid h3{
    margin: 2em 0 .5em 0;
}
.resume-grid .section{
    margin: 1em 0 2em 0;
    width:100%;
    padding:0 0 1em 0;
    border-bottom: 1px solid var(--gray-light);
}
.resume-left{
    width:65%;
}
.resume-left :last-of-type{
    border-bottom:none;
}
.resume-left :first-of-type{
    margin-top:0;
}
.resume-right{
    width:35%;
    padding:0;
    margin:0;
}
.resume-right ul{
    padding-left:1rem;
}
.resume-skills{
    margin-bottom:.5em;
    display:block;
}
.pre2021{
    padding:2em 0;
    margin:2em 0;
    border-top: 1px solid var(--gray);
}
.pre2021 a{
    color: var(--copy);
}
.intro{
    margin:2em 0;
}
.intro h1{
    margin: 0 0 .5em 0;
}
.intro p{
    font-size:1.2em;
    margin:0;
}
.project-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
        margin: 2rem 0;
}
.project-card {
    border: 1px solid var(--gray-light);
    border-radius: 1em;
    padding: 0 1em 1em 1em;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s;
    background-color:#fff;
}
.project-card:hover {
    border: 1px solid var(--gray);
}
.project-card img {
    width: 100%;
    height: auto;
    border: 1px solid var(--gray-light);
    margin-bottom: 0.5rem;
    border-radius:.6em;
}
.project-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight:500;
}
.project-card p {
    margin: 0;
    font-size:.9em;
}

img, video {
    height: auto;
    margin: 1rem 0;
    border-radius:1em;
    width:100%;
  }
.container-border{
    border:1px solid var(--gray-light);
    border-radius:1em;
    padding:2em 3em;
    background-color: #fff;
    text-align:center;
    margin:4em auto 4em auto;
}
.container-default{
    text-align:center;
    margin:4em auto 4em auto;
}
.container-default img{
    border:1px solid var(--gray-very-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.shadow{
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.section {
    margin: 2.5em auto 0 auto;
    width: 70%;
    max-width: 1000px;
    padding: 0 auto;
    max-width:1000px;
  }
.research-grid{
    gap: 2rem;
    margin: 2rem 0;
}
.research-card{
    grid-column: span;
    font-size:.9em;
    padding:1.5em;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--gray);
    border-radius: 1em;
}
.research-card div:first-of-type{
    text-align:center;
}
.research-card img{
    border:1px solid var(--gray-light);
    border-radius:.8em;
    margin:0;
    width: 240px;
    flex-shrink: 0;
    object-fit: cover;
}
.research-card a{
    font-size:.9em;
}
.lib-research-grid{
    display:grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    margin:2em auto;
    padding: 0 auto;
}
.lib-research-grid div{
    font-size:.9em;
    border: 1px solid var(--gray-light);
    padding:1em;
    border-radius:2em;
    text-align:center;
    background-color: #fff;
}
.designs{
    width:100%;
    margin: 4em 0 0 0;
    height: auto;
    background-color: var(--headliner);
    border-bottom:1px solid var(--gray-very-light);
    text-align:center;
    padding: 2em 0 6em 0;
    color: var(--gray-very-light);
    
}
.designs .section{
    text-align:left;
}
.designs img, .designs video{
    width:80%;
    max-width:1200px;
    margin:2em 0;
    border-radius:1em;
}
.no-radius img{
    border-radius:0;
}
.designs h1, .designs h2, .designs a{
    color: var(--gray-very-light);
}
a {
    color: var(--alt);
    text-decoration: none;
  }
a:hover {
    text-decoration: underline;
  }
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
  }
table th, table td {
    border: 1px solid var(--gray-light);
    padding: 1rem;
    text-align: left;
    font-size:.9em;
  }
table th {
    background-color: var(--gray-very-light);
    font-size:1em;
  }


/** Before / After Component **/


.component {
    display: flex;
    flex-direction: column;
    align-items: center;
    width:fit-content;
    margin:3em auto;
    padding: 0;
    text-align:center;
    height:auto;
  }

  .tabs {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom:.5em;
    width:15%;
    padding:0;
  }
  .tabs a{
    font-family: 'Karla', sans-serif; 
    font-weight:400;
    font-size: 1em;
    color: var(--gray);
  }
  .tabs a:hover{
    text-decoration:none;
  }

  .tab {
    border:none;
    padding: .5em;
    cursor: pointer;
    transition: border 0.2s;
    margin:0 .5rem;
    border-bottom:2px solid #091c2d;
    background:none;
    width:50%;
  }

  .tab.active {
    border-bottom:2px solid var(--gray);  
  }
  .tab:hover{
    border-bottom:2px solid var(--gray);  
  }
  .tab.active:hover{
    border-bottom:2px solid var(--gray);    
  }

  .screenshot-container {
    width: 100%;
    max-width: 1300px;
    position: relative;
    overflow: hidden;
    border-radius: 1em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .screenshot-container img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
    margin: 1em 0;
  }

  .screenshot-container img.active {
    opacity: 1;
    position: relative;
  }




  /** SCREEN SIZES **/

  @media (max-width: 720px) {
    header {
        align-items: flex-start;
        width:90%;
        padding: .5em 0 1.5em 0;
        border-bottom:1px solid var(--gray-light);
       
    }
    .site-title{
        text-align:center;
        width:100%;
        padding:.5 0;
    }
    nav{
        width:100%;
        justify-content:center;
        padding:0;
    }
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .section{
        width:90%;
        margin: 1em auto 0 auto;
    }
    .container-border{
        padding:.5em;
        margin: 1em auto 2em auto;
    }
    .container-default{
        margin: 1em auto 2em auto;
    }
    h1{
        font-size: 2.25em;
        line-height:1.25em;
    }
    h2{
        font-size: 1.5em;
    }
    .lib-research-grid{
        grid-template-columns: 1fr 1fr;
    }
    .resume-grid {
        flex-direction: column-reverse;
    }
     .resume-left, .resume-right {
        width:100%;
    }
}