:root {
    --base03: #002b36;
    --base02: #073642;
    --base01: #586e75;
    --base00: #657b83;
    --base0: #839496;
    --base1: #93a1a1;
    --base2: #eee8d5;
    --base3: #fdf6e3;
    --yellow: #b58900;
    --orange: #cb4b16;
    --red: #dc322f;
    --magenta: #d33682;
    --violet: #6c71c4;
    --blue: #268bd2;
    --cyan: #2aa198;
    --green: #859900;
}

.dark {
    --bg: var(--base03);
    --text: var(--base3);
    --img-border: var(--base3);
    --theme-switch-icon: "🌝";
}

.light {
    --bg: var(--base3);
    --text: var(--base03);
    --img-border: var(--base03);
    --theme-switch-icon: "🌚";
}

/* set background color of page and text color */
body {
    color: var(--text);
    background: var(--bg);
    margin-bottom: 200px;
    font-family: Helvetica Neue,Helvetica,Arial,sans-serif;
    font-size: 14pt;
    transition: background 250ms ease-in-out, color 500ms ease-in-out;
}

h1 {
    margin: auto;
    text-align: center;
    color: var(--magenta);
}

h2 {
    margin: auto;
    text-align: center;
    color: var(--green);
}

h3 {
    margin: auto;
    text-align: center;
    color: var(--orange);
}

p {
    max-width: 700px;
    margin: auto;
    text-indent: 30px;
}

/* Omit indenting after headings */
/* h1+p, h2+p, h3+p, h4+p, h5+p, h6+p { text-indent: 0px } */

.personal-image img {
    display: block;
    margin: auto;
    border-radius: 0.5rem;
    /* border: solid 0.5rem var(--img-border); */
    height: auto;
    max-width: 300px;
    max-height: 300px;
}

.gallery img {
    all: initial;
    margin: auto;
    border-radius: 1rem;
    padding: 5px;
}

.gallery {
    max-width: 80%;
    /* border: solid 0.25rem var(--img-border);
    border-radius: 0.5rem; */
}

.center-content {
    width: 100%;
    display: flex;
    justify-content: center;
}

.icon {
    border: none;
    width: 3em;
    height: 3em;
    display: inline;
    vertical-align: middle;
}

.page-links {
    margin: auto;
    text-align: center;
    font-size: 35px;
    border: solid 0.1rem var(--img-border);
    border-radius: 0.5rem;
    max-width: 400px;
    font-family: "Source Code Pro", monospace;
}

a {
    color: var(--cyan);
    text-decoration: none;
}

a:hover {
    color: var(--brwhite);
    text-decoration: none;
}

footer {
    text-align: center;
    font-variant: small;
}

.theme-switch::before {
    content: var(--theme-switch-icon);
    position: absolute;
    top: 0;
    right: 0;
}

.home-button::before {
    content: "🏕";
    position: absolute;
    top: 0;
    left: 0;
}

/* Publications page styles */
#publications-container {
    /* width: 80%;
    max-width: 800px; */
    width: 800px;
    max-width: 80%;
    margin: 0 auto;
    padding: 10px;
    font-size: 1rem;
}

.publication-card {
    color: #002b36;
    border: 2px solid var(--img-border);
    border-radius: 20px;
    padding: 15px;
    margin: 15px 0;
    background-color: var(--base3);
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}

.publication-card h3 {
    font-size: 1.3rem;
    margin: 0px 0px 15px 0px;
    text-align: left;
    color: #333;
}

.publication-card p {
    text-align: left;
    margin: 0px 0px 5px 0px;
    line-height: 1.25;
    text-indent: 0px;
}

.publication-link {
  display: inline-block;
  padding: 0.25rem 0.75rem 0.25rem 0.75rem;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: #77a8b7;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid #333;
  transition: transform 0.10s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.publication-link:hover {
  transform: translateY(-1px);
  background: #77a8b7;
  box-shadow: 0 5px 12px rgba(67, 74, 96, 0.3);
}

.publication-link:active {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(67, 74, 96, 0.3);
}

.publication-link:focus-visible {
  outline: 2px solid #d7e2ff;
  outline-offset: 2px;
}

.publication-link::after {
  content: "↗";
  margin-left: 0.3rem;
  font-size: 1em;
}