html {
  box-sizing: border-box;
}

*,
*::after,
*::before {
  box-sizing: inherit;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
	--theme: rgba(19, 19, 19, 0.79);
	--theme-dark: #000000;
	--font: Arial, Helvetica, sans-serif;
	background: var(--theme);
  font-family: sans-serif;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}
  
  
  body * {
	font-family: var(--font);
  }
  
  header .right ul li {
	color: var(--theme);
  }
  
  .grid-section {
	border-color: var(--theme-dark);
  }
  
  footer {
	background: var(--theme);
  }
  
  #popup .title-bar h1 {
	color: var(--theme);
  }
  
  body footer .left img {
	display: none;
  }
  
  body footer {
	  font-weight: bold;
  }

  header .right ul li {
	  background-color: #da6e2e;
	  color: #FFFFFF;
  }

body ::selection {
  background: white;
  color: #747474;
}

.container,
#message h1 {
  max-width: 100rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2em;
  margin-bottom: 30px;
}

.container::after,
#message h1::after {
  clear: both;
  content: '';
  display: table;
}

a {
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

#serverVariables,
#serverVariables span {
  display: none !important;
  opacity: 0;
}

header {
  float: left;
  display: block;
  margin-right: 2.35765%;
  width: 100%;
  padding: 2em 1em;
  display: flex;
  flex-direction: row;
  align-items: center;
}

header:last-child {
  margin-right: 0;
}

header .left {
  float: left;
  display: block;
  margin-right: 2.35765%;
  width: 57.35098%;
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-right: 0;
}

header .left:last-child {
  margin-right: 0;
}

header .left .logo {
  float: left;
  display: block;
  margin-right: 5.2914%;
}

header .left .logo:last-child {
  margin-right: 0;
}

header .left .logo img {
  width: 100%;
  display: block;
}

header .left .logo img:hover {
  cursor: pointer;
}

header .left .search {
  float: left;
  display: block;
  margin-right: 5.2914%;
  width: 80.85611%;
}

header .left .search:last-child {
  margin-right: 0;
}

header .left .search input[type='text'] {
  float: left;
  display: block;
  margin-right: 6.54422%;
  width: 76.32351%;
  font-size: 1.75em;
  background: transparent;
  border: 0;
  outline: 0;
  margin: 0;
  padding: 0;
  border-right: 2px solid white;
  padding-right: 1em;
  border-radius: 0;
  -webkit-appearance: none;
  color: white;
  transition: all 0.15s ease-out 0s;
}

header .left .search input[type='text']:last-child {
  margin-right: 0;
}

header .left .search input[type='text']::-webkit-input-placeholder {
  color: white;
}

header .left .search input[type='text']:-moz-placeholder {
  color: white;
}

header .left .search input[type='text']::-moz-placeholder {
  color: white;
}

header .left .search input[type='text']:-ms-input-placeholder {
  color: white;
}

header .left .search input[type='text'].inactive {
  transition: all 0.15s ease-out 0s;
}

header .left .search input[type='text'].inactive::-webkit-input-placeholder {
  color: #cccccc;
}

header .left .search input[type='text'].inactive:-moz-placeholder {
  color: #cccccc;
}

header .left .search input[type='text'].inactive::-moz-placeholder {
  color: #cccccc;
}

header .left .search input[type='text'].inactive:-ms-input-placeholder {
  color: #cccccc;
}

header .left .search #submit {
  float: left;
  display: block;
  margin-right: 6.54422%;
  width: 17.13227%;
  display: block;
  height: 44px;
  width: 44px;
  background-size: 33px 33px;
  margin-left: 1em;
  cursor: pointer;
}

header .left .search #submit img {
  height: inherit;
  padding: 5px;
}

header .left .search #submit:last-child {
  margin-right: 0;
}

header .middle {
  float: left;
  display: block;
  width: 20%;
  text-align: center;
}

header .right {
  float: left;
  display: block;
  margin-right: 2.35765%;
  /* width: 36.02647%; */
  margin-left: 4.2649%;
  width: 40%;
}

header .right:last-child {
  margin-right: 0;
}

header .right ul {
  text-align: right;
}

header .right ul li {
  display: inline-block;
  margin: 0.25em 0.125em;
  font-size: 0.8em;
  background: white;
  color: var(--theme);
  padding: 0.5em 0.75em;
  border-radius: 7.5px;
  opacity: 0.75;
  transition: all 0.15s ease-out 0s;
}

header .right ul li:hover,
header .right ul li.active {
  cursor: pointer;
  opacity: 1;
  transition: all 0.15s ease-out 0s;
}

header .right ul li.active {
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.5);
}

.content {
  float: left;
  display: block;
  margin-right: 2.35765%;
  width: 100%;
  margin-top: 0;
}

.content:last-child {
  margin-right: 0;
}

#grid {
  margin-top: 0.5em;
  width: 100%;
  display: block;
}

.grid-section {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  border-bottom: 2px solid white;
  padding-bottom: 1em;
  margin: -0.5em 1em 3em;
}

.grid-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.inner-column {
  display: inline-block;
  width: calc(33.334% - 1em);
}

.grid-item {
  width: 100%;
  padding-bottom: 1.5em;
}

.grid-item .inner {
  position: relative;
}

.grid-item img {
  width: 100%;
}

.grid-item .img-container {
  position: relative;
}

.grid-item .play-button-cont {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  align-content: center;
  justify-content: center;
}

.grid-item .play-button img {
  height: 3em;
}

.grid-item h1 {
  margin-top: 0.5rem;
}

.grid-item h1,
.grid-item p {
  word-wrap: break-word;
}

.grid-item h1 {
  color: #4a4a4a;
  font-weight: normal;
  margin-bottom: 0.25em;
  font-size: 1.5rem;
}

.grid-item p {
  color: #4a4a4a;
  margin-bottom: 0.5em;
}

.grid-item p.action {
  color: #4a4a4a;
  display: block;
  margin-bottom: 0.5em;
  margin-top: 1em;
}

.grid-item a.cite {
  color: var(--theme);
  ;
  display: block;
  margin-bottom: 0.5em;
  transition: all 0.15s ease-out 0s;
}

.grid-item a.cite:hover {
  text-decoration: underline;
}

.grid-item .inner {
  background: white;
  padding: 1em 1em 0.5em 1em;
  box-shadow: 4px 4px rgba(0, 0, 0, 0.25);
}

.grid-item:hover .inner {
  transition: all 0.15s ease-out 0s;
  cursor: pointer;
  background: #eee;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.75);
}

.grid-item:hover a.cite {
  transition: all 0.15s ease-out 0s;
  color: var(--theme);
}

footer {
  background: var(--theme);
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 1em;
  border-top: 2px solid white;
  box-shadow: 0px 9px 62px 0px rgba(0, 0, 0, 0.21);
  z-index: 10;
}

footer>* {
  float: left;
  display: block;
  margin-right: 2.35765%;
  width: 48.82117%;
}

footer>*:last-child {
  margin-right: 0;
}

footer .left img {
  height: 2em;
}

footer .left small {
  width: 100%;
  display: block;
  color: white;
}

footer .right {
  text-align: right;
  position: absolute;
  bottom: 1em;
  right: 1em;
  color: white;
}

footer .right small {
  display: block;
  width: 100%;
}

footer .right small a {
  color: white;
}

footer .right small a:after {
  content: '/';
  margin-left: 0.5em;
  margin-right: 0.25em;
}

footer .right small a:last-child:after {
  content: '';
  margin: 0;
}

#popup {
  display: none;
  left: 0;
  top: 0;
  width: calc(100vw - 4em);
  background: white;
  position: fixed;
  z-index: 10;
  margin-top: 2em;
  margin-left: 2em;
  height: calc(100vh - 4em - 88px);
}

#popup .title-bar {
  border-bottom: 2px solid #003670;
  padding: 0.5rem;
}

#popup .title-bar h1 {
  font-size: 1rem;
  color: var(--theme);
  width: calc(100% - 27px);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

#popup .close {
  background-size: 1.25rem 1.25rem;
  height: 1.25rem;
  width: 1.25rem;
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  cursor: pointer;
}

#popup iframe {
  width: 100%;
  height: calc(100% - 2.5em + 1px);
}

#popup article {
  width: calc(100vw - 5rem);
  overflow: scroll;
  height: calc((100vh - 7.5rem) - 88px);
  padding-top: 1em;
  padding-left: 1rem;
}

#popup article>.image,
#popup article>h1,
#popup article .inner {
  width: calc(100vw - 5em);
  line-height: 1.5;
}

#popup article .image {
  height: 50vh;
  background-size: cover;
  background-position: center center;
}

#popup article>h1 {
  margin: 1rem 0;
}

#popup article p {
  margin: 1rem 0;
}

#screen {
  display: none;
}

#screen.active {
  display: block;
  height: 100vh;
  width: 100vw;
  position: absolute;
  background: rgba(0, 0, 0, 0.75);
  z-index: 5;
  position: fixed;
}

.loading {
  position: fixed;
  left: calc(50% - 3rem);
  top: calc(50% - 3rem);
  z-index: 10;
  color: white;
  pointer-events: none;
  opacity: 1;
  transition: all 0.15s ease-out 0s;
}

.loading#loaded {
  transition: all 0.15s ease-out 0s;
  display: none;
  opacity: 0;
}

#message h1 {
  background: darkred;
  color: white;
  text-align: center;
  font-weight: normal;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 1.25em;
}

body.customPage {
  padding: 1em;
  background: white !important;
}

body.customPage * {
  color: white;
  font-family: sans-serif;
}

body.customPage h1 {
  line-height: 1;
  margin-bottom: 1rem;
}

body.customPage .image {
  width: 100%;
  height: 50vh;
  background-size: cover;
  background-position: center center;
  margin-bottom: 1rem;
}

body.customPage h2 {
  font-style: italic;
  font-weight: normal;
  margin: 1rem 0;
}

body.customPage p {
  margin-bottom: 1rem;
}

body.customPage p:last-child {
  margin-bottom: 0;
}

body.customPage {
  background-color: white;
  color: #4a4a4a;
}

body.customPage h1,
body.customPage h2,
body.customPage p,
body.customPage a {
  color: #4a4a4a;
}

body.customPage a {
  text-decoration: underline;
  color: var(--theme) !important;
}

.load-next {
  background: white;
  display: block;
  width: calc(100% - 2em);
  padding: 1em;
  text-align: center;
  margin-top: 1em;
  cursor: pointer;
  margin-left: 1em;
  margin-right: 1em;
}

@media screen and (max-width: 960px) {
  .container,
  #message h1 {
    max-width: 60rem;
    padding: 0 1rem;
  }
  #terms br {
    display: none;
  }
  header {
    flex-wrap: wrap;
  }
  header .left,
  header .right {
    width: 100%;
  }
  header .left .search input[type='text'] {
    border: none;
  }
  header .left .search #submit {
    border-left: 2px solid white;
    width: 45px;
    background-repeat: no-repeat;
    background-position: 10px;
    float: right;
    margin-left: 0;
  }
  header .left .search #submit img {
    padding: 5px 5px 5px 10px;
  }
  header .middle {
	display: none;
  }
  header .right {
    margin-left: 0;
    margin-top: 1rem;
  }
  header .right #terms {
    text-align: left;
    margin-top: 1em;
  }
  .inner-column {
    width: calc(50% - 0.75em);
  }
  .grid-section {
    margin-left: 0;
    margin-right: 0;
  }
  .load-next {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media screen and (max-width: 620px) {
  .container,
  #message h1 {
    max-width: 45rem;
    padding: 0;
    margin-bottom: 0;
  }
  .content {
    padding-bottom: 0 !important;
  }
  .inner-column {
    width: 100%;
  }
  .grid-item {
    padding: 0 0 1.5em;
    opacity: 1;
  }
  .grid-section {
    margin-left: 1em;
    margin-right: 1em;
  }
  header {
    padding: 1em 1em 2em;
  }
  header .left .search input[type='text'] {
    font-size: 1.25em;
    margin-top: 0.25em;
  }
  header .left .search #submit {
    height: 35px;
    margin-top: 5px;
  }
  header .left .search #submit img {
    height: 32px;
    margin-top: 2px;
  }
  footer {
    padding: 1em;
    position: relative;
    overflow: auto;
    box-shadow: 0;
  }
  footer .left {
    display: none;
  }
  footer .right {
    float: left;
    display: block;
    margin-right: 2.35765%;
    width: 100%;
    position: initial;
    text-align: left;
    margin-top: 0;
  }
  footer .right:last-child {
    margin-right: 0;
  }
  #popup {
    height: calc(100vh - 4em);
    border: 2px solid #003670;
  }
  #popup article {
    padding-top: 5rem;
    width: calc(100vw - 2em);
  }
  #popup article>.image,
  #popup article>h1,
  #popup article .inner {
    width: calc(100vw - 2em);
  }
  #popup article .image {
    height: 40vw;
  }
  .load-next {
    margin-bottom: 2em;
    width: calc(100% - 2em);
    margin-left: 1em;
    margin-right: 1em;
  }
}

header .left .logo img {
	max-width: 375px;
}

#apiContent {
	background: white;
	padding: 1em 1em 0.5em 1em;
	box-shadow: 4px 4px rgba(0, 0, 0, 0.25);
	margin: 0em 1em 1em 1em;
}

#apiContent h1:not(:first-child), #apiContent h2:not(:first-child), #apiContent h3:not(:first-child), #apiContent h4:not(:first-child) {
	margin-top:1em;
}

#apiContent p:not(:first-child) {
	margin-top: 1em;
}

#apiContent h1, #apiContent h2, #apiContent h3, #apiContent h4 {
	color: #003670;
}

div.propertyContainer p {
	margin-bottom: 1em;
}

span.blueTitle, #apiContent strong {
	font-weight: bold;
	color: #003670;
}

#apiContent div.imageScroller {
	height: 260px;
	width: 100%;
	position: relative;
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
	padding: 0;
	margin: 0px 0px 1em 0px;
	-webkit-overflow-scrolling: touch;
}

#apiContent div.imageScroller img {
	height: 250px;
}

#apiContent div.imageScroller img:hover {
	filter: grayscale(100%);
	opacity: 0.8;
}

#apiContent div.imageScroller img:not(:last-child), #apiContent div.imageScroller a:not(:last-child) {
	margin-right: 25px;
}

#apiContent div.imageScroller::-webkit-scrollbar {
	width: 5px;
	height: 5px;
}

#apiContent div.imageScroller::-webkit-scrollbar-track {
	background: #f1f1f1; 
}

#apiContent div.imageScroller::-webkit-scrollbar-thumb {
	background: #888; 
}

#apiContent div.imageScroller::-webkit-scrollbar-thumb:hover {
	background: #555; 
}

#apiContent a:hover {
	text-decoration: underline;
}