/* Global Styles */
* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    font-weight: lighter;
    vertical-align: baseline;
    background: transparent;
}

html, body, h1, h2, h3, h4, h5, h6, p, button {
    font-family: 'Lucida Sans', 'Lato', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

a {
    color: #489fef;
}

button * {
    display: inline;
}

h1, h2 {
    font-size: xx-large;
}

h3, h4 {
    font-size: x-large;
}

h5, h6 {
    font-size: larger;
}

h1, h3, h5, strong {
    font-weight: bold;
}

img {
    max-width: 540px;
    max-height: 540px;
    border: 2px solid black;
}

li {
    margin: 4px 0px;
}

ul {
    margin-left: 2em;
    text-align: justify;
}

/* General Styles */
.clickable {
    cursor: pointer;
}

.content {
    padding: 1.5em 2em;
}

.content_block {
    margin: 0.5em 0px 2em 0px;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    column-gap: 2em;
    row-gap: 1em;
}

.hidden {
    display: none !important;
}

.img_flex_item {
    max-width: 540px;
}

.indent {
    margin-left: 2em;
}

.underline {
    text-decoration: underline;
}

.yt_embed {
    width: 560px;
    height: 315px;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid black;
    background-color: black;
}

@media screen and (max-width: 720px) {
    .wide_only {
        display: none !important;
    }
}

@media screen and (min-width: 721px) {
    .small_only {
        display: none !important;
    }
}

/* Header Styles */
#header {
    position: sticky;
    top: 0px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: auto;
    padding: 0.75em 1em;
    background-color: #2f4f4f;
    color: white;
}

@media screen and (max-width: 720px) {
    #header {
        flex-direction: column;
        justify-content: center;
        gap: 0.5em
    }

    #header * {
        text-align: center;
    }

    #header a {
        font-size: medium;
    }
}

#header-links a {
    display: inline-block;
    color: white;
    font-size: larger;
    padding: 0.5em 0.75em;
    border-radius: 8px;
    text-decoration: none;
    transition-property: all;
    transition-duration: 150ms;
}

#header-links a:hover {
    background-color: #1f2f2f;
    cursor: pointer;
}

#header-links a.active {
    background-color: #1f2f2f;
    pointer-events: none;
}

/* Code Samples section styles */
.code_sample_flex_item {
    min-width: 0px;
    max-width: 720px;
    flex-grow: 1;
}

.github_gist {
    margin: 8px 0px 4px 0px;
    max-height: 28em;
    min-height: 7em;
    overflow-y: scroll;
    outline: 1px solid gray;
    border-radius: 16px;
    transition: max-height 300ms;
}

.github_gist.minimized {
    max-height: 7em;
}

.gist_heading {
    position: sticky;
    top: 0px;
    z-index: 5;
    padding: 0.5em 1em;
    margin-bottom: 4px;
    width: auto;
    color: #676767;
    background-color: #F5F5F5;
}

.gist_heading h1,
.gist_heading h2,
.gist_heading h3,
.gist_heading h4,
.gist_heading h5,
.gist_heading h6,
.gist_heading button {
    display: inline-block;
}

.gist_toggle {
    padding-left: 0.33em;
    font-size: 0.85em;
    color: #5f5f5f;
    text-decoration: underline;
}

.gist_wrapper div {
    margin: 0px !important;
}

.gist_heading .fa-circle-chevron-up, .gist_heading .fa-circle-chevron-down {
    margin-left: 2px;
    font-size: 1.12em;
    color: #767676;
}

/* Contact section styles */
#contact p {
    margin: 1em 0px;
}

#contact p:first-child {
    margin-top: 0px;
}

#contact p:last-child {
    margin-bottom: 0px;
}