@import url("https://fonts.googleapis.com/css?family=McLaren:100,200,300,400,600,700&display=swap");
@import url("https://fonts.googleapis.com/css?family=Karla:100,200,300,400,600,700&display=swap");

/* shared & universal styles */

:root {
    --msd-black: rgb(0, 0, 0);
    --msd-white: rgb(255, 255, 255);
    --msd-gray-1: rgb(71, 71, 71);
    --msd-gray-2: rgb(94, 94, 94);
    --msd-gray-2-20: rgb(94, 94, 94, 0.2);
    --msd-gray-3: rgb(144, 144, 144);
    --msd-gray-3-20: rgb(144, 144, 144, 0.2);
    --msd-gray-3-50: rgb(144, 144, 144, 0.5);
    --msd-gray-4: rgb(196, 196, 196);
    --msd-pink-1: rgb(167, 129, 129);
    --msd-pink-2: rgb(242, 188, 189);
    --msd-pink-2-30: rgb(242, 188, 189, 0.3);
    --msd-pink-2-65: rgb(242, 188, 189, 0.65);
    --msd-pink-3: rgba(248, 221, 221);
    --msd-pink-3-30: rgba(248, 221, 221, 0.3);
    --msd-pink-3-15: rgba(248, 221, 221, 0.15);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
ul,
body {
    margin: 0;
    padding: 0;
    font-weight: 300;
    letter-spacing: 0px;
    font-family: Karla;
}

h1 {
    font-family: McLaren;
    font-size: 80px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 25px;
}

h4 {
    font-family: McLaren;
    font-size: 23px;
    background-color: var(--msd-pink-2);
    border-radius: 5px;
    padding: 0.25rem;
    width: fit-content;
    margin-left: -0.25rem;
}

h5 {
    font-size: 20px;
    font-weight: 500;
}

h6 {
    font-size: 17px;
    font-weight: 500;
}

p {
    font-size: 18px;
}

body {
    background: var(--msd-pink-1);
    min-height: 100vh;
    overflow-x: hidden;
}

body:before {
    content: "";
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background: url(./assets/pink_fractal.png) no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

body:after {
    content: "";
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--msd-gray-3);
    opacity: 0.25;
    box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    z-index: -2;
}

a {
    text-decoration: none;
    color: var(--msd-black);
}

.link:hover {
    background-color: var(--msd-gray-2-20);
    border-radius: 5px;
    text-decoration: underline;
}

ul {
    list-style-type: circle;
    padding: 0;
}


/* screen sizes:
    1366 - landscape tablet
    768 - vertical tablet
    640 - mobile
    */

@media only screen and (max-width: 640px) {
    h1 {
        font-size: 40px;
    }
    h2 {
        font-size: 20px;
    }
    h3 {
        font-size: 18px;
    }
    h4 {
        font-size: 20px;
    }
    h5 {
        font-size: 18px;
    }
    h6 {
        font-size: 17px;
    }
    p {
        font-size: 16px;
    }
    body {
        min-height: 100vh;
    }
}

.icon {
    width: 45px;
    height: auto;
}

.icon.small {
    width: 30px;
    height: auto;
    transition: margin 300ms ease-in-out;
}

.icon:hover {
    margin-bottom: 0.5rem;
}

@keyframes frost {
    0% {
        background-position-y: left;
        background-position-x: center;
        transform: rotate(1deg);
    }
    25% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(1deg);
    }
    100% {
        background-position-y: center;
        background-position-x: left;
        transform: rotate(0deg);
    }
}

.card {
    display: flex;
    flex-direction: column;
    background-color: var(--msd-pink-3-30);
    border-radius: 1.5rem;
    min-height: min-content;
    box-shadow: 1px 0px 2px 1px var(--msd-gray-3-20);
    width: 400px;
    padding: 2rem;
    backdrop-filter: blur(2px);
    animation-iteration-count: 1;
    animation: frost 500ms ease-in-out;
    background-image: url("./assets/noise.png");
}

.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 3rem;
}

.card-container .card {
    margin: 2rem 1.5rem;
}

.col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.subtext {
    color: var(--msd-gray-1);
    font-size: 15px;
}

.page {
    flex-wrap: wrap;
    margin: 0 10vw;
}

@media only screen and (max-width: 768px) {
    .page {
        margin: 0 3vw;
    }
    .card {
        border-radius: 1rem;
        padding: 1.5rem 2.25rem;
        width: 350px;
    }
    .card-container .card {
        margin: 0 0 1.5rem 0;
    }
}

@media only screen and (max-width: 640px) {
    .card {
        width: unset;
    }
}


/* nav, footer */

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100vw;
    height: 12vh;
}

.nav-sticky+.page {
    padding-top: 12vh;
}

.nav-sticky::before {
    z-index: -1;
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    transition: -webkit-backdrop-filter, backdrop-filter 100ms ease-in-out;
}

.nav-sticky {
    z-index: 1;
    top: 0;
    position: fixed;
    border-bottom: 1px solid var(--msd-gray-3-20);
}

.logo {
    cursor: pointer;
    padding: 1vh 0 2vh 0;
    height: 3rem;
}

.logo-nav {
    display: flex;
    padding: 3vh 3vw;
}

.main-nav {
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style-type: none;
    width: 10vw;
}

.nav-link.active,
.nav-link:hover {
    background-color: var(--msd-gray-2-20);
}

.nav-link {
    cursor: pointer;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    margin: 0 0.75rem;
}

.footer {
    display: flex;
    justify-content: center;
    padding: 3rem;
}

.footer-text {
    color: var(--msd-gray-1);
}


/* projects toggle */

.dev-art {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--msd-pink-3-30);
    border-radius: 2rem;
    cursor: pointer;
    width: 6rem;
    padding: 0.5rem 1rem;
    margin-right: 3rem;
}

.dev-art div,
.dev-art label {
    cursor: pointer;
}

.dev-art.hidden {
    visibility: hidden;
    height: 0;
}

.toggle-knob {
    z-index: -1;
    position: absolute;
    background: var(--msd-pink-3);
    border-radius: 2rem;
    cursor: pointer;
    width: 1.5rem;
    padding: 1rem;
    margin-left: -0.75rem;
    transition: width 1200ms ease-in;
    transition: margin 500ms ease-in-out;
}

.toggle-knob.art {
    width: 1.5rem;
    margin-left: 3.25rem;
}

@media only screen and (max-width: 768px) {
    nav {
        flex-direction: column;
        height: 24vh;
    }
    .dev-art {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    .nav-sticky+.page {
        padding-top: calc(24vh + 1rem);
    }
    .logo-nav {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .main-nav {
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        width: 100vw;
    }
    .nav-link {
        border-radius: 5px;
        margin: 0;
        padding: 0 0.25rem;
    }
}


/* home */

.home.page {
    margin: 0;
}

.home {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    max-height: 100vh;
    width: 100vw;
}

.home-headers {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 5vh;
}

.me-pic-home {
    border: 1rem solid var(--msd-pink-2-30);
    border-radius: 2rem;
    width: 400px;
}

@media only screen and (max-width: 640px) {
    .me-pic-home {
        align-self: center;
        border: 0.5rem solid var(--msd-pink-2-30);
        border-radius: 1rem;
        width: calc(90vw - 1rem);
    }
}


/* about */

.about {
    display: flex;
    justify-content: space-evenly;
}

.hello {
    font-weight: 600;
}

.cards-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-header {
    margin: 2vh 0 1vh 0;
}

.card-subheader {
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

.me-pic-about {
    border: 1rem solid var(--msd-pink-2-30);
    border-radius: 2rem;
    width: 400px;
}

.about-right {
    display: flex;
    flex-direction: column;
}

.about-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    height: 4rem;
}

.about-icons img {
    padding: 1rem;
}

@media only screen and (min-width: 768px) {
    .me-pic-about {
        border: 0.5rem solid var(--msd-pink-2-30);
        border-radius: 1rem;
        width: 300px;
        margin: 1.5rem 0;
    }
}

@media only screen and (min-width: 1366px) {
    .me-pic-about {
        border: 0.5rem solid var(--msd-pink-2-30);
        border-radius: 1rem;
        width: 300px;
        margin: 1.5rem 0;
    }
}

@media only screen and (max-width: 640px) {
    .me-pic-about {
        border: 0.5rem solid var(--msd-pink-2-30);
        border-radius: 1rem;
        width: calc(90vw - 1rem);
        margin: 1.5rem 0;
    }
}


/* work */

.work {
    display: flex;
}

.card-work {
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.work-timeline {
    align-self: flex-end;
    color: var(--msd-gray-1);
    padding-bottom: 0.25rem;
}

.work-employer {
    padding: 0.75rem 0 1.5rem 0;
}

.work-body {
    color: var(--msd-gray-1);
}


/* projects */

.projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-projects:last-child {
    margin-bottom: 5rem;
}

.proj-img {
    border: 1rem solid var(--msd-pink-2-30);
    border-radius: 2rem;
    max-width: 600px;
}

.jou {
    margin-right: 15%;
}

.text-pic {
    display: flex;
    justify-content: space-between;
}

.project-col {
    display: flex;
    flex-direction: column;
}

.card-projects {
    min-width: 70vw;
    margin-bottom: 2rem;
}

@media only screen and (max-width: 1366px) {
    .proj-img {
        align-self: center;
        border: 0.5rem solid var(--msd-pink-2-30);
        border-radius: 1rem;
        max-width: 50%;
        height: auto;
        margin-top: 1rem;
    }
    .card-projects {
        width: 90%;
    }
}

@media only screen and (max-width: 768px) {
    .text-pic {
        flex-direction: column;
    }
    .proj-img {
        align-self: center;
        border: 0.5rem solid var(--msd-pink-2-30);
        border-radius: 1rem;
        max-width: 100%;
        max-height: fit-content;
        margin-top: 1rem;
    }
    .card-projects {
        width: unset;
    }
    .jou {
        margin-right: unset;
    }
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--msd-gray-1);
    padding-top: 1rem;
    flex-wrap: wrap;
}

.card-footer-right {
    display: flex;
    align-items: flex-end;
    height: 2rem;
}

.card-footer-right a {
    padding: 0 0.5rem;
}

.icon.small.external-link-icon,
.icon.small.figma-icon {
    height: 22px;
}

.tools-container {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    padding-left: 0.5rem;
}

.tool {
    box-shadow: 1px 1px 1px var(--msd-pink-3-30);
    background-color: var(--msd-pink-3-15);
    border-radius: 1rem;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem 0.125rem;
}

.tool-text {
    font-size: 15px;
    color: var(--msd-gray-1);
}

.project-subtitle {
    padding: 1.5rem 0;
}

.project-caption {
    color: var(--msd-gray-1);
}


/* art */

.art-img {
    width: 400px;
    padding-bottom: 1rem;
}

.art-caption {
    padding: 1rem 0;
}

.art-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media only screen and (max-width: 1366px) {
    .art-img {
        width: 280px;
        padding-bottom: 1.5rem;
    }
}

@media only screen and (min-width: 768px) {
    .art-img {
        align-self: center;
        max-width: 100%;
        max-height: fit-content;
        padding-bottom: 1.5rem;
    }
}


/* 404 */

.body-404 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.not-found-container {
    margin: 0 2rem;
}

.not-found-404 {
    color: var(--msd-black);
    padding-bottom: 0.5rem;
}

.not-found-header {
    color: var(--msd-black);
    padding-bottom: 1rem;
}

.not-found-p {
    color: var(--msd-gray-1);
}