@font-face {
  font-family: 'forgotten_futurist_rg';
  src: url('fonts/forgotten_futurist_rg-webfont.woff2') format('woff2'),
       url('fonts/forgotten_futurist_rg-webfont.woff') format('woff'),
       url('fonts/forgotten_futurist_rg.ttf') format('ttf');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: ptsans-narrow;
  src: url(fonts/ptsans-narrow-web-regular.ttf);
}
@font-face {
  font-family: glimmer_of_light;
  src: url(fonts/glimmer_of_light.ttf);
}

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

body {
  background-color: transparent;
  overflow-x: hidden;
  font-family: ptsans-narrow, Arial, Helvetica, sans-serif;
  font-size: 18px;
  text-align: center;
}

h1 {
  font-family: "glimmer_of_light", Times, serif;
  font-size: 30px;
  margin-bottom: 8px;
}

h2 {
  font-family: 'forgotten_futurist_rg', serif;
  margin-bottom: 5px;
}

#main {
  width: 100%;
  max-width: 960px;
  min-height: 100vh;
  margin-left: auto;
  margin-right: auto;
}

#promo {
  padding-top: 85px;
  transition: opacity 1s;
}

.promotext {
  font-size: 22px;
  width: 75%;
  margin-left: auto;
  margin-right: auto;
}

#viewcontrols {
  text-align: center;
  width: 90%;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 15px;
  background-color: rgba(0, 0, 0, 0.5);
  height: 42px;
  color: #fff;
  font-size: 18px;
  display: flex;
  flex-direction: row;
  margin-bottom: 20px;
}

.bothends {
  width: 110px;
  transform: translate(0, 20%);
}

#iconsize {
  position: relative;
  top: 50%;
  transform: translate(0, -50%);
  width: 260px;
  margin-left: 20px;
  margin-right: 20px;
}

#iconsize::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

#iconsize::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

#sortbutton {
  background: none;
  border: 2px solid white;
  color: white;
  text-align: center;
  display: inline-block;
  font-size: 17px;
  border-radius: 8px;
  width: 68px;
  height: 26px;
  font-family: ptsans-narrow;
}

#gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 960px;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
}

.allCard {
  --all-name-size: 18px;
  --all-data-size: 16px;
  position: relative;
  text-align: center;
  margin: 3px;
  padding: 0 0 7px 0;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid rgba(25, 76, 33, 0.45);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(236,246,231,0.94));
  box-shadow: 2px 3px 7px rgba(0, 0, 0, .28);
  transition: transform .25s, box-shadow .25s, background .25s;
  overflow: hidden;
}

.allCard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: calc((var(--all-name-size) * 2.18) + 8px);
  background: #FFFAAA;
}

.allCard:hover {
  transform: translate(0, -2px);
  box-shadow: 3px 6px 13px rgba(0, 0, 0, .34);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(210,248,210,0.95));
}

.cardHeader {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc((var(--all-name-size) * 2.18) + 8px);
  padding: 3px 4px 3px 4px;
  color: #000;
  font-size: var(--all-name-size);
  line-height: 1.05;
  text-shadow: 2px 2px 3px rgba(255,255,255,.55);
  overflow: hidden;
}

.cardImageBox {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 5px 0;
  overflow: hidden;
  background: #fff;
}

.cardImageBox img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cardMeta {
  position: relative;
  z-index: 1;
  font-size: var(--all-data-size);
  color: #3b3b3b;
  line-height: 1.1;
  margin-top: 3px;
  padding: 0 3px;
}

.cardTags {
  position: relative;
  z-index: 1;
  min-height: 20px;
  margin-top: 5px;
  padding: 0 2px;
  font-size: var(--all-data-size);
}

.availableTag, .flagTag {
  display: inline-block;
  border-radius: 10px;
  font-size: .82em;
  line-height: 1.05;
  padding: 2px 6px;
  margin: 0 1px 3px 1px;
}

.availableTag {
  color: #fff;
  background: #194c21;
}

.flagTag {
  color: #532a00;
  background: #fbfcb8;
  border: 1px solid rgba(0,0,0,.18);
}

.noResults {
  font-size: larger;
  color: darkred;
  margin-top: 50px;
}

/* Sort Controls */
#sortwindow {
  width: calc(90% - 20px);
  max-width: 460px;
  text-align: left;
  font-size: 18px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  max-height: 0;
  opacity: 0;
  transition: max-height 1s, padding 0.5s, opacity 1s, margin-bottom 1s;
  border-radius: 15px;
  padding: 0;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.5);
}

#sortTitle {
  font-size: 20px;
  color: #ffffff;
}

#sortClose {
  text-align: right;
}

#OptionsTable {
  width: 100%;
  transform: translate(0, -2px);
}

#closebtn {
  width: 22px;
}

#searchtext {
  width: calc(100% - 88px);
  transform: translate(0, -1px);
}

.sortTable {
  width: calc(100% - 16px);
  margin-left: 16px;
  table-layout: fixed;
}

#zoneTable {
  width: calc(100% - 16px);
  margin-left: 16px;
}

#petalColor, #coronaColor {
  width: 38px;
  text-transform: uppercase;
  text-align: center;
}

.smallNote {
  text-align: center;
  font-size: smaller;
}

.centered {
  text-align: center;
}

.hyphen {
  font-size: larger;
}

.checkAll {
  float: right;
  font-size: smaller;
  margin-right: 4px;
  margin-top: 2px;
  color: blue;
  display: none;
  cursor: pointer;
}

.panel {
  background-color: #ffffff;
  transition: max-height 0.3s ease-out;
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid darkgray;
}

#line2, #line3, #line4, #line5, #line6 {
  margin-top: 5px;
  background: #a6a6a6;
}

#line1 {
  background: #fbfcb8;
}

#sortBottom {
  margin-top: 3px;
  color: #ffffff;
  width: 100%;
}

#sortBottom table {
  width: 100%;
}

#summary {
  width: 50%;
  text-align: left;
  font-size: smaller;
}

#displayCell {
  width: 50%;
  text-align: right;
}

hr {
  width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.sectionLinks {
  font-family: "forgotten_futurist_rg";
  font-size: 24px;
  margin-top: -8px;
  margin-bottom: -8px;
}

a:link, a:visited {
  text-decoration: none;
}

a:hover {
  color: #56b627;
  text-decoration: underline;
}

@media screen and (orientation: portrait) and (max-width: 400px) {
  h1 { font-size: 18px; }
  .promotext { font-size: 20px; }
  #viewcontrols input { width: 130px; }
  #sortbutton { width: 62px; transform: translate(-2px, 0); }
  #sortwindow { font-size: 14px; }
  #sortTitle, #sortBottom { font-size: 16px; }
  .sectionLinks { font-size: 20px; }
  .disappear { display: none; }
  .bothends { width: 92px; }
  .allCard { border-radius: 8px; }
  .cardImageBox { margin-bottom: 4px; }
}

@media screen and (orientation: portrait) and (min-width: 400px) {
  h1 { font-size: 22px; }
  .promotext { font-size: 22px; }
  #viewcontrols input { width: 160px; }
  #sortwindow { font-size: 14px; }
  #sortTitle, #sortBottom { font-size: 16px; }
  .sectionLinks { font-size: 24px; }
  .disappear { display: none; }
  .allCard { border-radius: 8px; }
}

@media screen and (min-width: 500px) {
  h1 { font-size: 26px; }
  #viewcontrols input { width: 250px; }
  #sortwindow { font-size: 16px; }
  #sortTitle, #sortBottom { font-size: 18px; }
  .disappear { display: inline-block; }
}

@media screen and (orientation: landscape) {
  h1 { font-size: 30px; }
  #sortwindow { font-size: 18px; }
  #sortTitle, #sortBottom { font-size: 20px; }
}


.pageControls {
  width: 100%;
  margin: 12px auto 12px auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #194c21;
}

.pageStatus {
  font-size: 17px;
  text-align: right;
}

.limitControl {
  font-size: 17px;
}

.limitControl select {
  font-family: ptsans-narrow, Arial, sans-serif;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #777;
  background: #fff;
  height: 26px;
}

.pageLinks {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.pageButton {
  min-width: 32px;
  height: 28px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid #194c21;
  background: #fff;
  color: #194c21;
  font-family: ptsans-narrow, Arial, sans-serif;
  font-size: 16px;
  cursor: pointer;
}

.pageButton.currentPage {
  background: #194c21;
  color: #fff;
  cursor: default;
}

.pageButton:disabled {
  border-color: #aaa;
  color: #aaa;
  background: #eee;
  cursor: default;
}

.pageButton.currentPage:disabled {
  border-color: #194c21;
  background: #194c21;
  color: #fff;
}

.pageEllipsis {
  color: #194c21;
  padding: 0 3px;
}

.loadingLine {
  width: 100%;
  font-size: larger;
  color: #194c21;
  margin-top: 50px;
}

@media screen and (max-width: 520px) {
  .pageControls {
    gap: 6px;
  }
  .pageButton {
    font-size: 15px;
    padding: 0 7px;
  }
}
