:root {
  --white: #fff;
  --light-gray: #ddd;
  --dark-gray: #626262;
  --black: #000;
  --red: #c92026;
  --gold: #fdb517;
}

html, body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  font-family: "Open Sans", Helvetica, sans-serif;
  font-weight: 100;
  background-color: var(--white);
  color: var(--dark-gray);
}

h1 {
  font-size: xxx-large;
}

h2 {
  font-size: xx-large;
}

h3 { 
  font-size: x-large;
}

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

a:hover {
  color: var(--red);
}

b {
  font-weight: bold; 
}

#site-header {
  height: 2em;
  padding: 1em 8em;

  position: sticky;
  top: 0;
  z-index: 999;

  background-color: var(--white);
  display: flex;
  align-items: end;
  border-bottom: solid 1px var(--light-gray);
}

#site-header a {
  width: 2em;
  margin-right: 0.5em;
}

#logo {
  max-height: 2em;
  aspect-ratio: 1;
}

#site-header p {
  font-size: xx-large;
}

#header-nav {
  display: flex;
  align-items: end;
  margin-left: auto; 
  margin-right: 0;
}

#header-nav a {
  width: auto;
  padding: 0 0.5em;
  font-size: large;
}

#content {
  width: auto;
  padding: 2em 8em;
  margin-bottom: 2em;
}

#content.text-heavy {
  padding: 2em 16em;
}

.title {
  display: flex;
  justify-content: center;
  margin-bottom: 1em;
}

.text-block {
  font-size: medium;
  line-height: 1.5;
}

#year-picker {
  width: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1em;
}

#year-picker a {
  margin: 0 1em;
  font-size: large;
}

#plot-map-svg {
  width: 100%;
  height: auto;
  margin-top: 1em;
  margin-bottom: 2em;
}

#plot-map-svg rect:hover {
  stroke-width: 0.5em;
  stroke: var(--gold);
}

.plot-map-tooltip {
  width: fit-content;
  max-width: 12em;
  padding: 1em;
  background-color: var(--light-gray);

  position: absolute;
  text-align: center;
}

.plot-map-tooltip.hidden {
  visibility: hidden;
}

.plot-map-tooltip::after {
  content: "";
  position: absolute;
  top: 100%; 
  right: calc(50% - 10px);
  border-width: 10px;
  border-style: solid;
  border-color: var(--light-gray) transparent transparent transparent; /* Arrow pointing down */
}

#pano-frame {
  width: 100%;
  aspect-ratio: 2;
  margin-top: 1em;
}

#site-footer {
  padding: 2em;
  padding-left: 8em;
  border-top: solid 1px var(--light-gray);
}

@media only screen and (max-width: 768px) {
  #site-header {
    padding: 1em 4em;
  }

  #content {
    padding: 2em 4em;
  }
}

@media only screen and (max-width: 600px) {
  #site-header {
    padding: 1em 2em;
  }

  #content {
    padding: 2em 2em;
  }
}