:root {
  --sisjc-red: #8a2529;
  --sisjc-blue: #00467f;
}

/**
 * @font-face
 */
@font-face {
	font-family: "MyChalet";
	src: url('/web/themes/sisjc10/fonts/Chalet-NewYorkNineteenSeventy.eot'); /* IE */
	src: local('Chalet NewYorkNineteenSeventy'), 
		url('/web/themes/sisjc10/fonts/Chalet-NewYorkNineteenSeventy.ttf') format('opentype');
}

body {
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  overflow-x:  hidden;
}

div.layout-container {
  background: url('/web/themes/sisjc10/images/arch_bg.jpg') no-repeat top left;
  background-size: contain;
}

header div.region-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

header div p {
  margin: 0;
  text-align: center;
}

header div#block-sisjc10-logoblock img {
  max-width: 75%;
  height: auto;
  margin: 0.5rem auto;
}

header div#block-sisjc10-officeleft {
  text-align: center;
}

header address {
  font-style: normal;
  text-decoration: none;
}
header a:link {
  color: black;
  text-decoration: none;
}

header nav#block-sisjc10-main-menu, header nav#block-sisjc10-spartaoffice {
 display: none;
}

header nav#block-sisjc10-mobilemenu {
  position: absolute;
  top: calc(var(--drupal-displace-offset-top) + 1rem);
  right: 1rem;
  z-index: 100;
}

header #mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(200,223,241,0.9);
  position: absolute;
  z-index: 80;
  width: 100vw;
  right: -1rem;
  padding: 2rem 0 1rem;
  top: -1rem;
  margin: 0;
  height: 100dvh;
}

header #mobile-menu.open {
  display: flex;
}

header nav li {
  font-size: 1.1rem;
  font-weight: normal;
  padding: 0.4rem 1rem;
  font-family: "Chalet", "Chalet Book", "MyChalet", sans-serif;
}

header nav#block-sisjc10-main-menu ul.menu, header nav#block-sisjc10-spartaoffice ul.menu {
  display: flex;
  margin-left: 0;
}

header nav ul.menu li a:link,
header nav ul.menu li a:visited
{
  color: var(--sisjc-blue) !important;
}

header nav ul.menu li a:hover, 
header nav ul.menu li a:active,
header nav ul.menu li a:focus,
header nav ul.menu li a.is-active
{
  color: var(--sisjc-red) !important;
}

header .mobile-menu-toggle {
  background: var(--sisjc-blue);
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  color: #fff;
  padding: 4px;
  border-radius: 4px;
  z-index: 100;
  position: relative;
  top: 0.5rem;
}

header .mobile-menu-toggle:focus {
  outline: 2px solid #fff;
}

main {
    margin: 0 0.5rem;
    padding: 0 1rem 1rem;
    font-size: 0.7rem;
}

h1.page-title {
  font-family: "Chalet", "Chalet Book", "MyChalet", sans-serif;
  color: var(--sisjc-red);
}

div.fb-page {
  display: flex;
  justify-content: center;
}

/*.footer { height: 20px; margin: 38px 12px 16px; position: relative; background-color: #00467f; color: white; font-size: 8pt; line-height: 8pt; }
div.content .footer img { position: absolute; left: 0px; bottom: 0px; margin: 0; }
.copyright { margin-left: 28px; float: left; height: 12px; padding: 4px 4px; } */
.privacy { padding: 5px 4px; background-color: #c8dff1; color: #8a2529; }
.privacy:hover { background-color: white; }
.privacy a { color: #8a2529; }
.plusfive { line-height: 1.15;  padding: 5px 4px; background-color: #c8dff1; color: #007f1b; }
.plusfive:hover { background-color: white; }
.plusfive a { color: #007f1b; }

.footer {
  display: flex;
  background-color: var(--sisjc-blue);
  color: white;
  font-size: 0.5rem;
  padding-left: 30px;
  position: relative;
  justify-content: end;
  align-items: center;
  margin: 0 1rem;
}

.footer img {
  position: absolute;
  left: 0;
  bottom: 0;
}
.footer .legal {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-right: 1rem;
}

.footer .copyright {
  margin-right: 1rem;
}

.footer .privacy, .footer .by  {
  white-space: nowrap;
}

/* page-specific stuff */
ul.faqs li a:link, #block-sisjc10-content .node__content a:link {
  color: var(--sisjc-red);
}
ul.faqs li a:hover, ul.faqs li a:active, 
#block-sisjc10-content .node__content a:hover, 
#block-sisjc10-content .node__content a:active,
#block-sisjc10-content .node__content a:visited
{
  color: var(--sisjc-blue);
}
span.faqanswer {
  color: var(--sisjc-blue);
  font-weight: bold;
  font-size: 0.9rem;
}

#block-sisjc10-content .node__content {
  margin-bottom: 0.8rem;
}

div.image-left, div.image-right {
  display: flex;
  justify-content: center;
  margin: 0.8rem;
}

div.image-left img, div.image-right img {
  max-width: 85%;
}
ul.occ-health-cols {
  column-count: 1;
}

#block-sisjc10-content div.field--name-field-image {
  max-height: 300px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

/* responsiveness */
@media (min-width: 768px) {
  div.layout-container {
    max-width: 996px;
    margin: 0 auto;
    border-left: solid 2px black;
    border-right: solid 2px black;
    min-height: 100vh;
    position: relative;
    z-index: 1;
  }
  div.layout-container::before, div.layout-container::after {
    content: "";
    min-height: 100%;
    display: block;
    background: linear-gradient(-90deg, rgba(153,153,153,1) 0%, rgba(255,255,255,1) 60%, rgba(255,255,255,1) 100%);
    position: absolute;
    right: calc(100% + 2px);
    z-index: 0;
    width: calc(100% - 600px);
    top: 0;
  }
  div.layout-container::after {
    background: linear-gradient(90deg, rgba(153,153,153,1) 0%, rgba(255,255,255,1) 60%, rgba(255,255,255,1) 100%);
    right: auto;
    left: calc(100% + 2px);
  }
  header nav#block-sisjc10-main-menu, header nav#block-sisjc10-spartaoffice {
    display: block;
  }
  header nav#block-sisjc10-main-menu ul {
    margin-bottom: 0;
  }
  header nav#block-sisjc10-spartaoffice ul {
    margin-top: 0;
  }
  header nav#block-sisjc10-spartaoffice ul li {
    font-size: 0.9rem !important;
  }
  header nav#block-sisjc10-mobilemenu {
    display: none;
  }
  main {
    font-size: 0.9rem;
  }
  .footer {
    font-size: 0.7rem;
  }
  div.home-content {
    display: flex;
    justify-content: space-between;
  }
  .fb-page {
    min-width: 325px;
    margin-left: 1rem;
  }
  span.faqanswer {
    font-size: 1.1rem;
  }  
  div.image-left {
    float: left;
    margin: 0.8rem 0.8rem 0.8rem 0;
  }
  div.image-right {
    float: right;
    margin: 0.8rem 0 0.8rem 0.8rem;
 }
 ul.occ-health-cols {
    column-count: 2;
 }
 #block-sisjc10-content div.field--name-field-image {
    display: inline;
    float: right;
    max-height: 400px;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
  } 
}
