/* Justification: Only underline links when the mouse hovers over them */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Justification: Shrink images to fit the content area */
article img {
    max-width: 100%;
}

/* Justification: override Bootstrap's default inline code styling */
article code {
    padding: 0px 3px;
    background-color: #0000000C;
    color: #545454;
}

article a code {
    color: #0d6efd !important;
}

/* Justification 1: prevent code in fences from getting background */
/* Justification 2: prevent extra line from appearing in fenced code */
article pre code {
    background-color: transparent;
    padding: 0px;
}

/* Justification: Refine Hugo's Chroma styling */
pre {
    background-color: #f8f8f8 !important;
    border: 1px solid #dddddd;
    padding: .5em;
    border-radius: 5px;
    line-height: 150%;
    overflow-x: auto;
}

/* Apply this to top-level layout elements */
.content-limited-width {
    max-width: 900px;
    margin: auto;
}

/* The rest is Bootstrap overrides for the responsive top navigation bar */

.navbar {
    background-color: inherit !important;
}

.navbar-brand a {
    color: white !important;
    text-decoration: none;
}

.nav-link {
    color: white !important;
    opacity: 0.55;
}

.nav-link:hover {
    color: white !important;
    opacity: 0.8;
    text-decoration: none;
}

.navbar button {
    background-color: rgba(255, 255, 255, .1) !important;
    color: rgba(255, 255, 255, .55) !important;
    border: 1px solid rgba(255, 255, 255, 0);
}

.navbar button:hover {
    background-color: rgba(255, 255, 255, .2) !important;
    border: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .8) !important;
}

.navbar .container-fluid {
    padding: 0px;
}

.dropdown-menu a:hover {
    color: black;
    opacity: 1;
    background-color: #67217A11;
    text-decoration: none;
}

.dropdown-menu a:focus {
    background-color: #67217A;
    color: white;
}

#logo-large a:hover {
    text-decoration: none;
}

/* things that change when the hamburger menu is shown */
.show-when-small {
    display: none !important;
}

.show-when-large {
    display: flex !important;
}

@media only screen and (max-width: 768px) {
    .show-when-small {
        display: flex !important;
    }

    .show-when-large {
        display: none !important;
    }

    .navbar .container-fluid {
        padding: 0em 1em;
    }
}