@charset "UTF-8";
@font-face {
  font-family: FontAwesome;
  src: url("fonts/fontawesome-webfont.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
::before {
  font-family: fontawesome;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 100%;
  font-family: Consolas, Menlo, Monaco, monospace;
}

html,
body,
div,
main,
header,
footer,
form,
article,
nav,
span,
section,
input,
textarea,
select,
table {
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  background-image: linear-gradient(#20341e, black);
}

#pagewrapper {
  max-width: 900px;
  height: 100%;
}

@media only screen and (min-width: 0px) and (max-width: 480px) {
  /* smartphones, iPhone, portrait 480x320 phones */
  #pagewrapper {
    height: 100%;
  }
}
@media only screen and (min-width: 481px) {
  #pagewrapper {
    height: 100vh;
  }
}
/*+++++++++++++++++default construction++++++++++++++++++++++++++++++++++++++++*/
::before, ::after, .awesome {
  font-family: "fontAwesome";
}

#pagewrapper.opaque {
  opacity: 0.3;
}

.modal {
  position: absolute;
  z-index: 1000;
  background-color: silver;
  border-radius: 5px;
  border: none;
}
.modal.detail {
  max-width: 800px;
  width: 98%;
  background: url(../graphics/background.jpg);
  box-shadow: 2px 2px 20px 15px gray;
  height: 100%;
  overflow-y: auto;
}

@media only screen and (min-width: 0px) and (max-width: 480px) {
  .modal.detail {
    top: 1vh;
    width: 100vw;
  }
}
article {
  display: flex;
}
article.header {
  justify-content: space-between;
  border-bottom: 2px solid gray;
  padding: 0.5em;
}
article.header span.title {
  display: flex;
  font-size: 20pt;
  justify-self: center;
  font-weight: bold;
}
article.header span.xbtn {
  font-size: 24pt;
  cursor: pointer;
}
article.header span.xbtn:before {
  color: #1679d9;
  margin: 0;
  content: "";
}
article.body {
  flex-direction: column;
}

#pagewrapper {
  font-family: Arial, Helvetica, sans-serif;
  font-size: smaller;
}

div {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.imglink {
  border-style: none;
  text-decoration: none;
}

a:hover img {
  border: none;
}

a img {
  border-style: none;
}

a#je {
  position: absolute;
  z-index: 1000;
}
a#je:hover {
  background: silver;
}
a#je::before {
  content: "";
  cursor: pointer;
  font-size: 24pt;
}

a, span.link {
  text-decoration: none;
  color: #006777;
  cursor: pointer;
}

a:hover, span.link:hover {
  color: #0000CC;
}

a:visited {
  color: #006776;
}

a:visited:hover {
  color: #0000CC;
}

/*===========*page layout============*/
#pagewrapper {
  background-repeat: repeat-y;
  background: url(../graphics/background.jpg);
}

#heading {
  background: url("../elkinjackson/main/Elk-title.jpg");
  text-align: right;
  padding: 2vh;
}
#heading #header-title {
  font-size: 36pt;
  color: white;
  opacity: 60%;
}
#heading #header-title span {
  font-size: 14pt;
}

#contents {
  flex-direction: row;
  flex: 1 1 auto;
  border-bottom: 1px whitesmoke solid;
}
#contents #leftbar {
  background: #eeeeee;
  justify-content: space-evenly;
  border-right: whitesmoke 2px solid;
}
#contents #leftbar div {
  font-size: smaller;
  color: gray;
  padding: 1em;
  justify-content: center;
  align-items: center;
  text-align: center;
}
#contents #leftbar div img {
  width: 4em;
}
#contents #learn {
  flex: 3;
  padding: 2em;
}
#contents #learn .subject {
  font-weight: bold;
  font-size: 110%;
}
#contents #learn .pointer {
  padding: 1px;
}
#contents #learn .pointer p {
  margin: 0;
  padding: 0;
  color: gray;
  font-size: smaller;
  font-style: italic;
  padding-left: 4em;
}
#contents #learn .pointer p a {
  display: inline-block;
}
#contents #learn a, #contents #learn span.link {
  display: flex;
  align-items: center;
}
#contents #learn .subject {
  padding-bottom: 0.25em;
}
#contents #learn .subjectblock {
  padding-bottom: 2em;
}

#reference {
  margin: 1em;
  border-bottom: 0px;
  align-items: center;
}
#reference .pointer {
  cursor: pointer;
  margin: 0.25em;
}
#reference .pointer::before {
  font-family: FontAwesome;
  content: "";
  margin-right: 0.5em;
}
#reference .caret-down::before {
  content: "";
}
#reference .heading {
  font-weight: bold;
  font-size: 120%;
}
#reference #websites {
  display: inherit;
}
#reference .web {
  display: inline-block;
  color: navy;
  margin: 0.15em 1em;
}
#reference .web::before {
  content: "";
  font-size: smaller;
  margin-right: 0.5em;
}
#reference #bibliography {
  display: none;
  border-bottom: 1px solid #5D5D5D;
  width: 70%;
}
#reference .bibl {
  color: navy;
  border-top: 1px solid #5D5D5D;
  overflow-wrap: anywhere;
}
#reference .sub {
  font-style: italic;
}

div.spacer {
  flex: 1 1 100%;
}

#trivia {
  font-size: 16pt;
  font-weight: bold;
  text-align: center;
  justify-content: center;
  max-width: 400px;
  align-self: center;
  border: 1px solid green;
  border-radius: 10px;
  margin: 0.5em;
  padding: 0.5em;
  width: 90%;
  flex: 1 1 350px;
}

#trivia-footer {
  background: silver;
  flex-direction: row;
  justify-content: center;
}
#trivia-footer #next:before {
  content: "";
}
#trivia-footer #previous:before {
  content: "";
}
#trivia-footer span {
  flex: 0 0 1em;
  font-size: 36pt;
  cursor: pointer;
}

.hidden-trivia {
  display: none;
}

.slideshow {
  top: 10vh;
  align-self: flex-start;
  min-height: 70vh;
}
.slideshow #caption {
  text-align: center;
  margin: 0.5em 0.25em;
}
.slideshow #audio::before {
  content: "";
  font-size: 24pt;
}
.slideshow #audio.pause::before {
  content: "";
}
.slideshow #audiobar {
  align-self: center;
}

.murie article.header span.title {
  font-size: 16pt;
}

.habitat article.header span.title {
  font-size: 16pt;
}

#puzzle header {
  padding-left: 5px;
  max-height: 500px;
  transition: max-height 0.25s ease-in;
}
#puzzle header.hidden {
  max-height: 0;
  transition: max-height 0.5s ease-out;
  overflow: hidden;
}
#puzzle .tabs span {
  padding: 10px;
  border: 1px solid gray;
  cursor: pointer;
}
#puzzle .tabs span.selected {
  background: yellow;
}
#puzzle table {
  display: none;
  padding-bottom: 1em;
}
#puzzle table.show {
  display: table;
}
#puzzle table th {
  text-align: left;
  background: silver;
}
#puzzle table th, #puzzle table td {
  padding: 0.5em;
}
#puzzle table tr {
  height: 3em;
  background: rgba(150, 150, 150, 0.3);
}
#puzzle table button {
  cursor: pointer;
}

#crossword input {
  height: 1.5em;
  background: #5d5c8d3b;
  border: none;
  border-bottom: 1px solid black;
}
#crossword .body {
  align-items: center;
  overflow-y: auto;
}
#crossword #legend {
  display: flex;
  flex-direction: column;
  padding: 1em;
}
#crossword #legend article {
  text-indent: -1em;
  margin-left: 1em;
  display: block;
}
#crossword #legend span.length {
  font-style: italic;
  text-indent: 0;
  font-size: 80%;
  align-self: center;
  color: grayy;
}
@media only screen and (min-width: 0px) and (max-width: 480px) {
  #crossword #legend {
    flex-direction: column;
  }
}
#crossword #grid {
  display: grid;
  grid-template-columns: repeat(17, 1fr);
  grid-template-rows: repeat(17, 1fr);
  height: 22em;
  width: 22em;
}
#crossword #grid span {
  background-color: #99CC66;
}
#crossword #grid span.puzzle {
  background: whitesmoke;
  border: 1px dotted silver;
  position: relative;
  font-weight: bold;
  text-align: center;
}
#crossword #grid span.puzzle span.number {
  position: absolute;
  left: 0;
  font-size: 8pt;
  color: #CC3300;
  background: whitesmoke;
}