*, *::before, *::after { box-sizing: inherit;}

:root {
    --color00: #000; 
    --color01: #5F5F62;
    --color02: #FF99FB;
    --color04: #8A9CFF;
    --color05: #393939;
    --gradient00: linear-gradient(150deg, var(--nord08), var(--nord15));
    --gradient01: linear-gradient(150deg, var(--nord00), var(--nord03));
    --gradient02: linear-gradient(150deg, var(--nord02), var(--nord03));
	--nord00: #2e3440;
	--nord01: #3b4252;
	--nord02: #434c5e;
	--nord03: #4c566a;
	--nord04: #d8dee9;
	--nord05: #e5e9f0;
	--nord06: #eceff4;
	--nord07: #8fbcbb;
	--nord08: #88c0d0;
	--nord09: #81a1c1;
	--nord10: #5e81ac;
	--nord11: #bf616a;
	--nord12: #d08770;
	--nord13: #ebcb8b;
	--nord14: #a3be8c;
	--nord15: #b48ead;
}

html {
    box-sizing: border-box;
    font-family: Helvetica, Arial, sans-serif;
    background: var(--nord01);
    color: white;
    height: 100%;
    background-color: var(--nord01);
    line-height: 185%;
}

body {
    margin: 0;
}

main h1, h2, h3, h4, h5, h6 {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

main p, ul, ol {
    display: block;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.button {
    display: block;
    width: 100%;
    max-width: 15em;
    margin: 0 auto;
    border: 0;
    border-radius: 99em;
    padding: .75em;
    background: var(--gradient00);
    color: white;
    text-decoration: none;
    text-align: center;
    font-size: .85em;
    white-space: nowrap; /* prevent line breaks in the buttons */
}

.button:hover {
    color: var(--nord00);
    background: var(--nord06);
    cursor: pointer;
    box-shadow: 0 0 5px white;
}

a {
    color: var(--nord04);
}

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

/* Header Start */
header {
    position: sticky;
    text-align: center;
    top: 0;
    z-index: 999;
    width: 100%;
    padding: 1.25em 0em;
    background: var(--nord01);
    background-size: 400% 400%;
    border-bottom: 5px solid var(--nord08);
}

header > a {
    font-size: 1.25rem;
    color: white;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 2px 2px 0px black;
}

hr {
    width: 75%;
}

/* Nav Bar Start */
.nav-toggle {
    display: none;
}

.nav-toggle:checked ~ nav {
    transform: scale(1,1);
}

.nav-toggle:checked ~ nav a {
    opacity: 1;
    transition: opacity 250ms ease-in-out 250ms;
}

.nav-toggle-label {
    position: absolute;
    top: 0;
    right: 0;
    margin-right: 1em;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: white;
    height: 2px;
    width: 2em;
    border-radius: 2px;
    position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
}

.nav-toggle-label span::before {
    bottom: 8px;
}

.nav-toggle-label span::after {
    top: 8px;
}

nav {
    position: absolute;
    text-align: right;
    top: 100%;
    right: 0;
    width: 100%;
    background-color: var(--nord01);
    transform: scale(1,0);
    transform-origin: top;
    transition: transform 400ms ease-in-out;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    margin-bottom: .5em;
    margin-right: 1em;
    text-align: right;
}

nav a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 150ms ease-in-out;
}

nav a:hover {
    color: var(--nord14);
}

/* Nav Bar/Header End */

footer {
    display: block;
    text-align: center;
    margin-top: 5em;
    margin: 0 auto;
}

/* Hero Graphic Start */
.hero {
    position: relative;
    background: var(--nord00);
    text-align: center;
    padding-top: 2em;
    padding-bottom: 4em; /* pads wave to below text */
    background: var(--gradient02);
    background-size: 400% 400%;
    margin-bottom: 1em;
    overflow: hidden;
}

.hero > .title {
    padding: 0;
    margin: 0 auto;
    margin-top: 1em;
    text-align: center;
    max-width: 37ch;
    font-size: 2em;
    font-weight: bold;
}

.hero > .subtitle {
	margin: 0 auto;
    margin-bottom: 1em;
	text-align: center;
}

/* Hero Graphic End */

/* Portfolio Page Start */
.project-group {
    background: var(--nord00);
    padding: .5em;
    width: 95%;
    padding-bottom: .25em;
    margin: auto;
    margin-bottom: 2em;
    margin-top: 3em;
}

.project-group > h2 {
    margin: .5em;
    text-align: center;
}

.project-card {
    background: var(--gradient02);
    margin: 0 auto;
    margin-bottom: 1em;
    padding-bottom: .5em; /* gets the.button off the bottom of the div */
    width: 90%;
}

.project-card > h3, p {
    margin: 0;
    padding-top: .5em;
    padding: .5em;
}

.project-card > .button {
    display: block;
    width: 100%;
    max-width: 10em;
    margin: 0 auto;
    border: 0;
    border-radius: 99em;
    padding: .75em;
    background: var(--gradient00);
    color: white;
}

.project-card >.button:hover {
    color: var(--nord00);
    background: var(--nord06);
    cursor: pointer;
    box-shadow: 0 0 5px white;
}

/* Portfolio Page End */
blockquote {
	background-color: var(--nord03);
	max-width: 700px;
	margin: auto;
}

pre {
    display: flex;
    margin: 0 auto;
    text-align: left;
    white-space: pre-wrap;
}

code {
    display: inline-block;
    margin: 0 auto;
    width: 90%;
    font-weight: bold;
    background-color: black;
    color: var(--nord06);
    padding: .5em;
    border-radius: .4em;
}

.dark {
    background-color: var(--nord00);
    padding-top: .01em;
    padding-bottom: 1em;
}

.light {
    background-color: var(--nord01);
    padding-top: 0;
    padding-bottom: 1em;
}

/* Waves animations Start */
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    -webkit-animation: 10s linear 1s infinite alternate move_wave;
          animation: 10s linear 1s infinite alternate move_wave;
}

.wave svg {
    position: relative;
    display: block;
    width: calc(200% + 1.3px);
    height: 60px;
}

.wave .shape-fill {
    fill: var(--nord09);
}

@-webkit-keyframes move_wave { from { margin-right: -80%; } to { margin-left: -100%; }  }
        @keyframes move_wave { from { margin-right: -80%; } to { margin-left: -100%; }  }

.wave1 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 180%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    -webkit-animation: 20s linear 5s infinite alternate move_wave;
          animation: 20s linear 5s infinite alternate move_wave;
}

.wave1 svg {
    position: relative;
    display: block;
    width: calc(200% + 1.3px);
    height: 60px;
}

.wave1 .shape-fill {
    fill: var(--nord10);
}

@-webkit-keyframes move_wave1 { from { margin-left: 200%; } to { margin-right: -200%; }  }
        @keyframes move_wave1 { from { margin-left: 200%; } to { margin-right: -200%; }  }

.wave2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    -webkit-animation: 15s linear 0s infinite alternate move_wave2;
          animation: 15s linear 0s infinite alternate move_wave2;
}

.wave2 svg {
    position: relative;
    display: block;
    width: calc(200% + 1.3px);
    height: 60px;
}

.wave2 .shape-fill {
    fill: var(--nord01);
}

@-webkit-keyframes move_wave2 { from { margin-left: -50%; } to { margin-right: 50%; }  }
        @keyframes move_wave2 { from { margin-left: -50%; } to { margin-right: 50%; }  }
/* Waves End */
/* Content Pages End */

@media (min-width: 600px) {
    header { 
        padding-left: 2em;
        padding-right: 2em;
        display: flex;
        justify-content: space-between;
    }

    header > a {
        font-size: 2em;
        font-weight: bold;
    }

    nav {
        all: unset;
        display: flex;
    }

    nav > ul {
        display: flex;
        align-items: center;
        height: 100%;
        opacity: 1;
    }

    nav a {
        opacity: 1;
        position: relative;
    }

    .nav-toggle-label { 
        display: none;
    }

    nav a:before {
        content: '';
        display: block;
        height: 5px;
        background: var(--nord14);
        position: absolute;
        top: -.75em;
        right: 0;
        left: 0;
        transform: scale(0,1);
        transition: transform ease-in-out 250ms;
    }

    nav a:hover::before {
        transform: scale(1,1);
    }

    .hero {
        margin-top: 0;
        padding: 8em;
        width: 100%;
    }

    .project-group {
        display: flex;
        flex-wrap: wrap;
        max-width: 76ch;
        justify-content: left;
	padding-top: 1rem;
	padding-left: 2rem;
	padding-right: 2rem;
    }

    .project-group > h2 {
        display: flex;
        width: 100%;
        margin: 0 auto;
	margin-top: .5rem;
        margin-bottom: .5rem;
    }

    .project-card {
	width: 100%;
	margin: 0 auto;
        margin-bottom: 2rem;
    }

    code {
	    max-width: 700px;
	}
}
