div {
  font-family: 'NationalPark-Regular';
  font-weight: 400;
}

a.anchor {
  display: block;
  position: static;
  top: -300px;
  visibility: hidden;
  height: 0px;
}

a {
  color: #015854;
  font-weight: bold;
  text-decoration: none;
}

a:hover {
  color: #009e97;
}

.autoNightMode a {
  color: #F8CD43;
}

.autoNightMode a:hover {
  color: #ffffff;
}

body {
  background-image: url(images/forest_bg/bg_layer.png);
  background-attachment: fixed;
  background-size: cover;
  overscroll-behavior-y: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

.column {
  text-align: center;
  flex: 1;
}

.column img {
  vertical-align: middle;
  padding-right: 5px;
}

@media (max-width: 800px) {
  .row {
  display: flex;
  flex-flow: column wrap;
  }
  
  #column1 {
  order: 1;
  }

  #column2 {
  order: 2;
  }
}

h1, h2, h3 {
  clear: left;
  margin-top: 0px;
  font-family: 'NationalPark-Bold';
  color: #009e97;
}

.quick-facts h2, .quick-facts h3, .quick-facts b {
  color: #F8CD43;
}

.quick-facts {
  height: auto; 
  width: 270px; 
  padding: 1rem; 
  border: 1px solid #322;
  background-color: #015854;
  color: #fffbeb;
  border-radius: 1rem;
  left: 2rem;
  bottom: 2rem;
  margin-right: 2rem;
  position: relative;
  font-family: 'NationalPark-Regular';
  font-weight: 200 !important;
  font-size: 18px;
  
  @media (max-width: 1050px) {
    display: block;
    float: none !important;
    width: 100%;
    top: 0;
    left: -2rem;
    margin: 1rem;
    clear: both;
  }
}

.float-right {
  float: right;
}

#forest {
  margin: 0;
  padding: 0;
  perspective: 1px;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
  @media (max-width: 1050px) {
    top: -30vw;
    height: 130vh;
    position: relative;
    perspective: 3px;
  }
}

.nightColorShiftIn {
  animation: nightColorShiftIn 2s forwards;
}

.nightColorShiftInInstant {
  animation: nightColorShiftIn 0.01s forwards;
}

.nightColorShiftOutInstant {
  animation: nightColorShiftOut 0.01s forwards;
}

.nightColorShiftOut {
  animation: nightColorShiftOut 2s forwards;
}

.nightModeTextIn {
  animation: nightModeTextIn 2s forwards;
}

.nightModeTextOut {
  animation: nightModeTextOut 2s forwards;
}

.nightModeLinksIn {
  animation: nightModeLinksIn 2s forwards;
}

.nightModeLinksOut {
  animation: nightModeLinksOut 2s forwards;
}

@keyframes nightColorShiftIn {
  100% {
    filter: sepia(100%) saturate(400%) brightness(40%) hue-rotate(180deg);
  }
}

@keyframes nightColorShiftOut {
  0% {
    filter: sepia(100%) saturate(400%) brightness(40%) hue-rotate(180deg);
  }
}

@keyframes nightModeTextIn {
  100% {
    background: #333;
    color: #fffbeb;
  }
}

@keyframes nightModeTextOut {
  0% {
    background: #333;
    color: #fffbeb;
  }
}

@keyframes nightModeLinksIn {
  100% {
    color: #F8CD43;
  }
}

@keyframes nightModeLinksOut {
  0% {
    color: #F8CD43;
  }
}

.autoNightMode .content-section {
  background: #333;
  color: #fffbeb;
}

.night {
  filter: sepia(100%) saturate(300%) brightness(60%) hue-rotate(180deg);
}

.forest_layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  min-height:100%;
  min-width: 1600px;
  max-width: 100%;
  width: 100%;
}
#forest_bg {
  z-index: -2;
  transform: translateZ(0);
  object-fit: cover;
  display: none;
}

#forest_layer_0 {
  z-index: -2;
  transform: translateZ(0);
  object-fit: cover;
}
#forest_layer_1 {
  z-index: 5;
  transform: translateZ(-1px) scale(2);
}

#forest_layer_2 {
  z-index: 5;
  transform: translateZ(-2px) scale(3);
}

#forest_layer_3 {
  z-index: 5;
  transform: translateZ(-3px) scale(4);
}

#galleryItems img {
  width: 28%;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  margin: 10px;
  border: 3px #f5f5f5 solid;
}

#galleryItems img:hover {
  transform: scale(1.1);
}

.content {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  overflow: scroll;
  scrollbar-gutter: both-edges;

  mask-image: linear-gradient(to bottom, transparent 40px, white 60px, white, white 90%);
  mask-position: bottom;
  mask-repeat: repeat-x;
  mask-clip: content-box;
  
  position: fixed;
  top: 160px;
  right: 0;
  bottom: 0;
  left: 0;
  height:85%;
  width: 1064px;
  padding-top: 40px;
  
  @media (max-width: 1350px) {
    width: 95%;
  }
  
  @media (max-width: 1050px) {
    display: block;
    height: 95%;
    width: 98%;
    top: 10vw;
    margin: 0;
    mask-image: linear-gradient(to bottom, transparent 0, white 60px, white, white 90%);
  }
}

main {
  flex: 3;
  order: 1;
  height: max-content;
  margin-top: 40px;
  margin-bottom: 150px;
  margin-left: 1rem;
}

.content-section {
  color: black;
  background-color: #fffbeb;
  border-radius: 1.5rem;
  padding: 1em 1.5em 3em 1.5em;
  border: 1px solid #322;
  margin-right: 1rem;
  margin-left: 1rem;
  margin-bottom: 20px; 
  font-size: 20px;
  
  @media (max-width: 1050px) {
    font-size: 18px;
  }
}

/* Styling for the 'Web Ring' section on the home page */

#webring {
  color: #fffbeb;
  background-color: #015854;
  font-weight: semibold;
  font-family: 'NationalPark SemiBold';
  padding: 1em 1.5em 2em 1.5em;
}

#webring a {
  color: #F8CD43; 
  text-decoration: none;
}

#webring a:hover {
  color: #fffbeb;
  text-decoration: none;
}

/* Styling for the links on the 'Site Map' page */

#sitemap li {
    margin-top: 0.5em;
  }
  
#sitemap li a {
    color: #533831;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-color: #F8CD44;
  }
  
#sitemap li a:hover {
    color: #84573F;
    font-weight: bold;
    text-decoration-color: #FBDC7D;
  }
  
/* A button to go at the bottom of blog posts that takes you back to the 'Blog' home page */

.blog-home-button {
  display: inline-block;
  background: #015854;
  color: #F8CD43;
  border-radius: 1.5rem;
  padding: 1rem;
  font-weight: semi-bold;
  font-family: 'NationalPark-SemiBold';
  font-size: 20px;
  filter: drop-shadow(0.2rem 0.2rem 0.2rem #222);
}

.blog-home-button a {
  color: #F8CD43;
  text-decoration: none;
}

.blog-home-button a:hover {
  color: #fffbeb;
  text-decoration: none;
}

.blog-home-button:hover {
  transform: scale(1.1);
}

/* Some styling for blog posts in general */

#blog-content li {
  margin-bottom: 0.75rem;
}

#main_nav {
  width: 1060px;
  height: 60px;
  z-index: 10000;
  position: fixed;
  left: 50%;
  margin-left: -516px;
  top: 130px;

  @media (max-width: 1050px) {
    display: none;
  }
}

#main_nav > ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  margin-left: -12px;
}

#main_nav > ul > * {
  flex: 1 1 auto;
}

#main_nav > ul > li {
  position: relative;
  margin-left: -20px;
  padding-right: 25px;
}

#about-button {
  transform: rotate(1deg);
  z-index: 100;
}

#about-button > a {
  padding-left: 24px !important;
}

#commissions-button {
  width: 108px;
  left: -18px;
  transform: rotate(-2deg);
}

#commissions-button .dropdown-content {
  margin-left: 20%;
}

#commissions-button > a {
  padding-left: 6px !important;
  font-size: 33px !important;
  width: 100%;
}

#webcomic-button {
  left: -20px;
  width: 60px;
  transform: rotate(2deg);
}

#art-gallery-button {
  width: 90px;
  left: -6px;
}

#art-gallery-button > a {
  padding-left: 40px !important;
  font-size: 34px !important;
  margin-left: -8px;
}

#amphimorpho-button {
  width: 155px;
  transform: rotate(-2deg);
  left: -10px;
}

#amphimorpho-button a {
  margin-left: 6px;
}

.email-link {
  text-align: center;
  font-size: 130%;
  font-weight: bold;
  
  @media (max-width: 1050px) {
    font-size: 100%;
  }
}

#main_nav > ul > li > a {
  text-decoration: none;
  color: white;
  z-index: 10000;
  position: absolute;
  padding-top: 2px;
  padding-bottom: 25px;
  padding-left: 30px;
  padding-right: 1rem;
  max-height: 70px;
  text-align: center;

  background: linear-gradient(#ffd32a 0%, #ffcb00 80%);
  text-transform: capitalize !important;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  
  text-transform: uppercase;
  letter-spacing: -3px;
  font-size: 36px;

  font-family: "Playpen Sans";
  font-weight: 600;
  
  line-height: 4rem;
  
  filter: drop-shadow(0.2rem 0.2rem 0.2rem #322);
  
}

#main_nav > ul > li > img {
  height: 70px;
  position: absolute;
  top: 0;
  z-index: 5000;
  width: 100%;
}

#tux {
  position: fixed;
  overscroll-behavior-inline: none;
  /* pointer-events: none; */
  /* left: 5%; */
  left: calc(50vw - 700px);
  bottom: -1%;
  z-index: 10;
  height: 45%;
  
  cursor: pointer;
  
  @media (min-width: 1351px) and (max-width: 2050px) {
    right: -100px;
  }
  
  @media (max-width: 1350px) {
    display: none;
  }
  
  @media (max-height: 600px) {
    display: none;
  }
}

#tux-b {
  position: fixed;
  overscroll-behavior-inline: none;
  bottom: -1%;
  /* z-index: 10; */
  height: 40%;
  transform: scaleX(-1);
  right: 0%;
  
  @media (min-width: 1351px) {
    display: none;
  }
  
  @media (max-width: 1050px) {
    display: none;
  }
  
  @media (max-height: 760px) {
    display: none;
  }
}

#tux2 {
  width: 80%;
  max-width: 400px;
  
  cursor: pointer;
  
  @media (min-width: 1050px) {
    display: none;
  }
}

.tux-hitbox {
  border: 1px solid red;
  width: 50px;
  height: 50px;
}

#logo {
  width: 600px;
  position: fixed;
  left: 50%;
  margin-left: -300px; /* Negative half of width. */
  z-index: 1000;
  
  @media (max-width: 1050px) {
      display: none;
  }
}

::-webkit-scrollbar {
    width: 20px;
}

#logo-topnav {
  width: 50%;
  left: 50%;
  z-index: 1000;
  min-height: 64px;
  min-width: 328px;

  @media (max-width: 460px) {
      margin-left: -18%;
      width: 48%;
      min-height: 50px;
      min-width: 288px;
  }
  
  @media (min-width: 1050px) {
      display: none;
  }
}

/* Sidebar */

.sidebar {
    position: sticky;
    top: 40px;
    flex: 1;
    height: max-content;
    min-width: 180px;
    margin-top: 30px;
    margin-bottom: 150px;
    order: 2;
    
    z-index: 2000;
    
    @media (max-width: 1050px) {
      display: none;
    }
}

/* This is the container for common sidebar links in index.html. It is not actually shown */
#sidebar-links {
  display: none;
}

.sidebar-link {
  background: #F8CD43;
  border-radius: 1.5rem;
  padding: 0.50rem;
  font-weight: semi-bold;
  font-family: 'NationalPark-SemiBold';
  font-size: 20px;
  margin-bottom: 0.75rem;
  margin-right: 1rem;
}

#mobileLinks .sidebar-link {
  background: #F8CD43;
  border-radius: 2rem;
  font-weight: semi-bold;
  font-family: 'NationalPark-SemiBold';
  font-size: 16px;
  margin-bottom: 0.50rem;
  margin-right: 1rem;
}

#mobileLinks .config-item {
  font-size: 14px;
}

.sidebar-link-b {
  background: #015854;
  color: #F8CD43;
  border-radius: 1.5rem;
  padding: 0.50rem;
  font-weight: semi-bold;
  font-family: 'NationalPark-SemiBold';
  font-size: 20px;
  margin-bottom: 0.75rem;
  margin-right: 1rem;
}

.sidebar-link-b .config-item {
  @media (max-width: 1050px) {
    padding: 0;
    margin: 0;
    font-size: 16px;
    text-align: left;
  }
}

.sidebar-link a {
  text-decoration: none;
  color: #015854;
  display: inline-block;
  padding: 0.5rem;
  margin: 0;
}

.sidebar-link-b .label {
  font-weight: 800;
}

.sidebar-link-b .label {
  display: inline-block;
  padding: 0.5rem;
  margin: 0;
}

.sidebar-link:hover, .mobile-link:hover {
  transform: scale(1.1);
}

.topnav .sidebar-link {
  background: #015854;
  color: #F8CD43;
  padding: 0;
}

.drop-shadow {
  filter: drop-shadow(0.2rem 0.2rem 0.2rem #222);
}

/* dropdowns */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 75px;
  left: -17px;
  width: 180px;
  text-align: center;
  border-radius: 1rem;
  background-color: #015854;
  color: #F8CD43;
  font-weight: bold;
  font-size: 18px;
  /* min-width: 160px; */
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 9999;
}

.dropdown:hover, .dropdown:focus-within {
  transform: scale(1.1) !important;
}

.dropdown:hover .dropdown-content, .dropdown:focus-within .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  color: #F8CD43;
  padding: 14px;
  padding-top: 10px;
  padding-bottom: 10px;
  text-decoration: none;
  
}

.dropdown-content a:first-child {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.dropdown-content a:last-child {
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

.dropdown-content a:hover {
  background-color: #009E97;
  color: white;
}

/* Top nav */

 /* Style the navigation menu */
.topnav {
  overflow: hidden;
  position: relative;
  display: static;
  z-index: 9999;
  text-align:center;
  
  min-height: 110px;
  
  @media (min-width: 1050px) {
    display: none;
  }
}

#logo-link {
  padding: 0;
}

/* Hide the links inside the navigation menu (except for logo/home) */
#mobileLinks {
  position: fixed;
  top: 8rem;
  right: -200px;
  width: 200px;
  transition: 0.2s;
}

#mobileLinks a {
  background: #F8CD43;
  color: #015854;
  border-radius: 2rem;
}

/* Style navigation menu links */
.topnav a {
  padding: 14px 16px;
  text-decoration: none;
  font-size: 24px;
  display: block;
}

/* Style the hamburger menu */
.topnav a#hamburger {
  color: #F8CD43;
  background: #015854;
  display: block;
  position: absolute;
  right: -5px;
  top: 0;
  padding: 1.5rem;
  border-bottom-left-radius: 2rem;
}

/* Add a grey background color on mouse-over */
.topnav a:hover {
  color: white;
  border-radius: 2rem;
}

.topnav a.icon:hover {
  border-radius: 0;
  border-bottom-left-radius: 2rem;
}

/* Style the active link (or home/logo) */
.active {
  color: white;
} 

 /* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  float: right;
  top: 3px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  color: #0a3836;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  /* background-color: white; */
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #0a3836;
}

input:focus + .slider {
  box-shadow: 0 0 1px #009E97;
}

input:checked + .slider:before {
  -webkit-transform: translateX(1.1rem);
  -ms-transform: translateX(1.1rem);
  transform: translateX(1.1rem);
  color: #F8CD43;
}

input:checked + .slider.moon-emoji:before {
  content: "☀";
}

input:checked + .slider.shake-emoji:before {
  content: "⏸";
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  margin: 0 6px 7px 3px !important;
  border-radius: 50%;
  font-size: 1.625rem;
  line-height: 1.5;
} 

.slider.round.moon-emoji:before {
  content: "☾";
}

.slider.round.shake-emoji:before {
  content: "⏵";
}

.moon {
  position: fixed;
  top: 25px;
  left: 25px;
  z-index: 2;
  width: 300px;
  transition: 2s;
  opacity: 0.8;
}

.moon.down {
  opacity: 0.2;
}

.moon.down-instant {
  transition: 0s !important;
  opacity: 0.2;
}

.config-item {
  padding: 0.5rem;
}

.noAnimation {
  transition: 0s !important;
  animation-duration: 0s !important;
}

#galleryItems a {
  text-decoration: none;
}