/*
 * Resume styles. The base rules reproduce the parts of mini.css v3 the
 * React version of this site relied on; the rest is the old App.css.
 */

:root {
  --fore-color: #111;
  --header-fore-color: #444;
  --muted-color: #777;
  --back-color: #f8f8f8;
  --rule-color: #aaa;
  --link-color: #0277bd;
  --link-visited-color: #01579b;
  --margin: 0.5rem;
}

/* Base (from mini.css) */

html {
  font-size: 16px;
}

*,
html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu,
    "Helvetica Neue", Helvetica, sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  font-size: 1rem;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  color: var(--fore-color);
  background: var(--back-color) url("background.png");
}

h1,
h2 {
  font-weight: 500;
  line-height: 1.2;
  margin: calc(var(--margin) * 1.5) var(--margin);
}

p,
ul {
  margin: var(--margin);
}

ul {
  padding-left: calc(var(--margin) * 2);
}

b,
.bold {
  font-weight: 700;
}

hr {
  box-sizing: content-box;
  width: 100%;
  height: 0.0625rem;
  margin: var(--margin);
  border: 0;
  border-top: 1px solid var(--rule-color);
  background: transparent;
  line-height: 1.25em;
}

a {
  text-decoration: none;
}

a:link {
  color: var(--link-color);
}

a:visited {
  color: var(--link-visited-color);
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Resume */

.App {
  width: 75%;
  max-width: 75%;
  margin: auto;
  padding: 12px;
  border-radius: 20px;
  background-color: white;
}

.contact-info {
  padding: 0.125rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  color: var(--header-fore-color);
  background: white;
  text-align: center;
  white-space: nowrap;
}

.contact-name {
  font-size: calc(15px + 2vmin);
}

.section-header {
  font-family: "Courier New", ui-rounded;
  font-size: 1.17em;
  margin-bottom: 0.25em;
}

.summary-text {
  text-indent: 1em;
}

.education-header {
  display: flex;
  justify-content: space-between;
}

.company-name {
  text-align: center;
  font-weight: bold;
  font-size: 1.2em;
}

.company-section {
  margin-bottom: 1em;
}

.company-divider {
  margin-bottom: 1em;
}

.job-title {
  font-weight: bold;
  text-indent: 0.5em;
}

.job-description {
  margin-left: 10px;
  margin-right: 10px;
}

.job-location,
.date-range {
  font-size: 0.9em;
  color: var(--muted-color);
  text-indent: 0.5em;
}

@media (max-width: 768px) {
  .App {
    width: 85%;
    max-width: 85%;
  }

  .contact-name {
    font-size: calc(40px + 2vmin);
  }

  .contact-location {
    font-size: 1.5rem;
  }
}

@media print {
  /* A plain white page, like printing without background graphics. */
  body {
    background: none;
  }

  .App {
    width: auto;
    max-width: none;
    padding: 0;
    border-radius: 0;
  }

  a::after {
    content: " (" attr(href) ")";
  }

  /* Keep headings with what follows them, and bullets in one piece. */
  .section-header,
  .company-name,
  .job-title,
  .date-range,
  .job-location {
    break-after: avoid;
  }

  li,
  .education-entry {
    break-inside: avoid;
  }
}
