/* header.css
   This style sheet covers the banner at the top of each InterNT page.
   It includes
	  * a hamburger menu (on small screens only)
	  * a page title
	  * a line or more of page subtitle
*/
/* <header> appears in index.htm and surrounds the
   hamburger / title / subtitles block at the top */
header {
  display: flex;
  flex-direction: row;      /* always stay in a row */
  flex-wrap: wrap;          /* allow subtitles to wrap on small screens */
  align-items: center;
  justify-content: flex-start;
}
/* class=hamburger appears in title_frame.htm and
   surrounds the hamburger icon */
.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  flex-shrink: 0; /* prevent it from shrinking */
  margin-left: 1em;
}
@media (min-width: 768px) { /* large screens */
  .hamburger {
    display: none;  /* Hide hamburger on desktop */
  }
}
.hamburger span {
  width: 25px;
  height: 3px;
  margin: 4px 0;
  background-color: white; /* sets the hamburger bar color */
}
.hamburgerspace { /* occupy same space as hamburger, but on right */
  width: 25px;
  margin-left: 1em;
}
/* class=title appears in title_frame.htm and surrounds
   the page's title */
/* Phone mode: stack vertically, but keep hamburger left and text centered */
.title {
  flex-shrink: 0;
  flex-grow: 1;
  margin: 0 1em;
}
@media (min-width: 768px) { /* large screens */
  .title {
    flex-grow: 0;
  }
}
.title h1 {
  margin: 0;
  padding: 0.2em 0; /* optional: adds a little breathing room */
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}
@media (min-width: 768px) { /* large screens */
  .title h1 {
    font-size: 3rem;
  }
}
/* class=subtitles appears in title_frame.htm and surrounds
   the block containing one or more lines of subtitles */
.subtitles {
  display: flex;
  flex-direction: column;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  overflow: hidden;
  flex-grow: 1;
  text-align: center;
}
.subtitles.hidden {
  opacity: 0;
  max-height: 0;
  pointer-events: none;
}
/* class=subtitle appears in title_frame.htm and surrounds
   an individual subtitle line */
.subtitle {
  margin: 0.2em 0;
  font-size: 0.95rem;
}
@media (min-width: 768px) { /* large screens */
  .subtitle {
    font-size: 1.2rem;
  }
}