* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Josefin Sans Light';
    font-display: swap;
    src: url(fonts/JosefinSansLight-ZVEll.ttf);
    font-style: normal;
    font-weight: 300;
}

@font-face {
    font-family: 'Josefin Sans';
    font-display: swap;
    src: url(fonts/JosefinSansRegular-x3LYV.ttf);
    font-style: normal;
    font-weight: 400;
}
@font-face {
    font-family: 'Lofty Goals';
    font-display: swap;
    src: url(fonts/LoftygoalsRegular-9Y5Xy.otf);
    font-style: normal;
    font-weight: 400;
}

body {
    background-color: #080F1B;
    color: #fafafa;
    font-family: 'Josefin Sans', Arial, Helvetica, sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    position: absolute;
}

header {
    position: fixed;
    top:0;
    left: 0;
    width: 100vw;
    height: 45px;
    background-color: #080F1B;
    z-index: 10;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
}

.brand {
    display: flex;
    flex-direction: column;
}

.nav-links {
    display: inherit;
    flex-direction: column;
    position: absolute;
    top: 45px;
    right: 20px;
    transform: translateX(0);
    width: 0;
    opacity: 0;
    transition: opacity 0.1s cubic-bezier(0,1.01,0,1.01), transform 0.1s cubic-bezier(0,1.01,0,1.01);
}

.nav-links.active {
    background-color: #50545d;
    width: 24%;
    transform: translateX(-7px);
    opacity: 1;
}

.nav-links li {
    padding: 10px 20px;
}

.nav-links li:nth-child(2) {
    border-top: 1px solid #fd967c;
    border-bottom: 1px solid #fd967c;
}

/* menu-button animation */
.menu-button span {
    display: block;
    position: relative;
    margin: 4px;
    height: 4px;
    width: 26px;
    background: #fafafa;
    border-radius: 5px;
    cursor: pointer;
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
}

.menu-button.checked span:nth-child(1) {
    -webkit-transform: rotate(132deg) translate(7px, -6px);
    -moz-transform: rotate(132deg) translate(7px, -6px);
    -o-transform: rotate(132deg) translate(7px, -6px);
    transform: rotate(132deg) translate(7px, -6px);
    z-index: 0;
}

.menu-button.checked span:nth-child(2) {
    opacity: 0;
}

.menu-button.checked span:nth-child(3) {
    -webkit-transform: rotate(-132deg) translate(5px, 5px);
    -moz-transform: rotate(-132deg) translate(5px, 5px);
    -o-transform: rotate(-132deg) translate(5px, 5px);
    transform: rotate(-132deg) translate(5px, 5px);
    z-index: 0;
}
/* -----end menu button navigation----- */

ul.out-links, 
.contact ul li {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

li {
    list-style-type: none;
}

.contact ul li {
    justify-content: left;
}

a {
    text-decoration: none;
    color: #fafafa;
}

a:hover {
    text-decoration: underline;
}

.button li,
.contact ul li a {
    background-color: #fd967c;
    color: #080F1B;
    margin: 5px;
    padding: 10px;
    border-radius:2px;
}

.contact ul li a {
    margin: 10px;
}

.button li a {
    color:#080F1B;
}

.out-links li {
    font-size: .9rem;
}

section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 10px;
}

p {
    text-indent: 10px;
}
.content p {
    width: 95%;
    max-width: 1000px;
    padding: 10px 0;
    line-height: 1.5rem;
}

.splash {
    height: 100vh;
}

#caron {
    position: absolute;
    bottom: 15px;
    left: 50%;
    color: rgba(245, 245, 245, 0.7);
    font-size: 3rem;
    text-indent: 0;
}

h1, h3 {
    font-family: 'Lofty Goals', Arial, Helvetica, sans-serif;
    font-weight: normal;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    color: #fff;
}

h2 {
    font-family: 'Josefin Sans Light', Arial, Helvetica, sans-serif;
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
    margin-top: 20px;
    padding: 5px;
    color: #fff;
    letter-spacing: 0;
}

h3 {
    font-size: 1.75rem;
    margin: 40px auto 20px;
    text-decoration: #fd967c underline solid 2px;
}

h4 {
    font-size: 1.15rem;
}

/* blob animation test, see html for why!" */
@keyframes morph {
    0%, 100% {
        border-radius:
        42% 56% 72% 28% / 42% 42% 56% 48%;
    }
    33% {
        border-radius:
        72% 28% 48% 48% / 28% 28% 72% 72%; 
    }
    66% {
        border-radius:
        100% 56% 56% 100% / 100% 100% 56% 56%;
    }
}
.blob {
    overflow: hidden;
    width:16rem;
    height: 16rem;
    border-radius:42% 56% 72% 28% / 42% 42% 56% 48%;
    background: #000
    url("images/benjamin-suter-mpLex62zVKQ-unsplash_500px_optimized.jpg");
    background-size: cover;
    background-position: center;
    animation: morph 3.75s linear infinite;
}

.card-grid {
    display: grid;
    place-items: center stretch;
    width: 95%;
    max-width: 1000px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    background-color: rgba(245, 245, 245, 0.3);
    border-radius: 2px;
    height: 500px;
    
}

.card:hover, .card:focus {
    box-shadow: 0 4px 10px 0 rgba(0,0,0,.25);
}

.card-image img{
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border-radius: 2px;
}

.card-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    height: 100%;
}

.card-info p a,
footer p a {
    text-decoration: underline;
}

.contact li svg {
    width:40px;
    height: auto;
}

.content h1 {
    margin-top: 20px;
}

footer p {
    text-align: right;
    font-size: .8rem;
    margin-top: 20px;
    padding-right: 20px;
}

@media only screen and (min-width: 600px) {
    body {
        font-size: 18px;
    }
    .brand {
        flex-direction: row;
    }
    .firstname {
        padding-right: 5px;
    }
    .nav-links {
        flex-direction: row;
        position: static;
        width: 200px;
        transform: translateX(-20px);
        opacity: 1;
    }
    .nav-links li {
        padding: 10px;
    }
    .nav-links li:nth-child(2) {
        border-top: 0;
        border-bottom: 0;
    }
    .menu-button {
        display: none;
    }
    h1 {
        font-size:3.5rem;
    }
    h2 {
        font-size: 2.25rem;
    }
    h3 {
        font-size: 2rem;
    }
    .grid-item:first-child {
        grid-column: span 2;
        width:100%;
    }
    picture, .first-card {
        flex-direction: row;
        height: auto;
    }
    .first-card img {
        height: 100%;
    }
}

@media only screen and (min-width: 883px) {
    .grid-item:first-child {
        grid-column: span 3;
        width:100%;
    }   
}

.hide {
    display: none;
}