:root {
    --link-blue: #3579F6;
}

body {
    margin: 0;
    font-family: "Fira Sans", Arial, sans-serif;
    font-size: 16px;
    color: #000;
}

#content {
    width: 100%;
    padding: 64px 32px;
    box-sizing: border-box;
    text-align: center;
}

#portrait {
    display: block;
    max-width: 50%;
    margin: 16px auto 42px auto;
    border-radius: 4px;
}

h1 {
    font-size: 42px;
    /* margin-top: 0; */
}

h2 {
    font-size: 24px;
    margin-top: 0;
}

p {
    margin-top: 0;
}

a, a:visited {
    text-decoration: none;
    color: var(--link-blue);
}

a[target="_blank"]::after {
    content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==);
    margin-left: 6px;
}

a:hover, a:focus {
    text-decoration: underline;
}

.back {
    display: block;
    text-align: left;
}

.back a::before {
    display: inline-block;
    content: "";
    border-right: 2px solid var(--link-blue);
    border-bottom: 2px solid var(--link-blue);
    padding: 4px;
    margin-right: 4px;
    transform: rotate(135deg)
}

#portfolio-links {
    list-style: none;
    padding: 0;
    margin: 42px 0;
}

#portfolio-links li {
    margin: 16px 0;
}

#portfolio-links a, #portfolio-links a:visited {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 6px;
    border: 1px solid var(--link-blue);
    border-radius: 4px;
}

.content-section {
    margin-top: 42px;
    padding-top: 32px;
    border-top: 1px solid #999;
}

.image-showcase img {
    display: block;
    width: 100%;
    margin-top: 32px;
    border-radius: 4px;
}

button {
    all: unset;
}

.before-after button {
    color: var(--link-blue);
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid var(--link-blue);
    cursor: pointer;
}

.before-after button:focus {
    text-decoration: underline;
}

.before-after button.before {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.before-after button.after {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.before-after button.active {
    background: var(--link-blue);
    color: #fff;
    cursor: default;
}

#footer {
    width: 100%;
    padding: 32px;
    border-top: 1px solid #999;
    box-sizing: border-box;
    text-align: center;
    color: #777;
}

@media only screen and (min-width: 768px) {
    #content {
        width: 704px;
        padding: 64px 0;
        margin: 0 auto;
    }

    #portrait {
        width: 180px;
    }

    .image-showcase img {
        border-radius: 8px;
    }
}