*{
    box-sizing: border-box;
    font-family: -apple-system, system-ui,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
    font-size: 18px;
}
.fixed-ratio-resize {
    /* position: relative; */
    max-width: 70%;
    /* height: auto; */
    /* width: auto; */
    /* border-radius: 10px; */
    /* align-items: center; */
    /* margin: 0 14%; */
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
}

.fixed-ratio-resize2 {
    /* position: relative; */
    /* height: auto; */
    width: 100%;
    height: 100%;
    /* max-width: 99%;
    max-height: 150%; */
    border-radius: 10px 10px 0 0;
    /* object-fit:scale-down; */
}
:root{
    --navbar-icon-color: #4B5463;
    --accent-color:rgb(29, 160, 99);
    --text-color: #374151;
    --heading-color: #4B5463;
    --bground-color: white;
    --nav-bground-color:#ffffffe1;
    --hover-background: #e7e7e7;
    --border-color: #D6D9DF;
    --image-background-color: #f6f6f6;
    --contact-color: #86888d;
}
.light{
    --navbar-icon-color: #4B5463;
    --accent-color:rgb(29, 160, 99);
    --text-color: #374151;
    --heading-color: #4B5463;
    --bground-color: white;
    --nav-bground-color:#ffffffe1;
    --hover-background: #e7e7e7;
    --border-color: #D6D9DF;
    --image-background-color: #f6f6f6;
}
.dark{
    --bground-color: hsl(218, 23%, 16%);
    --accent-color:rgb(72, 209, 141);
    --nav-bground-color: hsl(218, 23%, 16%);
    --hover-background:#236350;
    --text-color:#9ca3af;
    --heading-color: white;
    --navbar-icon-color:#9ca3af;
    --border-color: #9ca3af25;
    --image-background-color: hsl(214, 19%, 22%);
}
html{
    background-color: var(--image-background-color);
    overflow-x: hidden;
}
body{
    color: var(--text-color);
}

h1, h2, h4,h5{
    margin: 0;
    color: var(--heading-color);
    font-family: 'Source Sans Pro';
}
h3{
    margin: 0;
}
h1{
    font-size: 3rem;
    font-weight: 600;
}
h3{
    font-size: 1.1rem;
    font-style: italic;
}
p{
    line-height: 1.5rem;
}
a {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
/* used for the navigation bar at the top */
.sticky{
    position: sticky;
    top: 0px;
    z-index: 999;
}
.nav-container{
    background-color: var(--nav-bground-color);
    border-bottom: 1px solid var(--border-color);
    width: 100vw;
    padding: 1rem;
}
nav{
    justify-content: space-between;
    max-width:52rem;
    height: 100%;
    margin: auto;
}
.logo{
    align-items: center;
    justify-content: center;
    background-color: var(--image-background-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    height: 2rem;
    width: 2rem;
    color:var(--accent-color);
    font-weight: 600;
    font-size: 0.8rem;
}
.nightmode{
    width: 1rem;
    height: 1rem;
}
.nav-list{
    gap:0.5rem;
}
.bolded{
    font-weight: 700;
}
.accented{
    color: var(--accent-color);
}
.flex{
    display: flex;
}
.flex-column{
    display: flex;
    flex-direction: column;
}
.flex-row{
    display: flex;
    flex-direction: row;
}
.flex-space-between{
    justify-content: space-between;
}
.flex-center{
    justify-content: center;
}
.grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 2rem;
}
.website-structure{
    margin: 1.5rem auto;
    flex-direction: column;
    background-color: var(--bground-color);
    max-width: 45rem;
    padding: 2.5rem 2rem 2.5rem 2rem;
    border-radius: 1rem;
}
.contact-link{
    color: var(--contact-color);
    font-weight: 600;
}
.transition{
    transition: all 0.5s;
}
.hero {
    margin:  auto;
}
.self-portrait {
    height: 15rem;
    border: 2px solid var(--border-color);
    border-radius: 1em;
    background-color: var(--image-background-color);
}
.hide{
    opacity: 0;
}
.skill-container{
    gap: 1rem;
    flex-wrap: wrap;
}
.skill-text{
    margin: 0;
    font-size: 1rem;
}
.skill{
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: .25rem;
    justify-content: space-between;
}
.skill h4{
    font-weight: 500;
    cursor: pointer;
}
.stack-icon {
    filter: grayscale(100%);
    transition: filter .3s cubic-bezier(0.075, 0.82, 0.165, 1);
}
.stack-icon:hover {
    filter: none;
}
.js{
    background-color:#f7df1e;
}
.js h4{
    color: #374151;
}
.html-5{
    background-color:  #e7ebee;;
    color: #e34f26;;
}
.html-5 h4{
    color: #374151;
}
.css3{
    background-color: #1572b6;
    color:white;
}
.css3 h4{
    color:white;
}
.mongo{
    background-color: #081d2a;
    color: #6ce875;
}
.mongo h4{ 
    color: #66ce85;
}
.figma{
    background-color: #F24E1E;
    color: white;
}
.figma h4{ 
    color: white;
}
.express{
    background-color: #303030;
    color: #669961;
}
.express h4{ 
    color: #669961;
}
.node{
    background-color: #669961;
    color: #303030;
}
.node h4{ 
    color: #303030;
}
.react{
    background-color: #222222;
    color: #61DAFB;
}
.react h4{ 
    color: #61DAFB;
}
.hero-button-container{
    padding-bottom: 2rem;
    justify-content: space-around;

}
.logo:hover{
    background-color: var(--hover-background);
    transition: 500ms;
}
.logo:active{
    background-color: hsl(193, 38%, 86%);
    border-color: hsl(193, 38%, 86%);

    transition: 200ms;
}
.hero-button{
    border: 1px solid var(--border-color);
    border-radius: .5em;
    padding: 0.5rem 5rem;
    text-align: center;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--text-color);
    background-color: var(--image-background-color)
}
.hero-button:hover{
    background-color: var(--hover-background);
    transition: 500ms;
}
.hero-button:active{
    background-color: hsl(193, 38%, 86%);
    border-color: hsl(193, 38%, 86%);
    transition: 200ms;
}
.clicked{
    outline: 3px solid var(--accent-color);
}
.section2{
    gap: 1rem;
}
.section-title{
    gap: 0.5rem;
    align-items: center;
}
.project-card{
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: .5em;
    max-width: 36rem;
}
.project-card-image{
    display:flex;
    justify-content: center;
    align-items: center;
    background-color: var(--image-background-color);
    width: 100%;
    height: 13rem;
    border-bottom: 1px solid var(--border-color);
    border-top-left-radius: .5em;
    border-top-right-radius: .5em;
}
.project-card-description{
    width: 100%;
    height: 8rem;
    padding: 1rem;
}
.project-card:hover{
    background-color: var(--hover-background);
    transition: 500ms;
}
.project-card:active{
    background-color: hsl(193, 38%, 86%);
    border-color: hsl(193, 38%, 86%);

    transition: 200ms;
}
.project-card-description h3{
    margin:auto;
}
.coming-soon-card{
    height: 21rem;
    justify-content: center;
    text-align: center;
    border-style: dashed;
    border: 2px dashed var(--border-color);
    padding: 1rem 0.5rem;
    border-radius: .5em;
    max-width: 36rem;
}
.clickable{
    user-select: none;
    cursor: pointer;
}
.box-shadow{
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}
.box-shadow-2{
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}
.contact{
    gap: 0.5rem;
    margin: 2rem 10rem 0 10rem;
}
.contact-title{
    border-bottom: 1px solid var(--contact-color);
    color: var(--contact-color);
}
.contact-email{
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}
.contact-link:hover{
    color:var(--accent-color);
}
footer{
    color:rgb(150, 149, 149);
    text-align: center;
    padding: 1rem 0;
}
@media screen and (max-width: 672px){
    h1{
        font-size: 2.4rem;
    }
    h2{
        font-size: 1.3rem;
    }
    h3 {
        text-align: center;
    }
    .fixed-ratio-resize {
        max-width: 56.5%;
    }
    .skill-text {
        text-align: center;
    }
    .contact{
        gap: 0.5rem;
        margin: 2rem 10% 0 10%;
    }
    .hero{
        flex-direction: column-reverse;
        align-items: center;
        gap: 2rem;
    }
    .hero-text{
        justify-content: center;
    }
    
    .hero-button-container{
        flex-direction: column;
        gap: 1rem;
    }
    .skill-container{
        justify-content: center;
    }
    .grid{
        grid-template-columns: 1fr;
    }
    .website-structure{
        max-width: 42rem;
        padding: 2.5rem 1rem 3.5rem 1rem;
        margin: 1.5rem 1rem;
    }
    .project-card{
        max-width: 36rem;
    }
    .section-title{
        flex-direction: column;
    }
}
