/* All pages CSS */
body{
    background-color: #2f2f2f;
    font-family: monospace;
    margin: 0 auto;
    padding-top: 5vh;
    text-align: center;
    display: block;
    justify-content: center;
    align-items: center;
    color: #ffffff;


    /* Hexagon background pattern from https://css-pattern.com/honeycomb/ */
    /* I'd like to make my own pattern but this looks very nice. I'll decide later.
    --s: 35px;
    --c1: #303030;
    --c2: #323232;
    
    --c:#0000,var(--c1) .5deg 119.5deg,#0000 120deg;
    --g1:conic-gradient(from  60deg at 56.25% calc(425%/6),var(--c));
    --g2:conic-gradient(from 180deg at 43.75% calc(425%/6),var(--c));
    --g3:conic-gradient(from -60deg at 50%   calc(175%/12),var(--c));
    background:
        var(--g1),var(--g1) var(--s) calc(1.73*var(--s)),
        var(--g2),var(--g2) var(--s) calc(1.73*var(--s)),
        var(--g3) var(--s) 0,var(--g3) 0 calc(1.73*var(--s)) 
        var(--c2);
    background-size: calc(2*var(--s)) calc(3.46*var(--s));
    */
}

nav {
    flex-wrap: wrap;
    display: flex;
    gap: 1em;
    justify-content: center;
    text-align: center;
    margin-top: 1em;
    font-size: clamp(1.2em, 4vw, 2.6em);
}



a {
    display: inline-block;
    padding: 0.3em 0.6em;
    text-decoration: none;
    color: #ffffff;
    transition: color .2s ease;
}

a:hover {
    text-decoration: underline;
    color: #d1d1d1;
}

p {
    font-size: 1.5em;
    line-height: 1.4em;
    max-width: 70em;
    margin: 0 auto;
    padding: 0.8em;
    text-align: left;
}

header {
    z-index: 1000;
    position: sticky;
    top: 0;
    font-size: 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color:#ffffff;
    padding: 0em 2em;
    margin-top: -6vh;
}

/* Splash page styles */
#homeTitle {
    font-size: clamp(2.5em, 8vw, 5em);
    color: #ffffff;
    text-align: center;
    margin: 0.2em auto;
    padding: 0 0.5em;
}

/* Resume/Projects page styles */
.pageTitle {
    font-size: 4em;
    color: #ffffff;
    text-align: left;
    margin-left: 1em;
}

/* || Resume page styles */
#intro {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 85em;
    gap: 3em;
    margin: 0em auto;
}

#intro h2 {
    font-size: 2.3em;
    margin: 0 auto;
    padding: 0.5em;
    text-align: left;
}

#headshot {
    width: 17em;
    height: auto;
    border: #ffffff 0.2em solid;
}

main {
    width: 85em;
    margin: 2em auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 3em;
}

.project h3 strong {
  font-weight: bold;
}

/* Needed to make text normal in my project titles*/
.project h3 span {
  font-weight: normal;
}


.resumeSection h2 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    color: #ffffff;
    border-bottom: 0.1em solid #ffffff;
    padding-bottom: 0.2em;
}

.resumeSection h3 {
    font-size: 1.8em;
    margin: 0.5em 0;
    color: #f0f0f0;
}

.resumeSection p {
    font-size: 1.4em;
    padding: 0.2em 0;
}

.project {
    margin-bottom: 2em;
}

.project ul {
    list-style-type: square;
    padding-left: 2em;
    font-size: 1.3em;
    line-height: 1.6em;
}

.skillsList {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1.4em;
}

.skillsList li {
    margin: 0.5em 0;
}

/* || Projects page styles */
.projectsGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2em;
    width: 45%;
    margin: 3em auto;
    padding: 2em;
}

.projectsGrid a{
    padding: 0;
}

.projectCard {
    display: block;
    background: #383838;
    border-radius: 1em;
    overflow: hidden;
    text-align: center;
    transition: 0.25s ease;
}

.projectCard:hover {
  transform: translateY(-0.4em);
}

.projectsInGridImage {
    width: 100%;
    height: 20em;
    object-fit: cover;
    border-bottom: 0.2em solid #ffffff;
}


.caption {
  font-size: 1.8em;
  font-weight: bold;
  padding: 1em;
}


/* Individual project styles */
.projectExplanation {
    width: 50em;
    margin: 2em auto;
    padding: 1em 2em;
    text-align: left;
    line-height: 1.5em;
    font-size: 1.2em;
}

.projectExplanation h2 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    margin-left: 0.5em;
}

.projectExplanation img {
    display: block;
    max-width: 95%;
    margin: 2em auto;
    border-radius: 0.5em;
    border: 0.1em solid #ffffff;
}

.projectExplanation a {
    text-decoration: underline;
    transition: color 0.2s ease;
}

.projectExplanation a:hover {
    color: #d1d1d1;
}


@media (max-width: 600px) {
    body {
        padding-top: 3vh;
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 6%;
        gap: 6%;
        margin-top: 0;
        margin-bottom: 0;
        padding: 1em 1em;
        font-size: 1em;
        justify-content: center;
        background-color: #2f2f2f;
        border-bottom: #ffffff 0.1em solid;
    }

    #headshot {
        margin-top: 30%;
        width: 50%;
        height: auto;
        border: #ffffff 0.2em solid;
        margin-bottom: 1em;
    }

    main {
        width: 75%;
        margin: 6em auto 2em auto;
    }

    #intro {
        width: 75%;
        flex-direction: column;
        align-items: center;
        gap: 1em;
        flex-wrap: wrap;
    }

    nav {
        flex-direction: column;
        gap: 0.5em;
    }

    #homeTitle {
        text-align: center;
        line-height: 1.2;
    }

    .projectsGrid {
        margin-top: 8em;
        grid-template-columns: 1fr;
        width: 50%;
        height: auto;
        padding: 1em;
    }

    .projectsInGridImage {
        height: auto;
        width: 100%;
        object-fit: cover;
        border-bottom: 0.2em solid #ffffff;
    }

    .caption {
        font-size: 150%;
        font-weight: bold;
        padding: 0.5em;
    }

    .projectExplanation {
        width: 90%;
        margin: 5em auto;
        padding: 1em;
        font-size: 1em;
    }

    .projectExplanation h3{
        font-size: 2.5em;
        line-height: 1.5em;
    }
}

@media (min-width: 601px) and (max-width: 1660px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 5%;
        gap: 50%;
        margin-top: 0;
        margin-bottom: 0;
        padding: 1em 1em;
        font-size: 150%;
        justify-content: center;
        background-color: #2f2f2f;
        border-bottom: #ffffff 0.1em solid;
    }

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