@font-face {
  font-family: 'Deutsche Uncialis';
  src: url("DeutscheSetec.ttf");
}

@media all and (orientation: landscape) {
  body {
    background-size: 100% auto;
  }
} 

@media all and (orientation: portrait) {
  body {
    background-size: auto 100%;
  }
} 

body {
  text-align: center;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 20px;
  padding: 0;
  background-color: navajowhite;
  font-size: 20px;
  color: black;
  font-family: 'Lora', serif;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center top;
}

.small-horizontal-scroll {
  display: inline-block;
  height: 60px;
  font-size: 28px;
  line-height: 55px;
  vertical-align: center;
  white-space: nowrap;
  font-family: 'Deutsche Uncialis', 'Georgia', serif;
  position: relative;
  background-image: url('../assets/general/scroll/horizontal2-left.png'), url('../assets/general/scroll/horizontal2-right.png');
  background-position: left top, right top;
  background-repeat: no-repeat, no-repeat;
  background-size: 31px 100%, 31px 100%;
  padding-left: 15px;
  padding-right: 15px;
  z-index: 10;
}

.small-horizontal-scroll::before {
  content: "";
  position: absolute;
  top: 0;
  left: 31px;
  width: calc(100% - 60px);
  height: 100%;
  background-image: url('../assets/general/scroll/horizontal2-middle.png');
  background-size: 100% 100%;
  z-index: -1;
}

.standard-horizontal-scroll {
  display: inline-block;
  height: 80px;
  line-height: 74px;
  vertical-align: center;
  white-space: nowrap;
  font-size: 48px;
  font-family: 'Deutsche Uncialis', 'Georgia', serif;
  position: relative;
  background-image: url('../assets/general/scroll/horizontal2-left.png'), url('../assets/general/scroll/horizontal2-right.png');
  background-position: left top, right top;
  background-repeat: no-repeat, no-repeat;
  background-size: 42px 100%, 42px 100%;
  padding-left: 15px;
  padding-right: 15px;
  z-index: 10;
}

.standard-horizontal-scroll::before {
  content: "";
  position: absolute;
  top: 0;
  left: 42px;
  width: calc(100% - 83px);
  height: 100%;
  background-image: url('../assets/general/scroll/horizontal2-middle.png');
  background-size: 100% 100%;
  z-index: -1;
}

.vertically-enscrolled {
  position: relative;
  background-image: url('../assets/general/scroll/vertical-scroll-top.png'), url('../assets/general/scroll/vertical-scroll-bottom.png');
  background-position: left top, left bottom;
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 77px, 100% 77px;
  padding-top: 15px;
  padding-bottom: 15px;
  padding-left: 16%;
  padding-right: 5%;
  max-width: 751px;
}

.vertically-enscrolled.mostly-text {
  padding-left: 19%;
  padding-right: 8%;
}

.vertically-enscrolled::before {
  content: "";
  position: absolute;
  top: 77px;
  left: 0;
  height: calc(100% - 154px);
  width: 100%;
  background-image: url('../assets/general/scroll/vertical-scroll-middle.png');
  background-size: 100% 100%;
  z-index: -1;
}

.parchmented {
  position: relative;
  background-image: url('../assets/general/scroll/parchment-top.png'), url('../assets/general/scroll/parchment-bottom.png');
  background-position: left top, left bottom;
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 137px, 100% 132px;
  padding-top: 50px;
  padding-bottom: 50px;
  padding-left: 9%;
  padding-right: 5%;
  max-width: 697px;
}

.parchmented::before {
  content: "";
  position: absolute;
  top: 137px;
  left: 0;
  height: calc(100% - 269px);
  width: 100%;
  background-image: url('../assets/general/scroll/parchment-middle.png');
  background-size: 100% 100%;
  z-index: -1;
}

@media screen {
  #overall-layout-body {
    margin-top: 20px;
  }
  #overall-layout-header {
    display: flex;
  }
}

@media print {
  #overall-layout-header {
    display: none;
  }
  
  .horizontal-enscrolled-left {
    display: none;
  }
  
  .horizontal-enscrolled-right {
    display: none;
  }
  
  #overall-layout-body {
    margin-top: 0px;
  }
}

/* Header */

#overall-layout-header {
  background-color: #D1B780;
  border-bottom: 2px #665F4F solid;
  height: 40px;
  line-height: 40px;
  color: black;
  width: 100%;
  z-index: 5000;
  justify-content: space-between;
  flex-wrap: nowrap;
  min-width: 1024px;
}

#overall-layout-header div {
  height: 100%;
  padding-left: 5px;
  padding-right: 5px;
}

#header-navigation-links, #header-statuses {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
}

span#header-session-team-name {
  font-size: 14px;
}

/* Inventory Grid */

#header-inventory-grid {
  font: inherit;
  font-family: 'Lora', serif;
}

#header-inventory-grid table {
  font: inherit;
  font-family: 'Lora', serif;
}

.modal-content {
  text-align: center;
}

#header-inventory-grid .modal-dialog {
  width: 570px;
  margin-top: 100px;
}

#header-inventory-grid .modal-content {
  text-align: center;
  background-image: url('../assets/general/fabric-background.png');
  background-size: 100% 100%;
}

#header-inventory-grid .modal-header {
  border-bottom: none;
}

#header-inventory-grid table {
  border-collapse: collapse;
  margin: auto auto;
}

#header-inventory-grid td {
  border: 3px solid #665F4F;
  background-color: rgba(255,255,255,0.7);
  padding: 0px 0px;
  text-align: center;
  vertical-align: bottom;
}

#header-inventory-grid td div {
  position: relative;
  padding: 0px 0px;
}

#header-inventory-grid .inventory-grid-cell-content:hover .inventory-grid-caption {
  display: block;
}

#header-inventory-grid .inventory-grid-caption {
  text-align: initial;
  display: none;
  position: absolute;
  top: 45px;
  left: 45px;
  z-index: 1200;
  padding: 3px 3px;
  border: 3px solid black;
  background-color: white;
  min-width: initial;
  min-height: initial;
  width: auto;
  height: auto;
  white-space: nowrap;
}

#header-inventory-grid .inventory-grid-cell-content:hover .inventory-grid-full-image {
  display: block;
}

#header-inventory-grid .inventory-grid-full-image {
  display: none;
  position: absolute;
  top: 80px;
  left: 45px;
  border: 3px solid black;
  background-color: white;
}

#header-inventory-grid td a {
  color: black;
}

#header-inventory-grid td a:hover {
  color: black;
}

#header-inventory-grid td a:visited {
  color: black;
}

#header-inventory-grid td#printable-link-cell {
  padding: 5px 5px;
}

#header-navigation .modal-header {
  background-image: url('../assets/general/wooden-background.png');
  background-size: 100% auto;
  border-bottom: none;
}

#header-navigation .modal-body {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
}

#header-navigation .modal-body ul {
  list-style-type: none;
  padding-left: 0px;
}

#header-navigation .navigation-column {

}

#header-navigation .navigation-column-header {
  font-weight: bold;
}

#header-change-contact-info .modal-header {
  background-image: url('../assets/general/wooden-background.png');
  background-size: 100% auto;
  border-bottom: none;
}

#header-change-contact-info table.centered {
  margin-left: auto;
  margin-right: auto;
}

#header-change-contact-info .text-align-right {
  text-align: right;
}

/* Captions */

.tooltip {
  height: auto !important;
}

.tooltip-inner {
  height: auto !important;
  background-color: #D1B780;
  color: black;
  font-size: 20px;
  font-family: 'Lora', serif;
}

/* Announcements and Errata */

#announcements-and-errata {
  margin-top: 1em;
  margin-bottom: 1em;
  padding: 0.5em;
  display: inline-block;
  background-color: rgba(255, 222, 173, 0.95);
  border-radius: 10px;
  border: 2px solid black;
}

/* Other */

#main-page-content {
  clear: both;
}

.clear-both {
  clear: both;
}

a:link {
  color: black;
  text-decoration: none;
}

a:link:hover {
  color: black;
  text-decoration: underline;
}

a:visited {
  color: black;
}

a:link.standard-link {
  color: blue;
  text-decoration: none;
}

a:link:hover.standard-link {
  color: blue;
  text-decoration: underline;
}

a:visited.standard-link {
  color: blue;
}

span.puzzle-reward-solution-label {
  font-family: 'Deutsche Uncialis', 'Georgia', serif;
  font-size: 28px;
}

span.puzzle-reward {
  padding-left: 5px;
  font-family: 'Deutsche Uncialis', 'Georgia', serif;
  font-size: 28px;
  white-space: nowrap;
}

span.underline, span.answer-blank {
  font-family: 'Times New Roman', serif;
}

#checkAnswerTextbox {
  margin-top: 6px;
  margin-bottom: 6px;
  padding-left: 2px;
  padding-right: 2px;
}