/******************/
/* GENERAL STYLES */
/******************/

:root {
    --yellow: rgb(225, 168, 25);
    --pink: rgb(237, 106, 90);
    --dark-blue: rgb(40, 48, 68);
    --light-blue: rgb(120, 161, 187);
    --mint: rgb(235, 245, 238);
}

html {
    font-size: 18px;
}

* {
    box-sizing: border-box;
}

*::selection {
    background-color: var(--pink);
    color: white;
}

a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition-property: color;
    transition-duration: .08s;
    display: inline-block;
}

a:hover {
    color: var(--mint);
}

p a:after, ul a:after {
    display: block;
    content: '';
    border-bottom: 1px solid var(--pink);
    transform: scaleX(0);
    transition: transform 250ms ease-in-out;
}

p a:hover::after, ul a:hover::after {
    transform: scaleX(1);
}

hr {
    background-color: var(--yellow);
    border: none;
    height: 1px;
    margin-top: 40px;
    margin-bottom: 40px;
}

body {
    background-color: var(--mint);
    margin: 0;
    font-family: 'Rubik', sans-serif;
    color: var(--dark-blue)
}

body > * {
    padding: 0 10%;
}

nav {
    height: 50px;
    background-color: var(--pink);
    width: 100%;
    padding: 0;
    position: fixed;
    top: 0;
    z-index: 1;
    border-bottom: .5px solid white;
    box-shadow: 0px 1px 2px rgb(237, 106, 90);
}

nav ul {
    height: 100%;
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0;
}

nav a {
    color: var(--mint);
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    font-weight: bold;
}

nav a:hover {
    color: var(--dark-blue);
    border-bottom: 1px solid var(--dark-blue);
}

header {
    padding-top: 100px;
}

h1:not(#name), #h1 {
    text-transform: lowercase;
    border: 3px solid var(--dark-blue);
    padding: 5px 10px;
    width: fit-content;
    margin: 30px auto 50px auto;
    text-align: center;
}

#h1 {
    background-color: var(--dark-blue);
    color: var(--mint)
}

h1:hover:not(#name) {
    background-color: var(--dark-blue);
    color: var(--mint)
}

#name {
    margin: 0;
}

p {
    line-height: 160%;
}

footer {
    margin-top: 50px;
    margin-bottom: 20px;
    text-align: center;
    font-size: .8em;
}

footer > * {
    margin: 0;
}

footer p:last-of-type {
    margin-bottom: 5px;
    display: inline;
}

footer ul {
    list-style-type: none;
    padding: 0;
    margin-top: 3px;
}

footer ul li {
    display: inline;
    padding-right: 10px;
}

footer ul a:hover {
    color: var(--pink)
}

.links a {
    padding: 0 5px;
    font-size: 30px;
    border: none;
    color: var(--yellow);
    margin-top: 15px;
}

.links a:hover {
    color: var(--pink)
}

/*************************/
/* HOMEPAGE STYLES */
/*************************/

#homepage {
    background-color: var(--light-blue);
    text-align: center;
    padding-bottom: 80px;
}

#home-main {
    padding-top: 60px;
}

#selfie {
    border-radius: 50%;
    border: 1px var(--mint) solid;
    padding: 5px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    margin-bottom: 50px;
}

#pronouns {
    opacity: 30%;
    font-size: 1.5em;
    font-weight: bold;
}

.title span {
    color: var(--pink);
}

#welcome {
    font-size: 1.2em;
}

#tech {
    text-align: center;
}

#tech ul {
    padding: 0;
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
}

#tech li {
    background-color: var(--dark-blue);
    color: var(--mint);
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 30px;
    border-radius: 20px;
}

#tech li li {
    display: none;
}

#tech h2 {
    margin: 0;
}

#tech h3 {
    margin-top: 50px;
}

#on-deck li {
    background-color: var(--mint);
    border: 2px solid var(--dark-blue);
    color: var(--dark-blue);
}

/*************************/
/* ABOUT PAGE STYLES */
/*************************/

.highlight {
    background-color: rgba(225, 168, 25, 0.756);
    padding: 3px;
}

#redwoods img {
    display: block;
    margin: 10px auto;
    width: 50%;
}

#about h2 {
    text-align: center;
    text-transform: lowercase;
}

.em {
    color: var(--pink)
}

.star {
    font-weight: bold;
    text-decoration: underline;
}

.skills {
    font-style: italic;
}

#personal, #professional {
    z-index: 1;
    margin-top: 50px;
    padding: 20px;
    box-shadow: -10px -10px white, 10px 10px var(--pink);
}

#professional a:hover, #projects-header a:hover {
    color: var(--pink);
}

#personal ul {
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#personal li {
    background-color: var(--dark-blue);
    color: var(--mint);
    height: fit-content;
    width: fit-content;
    padding: 15px;
    border-radius: 20px;
    margin-bottom: 10px;
    margin-right: 10px;
}

/*************************/
/* PORTFOLIO PAGE STYLES */
/*************************/
.pair {
    font-size: smaller;
    font-weight: bold;
}

.pair::before {
    content: "‣";
    padding-right: 10px;
}

.pair a {
    background-color: var(--mint);
    color: var(--dark-blue);
    padding: 0 5px;
    margin-left: 3px;
}

.pair a:hover {
    background-color: var(--pink)
}

.pair a::after {
    display: none;
}

time {
    text-transform: uppercase;
    font-weight: bold;
    font-size: smaller;
}

.yay {
    font-weight: 500;
}

#hi {
    text-align: center;
}

#projects h2 {
    background-color: black;
    color: var(--mint);
    border-bottom: 1px solid white;
    text-align: center;
    transition-property: background-color;
    transition-duration: .08s;
}

#projects h2 + * {
    margin-top: 30px;
}

#projects h2:hover {
    background-color: var(--pink);
}

#projects h2 a {
    display: block;
    text-decoration: none;
    width: 100%;
    height: 100%;
    padding: 10px;
}

#projects article {
    background-color: var(--light-blue);
}

#projects article :is(div, p) {
    padding-left: 40px;
    padding-right: 40px;
}

.description {
    padding-bottom: 40px;
}

#projects h2 {
    padding: 0;
}

#projects article a:hover {
    border-color: inherit;
}

#projects article:is(:first-child, :last-child) {
    background-color: rgb(40, 48, 68);
    color: white;
}

code {
    background-color: var(--mint);
    border-radius: 5px;
    padding: 3px;
    display: inline-block;
    color: var(--pink);
}

/*****************/
/* MEDIA QUERIES */
/*****************/

/* DESKTOP SIZES */
@media screen and (min-width: 1225px) {
    #redwoods {
        position: relative;
    }
    
    #redwoods img {
        position: absolute;
        z-index: -1;
        left: 10%;
        width: 35%;
    }

    #personal {
        margin-left: auto;
        width: 50%;
        background-color: var(--mint);
    }
    
    #professional {
        margin-left: auto;
        margin-right: auto;
        background-color: var(--mint);
        width: 65%;
    }
}

@media screen and (min-width: 1030px) {    
    #projects {
        display: grid;
        grid-template-columns: 1fr 1fr;
        row-gap: 45px;
        column-gap: 35px;
    }

    #projects h2 {
        position: absolute;
        left: -20px;
        top: -40px;
        text-align: left;
        border: 1px solid white;
    }

    #projects h2 + * {
        margin-top: 40px;
    }

    #projects article {
        position: relative;
        background-color: var(--light-blue);
        padding-top: 40px;
        margin-bottom: 30px;
        
    }

    #projects-header {
        margin-bottom: 70px;
    }
}

/* TABLET SIZES */
@media screen and (min-width: 858px) {
    #tech ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        align-items: center;
    }
    
    #tech li {
        flex-basis: 30%;
        margin-left: 10px;
        margin-right: 10px;
        margin-bottom: 10px;
    }

    #on-deck {
        flex-wrap: nowrap;
    }

    #on-deck li {
        flex-basis: 40%;
        margin: 0;
    }
}

/* SMALL TABLET SIZES */
@media screen and (min-width: 595px) {
    body > * {
        padding: 0 15%;
    }
    
    header {
        padding-top: 100px;
    }
}