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

h1,
h2,
h3 {
    line-height: 1.2
}

h2 {
    font-size: 1.25em;
    padding-top: .75em;
    padding-bottom: .5em;
}

h3 {
    font-size: 1.1em;
    padding-top: .3em;
    padding-bottom: .2em;
}

body {
    font-family: 'Roboto', sans-serif;
    width: 80%;
    max-width: 750px;
    line-height: 1.4;
    font-size: 1rem;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

footer {
    padding-bottom: 1%;
    text-align: center;
    position: relative;
    margin-top: auto;
    min-height: 4%;
}

footer button {
    background: none;
    border: none;
}

.social-media-icon-container {
    margin-top: 1rem;
    display: inline-block;
}

.social-media-icon-container:hover svg {
    fill: lightseagreen;
}

.social-media-icons a,
.social-media-icons button,
.social-media-icons svg {
    height: 1.25rem;
}

#content {
    padding-top: 12vh;
}

pre {
    line-height: 1.2;
    margin: 1rem 0;
    background-color: #f8f8f8;
    border-radius: 0.5rem;
    overflow-x: auto;
    padding: 1em;
}

code {
    padding: .2em .4em;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    background-color: #f8f8f8;
    border-radius: 0.25rem;
}

img {
    max-width: 100%;
    max-height: 100%;
}

a {
    color: black;
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    color: lightseagreen;
}

ol {
    list-style-type: none;
}

ul {
    list-style-position: inside;
}

li {
    margin-bottom: 1%;
    margin-left: 2%;
    margin-right: 2%;
}

.project-list li {
    margin-left: 0;
    margin-right: 0;
}

figure figcaption {
    text-align: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 8vh;
    position: fixed;
    top: 0%;
    padding-top: 1%;
    padding-bottom: 1%;
    width: 80%;
    max-width: 750px;
    background-color: white;
}

nav a {
    font-size: x-large;
}

#logo {
    font-size: x-large;
    font-weight: bold;
}

.nav-links {
    display: flex;
    justify-content: space-around;
    width: 30%;
}

.nav-links li {
    list-style: none;
}

#projects {
    margin-top: 10vh;
    text-align: center
}

.project {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(0, 100%);
    grid-gap: 7%;
    grid-template-areas: "left right";
    margin-bottom: 3vh;
    height: 20vh;
}

.project-image {
    grid-area: right;
    max-width: 100%;
    max-height: 100%;
}

.project-title {
    padding-top: 10rem;
    font-size: x-large;
}

.project-description {
    grid-area: left;
    text-align: justify;
}

.side-by-side {
    margin-top: 2%;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.carousel {
    margin-top: 20vh;
    height: 60vh;
}

.carousel-cell {
    display: block;
    width: 80%;
    max-height: 75vh;
    object-fit: contain;
}

.carousel img {
    display: block;
    width: 80%;
    max-height: 75vh;
    object-fit: contain;
}

@media screen and (min-width: 768px) {
    .carousel img {
        height: 25rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        width: 40%;
    }

    nav a {
        font-size: large;
    }

    #logo {
        font-size: large;
    }

    .carousel {
        margin-top: 10vh;
        height: auto;
    }

    .carousel img {
        width: 100%;
        max-height: 50vh;
        height: auto;
    }
}

.syntax_highlight {
    .hll {
        background-color: #f8f8f8;
        border: 1px solid #ccc;
        padding: 6px 10px;
        border-radius: 3px;
    }

    .c {
        color: #999988;
        font-style: italic;
    }

    .err {
        color: #a61717;
        background-color: #e3d2d2;
    }

    .k {
        font-weight: bold;
    }

    .o {
        font-weight: bold;
    }

    .cm {
        color: #999988;
        font-style: italic;
    }

    .cp {
        color: #999999;
        font-weight: bold;
    }

    .c1 {
        color: #999988;
        font-style: italic;
    }

    .cs {
        color: #999999;
        font-weight: bold;
        font-style: italic;
    }

    .gd {
        color: #000000;
        background-color: #ffdddd;
    }

    .gd .x {
        color: #000000;
        background-color: #ffaaaa;
    }

    .ge {
        font-style: italic;
    }

    .gr {
        color: #aa0000;
    }

    .gh {
        color: #999999;
    }

    .gi {
        color: #000000;
        background-color: #ddffdd;
    }

    .gi .x {
        color: #000000;
        background-color: #aaffaa;
    }

    .go {
        color: #888888;
    }

    .gp {
        color: #555555;
    }

    .gs {
        font-weight: bold;
    }

    .gu {
        color: #800080;
        font-weight: bold;
    }

    .gt {
        color: #aa0000;
    }

    .kc {
        font-weight: bold;
    }

    .kd {
        font-weight: bold;
    }

    .kn {
        font-weight: bold;
    }

    .kp {
        font-weight: bold;
    }

    .kr {
        font-weight: bold;
    }

    .kt {
        color: #445588;
        font-weight: bold;
    }

    .m {
        color: #009999;
    }

    .s {
        color: #dd1144;
    }

    .n {
        color: #333333;
    }

    .na {
        color: teal;
    }

    .nb {
        color: #0086b3;
    }

    .nc {
        color: #445588;
        font-weight: bold;
    }

    .no {
        color: teal;
    }

    .ni {
        color: purple;
    }

    .ne {
        color: #990000;
        font-weight: bold;
    }

    .nf {
        color: #990000;
        font-weight: bold;
    }

    .nn {
        color: #555555;
    }

    .nt {
        color: navy;
    }

    .nv {
        color: teal;
    }

    .ow {
        font-weight: bold;
    }

    .w {
        color: #bbbbbb;
    }

    .mf {
        color: #009999;
    }

    .mh {
        color: #009999;
    }

    .mi {
        color: #009999;
    }

    .mo {
        color: #009999;
    }

    .sb {
        color: #dd1144;
    }

    .sc {
        color: #dd1144;
    }

    .sd {
        color: #dd1144;
    }

    .s2 {
        color: #dd1144;
    }

    .se {
        color: #dd1144;
    }

    .sh {
        color: #dd1144;
    }

    .si {
        color: #dd1144;
    }

    .sx {
        color: #dd1144;
    }

    .sr {
        color: #009926;
    }

    .s1 {
        color: #dd1144;
    }

    .ss {
        color: #990073;
    }

    .bp {
        color: #999999;
    }

    .vc {
        color: teal;
    }

    .vg {
        color: teal;
    }

    .vi {
        color: teal;
    }

    .il {
        color: #009999;
    }

    .gc {
        color: #999;
        background-color: #EAF2F5;
    }
}