* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    font-family: 'Avenir Next', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --heading-color: 187, 204, 255;
    --accent-color: 255, 221, 170;
    --background-color: 73, 78, 94;
}

body {
    background-color: rgb(var(--background-color));
}

h1 {
    font-size: 2rem;
    color: rgb(var(--heading-color));
}

h2 {
    font-size: 2rem;
    color: rgb(var(--heading-color));
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    color: rgb(var(--heading-color));
}

code {
    font-family: 'Source Code Pro', monospace;
    font-weight: normal;
}

.scene {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 10vh max(10px, 10vw);
}

.scene:nth-child(1) {
    flex-direction: row;
    min-height: 80vh;
}

.scene:nth-child(2) {
    flex-direction: column;
    background: #222;
}

.scene:nth-child(3) {
    flex-direction: row-reverse;
}

.scene:not(:first-child) > .scene-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
    justify-content: center;
}

.scene-text > p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 40ch;
}

.comment {
    color: rgb(var(--accent-color));
}

#terminal {
    font-size: 1rem;
    min-height: 20lh;
    width: min(80ch, 100%);
    background-color: #000;
    border-radius: 0.75rem;
    border: 1px solid #444;
    box-shadow: 0 0 25px #2238;
    line-height: 1.5;

    transition: ease-in 0.2s;
}

#terminal:hover {
    border-color: rgba(var(--accent-color), 0.5);
    box-shadow: 0 0 50px rgba(var(--accent-color), 0.25);
}

#terminal-header {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    height: 1.75rem;
    border-bottom: 1px solid #333;
    border-radius: 0.75rem 0.75rem 0 0;
    background-color: #222;
}

#terminal-buttons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    flex-flow: row nowrap;
}

#terminal-buttons > div {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

#terminal-close {
    background-color: #f44;
}

#terminal-minimize {
    background-color: #fb2;
}

#terminal-expand {
    background-color: #2c2;
}

#terminal-body {
    padding: 0.5rem 0.75rem;
    color: #eee;
}

.shell-cmd::before {
    content: '> ';
    color: #0f0;
}

@keyframes blink-cursor {
    0%, 49.9%, 100% {
        border-color: orange;
    }
    50%, 99.9% {
        border-color: transparent;
    }
}

.shell-cmd:last-child {
    border-right: 1px solid orange;
    animation: blink-cursor 1s infinite;
}

.shell-cmd::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 100%;
}

.shell-output {
    color: #abc;
}

.commit-hash {
    color: #e4e410;
}

.commit-repo {
    color: #f14c4c;
}

.commit-message {
    margin-left: 4ch;
}

.commit-link {
    margin-left: 4ch;
    color: #8cf;
}

.deck {
	list-style: none;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.card {
    height: fit-content;
    max-width: 300px;
    background-color: #000a;
    overflow: hidden;
    border-radius: 1.75rem;
    cursor: pointer;

    transition: ease-in 0.4s;
    border: 1px solid #444;
}

.card img {
    height: 70%;
    padding: 10px;
}

/* .card-front-label { */
/*     height: 30%; */
/*     padding: 10px 20px 20px; */
/*     opacity: 0; */
/*     transition: ease-in-out 0.2s; */
/* } */

/* .card-front-label h3 { */
/*     color: #fffc; */
/* } */

/* .card-front-label p { */
/*     color: #defa; */
/* } */

.card:hover, .card:has(a:focus) {
    transition: 0.4s;
    border-color: rgba(var(--accent-color), 0.5);
    box-shadow: 0 0 25px rgba(var(--accent-color), 0.2);
}

/* .card-back { */
/*     /* Reset. */
/*     border: none; */
/**/
/*     width: min(90%, 600px); */
/*     position: fixed; */
/*     top: 50%; */
/*     left: 50%; */
/*     transform: translate(-50%, -50%); */
/**/
/*     background-color: #ddd; */
/*     border-radius: 0.75rem; */
/* } */

/* .card-back::backdrop { */
/*     background-color: #000a; */
/* } */

/* .card-back-close-btn { */
/*     /* Reset. */
/*     all: unset; */
/*     cursor: pointer; */
/*     outline: revert; */
/**/
/*     position: absolute; */
/*     top: 0; */
/*     right: 0; */
/*     padding: 1rem; */
/* } */

/* .card-back-close-btn > img { */
/*     height: 1.5rem; */
/* } */

/* .card-back-content { */
/*     padding: 2rem; */
/* } */

/* .card-back-content > * { */
/*     color: initial; */
/* } */

/* .card-back-summary { */
/*     font-family: 'Source Code Pro', monospace; */
/* } */

/* .card-back-story { */
/*     padding: 1rem 0; */
/* } */

/* .card-back-story > p { */
/*     padding: 0.5rem 0; */
/* } */

.technology-list {
    display: flex;
    flex-flow: row wrap;
    column-gap: 0.5rem;
}

.technology-list > li {
    display: inline;
}

.technology-list > li + li:before {
    content: '•';
    margin-right: 0.5rem;
    color: #aaa;
}

.social-links {
    /* Reset. */
    list-style: none;

    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    padding: 5px;
    border: 1px solid #555;
    box-shadow: 0 0 25px #2236;
    border-radius: 25px;
    background-color: #000a;
}

.social-link {
    text-decoration: none;

    display: flex;
    align-items: center;
    opacity: 0.9;
    border-radius: 5px;
}

.social-link-container:first-child > .social-link {
    border-radius: 20px 20px 5px 5px;
}

.social-link-container:last-child > .social-link {
    border-radius: 5px 5px 20px 20px;
}

.social-text {
    color: #fff;
    margin: 10px;
}

.social-icon {
    transition: ease-in-out 0.2s;
    height: 50px;
    width: 50px;
    object-fit: contain;
    margin: 10px;
    opacity: 1;
}

.social-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #bbb;
}

.social-handle {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.8rem;
}

.social-handle::before {
    content: "@";
    color: #bbb;
}

.social-link {
    transition: ease-in-out 0.2s;
}

.social-link:hover, .social-link:focus {
    opacity: 1;
    background-color: #444;
}

.social-link:hover > .social-icon, .social-link:focus > .social-icon {
    transform: scale(1.1);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
    .social-link:hover, .social-link:focus {
        .social-title {
            transition: ease-in-out 0.2s;
            background-color: #fff;
            background-clip: text;
            -webkit-background-clip: text;
            text-fill-color: transparent;
            -webkit-text-fill-color: transparent;
        }

        .purple {
            background-image: linear-gradient(100deg, #d9f, #f9a 80%);
        }

        .blue {
            background-image: linear-gradient(120deg, #6bf, #8da 10%, #6bf);
        }
    }
}
