/* css reset */

/*@media (prefers-color-scheme: dark) {*/
  
  /* using this to trigger javascript to set darkmode styles */
/*  body {*/
/*    background-color: black; */
/*  }*/
/*}*/

* {
  margin: 0;
  padding: 0;
  /*border: 0;*/
  outline: 0;
  /*font-size: 100%;*/
  vertical-align: baseline;
  /*background: transparent;*/
}

body {
  background-color:white;
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  text-align: left;
  vertical-align: top
}

header,
section,
article,
aside,
nav,
footer {
  display: block;
}

body {
  background: #fff;
  color: #555c66;
  font-family: 'Droid Serif', serif;
}

#site-search-form {
    position: absolute;
    top: 8px;
    right: 10px;
  
}
.new_search {
    padding: 4px 9px 4px 15px;
    height: 30px;
    width: 280px;
    color: hsla(0, 0%, 51%, 1);
    border: 1px solid #ccc;
    -moz-border-radius: 15px;
    border-radius: 10px;
     content: '&#128269;search';
    font-size: 105%;
    /* text-transform: uppercase; */
    background-color: #ffffffa8;
}

.new_search::placeholder {
      color: hsla(0, 0%, 51%, 1);

}

#navfilter {
  padding: 0.5em;
  margin: 1em;
  font-size: large;
}


/*
colors

*/

.l {
  text-align: left !important;
}

.r {
  text-align: right;
}

.c {
  text-align: center;
}

.nowrap {
  white-space: nowrap;
}

a {
  color: #356d71; 
  text-decoration: none;
}

/*a:visited {color: #;} */

a:hover {
  color: #409edd;
}

figure.frontendimage {
  float: left;
}

figure.frontendimage>img {
  width: 10vw;
  float: left;
  border: 1px solid #aaa;
}

figure.frontendimage figcaption p {
  text-indent: 0em;
  width: 10vw;
  font-size: small;
  font-style: oblique;
  color: #aaa;
  position: relative;
  top: 1em;

}


/* indicate external links with web-standardish dual overlapping squares --vzm */

a[target='_blank']::after {
  content: '\29C9';
  vertical-align: super;
  font-size: smaller;
  width: 50%;
}

#blog::after,
#adminentry::after {
  content: '';
  vertical-align: baseline;
  font-size: medium;
  width: 100%
}

/* don't put the icon after our Blog tab in the header */

#adminentry {
  padding-left: 4em;
  color: red;
  font-size: smaller;
}

.hilight {
  background-color: yellow !important;
}

.note {
  font-size: 80%;
  color: #a19c99;
}


.filter {
  color: #555c66;
  border-bottom: 1px dotted #333;
}

.filter:hover {
  border-color: #feb239;
}

p {
  margin: 0 0 1em;
  color: black;
  line-height: 2.0rem;
}

hr {
  border: 1px solid #ddd;
  border-width: 1px 0 0;
  margin: 1em 0;
  height: 1px;
}

h1,
h2 {
  font-weight: normal;
  line-height: 1.1;
}

h1 {
  font-size: 30px;
  margin: 0 0 20px;
}

h1 span {
  display: block;
  font-size: 70%;
  color: #666;
}

iframe {
  width: 100%;
  margin: 1em 0;
}

header {
    position: fixed;
    width: 100%;
    color: #5a907e;
    background: linear-gradient(hsl(205, 91%, 57%), hsl(205, 70%, 91%), hsla(0, 0%, 100%, 0.9));
}

#logo {
    font-size: 34px;
    margin: 0.1em 0.5em 0.3em;
    /*line-height: 1.1;*/
    width: 820px;
    /*color: red; */
    /* #4a7f6d;*/
}

#logo #title {
  /*color: #4a7f6d;*/
  display: block;
  position: relative;
  top: -0.1em;
}

#header-details {
    font-family: 'Verdana','Ariel',sans-serif;
    padding-bottom: 2em;
    max-width: 80%;
    font-size: 13px;
    line-height: 1.4;
    /* font-style: italic; */
}

#header-details p {
  line-height: 1.4;
  text-indent: 0;
}

#logo span {
    font-size: 16px;
    /* display: block; */
    line-height: 1.8rem;
    font-style: oblique;
    /*vertical-align: super;*/
}

#instructions {
  margin: 1em 0em;
  font-size: 110%;
  font-weight: bold;
  text-indent: 0em;
}


/*#accordion h4 {*/
/*  display: block;*/
/*    cursor: pointer;*/
/*    position: relative;*/
/*    margin: 2px 0 0 0;*/
/*    padding: .5em .5em .5em .7em;*/
/*    font-size: 100%;*/
/*}*/

.ui-widget {
  font-size: 0.8em;
}

.loader {
  display: inline-block;
  border: 5px solid #f3f3f3;
  -webkit-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
  border-top: 5px solid #555;
  border-radius: 50%;
  width: 30px;
  height: 30px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}



/* #logo span span {display: inline; width: auto; margin: 4px 0 0; font-size: 13px;} */

#stats {
  display: block;
  color: #a19c99;
  margin-top: 1em;
}

#mainmama {
  margin-left: 350px;
}

header nav {
    /*border-bottom: 1px solid #4a7f6d;*/
    overflow: auto;
    padding: 0 0 0 1.0em;
    color: #555c66;
}

#title {}

header nav li {
  float: left;
  margin: 0 3px 0 0;
}

header nav #nav-browse,
header nav li a {
  padding: 10px 12px;
  float: left;
}

header nav li a {
    background: #62bb9d;
    color: #fff;
    /* font-weight: 700; */
    text-shadow: #000 0px 0px 2px;
    font-family: 'Verdana','Ariel',sans-serif;
    min-width: 5em;
    text-align: center;
}

header nav #nav-browse {
  text-transform: uppercase;
  font-size: 80%;
  color: #4a7f6d;
}

header nav li a:hover {
  background: #5a907e;
  color: #fff;
}

#entryno header nav #nav-entryno a,
#title header nav #nav-title a,
#year header nav #nav-year a,
#author header nav #nav-author a,
#subject header nav #nav-subject a,
#place header nav #nav-place a,
#about header nav #nav-about a {
  background: #fff;
  color: #62bb9d;
  text-shadow: black 0px 0px 1px;
    
  border-left: 1px solid #00000063;
  border-right: 1px solid #00000063;
  border-top: 1px solid #00000063;
}

header nav #nav-about,
header nav #nav-blog,
header nav #nav-guide
{
  float: right;
}

header nav #nav-blog {
  margin-right: 20px;
}

#st-search-input {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 16px;
}

.st-modal-scrollable * {
  font-size: 14px !important;
  font-family: 'Droid Serif', serif;
}

.st-search-summary,
.st-search-summary * {
  font-size: 16px !important;
}

section {
  padding: 173px 0 50px;
  line-height: 1.4;
  max-width: 900px;
}

#currently {
  text-transform: uppercase;
  margin: 0 0 1em;
}

#collist .note {
position: absolute;
    /* top: 0px; */
    right: 0px;
    /* float: right; */
    /*margin-left: 4em;*/
    background: #009c678c;
    color: #fff;
    width: 1.5em/*22px */;
    height: 13px;
     padding: 2px 5px 0px; 
    text-align: center;
    border-radius: 5px;
}


#collist .note2 {
    background-color: hsla(204, 70%, 56%, 1);
    width: 1.5em;
    padding: 2px 5px 0px;
    top: auto;
    margin-right: 0.6em;
}

#collist {

    position: fixed;
    border-right: 1px solid #4a7f6d;
    /* border-width: 8px 8px 8px 8px; */
    display: none;
    background: #fff;
    z-index: 2;
    margin: 0.2em 0.5em;
    /* border-radius: 11px; */
    overflow-y: scroll;
    left: 0;
    
    
    border: 1px solid lightgrey;
    border-radius: 1em;
    padding-right: 1em;
}

#collist ul {
  height: inherit;
}

#collist ul,
#collist li {
  margin: 0;
  padding: 1px 0px;
  list-style: none;
}

#collist a {
  display: block;
    text-decoration: none;
        border-bottom: 1px solid rgba(107, 107, 107, 0.24);

    /*border-bottom: 1px solid rgb(107, 107, 107);*/
    /* padding: 6px 44px 6px 20px; */
    position: relative;
    /*line-height: 1.2;*/
    margin-left: 1.2em;
}

#collist h4 a {
  border: none;
      padding: .5em .5em .5em .7em;
}

#collist h4 a:hover {
  color: #356d71;
}
.ui-accordion .ui-accordion-content  {
  /*padding: 6px 6.4px 0px 0px;*/
  background: #a7d0c04d;
  border: none;
  border-radius: 0;
}

.ui-accordion .ui-accordion-header {
  background: none;
  border: none;
  margin: 0;
  /*padding-right: 1.7em;*/
}

/*#collist a:hover {*/
/*  background: #feb239;*/
/*  color: #fff !important;*/
/*}*/

#collist h4:hover {
  background: #3aa5f5;
    color: #fff; 
    /*!important;*/
    /*padding-left: 1em;*/
    /*padding-right: 1em;*/
    /*border-radius: 0.3em;*/
}

#collist h4:hover .current {
  color: white;
}

#collist a:hover .note {
  background: rgba(255, 255, 255, .4);
  color: #409edd;
  
}


#collist a.current {
  /*background: #51aeb6;*/
  /*color: #fff !important*/
      color: #409edd ;
      /*background: white;*/
}

#collist a.current:hover {
  color: white;
  background: inherit;
}

#collist .parent {
  font-size: 80%;
  display: block;
}

#collist .indent {
  padding-left: 1em;
  padding-right: 1.7em;
}

#collist .seealso,
#collist .see .subject {
  font-size: 90%;
  color: #aaa
}

#collist .seealso span
/*#collist .see .subject*/

  {
  color: #4a9fa6;
}

#collist .seealso .intro,
#collist .see .intro {
  font-weight: bold;
  color: #4a9fa6;
  font-style: italic;
}

/*#collist .seealso:hover,*/
/*#collist .see:hover*/
/*{*/
/*    color: #fff ;*/
/*}*/

#collist .seealso:hover .intro,
#collist .see:hover .intro {
  color: #fff;
}

#collist .seealso .note,
#collist .see .note {
  display: none;
}

/* mac os x lion scrollbar fix */

#collist ul::-webkit-scrollbar {
  -webkit-appearance: none;
}

#collist ul::-webkit-scrollbar:vertical {
  width: 13px;
  border-left: 1px solid #f1efee;
}

#collist ul::-webkit-scrollbar-thumb {
  border-radius: 8px;
  border: 3px solid #fff;
  /* should match background, can't be transparent */
  background-color: rgba(85, 92, 102, .6);
}

#content {
  max-width: 900px;
}

.permanentlink {
  border: 1px solid #f1efee;
  background: linear-gradient(hsl(205, 70%, 91%), hsl(205, 70%, 91%), hsla(20, 10%, 94%, 0.9));
  /* linear-gradient(#b0c4de82,#f1efee);*/
  border-radius: 0.5em;
  margin: 0em 0 10em 0;
}

h2.permanentheader {
  border: 1px solid #f1efee;
  background: hsl(205, 70%, 91%);
  border-radius: 0.5em 0.5em 0em 0em;
  padding: 1em;
  margin: 1em 0 0 0;
  border-bottom: none;
}

.list h1 {
  margin: 0 0px 50px;
}

/* .list #content {margin: 0 120px 0 0px;} */

#subject.list #content {
  margin-bottom: 100px;
}

#inner #content {
  margin: 0;
}

/*.list.wider #content, .list.wider h1, #entry section #content {margin-left: 120px;} */

.list td {
  padding: 3em;
  border-top: 3px solid #f1efee;
}

.authors td {
  padding: 0;
}

#entry.list td {
  border-top: none;
}

.list h2 {
  font-size: 100%;
  margin: 0;
  line-height: 1.4;
  font-weight: 700;
  display: inline;
}

.list p {
  margin: 0;
  text-indent: 2em;
}

.entryHeading {
  line-height: 180%;
}

.annotation {
    margin-top: 1em;
}
.annotation p {
  line-height: 1.5rem;
}
.annotation img {
    max-width: 600px;
    height: auto;
    object-fit: contain;
}
#about.list p {
  margin: 0 0 1.4em;
  text-indent: 0;
}

#about.list #content {
  padding: 0 50px 50px 0;
}

.content section {
  margin: 0 120px 0 230px;
}

#buttonnav {
  margin: 0 auto 3em;
  overflow: auto;
}

#collist #buttonnav {
  height: auto;
  padding: 0.5em 0.1em 1.2em 0.2em;
  position: sticky;
  top: 0em;
  background: linear-gradient(white 70%, rgba(255, 255, 255, 0));
  z-index: 9999;
}

#buttonnav li {
  list-style: none;
  display: inline;
  margin: 0;
}

#buttonnav span,
#buttonnav a {
  float: left;
  width: 19px;
  padding: 0 2px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  border-radius: 20px;
  text-align: center;
  margin: 0 4px 4px 0;
  border: 2px solid #51aeb6;
}

#buttonnav span {
  background: #eee;
  color: #aaa;
  border-color: #eee;
}

#buttonnav span.current,
#buttonnav a.current {
  background: #51aeb6;
  border-color: #51aeb6;
  color: #fff !important;
  /*line-height: normal;*/
}

#buttonnav a {
  background: #fff;
  color: #4a9fa6;
  font-weight: bold;
}

#buttonnav a:hover {
  background: #feb239;
  border-color: #feb239;
  color: #fff !important;
}


footer {

  font-size: 12px;
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #a7d0c0;
  /* #f1efee; */
  border-top: 1px solid #4a7f6d;
  /* color: #a19c99; */
  font-family: sans-serif;

}

footer a,
footer a:visited {
  font-weight: bold;
}

footer ul {
  width: 100%;
  overflow: auto;
  padding: 2px 0;
  margin: 0;
  float: left;
}

footer ul li {
  margin: 4px 0;
}

footer .l {
  float: left;
  clear: left;
  margin-left: 16px;
}

footer .r {
  float: right;
  clear: right;
  margin-right: 16px;
}

footer #fb {
  float: right;
  margin-top: 4px;
}

footer .credit a {
  font-weight: normal;
  text-decoration: none;
}

/*
	nav toggle is the hamburger menu in the tab bar
*/

#navtoggle {
  width: 30px;
  height: 11px;
  border: 3px solid #fff;
  border-width: 3px 0;
  position: relative;
  float: right;
  margin: 20px 10px 10px;
  display: none;
  z-index: 2;
  position: relative;
}

#navtoggle:before {
  content: "";
  width: 30px;
  height: 3px;
  position: absolute;
  top: 4px;
  left: 0;
  background: #fff;
}

#navtoggle:after {
  content: "menu";
  position: absolute;
  top: -22px;
  right: -2px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
}

.show-tablet-down,
.show-mobile-down {
  display: none;
}

#logo .title-small {
  display: inline;
}

#logo .alt-urls {
  background: none;
  font-family: sans-serif; 
  letter-spacing: 0.104em;
  font-size: 15px;
  width: 100%;
  border-collapse: collapse;
}

.list .alt-urls td {
  padding: 0;
  border: none;
}

#logo .alt-urls td:nth-of-type(2) {
  text-align: center;
}


#logo .alt-urls td:nth-of-type(3) {
  text-align: right;
}

@media only screen and (min-width: 850px) {
  #collist {
    width: 300px;
  }

}

@media only screen and (max-width: 850px) {
  /*
	 this does the hamburger menu
	*/
  #navtoggle {
    display: block;
  }
  header nav ul {
    display: none;
  }
  header nav {
    padding-left: 0;
  }
  header nav ul li,
  header nav ul li a,
  header nav #nav-browse,
  header nav #nav-about {
    float: none;
    display: block;
    margin: 0;
  }
  header nav ul li a {
    padding-left: 20px;
    margin: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
  }
  header nav #nav-browse {
    padding-top: 20px;
  }
  footer .l,
  footer .r {
    float: none;
    clear: none;
    text-align: center !important;
    margin: 8px;
    line-height: 1.3;
  }
}

@media only screen and (max-width: 1024px) {
  .show-tablet-down {
    display: block;
  }
}

@media only screen and (max-width: 770px) {

  header,
  footer {
    position: relative;
    overflow: auto;
  }
  #logo span {
    width: 100%;
  }

  #logo .alt-urls {
    display: block;
    line-height: 18px;
  }
  #st-search-input {
    position: relative;
    top: auto;
    right: auto;
    margin: 0 0 20px 20px;
  }

  section {
    padding: 20px 0;
  }
  .list h1 {
    margin: 0 20px 50px;
  }
  .list #content,
  .content section {
    margin: 0 20px;
  }
  .list.wider #content,
  .list.wider h1,
  #entry section #content {
    margin-left: 20px;
  }

  .list td {
    padding: 1.4em .4em;
    border-top: 3px solid #f1efee;
  }

  #collist {
    top: 0;
    left: 0;
    width: 240px;
    height: 100% !important;
    border-color: #cecbc9;
    border-width: 0 34px 0 0;
    overflow-x: visible;
  }
  /*#collist a {padding: 14px 44px 14px 20px;}*/
  #collist .note {
    top: 9px;
  }
  #collist .toggle {
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-right: 16px solid #fff;
    position: absolute;
    top: 50%;
    right: -24px;
    margin-top: -24px;
    cursor: pointer;
  }
  #collist.closed .toggle {
    border-left: 16px solid #fff;
    border-right: 0;
    cursor: pointer;
  }
  body.slideleft {
    left: 240px;
    padding-left: 34px;
    overflow-x: hidden;
    position: relative;
  }

}


@media only screen and (max-width: 560px) {
  #logo {
    font-size: 7vw;
    font-weight: 700px;
  }
  #stats {
    font-size: 60%;
    font-weight: 400;
  }
  .show-mobile-down {
    display: block;
  }
  #logo .title-small {
    display: inline;
    font-size: 18px;
  }
}

@media only screen and (max-width: 400px) {
  .list td {
    display: block;
  }
  .list td:nth-child(odd) {
    padding-bottom: 0;
  }
  .list td:nth-child(even) {
    padding-top: 0;
    border-top-width: 1px;
  }
}
