body {
    background-color: #cdcdcd;
    padding-left: .5%;
    padding-right: .5%;
    background-image: url('splat.webp');
    background-size: 100vw;
    background-size: cover;
    background-attachment: fixed;
    padding-left: 10%;
    padding-right: 10%;
    overflow-y: scroll;
    overflow-x: hidden;
}

body * {
    --mdc-theme-primary: #ffffff;
    font-family: 'Roboto', sans-serif;
    /* --mdc-theme-secondary: red; */
}

/* make selector take up 100% screen width on mobile */
body.mobile .header .page-selector {
    width: 100%;
}

.header {
    background-color: #7fe066;
    width: 55%;
    /* height: 10%; */
    border-radius: 15px;
    padding-top: 1px;
    margin-left: auto;
    margin-right: auto;
}

.footer {
    /* position: inherit; */
    bottom: 0px;
    font-weight: 100;
    width: 100%;
    text-align: center;
    padding-top: 10px;
}

.header .main-title {
    color: rgb(0 0 0);
    text-align: center;
    margin-bottom: 0px;
    margin-top: 8px;
    font-family: 'Roboto', sans-serif;
    /* font-weight: 900; */
    font-weight: 100;
    font-size: 51px;
    letter-spacing: 5px;
    /* text-shadow: 1px 1px 2px white; */
}

.header .page-selector {
    width: 45%;
    margin-left: auto;
    margin-right: auto;
}

.header .page-selector .mdc-tab__content {
    font-weight: 300;
}



div.content {
    /* height: fit-content; */
    margin-top: 10px;
    padding: 10px;
    padding-left: 15%;
    padding-right: 15%;
    border-radius: 15px;
    /* background-color: #afd5f2; */
    display: flex;
    flex-direction: inherit;
    /* transition: height 1s ease-out; */
    /* height: 60%; */
    background-color: #ffffff99;
    justify-content: center;
}

.content.fill-screen {
    height: 218% !important;
}

.projects .mdc-list-item {
    /* allow post type to go off the side */
    overflow: visible;
    transition: scale .3s cubic-bezier(0.49, 0.77, 0.58, 1);
}

.project-item-container {
    transition: transform 300ms cubic-bezier(0.52, 1.56, 0.21, 1.02) 0ms;
    width: 100%;
    height: fit-content;
    margin-bottom: 15px;
    background: rgb(242 175 233 / 34%);
    border-radius: 15px;
    transition: box-shadow 100ms ease-in-out 0ms;
    /* padding-top: 3px; */
}

.project-item-container .mdc-card__ripple {
    border-radius: 15px;
}

.project-item {
    /* put media off to the side */
    /* overflow: hidden; */
    display: flex;
    margin-bottom: 5px;
    margin: 4px;
    user-select: none;
    transition: transform 100ms cubic-bezier(0.52, 1.56, 0.21, 1.02) 0ms;
    min-height: 90px;
    /* flex-direction: column; */
    padding-top: 3px;
}

.project-item-container:active {
    /* transform: scale(0.95); */
    /* transition: transform .1s cubic-bezier(0.52, 1.56, 0.21, 1.02); */
    box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, .12);
}



@keyframes loading {
    0% {
        background-color: rgb(221, 221, 221);
    }

    50% {
        background-color: rgb(219 232 219);
    }

    100% {
        background-color: rgb(221, 221, 221);
    }
}




.project-item .media {
    width: 25%;
    height: 101px;
    /* max-height: 12vh; */
    /* height: fit-content; */
    /* width: 30%; */
    /* max-height: 75%; */
    /* width: auto; */
    /* background-color: rgb(221, 221, 221); */
    /* background-image: url("https://picsum.photos/536/354"); */

    /* bring image above the ripple */
    /* background-size: auto; */
    z-index: 2;
    /* animation: loading 1s linear infinite; */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 7px;
    margin-left: 5px;
    /* text-align: center; */
    /* padding-left: initial; */
    /* padding-left: 58px; */
    margin-top: auto;
    margin-bottom: auto;
    /* margin-left: auto; */
    /* margin-right: auto; */
}

.project-item .text-container {
    padding-left: 10px;
    width: 90%;
}

.project-item .title {
    font-weight: 400;
    border-bottom: #0000009c 1px solid;
    width: fit-content;
    letter-spacing: .03em;
    height: 1.2em;
    height: auto;
    font-size: 1.2em;
}


.project-item .icon-container {
    position: absolute;
    width: 20px;
    height: 100%;
}

.project-item .icon {
    /* color: rgb(2 151 43 / 37%); */
    position: absolute;
    right: 135%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    /* background: red; */
}

/* style svg project item icons */
.project-item .icon .svg-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.mdc-card__primary-action {
    overflow: visible;
}




.project-view {
    /* display: table-column; */
    /* position: absolute; */
    width: 100%;
}

.project-view iframe {
    width: 100%;
    border: none;
    /* transition: height 1s ease-in-out; */
}

h1.article-title {}

.back {
    position: absolute;
    left: 60px;
    top: 20px;
    scale: 2;
    --mdc-theme-primary: black;
    /* color: black !important; */
    width: 15px !important;
    margin: 0;
    padding: 0;
    transition: all .2s ease;
}

.back * {
    --mdc-theme-primary: black;

}

body.mobile .content {
    padding-left: 5%;
    padding-right: 5%;
}

.mobile .back {
    left: 8px;
    /* width: 35px !important; */
    /* display: block; */
    /* width: 11px; */
}

.back:hover {
    scale: 1.9;
}

.back:active {
    scale: 1.8;
}

.projects .mdc-list-item:hover {
    scale: 1.02;
    transition: scale .1s ease-in-out;
}

.projects .mdc-list-item:active {
    scale: .99;
    transition: scale 0.3s ease-in-out;
    /* box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0,0,0,.12); */
}

.project-item .backicon {
    height: 100%;
    margin-top: auto;
    margin-bottom: auto;
    color: #e016166b;
    scale: 1.4;
}

.mdc-tab-scroller {
    border-radius: 15px;
}

.legend .icon {
    /* color: rgb(2, 151, 43); */
    /* vertical-align: middle; */
    /* margin-left: auto; */
    text-align: center;
    display: inline-block;
    /* font-size: 1em; */
}

.legend {
    display: inline-flex;
    flex-wrap: wrap;
    align-content: center;
    width: 100%;
    user-select: none;
    flex-direction: row;
    align-items: center;
    /* margin-left: 100%; */
    /* margin-right: 100%; */
    /* align-items: ; */
    justify-content: center;
}

.legend {}

.item {
    /* width: max-content; */
    margin-left: 5px;
    margin-right: 5px;
    /* padding: 10px; */
    border-radius: 10px;
    /* transition: box-shadow,scale .1s ease-in-out; */
    /* cursor: pointer; */
}

.legend .item p {
    font-weight: 300;
    margin-top: 0px;
    margin-bottom: 0px;
    /* user-select: none; */
    vertical-align: super;
    display: inline-block;
    color: grey;
}

.legend .item:hover {
    /* scale: 1.15; */
    /* scale: .95; */
}

.banner-container img {
    position: relative;
    height: 10em;
    /* top: 0px; */
    /* left: 80%; */
    /* margin-left: auto; */
    padding-left: auto;
    transition: height .3s ease-in-out;
    /* image-rendering: pixelated; */
}

.banner-container {
    text-align: end;
}

.content .projects h1 {
    font-weight: 300;
    text-align: center;
}

.name-display {
    position: absolute;
    width: 80%;
    /* height: 100%; */
    top: 0px;
    transition: height .3s ease-in-out, top .3s ease-in-out;
    /* border: 2px solid black; */
}

.name-display .firstname {
    /* position: relative; */
    /* width: 35%; */
    /* font-size: 8vh; */
    /* margin: 0; */
}

.name-display .lastname {
    /* position: relative; */
    /* width: 48%; */
    /* font-size: 8vh; */
    /* margin: 0; */
}

.name-display h1 {
    position: relative;
    /* width: 35%; */
    font-size: 5em;
    font-weight: 900;
    letter-spacing: -11px;
    margin: 0;
    top: -7px;
    color: rgb(135 205 124 / 24%);
    /* color: rgb(205 124 124 / 24%); */
    /* text-shadow: 0 0 3px black; */
    /* -webkit-text-stroke: 0.9px #289c01; */
    /* -webkit-text-stroke-width: 0.9px; */
    /* transition: color .3s ease-in-out; */
    /* transition: color .2s ease-in-out; */
    cursor: pointer;
    user-select: none;
    transition: font-size .3s ease-in-out, color .2s cubic-bezier(0.4, 0, 1, 1), letter-spacing .3s ease-in-out;


    -webkit-text-stroke: none;
    -webkit-text-stroke-width: 0px;
    color: rgb(135 205 124 / 77%);

}

body.mobile .name-display h1 {
    -webkit-text-stroke: none;
    -webkit-text-stroke-width: 0px;
}

body::before {
    /* background-image: url(splat.png); */
    /* background-size: 100vw; */
    /* background-attachment: fixed; */
    /* width: 100%; */
    /* height: max-content; */
    /* background-repeat-y: repeat; */
    /* content: ""; */
    /* position: absolute; */
    /* padding: 0; */
    /* margin: 0; */
    left: 0px;
    top: 0px;
    overflow: hidden;
}

.name-display:active h1 {
    /* scale: 0.95; */
    color: rgb(225 233 222 / 34%);
    /* -webkit-text-stroke-width: 2.4px; */
    /* transition: color .1s ease-in-out; */
}

.projects .project-item .subtitle {
    font-weight: 300;
}

body.mobile {
    padding-left: 1%;
    padding-right: 1%;
}

body.mobile .project-item .media {
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    margin-bottom: 10px;
}

body.mobile .project-item {
    flex-direction: column;
}

body.mobile .name-display h1 {
    font-size: 7vh;
    top: 0vh;
}

.mdc-tab-bar * {
    --mdc-theme-primary: #85b870;
}

.mdc-tab-bar {
    background-color: rgb(255 255 255 / 50%);
    border-radius: 15px;
}

* {
    scroll-behavior: smooth;
    font-display: swap;
}

.mdc-tab.mdc-tab--active {
    background-color: #85b87024;
}

.mdc-tab {
    border-radius: 1px;
}

body.home .banner-container img {
    height: 24em;
}

body.home .name-display h1 {
    font-size: 8em;
    /* top: 13vh; */
    /* animation: titleColor 5s ease-in-out infinite; */
    /* transform: scale(2.5); */
    /* animation: titleBounce 4s infinite cubic-bezier(0.65, 0.05, 0.36, 1); */
    will-change: transform, letter-spacing;
    /* color: rgb(140 202 117 / 0%); */
    letter-spacing: -8px;

    color: rgb(135 205 124 / 77%);

}

@keyframes titleColor {
    0% {
        color: rgb(135 205 124 / 24%);
    }

    50% {
        color: rgb(136 194 114 / 50%);
    }

    100% {
        color: rgb(135 205 124 / 24%);
    }
}

@keyframes titleBounce {
    0% {
        transform: translate(0, 0px);
        /* -webkit-text-stroke-width: 0.9px; */
        /* letter-spacing: -3px; */
        /* font-size: 8; */
        /* color: rgb(140 202 117 / 41%); */
        opacity: 1;
    }

    50% {
        transform: translate(0, 2px);
        /* -webkit-text-stroke-width: 5px; */
        /* letter-spacing: -2px; */
        /* font-size: 9em; */
        color: rgb(140 202 117 / 41%);
        opacity: 1;
    }

    100% {
        transform: translate(0, 0px);
        /* -webkit-text-stroke-width: 0.9px; */
        /* letter-spacing: -3px; */
        /* font-size: 8em; */
        /* color: rgb(140 202 117 / 41%); */
        opacity: 1;
    }
}


.homepage h1 {
    font-weight: 300;
    font-size: 17px;
    line-height: 1.5em;
    text-align: center;
}

.loading {
    height: 100%;
    width: 100%;
    position: fixed;
    background: #d3f9c5;
    top: 0;
    left: 0;
    z-index: 99999;
}

body.home .name-display {
    top: 80px;
    /* transform: scale(1.5); */
    /* right: -160px; */
    /* top: 180px; */
    /* animation: titleBounce 2s infinite cubic-bezier(0.65, 0.05, 0.36, 1); */
}

body.home.mobile .name-display {
    top: 150px;
}

.content div {
    /* transition: height 5s ease-out; */
}

body.home.mobile .banner-container img {
    height: 330px;
}

body.home.mobile .name-display h1 {
    font-size: 5em;
    /* z-index: 9999; */
    color: rgb(135 205 124 / 77%);
    width: 100%;
}

body.home.mobile .homepage .project-container .img {
    width: 100%;
    background-position: center;
}

body.mobile .name-display h1 {
    z-index: 9999;
}

body.home .name-display .firstname {
    /* animation: titleBounce 1s infinite cubic-bezier(0.65, 0.05, 0.36, 1); */
}

body.home .name-display .lastname {
    /* transform: scale(1.5); */
    /* top: 85px; */
    width: 80%;
}

/* Force static font loading to prevent issues with outlining overlapping vectors in the variable font version served by google fonts */
@font-face {
    font-family: robotoStatic;
    src: url(Roboto-Static.woff2);
}

.name-display h1 letter {
    font-family: robotoStatic;
}

.name-display h1 letter.animate {
    /* width: 41px; */
    display: inline-block;
    /* animation: titleBounce 2s infinite ease-in-out; */
    animation-name: titleBounce;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-direction: normal;
    transition: color 1s ease;
    /* opacity: 1; */
}

.name-display h1 letter.animate:hover {
    /* transform: translate(10px, 10px) !important; */
    /* animation: none !important; */
    /* transition: transform 1s; */
    /* animation-direction: reverse !important; */
    /* animation-duration: 3s !important; */
    /* color: rgb(140 202 117 / 41%); */
    /* transition: color .1s ease; */
}

.homepage .project-container {
    border-radius: 7px;
    display: flex;
    padding: 10px;
    transition: all 0.1s ease-in-out;
    /* flex-direction: row-reverse; */
    margin-bottom: 30px;
    box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, .12);
    cursor: pointer;
    user-select: none;
}

.homepage .project-container .img {
    animation: loading 3s infinite cubic-bezier(0.46, 0.03, 0.52, 0.96);
    /* background-image: url("/blog/smart-lock/quick.gif"); */
    width: 50%;
    height: 123px;
    /* background-size: cover; */
    /* width: 25%; */
    /* height: 135px; */
    /* z-index: 2; */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 15px;
    /* margin-left: 5px; */
    /* margin-top: auto; */
    /* margin-bottom: auto; */
    /* margin-left: 3%; */
}

.homepage .project-container h2 {
    /* margin-bottom: 0px; */
    margin: 0px;
    /* text-decoration: underline; */
    font-weight: 500;
    /* border-bottom: 1px black solid; */
}

.homepage .project-container .text-container {
    display: flex;
    flex-direction: column;
    margin-left: 15px;
}

.homepage .project-container p {
    margin-top: 5px;
    font-weight: 300;
}

.homepage .project-container h2:after {}

.homepage .project-container:hover {
    /* box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, .12); */
    box-shadow: 0px 6px 6px -3px rgba(0, 0, 0, 0.2), 0px 10px 14px 1px rgba(0, 0, 0, 0.14), 0px 4px 18px 3px rgba(0, 0, 0, .12);
    background-color: #c8e4c438;
    scale: 1.01;
}

.project-container .backicon {
    height: 100%;
    margin-top: auto;
    margin-bottom: auto;
    color: #6ec940e0;
    scale: 1.4;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

body.home .name-display h1 letter {
    opacity: 0;
}

.name-display h1 letter.underscore {
    opacity: 1;
    animation: blink 1s infinite ease;
}

.homepage .project-container.reverse {
    flex-direction: row-reverse;
}

.homepage .project-container:active {
    scale: .98;
    /* box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 5px 8px 0px rgba(0, 0, 0, 0.14), 0px 1px 14px 0px rgba(0,0,0,.12); */
    box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, .12);
    /* transition: all 5s linear; */
}

li.mdc-list-item:focus {
    /* background: red; */
    /* border: 2px black solid; */
    /* outline: 2px black solid; */
}

.content .contact .contact-type-container .label {
    display: inline-block;
    font-weight: 400;
}

.content .contact .contact-type-container .data {
    display: inline-block;
    margin-left: 10px;
    font-weight: 500;
    text-decoration: none;
    color: #78c455;
    transition: color .3s ease-in-out;
}

.content .contact h1 {
    font-size: 30px;
    font-weight: 300;
    margin: 0;
    margin-top: 10px;
    text-align: center;
}

.content .contact {
    width: 100%;
}

.content .contact .contact-type-container {
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

.content .contact .contact-type-container .data:hover {
    color: #5e9346;
}