/* main.css */

/* These are the colors and fonts used throughout the webpage.
 * I've listed them here so that a user may easily
 * do a search-and-replace for these to change the site theme.
 *   'Roboto',sans-serif; Font for the title text
 *   'Roboto-Slab',serif; Font for the body text 
 *   #fafafa; Background color of the site
 *   #505050; Foreground (text) color of the site
 *   #52739e; Navy, "Template" in the logo, current page in navigation, special titles in the Program
 *   #b2132e; Reddish, "Conference" in the logo, hover color for links
 *   #813c54; Heading color, titles in the Program
 *   #b8860b; Dark Goldenrod, color for links
 */

@import url("https://fonts.googleapis.com/css?family=Roboto%7CRoboto+Slab");

:root {
  --background-color-of-the-site: #fafafa;
  --foreground-text-color-of-the-site: #505050;
  --navy: #636574;
  --reddish: #c15c37;
  --heading-color: #0e3759;
  --dark-goldenrod: #196794;
  --shadow-color-of-the-site: #d0d0d0;
  --shadow-color-of-the-title: #c0c0c0;
  --current-menu-item-hover: #c15c37;
  --title-year-color: #000000;
}

* {
  border: 0;
  font: inherit;
  font-size: 1em;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}

body {
  background-color: var(--background-color-of-the-site);
  background-size: cover;
  background-attachment: fixed;
  color: var(--foreground-text-color-of-the-site);
  text-align: left;
  font-family: "Roboto", sans-serif;
  font-size: 1em;
  line-height: 1.5em;
  margin: 60px auto;
  width: 1000px;
}

a {
  color: var(--dark-goldenrod);
  text-decoration: none;
}
a.current {
  color: var(--navy);
}
a.current:hover {
  color: var(--current-menu-item-hover);
}
a:hover {
  color: var(--reddish);
}
a:active {
  color: #e82945;
}
h1,
h2,
h3,
h4 {
  clear: left;
  color: var(--heading-color);
  margin: 1.5em 0em 1em 0em;
  font-family: "Roboto Slab", serif;
  text-shadow: 1px 1px 2px var(--shadow-color-of-the-site);
}
h1 {
  font-size: 2.67em;
}
h2 {
  font-size: 2em;
}
h3 {
  font-size: 1.67em;
}
h4 {
  font-size: 1.33em;
}
p {
  list-style: none;
  margin: 24px auto 24px auto;
  padding: 0px;
  width: 900px;
  text-align: left;
}
li a,
p a {
  text-decoration: underline;
  text-decoration-color: var(--dark-goldenrod);
}
ul {
  list-style: none;
  margin: 24px auto 24px auto;
  padding: 0px;
  width: 800px;
  text-align: left;
}
ul li {
  list-style: disc;
  margin: 0px auto 0px auto;
  padding: 0px;
  text-align: left;
}
i,
em {
  font-style: italic;
}
b,
strong {
  font-weight: bold;
}
sup {
  vertical-align: super;
  font-size: 0.8em;
  line-height: 0;
}
sub {
  vertical-align: sub;
  font-size: 0.8em;
  line-height: 0;
}
table {
  width: 1000px;
  margin: 12px auto 24px auto;
  float: center;
  /* UNCOMMENT THIS FOR DEBUGGING THE ALIGNMENT */
  /*border: 1px solid black;*/
}
th,
td {
  text-align: left;
  /* UNCOMMENT THIS FOR DEBUGGING THE ALIGNMENT */
  /*border: 1px solid black;*/
}

/* Website Banner */
.banner {
  position: relative;
  font-family: "Roboto Slab", serif;
}
.top-left {
  font-size: 5.33em;
  color: var(--foreground-text-color-of-the-site);
  background: var(--background-color-of-the-site);
  text-align: center;
  width: 1000px;
  height: 67px;
  /* position: absolute; */
  padding: 36px 0 0 0;
  top: 0px;
}
.bottom-right {
  font-size: 2.33em;
  color: #fafafa;
  line-height: 1.5em;
  width: auto;
  height: 100px;
  padding: 0px 27px 27px 0px;
  text-align: right;
  position: absolute;
  bottom: 0px;
  right: 0px;
  text-shadow: 0px 0px 6px #000000;
}

/* Conference Title Logo */
.title1 {
  color: var(--reddish);
  text-shadow: 1px 1px 3px var(--shadow-color-of-the-title);
}
.title2 {
  color: var(--navy);
  text-shadow: 1px 1px 3px var(--shadow-color-of-the-title);
}
.year {
  color: var(--title-year-color);
  font-size: 0.67em;
  font-weight: lighter;
}

/* Navigation Links (Home, Registration, etc) */
table.navigation {
  width: 800px;
}
td.navigation {
  font-size: 1.67em;
  white-space: nowrap;
  width: 20%;
  text-align: center;
  vertical-align: middle;
  padding: 0px 0px 0px 0px;
}

/* Sponsor Images */
table.sponsors {
  width: 800px;
}
td.sponsor {
  white-space: nowrap;
  width: 33%;
  text-align: center;
  vertical-align: middle;
  padding: 0px 0px 0px 0px;
}
td.sponsor img {
  width: 100%;
}

/* The Table on the Program Page */
td.room {
  padding: 4px 12px 4px 4px;
  width: 90%;
  vertical-align: bottom;
  font-size: 1.67em;
  color: var(--navy);
  height: 32px;
}
td.date {
  white-space: nowrap;
  width: 130px;
  text-align: right;
  vertical-align: top;
  padding: 4px 16px 0px 0px;
}
td.title {
  padding: 4px 12px 4px 4px;
  width: 90%;
  vertical-align: top;
  font-size: 1.5em;
  color: var(--heading-color);
  height: 32px;
  font-family: "Roboto Slab", serif;
  text-shadow: 1px 1px 2px var(--shadow-color-of-the-site);
}
td.title-special {
  padding: 4px 12px 4px 4px;
  width: 90%;
  vertical-align: top;
  font-size: 1.67em;
  color: var(--navy);
  height: 32px;
  font-family: "Roboto Slab", serif;
  text-shadow: 1px 1px 2px var(--shadow-color-of-the-site);
}
td.speaker {
  padding: 4px 12px 4px 4px;
  font-style: italic;
  font-size: 1em;
  max-height: 999999px;
}
td.abstract {
  padding: 4px 12px 12px 4px;
  font-size: 1em;
  max-height: 999999px;
}
td.abstract img {
  display: block;
  margin: 4px auto 8px auto;
}
table.plenary {
  padding-top: 8px;
  background: #ffffff;
}

/* Registration and Directions iframes and Images */
iframe.registration {
  display: block;
  margin: 1em auto 2em auto;
  width: 700px;
  height: 1400px;
  border: none;
}
iframe.directions {
  display: block;
  margin: 1em auto 2em auto;
  width: 800px;
  height: 400px;
  border: none;
}
img.center {
  display: block;
  width: 67%;
  margin: 1em auto 2em auto;
}

/* Flyer Images */
table.flyers {
  width: 800px;
}
td.flyer {
  white-space: nowrap;
  width: 50%;
  text-align: center;
  vertical-align: middle;
  padding: 0px 0px 0px 0px;
}
td.sponsor img {
  width: 100%;
}

footer {
  font-size: 0.875em;
  margin-top: 12em;
  text-align: center;
}

/* Keynote speakers */
table.keynotes {
  width: 900px;
}

.keynote-image-cell {
  width: 30%;
  text-align: center;
  vertical-align: middle;
}

.keynote-description-cell {
  width: 70%;
  vertical-align: middle;
  text-align: left;
  padding-left: 10px; /* Adjust this padding to manage the text spacing from the image */
}

.keynote-description-cell ul {
  list-style-type: disc; /* Ensures bullet points are shown */
  padding-left: 20px; /* Adds indentation to align the bullets properly */
}

/* Button for calling to action (e.g. registration) */
a.call-to-action {
  border-radius: 0.375rem;
  background-color: #31aa19;
  color: #f9fafb;
  text-decoration-line: none;
  height: 40px;
  line-height: 40px;
  text-align: center;
  display: inline-block;
  cursor: pointer;
  width: 180px;
  margin-left: 50px;
  box-shadow: 1px 1px 2px var(--shadow-color-of-the-site);
}

a.call-to-action:hover {
  background-color: #33b519;
}

/* My hacky way of making the site mobile-friendly */
@media only screen and (max-width: 1100px) {
  h2 {
    font-size: 3em;
  }
  p {
    font-size: 1.5em;
    line-height: 1.5em;
  }
  th,
  td,
  tr {
    font-size: 1.5em;
    line-height: 1.5em;
  }
  td.date {
    font-size: 1em;
    padding-top: 0.5em;
  }
  td.navigation {
    font-size: 1.5em;
    padding: 0px 20px 0px 20px;
  }
  table.footer {
    font-size: 0.33em;
  }
}

/* Dark mode */

@media (prefers-color-scheme: dark) {
  :root {
    --background-color-of-the-site: #202020;
    --foreground-text-color-of-the-site: #fafafa;
    --shadow-color-of-the-site: #000000;
    --shadow-color-of-the-title: #000000;
    --dark-goldenrod: #299cc6;
    --navy: #acacb9;
    --reddish: #e17047;
    --heading-color: #89cce5;
    --title-year-color: #fafafa;
    --current-menu-item-hover: #e17047;
  }
  table.plenary {
    background: #292929;
  }
  img.switch-logo-dark-to-white {
    filter: brightness(0) invert(1);
  }
}

/* --background-color-of-the-site: #fafafa;
--foreground-text-color-of-the-site: #505050;
--navy: #636574;
--reddish: #c15c37;
--heading-color: #0e3759;
--dark-goldenrod: #196794;
--shadow-color-of-the-site: #d0d0d0;
--shadow-color-of-the-title: #c0c0c0;
--current-menu-item-hover: #c15c37;
--title-year-color: #000000; */
