:root {
    --background: #2E333F;
    --background-light: #4D5668;
    --text-primary: #E4EAF1;
    --text-light: rgb(162, 168, 181);
    --text-dark: #070d1d;
    --text-title: #ff717b;
    --text-subtitle: #eaa48a;
    --text-subsubtitle: #EACB8A;
    --text-positive: #8aea9c;
}

@font-face {
    font-family: "roboto";
    src: url(assets/fonts/Roboto-Light.ttf);
}

@font-face {
    font-family: "roboto-bold";
    src: url(assets/fonts/Roboto-Bold.ttf);
}

@font-face {
    font-family: "sono";
    src: url(assets/fonts/Sono-Regular.woff2);
}

@font-face {
    font-family: "yesevaOne";
    src: url(assets/fonts/YesevaOne-Regular.ttf);
}

body,
html {
    background-color: var(--background);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100vw;

    font-family: "roboto";
    color: var(--text-primary);
    background-color: var(--background);
    font-size: 1rem;
}

b {
    font-family: "roboto-bold";
}

p.body {
    text-indent: 50px;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

li {
    margin-top: 5px;
}

h1 {
    font-size: 3em;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-bottom: 0;
    color: var(--text-title);
    font-family: "sono";
}

h2 {
    margin-top: 15px;
    margin-bottom: 0px;
    font-size: 1.5em;
    color: var(--text-subtitle);
}

h3 {
    color: var(--text-subsubtitle);
    margin-bottom: 5px;
}

h2,
h3 {
    padding-top: 15px;
    font-family: "sono";
}

a:link {
    color: #baddf0;
}

a:visited {
    color: #8bb2d9;
}

a:hover {
    color: #afcbe6;
}

a:active {
    color: #ffffff;
}

.article {
    margin: auto;
    padding: 16px;
    max-width: 700px;
    width: calc(100% - 32px);
    height: 100%;
}

.text-light {
    color: var(--text-light);
}

.text-dark {
    color: var(--text-dark);
}

.header {
    display: flex;
    flex-flow: row-reverse wrap;
    margin: 0;
    padding: 0;
    padding-top: 16px;
    width: 100%;
}

.portrait {
    flex-grow: 1;
    position: relative;
    min-width: 200px;
    max-width: 400px;
    padding-left: 16px;
    margin: auto;
    width: min-content;
}


@media screen and (max-width: 640px) {
    .portrait {
        padding: 0;
    }
}

.portrait img {
    border-radius: 50%;
    margin: 0;
    padding: 0;
    aspect-ratio: 1 / 1;
    width: 100%;
}

.title {
    padding-bottom: 15px;
    background-color: var(--background);
    flex-grow: 1;
    display: flex;
    flex-flow: column;
    justify-content: center;
    /* align-content: center; */
    width: min-content;
}

.title h1 {
    margin-top: 0;
}

.projects {
    margin-bottom: 50px;
    border-radius: 25px;
}

.project-row {
    display: flex;
    flex-flow: row wrap;
    padding: 0;
    margin: 0;
}

.project-box {
    /* min-width: 100px; */
    height: 300px;
    border-radius: 8px;
    margin: 5px;
    background-color: var(--background-light);
    position: relative;
    flex-grow: 1;
    flex-basis: min-content;
    object-fit: cover;
    overflow: hidden;
    justify-content: center;
    align-content: center;
    color: white;
}

.large-project-box {
    height: 500px;
}

.project-image {
    position: absolute;
    min-height: 100%;
    width: 100%;
    top: 50%;
    left: 0;
    object-fit: cover;
    transform: translateY(-50%);
}

.project-box-title {
    position: absolute;
    left: 0px;
    bottom: 0px;
    width: 100%;
    padding: 0.5em;
    font-size: 1rem;
    font-weight: 900;
    /* text-shadow: 0px 0px 1em var(--text-dark); */
    color: white;
    /* text-align:center; */
    background-color: var(--background-light);
    /* border-radius: 0px 8px 0px 0px; */
}

.tool-title {
    color: var(--text-subsubtitle);
}

.tool-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    border-radius: 15px;
}

.tool {
    margin: 20px;
    justify-content: center;
    max-width: 50px;

}

.tool-label {
    text-align: center;
    font-family: "sono";
}

.tool-img {
    /* object-fit: cover; */
    width: 100%;
}

.contact-me {
    h2 {
        color: var(--text-positive);
    }
}

.credits {
    margin-top: 50px;
    color: var(--text-light);
}

/* Set your aspect ratio */
.video-container {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-bottom: 56.25%;
    margin: auto;
    /* creates a 16:9 aspect ratio */
}

.video-container iframe,
.video-container video,
.video-container embed {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%);
    height: 100%;
    max-width: 100%;
    border-radius: 8px;
}

/* And set the max-width of the parent element */
.video-wrap {
    padding-top: 20px;
    height: 100%;
    max-height: 600px;
    margin: auto;
}

.text-label {
    text-align: center;
    color: var(--text-light);
}

.home-nav {
    width: 100%;
    text-align: right;
    margin: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1) translateY(-50%);
    }

    50% {
        transform: scale(1.1) translateY(-50%);
    }

    100% {
        transform: scale(1) translateY(-50%);
    }
}

.pulse {
    animation: pulse 5s infinite;
}