@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

:root {
  --body-font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono-font: "Roboto Mono", "SFMono-Regular", Consolas, "Fira Mono", Melon, "Liberation Mono", monospace;

  --base-font-size: 14px;

  --black: #000;
  --anthracite: #373a36;
  --grey: #a2aaad;
  --light-grey: #e3e9ed;
  --white: #fff;

  /* Pitt school colors */
  --royal: #003594;
  --gold: #ffb81c;
  --old-navy-blue: #0c2340;
  --old-vegas-gold: #b3a369;

  --highlight: #ffb;
}

html {
  font-size: 100%;
  font-family: var(--body-font);
  text-align: left;
}
body {
  background: var(--light-grey);
  font-family: var(--body-font);
  margin: 0;
  color: var(--black);
}

a, a:visited {
  color: var(--royal);
}
b, strong {
  font-weight: 600;
}
code {
  font-family: var(--mono-font);
}

/* THIS WORKS WELL
#main {
  background: var(--grey);
  width: calc(100% - 1rem);
  margin: 0 auto 1rem auto;
  height: auto;
  border-bottom: 1px solid var(--black);
}
@media (min-width: 768px) {
  #main {
    width: min(calc(100% - 2rem), 1100px);
    margin: 1rem auto;
    border: 1px solid var(--black);
  }
}
EXPERIMENTING BELOW: */
#main {
  background: var(--grey);
  width: calc(100% - 1rem);
  margin: 0 auto 1rem auto;
  height: auto;
  border-bottom: 1px solid var(--black);
}
@media (min-width: 768px) {
  #main {
    width: min(calc(100% - 2rem), 1100px);
    margin: 1rem auto;
    border: 1px solid var(--black);
  }
}

#banner {
  background: var(--royal);
  text-align: center;
}
#banner #logo {
  margin: 12px;
  height: 120px;
}

#menu {
  background: var(--gold);
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  overflow: auto hidden;
  scrollbar-width: none;
}
#menu li {
  flex: 0 0 auto;
}
#menu li a {
  display: block;
  white-space: nowrap;
  padding: 8px 12px;
  background: var(--gold);
  color: var(--royal);
  font-size: calc(var(--base-font-size) * 1.1);
  font-weight: 650;
  text-decoration: none;
}
#menu li a:hover {
  background: var(--anthracite);
  color: var(--grey);
}
#menu li#selected a {
  background: var(--royal);
  color: var(--white);
}
.menu-wrap {
  position: relative;
}
.menu-wrap::before,
.menu-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.menu-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--grey) 0%, var(--grey) 10%, transparent);
}
.menu-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--grey) 0%, var(--grey) 10%, transparent);
}
.menu-wrap.fade-left::before {
  opacity: 1;
}
.menu-wrap.fade-right::after {
  opacity: 1;
}

#content {
  font-size: var(--base-font-size);
  line-height: calc(var(--base-font-size) * 1.333);
  font-weight: 350;
  margin: 1rem;
}
#content > div {
  background: var(--white);
  margin: 1rem auto;
  padding: 0.5rem 1rem;
}
#content > div ::selection {
  background: var(--highlight);
}
#content h1 {
  font-size: calc(var(--base-font-size) * 2);
  line-height: calc(var(--base-font-size) * 2.333);
  font-weight: 650;
  margin: 0.5em 0;
}
#content h2 {
  font-size: calc(var(--base-font-size) * 1.667);
  line-height: calc(var(--base-font-size) * 2);
  font-weight: 700;
  color: var(--royal);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--gold);
}
#content h3 {
  font-size: calc(var(--base-font-size) * 1.333);
  line-height: calc(var(--base-font-size) * 1.667);
  font-weight: 600;
  font-style: italic;
}
#content h4 {
  font-size: var(--base-font-size);
  line-height: calc(var(--base-font-size) * 1.333);
  font-weight: 750;
  color: var(--anthracite);
}

#content > div.royal {
  background: var(--royal);
  color: var(--white);
}
#content > div.royal a, #content > div.royal a:visited {
  color: var(--gold);
}
#content > div.royal h2 {
  color: var(--gold);
  border-bottom: 1px solid var(--grey);
}
#content > div.gold {
  background: var(--gold);
}
#content > div.gold h2 {
  border-bottom: 1px solid var(--anthracite);
}

#footer {
  text-align: center;
  color: var(--anthracite);
  padding: 0 2.5rem;
  font-size: calc(var(--base-font-size) * 0.85);
  font-weight: 300;
  line-height: var(--base-font-size);
}
#footer strong {
  font-weight: 500;
}
#footer a, #footer a:visited {
  color: var(--anthracite);
}
#footer p {
  margin: 4px 0;
}
#footer #logo {
  margin: 6px 0 0 0;
}


.pitt-colors-new {
  color: var(--royal);
  background: var(--gold);
}
.pitt-colors-new-inv {
  color: var(--gold);
  background: var(--royal);
}
.pitt-colors-old {
  color: var(--old-navy-blue);
  background: var(--old-vegas-gold);
}


#scholarship-winners tr {
  vertical-align: top;
}

#button {
  margin: 1.5em auto;
  text-align: center;
}
#button a {
  padding: 0.5em 2em;
  background: var(--gold);
  border: 1px solid var(--royal);
  border-radius: 0.2em;
  color: var(--royal);
  font-weight: bold;
  font-size: 120%;
  text-decoration: none;
}
#button a:hover {
  background: var(--royal);
  border: 1px solid var(--anthracite);
  color: var(--gold);
}

#button-inv {
  margin: 1.5em auto;
  text-align: center;
}
#button-inv a {
  padding: 0.5em 2em;
  background: var(--royal);
  border: 1px solid var(--anthracite);
  border-radius: 0.2em;
  color: var(--gold);
  font-weight: bold;
  font-size: 120%;
  text-decoration: none;
}
#button-inv a:hover {
  background: var(--gold);
  border: 1px solid var(--royal);
  color: var(--royal);
}

#virtual-event-schedule td, #virtual-event-schedule th {
  padding: 0.5em;
}
#virtual-event-schedule ul {
  margin: 0;
}
#virtual-event-schedule li {
  padding: 0.2em 0;
}
#virtual-event-schedule li li {
  padding: 0;
}

#registration {
  margin-bottom: 20px;
}

table {
  margin: 0 auto;
  text-align: left;
  border-spacing: 2px;
  border-collapse: separate;
}
th {
  color: var(--gold);
  background: var(--royal);
  padding: 4px;
}
tr:nth-child(even) {
  background: var(--light-grey);
}
tr:nth-child(odd) {
  background: color-mix(in srgb, var(--light-grey), var(--white));
}
td {
  padding: 4px;
}
tfoot td {
  background: color-mix(in srgb, var(--light-grey), var(--grey));
}

input, textarea, select, button, fieldset {
  border: 1px solid;
  font-size: calc(var(--base-font-size) * 0.85);
  font-family: var(--body-font);
  padding: 2px;
}
.loginBox {
  text-align: left;
  background: var(--light-grey);
  width: 500px;
  height: 300px;
  border: 1px solid var(--anthracite);
  margin: 40px auto;
  padding: 10px;
}

#newsletters {
  margin: 0 20px;
  padding: 10px;
  background: var(--light-grey);
  border: 1px solid var(--anthracite);
  columns: 3 250px;
  column-rule: 1px solid var(--anthracite);
}
#newsletters .year {
  display: block;
  margin-bottom: 1em;
  break-inside: avoid-column;
}
#newsletters h4 {
  font-size: var(--base-font-size);
  margin: 0;
}
#newsletters ul {
  list-style-type: none;
  padding: 0;
  margin: 0 0.5em;
}
#newsletters ul li {
  font-size: calc(var(--base-font-size) * 0.75);
  line-height: calc(var(--base-font-size) * 0.85);
  margin-left: 3em;
  text-indent: -3em;
  padding: 0.2em 0;
}
#newsletters a, #newsleters a:visited {
  font-weight: 700;
  text-decoration: none;
}
#newsletters a:hover {
  text-decoration: underline;
}

/* Add your own MailChimp form style overrides in your site stylesheet or in
 * this style block.  We recommend moving this block and the preceding CSS link
 * to the HEAD of your HTML file. */
#mc_embed_signup form {
  padding: 0;
}
#mc_embed_signup .mc-field-group {
  padding-bottom: 0.5em;
}
#mc_embed_signup .asterisk {
  font-size: 100%;
}
#mc-embedded-subscribe.button {
  padding: 0.5em 2em;
  background: var(--gold);
  border: 1px solid var(--royal);
  border-radius: 0.2em;
  color: var(--royal);
  font-weight: bold;
  font-size: 120%;
  text-decoration: none;
}
#mc-embedded-subscribe.button:hover {
  background: var(--royal);
  border: 1px solid var(--anthracite);
  color: var(--gold);
}

#exec #officers img {
  margin: 0.5em 0;
  width: 200px;
}
#exec #chairpersons img {
  margin: 0.5em 0;
  width: 150px;
}
#exec .title {
  font-size: calc(var(--base-font-size) * 0.85);
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--anthracite);
  text-transform: uppercase;
  margin: 0.25em 0;
}
#exec .title a, #exec .title a:visited {
  color: var(--anthracite);
}
#exec .name {
  font-size: calc(var(--base-font-size) * 1.333);
  font-weight: 700;
  color: var(--royal);
  margin: 0.25em 0;
}
#exec .section, #exec .class {
  font-size: var(--base-font-size);
  font-weight: 350;
  font-style: italic;
  color: var(--anthracite);
}
