:root {
    --text-color: #333;
    --accent-color: #12a8ce;
    --background-color: #ffffff;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    /* background-color: #f9f1d9; (warm and cozy, but not great for images) */
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
    font-size: 1.05em;
    color: var(--text-color);
    line-height: 1.5em;
    font-weight: 400;
    padding: 20px;
}

table.index {
    width: 100%;
    border: 0px;
    border-spacing: 0px;
    border-collapse: separate;
    margin-right: auto;
    margin-left: auto;
}

table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
    border-spacing: 2px;
}

td {
    padding: 10px 0px;
    vertical-align: top;

}

td.project-media {
    width: 25%;
    vertical-align: text-top;
}

td.project-info {
    width: 75%;
    padding-bottom: 20px;
    padding-left: 15px;
}

table.index, table.index > tbody > tr > td {
    border: none;
    /* padding: 0px; */
    /* padding-bottom: 10px; */
}


table {
    margin: auto;
}

/* alternate row background colors in tables */
tr:nth-child(odd){
    background-color: lightgray;
}

/* ...unless the table is of class `index`, or it's a header */
table.index > tbody > tr:nth-child(odd), thead>tr:nth-child(odd){
    background-color: var(--background-color);
}

/* CSS tooltips (adapted from the w3 tutorial) */
/* tooltip container */
.tooltip {
    position: relative;
    /* display: inline-block; */
    text-decoration: underline;
    text-decoration-style: dotted;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    padding: 5px 2px;
    border-radius: 7px;

    /* Position the tooltip text */
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;

    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 0.4s;
}

/* Tooltip arrow */
.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tldr {
    background-color: #f2f2f2;
    border: 1px solid black;
    border-collapse: unset;
    width: unset;
    overflow-x: auto;
    margin: 1em 0;
}

.tldr th {
    background-color: lightgray;
    text-align: left;
    padding: 5px 10px;
    border-bottom: 1px solid black;
}

.tldr td {
    padding: 5px 10px;
}


.project-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

.project-title {
    font-weight: bold;
}

/*link hover animation*/
/*https://css-tricks.com/having-fun-with-link-hover-effects/*/
/* a, #fakelink {
    background-image: linear-gradient(to bottom, var(--accent-color) 0%, var(--accent-color) 100%);
    background-position: 0 100%;
    background-repeat: repeat-x;
    background-size: 2px 2px;
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;

    -webkit-transition: background-size 0.4s;
    -moz-transition: background-size 0.4s;
    -o-transition: background-size 0.4s;
    -ms-transition: background-size 0.4s;
    transition: background-size 0.4s;
}
a:hover, #fakelink:hover {
    background-size: 2px 50px;
} */

a {
    color: black;
}
    
a:hover {
    text-decoration-style: wavy;
}

#fakelink {
    text-decoration: underline;
    cursor: pointer;
}

#fakelink:hover {
    text-decoration-style: wavy;
}


img {
    max-width: 100%;
}

highlight {
    background-color: lightgoldenrodyellow;
}

#headshot:hover {
    background-color: var(--background-color);
}

/*https://stackoverflow.com/questions/17731457/hide-show-content-list-with-only-css-no-javascript-used*/
#box, #trigger-e, #trigger1, #trigger2, #trigger3, #trigger4, #trigger5 {
    display: none;
    line-height: 1.5em;
    background: rgb(219, 219, 219);
}
#trigger-e:checked~#box, #trigger1:checked~#box, #trigger2:checked~#box, #trigger3:checked~#box, #trigger4:checked~#box, #trigger5:checked~#box {
    display: block;
    text-align: left;
    font-size: 0.8em;
    padding: 1% 2%;
}


.content-container {
    max-width: 70%;
    margin: 3em auto;
    padding: 0 2em;
    padding-top: 1em;
}

h1, h2, h3 {
    font-family: 'Libre Baskerville', sans-serif;
    margin-bottom: 0.3em;
    padding: 0;
    line-height: 1.3em;
    font-weight: 400;
}

p {
    margin-top: 0;
    padding: 0;
}

h1 {
    font-size: 1.6em;
}

h2 {
    font-size: 1.35em;
}

h3 {
    font-size: 1.1em;
}

hr {
    border: 1px solid lightgray;
}

b {
    color: #333;
}

#post-metadata {
    color: #999999;
}

#post-date, #cv-metadata {
    color: #999999;
}

/* #cv-metadata {
} */

/* .posts {
} */

.project-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

nav ul li {
    float: right;
}

nav ul li a {
    font-family: 'Libre Baskerville', sans-serif;
    display: block;
    text-align: center;
    padding: .4em .7em;
    font-weight: 300;
    text-decoration: underline;
}

nav ul li a:hover {
    text-decoration-style: wavy;
}

nav ul li a.active {
    text-decoration-style: wavy;
    color: var(--accent-color);
}

footer {
    font-size: 0.8em;
    color: #999999;
    padding-bottom: 3em;
}

/*resize for more beautiful mobile viewing*/
@media screen and (max-width: 600px) {
    nav ul li {float: none;}
    nav ul li a {border-bottom-color: black;}
    #intro {overflow-y: auto;}
}

/*center name; table overflow*/



/*inline code formatting*/
.inline-code {
    font-family: Inconsolata, monospace;
    font-size: 0.9em;
    background-color: #f8f8f8;
    color: #ef2857;
    border: 1px solid #ccc;
    padding: 1px 3px;
    border-radius: 3px;
}

pre {
  overflow-x: auto;
  white-space: pre-wrap;
  white-space: -moz-pre-wrap;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;
  word-wrap: break-word;
}

/*code block formatting*/
/*based on https://github.com/aahan/pygments-github-style/blob/master/jekyll-github.css */
pre, code {font: 0.9em Inconsolata, monospace;}
.highlight pre, pre, .highlight .hll { background-color: #f8f8f8; border: 1px solid #ccc; padding: 6px 10px; border-radius: 3px; }
/*comment*/
.highlight .c { color: #999988; font-style: italic; }
/*error*/
.highlight .err { color: #a61717; background-color: #e3d2d2; }
/*keyword*/
.highlight .k { font-weight: bold; }
/*operator*/
.highlight .o { font-weight: bold; }
/*comment multiline*/
.highlight .cm { color: #999988; font-style: italic; }
/*comment preproc*/
.highlight .cp { color: #999999; font-weight: bold; }
/*comment single*/
.highlight .c1 { color: #999988; font-style: italic; }
/*comment special*/
.highlight .cs { color: #999999; font-weight: bold; font-style: italic; }
/*generic deleted*/
.highlight .gd { color: #000000; background-color: #ffdddd; }
/*generic deleted specific*/
.highlight .gd .x { color: #000000; background-color: #ffaaaa; }
/*generic emph*/
.highlight .ge { font-style: italic; }
/*generic error*/
.highlight .gr { color: #aa0000; }
/*generic heading*/
.highlight .gh { color: #999999; }
/*generic inserted*/
.highlight .gi { color: #000000; background-color: #ddffdd; }
/*generic inserted specific*/
.highlight .gi .x { color: #000000; background-color: #aaffaa; }
/*generic output*/
.highlight .go { color: #888888; }
/*generic prompt*/
.highlight .gp { color: #555555; }
/*generic strong*/
.highlight .gs { font-weight: bold; }
/*generic subheading*/
.highlight .gu { color: #800080; font-weight: bold; }
/*generic traceback*/
.highlight .gt { color: #aa0000; }
/*keyword constant*/
.highlight .kc { font-weight: bold; }
/*keyword declaration*/
.highlight .kd { font-weight: bold; }
/*keyword namespace*/
.highlight .kn { font-weight: bold; }
/*keyword pseudo*/
.highlight .kp { font-weight: bold; }
/*keyword reserved*/
.highlight .kr { font-weight: bold; }
/*keyword type*/
.highlight .kt { color: #445588; font-weight: bold; }
/*literal number*/
.highlight .m { color: #009999; }
/*literal string*/
.highlight .s { color: #dd1144; }
/*name*/
.highlight .n { color: #333333; }
/*name attribute*/
.highlight .na { color: teal; }
/*name bulletin*/
.highlight .nb { color: #0086b3; }
/*name class*/
.highlight .nc { color: #445588; font-weight: bold; }
/*name constant*/
.highlight .no { color: teal; }
/*name entity*/
.highlight .ni { color: purple; }
/*name exception*/
.highlight .ne { color: #990000; font-weight: bold; }
/*name function*/
.highlight .nf { color: #990000; font-weight: bold; }
/*name namespace*/
.highlight .nn { color: #555555; }
/*name tag*/
.highlight .nt { color: navy; }
/*name variable*/
.highlight .nv { color: teal; }
/*operator word*/
.highlight .ow { font-weight: bold; }
/*text whitespace*/
.highlight .w { color: #bbbbbb; }
/*literal number float*/
.highlight .mf { color: #009999; }
/*literal number hex*/
.highlight .mh { color: #009999; }
/*literal number integer*/
.highlight .mi { color: #009999; }
/*literal number oct*/
.highlight .mo { color: #009999; }
/*literal string backtick*/
.highlight .sb { color: #dd1144; }
/*literal string char*/
.highlight .sc { color: #dd1144; }
/*literal string doc*/
.highlight .sd { color: #dd1144; }
/*literal string double*/
.highlight .s2 { color: #dd1144; }
/*literal string escape*/
.highlight .se { color: #dd1144; }
/*literal string heredoc*/
.highlight .sh { color: #dd1144; }
/*literal string interpol*/
.highlight .si { color: #dd1144; }
/*literal string other*/
.highlight .sx { color: #dd1144; }
/*literal string regex*/
.highlight .sr { color: #009926; }
/*literal string single*/
.highlight .s1 { color: #dd1144; }
/*literal string symbol*/
.highlight .ss { color: #990073; }
/*name builtin pseudo*/
.highlight .bp { color: #999999; }
/*name variable class*/
.highlight .vc { color: teal; }
/*name variable global*/
.highlight .vg { color: teal; }
/*name variable instance*/
.highlight .vi { color: teal; }
/*literal number integer long*/
.highlight .il { color: #009999; }
/*?*/
.highlight .gc { color: #999; background-color: #EAF2F5; }

/* todo: code, colors */

/*@media (prefers-color-scheme: dark) {
    body {
        background-color: #333;
        font-weight: 300;
        color: white;
    }


    a, #fakelink {
        color: turquoise;
    }

    nav ul li a {
        color: white;
    }

    #box, #trigger-e, #trigger1, #trigger2, #trigger3, #trigger4, #trigger5 {
        background: #444;
    }

    .highlight pre, pre, .highlight .hll {
        background-color: black;
        border: 1px solid #ccc;
        padding: 6px 10px;
        border-radius: 3px;
    }
}*/
