body {
  text-rendering: optimizelegibility;
  line-height: 1.25em;
  font-family: Arial;
  background-color: #1E252E;
  margin: 1em 0 3em 0;
  font-family: sans-serif;
  color: #E7DDCD;
  line-height: 1.5em;
  background-image: url("/images/bg.png");
  background-position: center center;
  background-attachment: fixed;
  background-size: contain;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
}

a,
a:visited {
  color: #DE8D3A;
}

hr {
  border: 1px solid #39414d;
  width: 100%;
}

textarea {
  width: 100%;
  min-height: 10em;
  padding: 0.5em;
}

#page {
  max-width: 1200px;
  width: 100%;
}

#header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 1em 0;
}

.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.masthead .fancy_navigation {
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  margin: 2em 0;
  flex-wrap: wrap;
}

.masthead .fancy_navigation .nav_link {
  width: 220px;
  height: 220px;
  background-color: #82c3de;
  border: 2px solid #000;
  border-radius: 50%;
  position: relative;
}

.masthead .fancy_navigation .nav_link:hover {
  background-color: #DE8D3A;
}

.masthead .fancy_navigation .nav_link img {
  max-width: 105%;
  position: absolute;
  max-width: 129%;
  top: -12%;
  left: -12%;
}

.masthead.compact {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  position: relative;
  margin: 2em 4em;
  flex-direction: row;
  justify-content: right;
  border-radius: 0.3em;
}

.masthead.compact .site_logo {
  position: absolute;
  top: -28px;
  left: 0;
}

.masthead.compact .site_logo img {
  width: 340px;
}

.masthead.compact .navigation {
  display: flex;
  width: 100%;
  justify-content: right;
  margin: 1em 0;
}

.masthead.compact .navigation .nav_link {
  margin: 0 0.5em;
  border: 2px solid #DE8D3A;
  background-color: #DE8D3A;
  border-radius: 1.1em;
  font-weight: bold;
  font-size: 0.9em;
  color: #000;
}

.masthead.compact .navigation .nav_link.active {
  text-decoration: underline;
}

.masthead.compact .navigation .nav_link a {
  display: block;
  padding: 0.2em 1em;
  color: #000;
  text-decoration: none;
}

.masthead.compact .navigation .nav_link:hover {
  background-color: #000;
}

.masthead.compact .navigation .nav_link:hover a {
  color: #DE8D3A;
}

#footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3em;
  padding-top: 2em;
}

#footer .disclaimer {
  font-size: 0.75em;
  color: #A2BCE3;
  text-align: center;
}

#footer .socials {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-bottom: 1em;
}

#footer .socials div {
  margin: 0 0.25em;
}

#body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 300px;
  width: 100%;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 0.4em;
  padding: 1.5em;
  margin-bottom: 1em;
}

.container img {
  max-width: 100%;
}

.textblock {
  width: 90%;
  max-width: 1000px;
}

p {
  width: 90%;
}

.table {
  display: table;
}

.table .row {
  display: table-row;
}

.table .row .cell {
  display: table-cell;
}

.invalid_feedback {
  background-color: #000;
  padding: 0.2em 0.4em;
  border-radius: 0.5em;
  color: #ff6e6e;
}

.dashlink {
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 0.3em 0.5em;
  border-radius: 0 0 0.5em 0;
  z-index: 10000;
}

.dashlink a {
  text-decoration: none;
}

@-webkit-keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@-webkit-keyframes fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@-webkit-keyframes zoom {
  from {
    transform: scale(1);
    box-shadow: 0px 0px 0px #000;
  }

  to {
    transform: scale(1.05);
    box-shadow: 3px 2px 12px #000;
  }
}

@keyframes zoom {
  from {
    transform: scale(1);
    box-shadow: 0px 0px 0px #000;
  }

  to {
    transform: scale(1.05);
    box-shadow: 3px 2px 12px #000;
  }
}

@-webkit-keyframes unzoom {
  from {
    transform: scale(1.05);
    box-shadow: 3px 2px 12px #000;
  }

  to {
    transform: scale(1);
    box-shadow: 0px 0px 0px #000;
  }
}

@keyframes unzoom {
  from {
    transform: scale(1.05);
    box-shadow: 3px 2px 12px #000;
  }

  to {
    transform: scale(1);
    box-shadow: 0px 0px 0px #000;
  }
}

.fancy_header {
  color: #A2BCE3;
  padding: 0.4em 3em;
  margin: 0.5em 0 1em;
  font-size: 1.3em;
  border-bottom: 1px dashed #A2BCE3;
  text-transform: uppercase;
}

.gallery_picker {
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  margin-bottom: 2em;
}

.gallery_picker .section_selection {
  width: 20%;
  border: 3px solid #000;
  background-color: #000;
  overflow: hidden;
  -webkit-animation: unzoom 0.1s ease-in 0s 1;
          animation: unzoom 0.1s ease-in 0s 1;
  background-size: cover;
  background-position: center center;
}

.gallery_picker .section_selection:hover {
  -webkit-animation: zoom 0.2s ease-out 0s 1;
          animation: zoom 0.2s ease-out 0s 1;
  transform: scale(1.05);
  box-shadow: 3px 2px 12px #000;
}

.gallery_picker .section_selection a {
  display: block;
  padding: 0.5em;
  width: 100%;
  height: 110px;
  color: #FFF;
  font-size: 1.4em;
  text-decoration: none;
  text-shadow: -1px -1px 1px #000, 2px -1px 1px #000, -1px 2px 2px #000, 2px 2px 2px #000;
}

.gallery {
  width: 90%;
}

.gallery_search {
  width: 100%;
  margin-bottom: 1em;
}

.gallery_search form {
  display: flex;
}

.gallery_search form .searchbar {
  flex: 1;
  margin-right: 0.5em;
}

.gallery_search form input {
  padding: 0.7em;
  background-color: rgba(44, 53, 64, 0.8);
  border: 1px solid #000;
  color: #FFF;
  border-radius: 0.4em;
}

.page_selection {
  width: 100%;
  display: flex;
  align-items: center;
}

.page_selection > div {
  border: 1px solid #000;
  background-color: #101217;
  margin: 0 0.4em;
}

.page_selection > div:hover {
  background-color: #DE8D3A;
}

.page_selection > div a {
  display: block;
  padding: 0.2em 0.5em;
}

.page_selection > div a:hover {
  color: #000;
}

.post {
  max-width: 90%;
  min-width: 73%;
}

.post.compressed {
  width: 700px;
}

.post .description {
  margin: 0.5em 0;
  width: 100%;
}

.post .meta_info {
  margin-bottom: 1em;
  width: 100%;
}

.post .title {
  font-size: 1.3em;
}

.post .date {
  font-size: 0.8em;
}

.post img {
  max-width: 100%;
}

.post .tags {
  width: 100%;
  display: flex;
  align-items: center;
}

.post .tags .fa-tag {
  margin-right: 0.5em;
  color: #DE8D3A;
}

.post .tags ul {
  flex: 1;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  flex-direction: left;
  padding: 0;
  margin: 0;
  font-size: 0.9em;
}

.post .tags ul li {
  margin-right: 0.5em;
}

.page_selection ul {
  display: flex;
  width: 100%;
  padding: 0;
}

.page_selection ul li {
  display: inline-block;
  border: 1px solid #000;
  background-color: #101217;
  margin: 0 0.4em;
}

.page_selection ul li:hover {
  background-color: #DE8D3A;
}

.page_selection ul li .page-link {
  display: block;
  padding: 0.2em 0.5em;
}

.page_selection ul li .page-link:hover {
  color: #000;
}

.posts {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.posts .post_preview {
  background: #000;
  border-radius: 0.2em;
  border: 1px solid #000;
  display: inline-block;
  width: 23%;
  margin: 0.5%;
  overflow: hidden;
  position: relative;
  -webkit-animation: unzoom 0.1s ease-in 0s 1;
          animation: unzoom 0.1s ease-in 0s 1;
}

.posts .post_preview:hover {
  -webkit-animation: zoom 0.2s ease-out 0s 1;
          animation: zoom 0.2s ease-out 0s 1;
  transform: scale(1.05);
  box-shadow: 3px 2px 12px #000;
}

.posts .post_preview:hover .title {
  background-color: rgba(0, 0, 0, 0.5);
}

.posts .post_preview .title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.3em 0.5em;
  text-shadow: -1px -1px 1px #000, 2px -1px 1px #000, -1px 2px 2px #000, 2px 2px 2px #000;
}

.posts .post_preview .title a {
  color: #FFF;
  text-decoration: none;
}

.posts .post_preview .image_count {
  position: absolute;
  bottom: 0.5em;
  right: 0.5em;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 0.5em;
  padding: 0.2em 0.5em;
  font-size: 0.9em;
}

.posts .post_preview .preview_image {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center center;
}

@media (max-width: 800px) {
  body {
    margin: 0 0 1em 0;
    background-size: cover;
  }

  .masthead.compact {
    margin: 0 0 1em 0;
    display: block;
    padding: 1em;
  }

  .masthead.compact .site_logo {
    position: relative;
    top: unset;
    left: unset;
  }

  .masthead.compact .navigation {
    margin: -2em 0 0 0;
  }

  .masthead .site_logo img {
    max-width: 100%;
  }

  .gallery_picker .section_selection a {
    font-size: 1em;
  }

  .posts .post_preview {
    width: 32%;
  }

  .container {
    max-width: 100%;
  }
}

@media (max-width: 650px) {
  .masthead.compact .navigation {
    margin: 0;
  }

  .gallery_picker {
    display: none;
  }

  .posts .post_preview {
    width: 47%;
  }

  #footer .socials {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 450px) {
  .masthead.compact .navigation .nav_link {
    border: none;
    background: none;
    color: #DE8D3A;
  }

  .masthead.compact .navigation .nav_link a {
    padding: 0;
    color: #DE8D3A;
  }

  .posts .post_preview {
    width: 95%;
  }

  .page_selection ul li {
    margin: 0 0.05em;
  }

  .page_selection ul li a {
    padding: 0.1em 0.25em;
  }
}

