/* Start main */
:root {
  --color-background-body: rgb(0, 4, 17);
  --color-text-primary: #FFFFFFC0;
  --color-link-standard: #70A4FF;
  --color-link-hover: #97B2FF;
  --color-header-bg: rgb(0, 6, 34);
  --color-header-border: rgba(255, 255, 255, 0.25);
  --color-slogan: #FFFFFF80;
  --color-menu-line: #999;
  --color-nav-bg: var(--color-header-bg);
  --color-footer-text: #FFFFFF40;
  --color-button-text-standard: #6FA4E7;
  --color-button-text-hover: #90C4FF;
  --color-button-bg: var(--color-background-body);
  --color-button-bg-active: var(--color-button-bg);
  --color-button-border: rgba(208, 208, 224, 0.15);
  --color-button-shadow-base: #101010;
  --color-button-shadow-active: #111;
  --color-button-inner-ring: rgba(255, 255, 255, 0.25);
  --color-comments-bg: rgba(10, 10, 15, 0.9);
  --color-comments-border: rgba(255, 255, 255, 0.25);
  --color-meta: #666;
  --color-carousel-overlay: rgba(0, 0, 0, 0.98);
  --color-carousel-shadow: rgba(50, 50, 50, 0.5);
  --color-close-btn-bg: rgba(0, 0, 0, 0.3);
  --color-caption: #FFFFFF;
  --color-info: #FFFFFFA0;
  --color-logo-shadow: rgba(7, 176, 243, 0.2);
  --color-card-shadow: #70A4A444;
  --color-carousel-bg: rgba(10, 10, 10, 0.25);
  --color-diminish-text: #FFFFFF80;
  --color-darken-text: #FFFFFF30;
}

html {
  height: 100%;
  color: var(--color-text-primary);
  background: var(--color-background-body);
  font-family: 'Verdana', 'Geneva', 'Open Sans', sans-serif;
  font-size: 13px;
  word-break: break-word;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 320px;
  /*width: 100vw;*/
  background: inherit;
  overflow-x: hidden;
}

iframe {
  zoom: 0.8;
}

h1, h2, h3, h4, h5, h6 {
  padding: 16px 0 0;
}

h1, h2 {
  padding-bottom: 16px;
}

hr {
  margin-top: 32px;
}

p {
  white-space: pre-line;
  margin: 24px 0;
}

ul {
  /*list-style-type: "- ";*/
  padding-left: 32px;
}

ul.spacey {
  line-height: 1.5;
}

ul.spacey > li {
  padding: 8px 0;
}

ul.no-bullets {
  list-style-type: none;
  padding-left: 16px;
}

ul.no-bullets > li {
  padding-bottom: 8px;
}

textarea {
  background-color: var(--color-background-body);
  color: white;
}

a:link {
  color: var(--color-link-standard);
  text-decoration: none;
}

a:visited {
  color: var(--color-link-standard);
  text-decoration: none;
}

a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

a:active {
  color: var(--color-link-hover);
  text-decoration: underline;
}

.fileTypeIcon {
  width: 28px;
  height: 28px;
  vertical-align: middle;
}

.centered {
  width: 100%;
  text-align: center;
}

.hide {
  display: none;
}

.unhide {
  display: inline;
}

.diminish-text {
  font-size: 0.9em;
  color: var(--color-diminish-text);
}

.darken-text {
  color: var(--color-darken-text);
}

/* End main */

/*-----------------------------------------------------------------------------------------------------*/

/* Start header footer */

#siteHeader {
  width: 100%;
  height: 125px;
  box-sizing: border-box;
  background-color: var(--color-header-bg);
  border-bottom: 1px solid var(--color-header-border);
  z-index: 100;
  align-items: center;
  padding: 1rem 0;
}

#leftSection {
  text-align: center;
}

#logoSlogan {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#siteLogo {
  width: 200px;
  height: auto;
  filter: drop-shadow(0 0 8px var(--color-logo-shadow));
}

#siteSlogan {
  text-align: center;
  /*font-size: 0.9rem;*/
  font-style: oblique;
  color: var(--color-slogan);
  padding-top: 10px;
}

.menuButton {
  display: flex;
  flex-direction: column;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 0.3rem;
}

.menuLine {
  display: block;
  height: 4px;
  width: 100%;
  background-color: var(--color-menu-line);
  border-radius: 2px;
  transition: all 0.3s ease;
}

#navMenu {
  display: none;
  position: absolute;
  top: 124px;
  right: 0;
  flex-direction: column;
  min-width: 200px;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 1000;
  background-color: var(--color-nav-bg);
  margin-left: auto;
  padding: 25px 0;
}

#navMenu.active {
  display: flex;
}

.navList {
  display: flex;
  flex-direction: column;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1.5rem;
}

.navList a {
  text-decoration: none;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: color 0.2s ease, background-color 0.2s ease;
  color: var(--color-link-standard);
}

.navList a:hover,
.navList a:focus {
  color: var(--color-link-hover);
}

#siteFooter {
  position: relative;
  text-align: center;
  bottom: 0px;
  width: 100%;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: var(--color-footer-text);
}

/* Wide */
@media (min-width: 1025px) {
  #siteHeader {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  #leftSection {
    margin: 0;
    margin-left: 15px;
  }

  #rightSection {
    margin-left: 30px;
  }

  #logoSlogan {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .menuButton {
    display: none;
  }

  #navMenu, .navList {
    flex-wrap: nowrap;
    overflow: visible;
  }

  #navMenu {
    position: static;
    display: flex;
    flex-direction: row;
    width: auto;
    justify-content: center;
    padding-right: 40px;
  }

  .navList {
    flex-direction: row;
    gap: 2rem;
  }

  .navlist li {
    flex-shrink: 0;
  }

  .navList li a {
    white-space: nowrap;
    flex-shrink: 0;
    border: none;
    padding: 0.5rem 1rem;
  }
}

/* Narrow */
@media (max-width: 1024px) {
  #navMenu {
    border: 1px solid var(--color-footer-text);
  }

  .menuButton {
    position: absolute;
    right: 20px;
    top: 50px;
    margin: 0;
  }
}

/* End header footer */

/*-----------------------------------------------------------------------------------------------------*/

/* Start custom */

.section {
  padding: 1rem 0;
}

.container {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  justify-content: center;
  gap: 32px;
  transform: translateZ(0);
}

.grid.fullSizedGrid {
  grid-template-columns: 0.75fr;
}

.grid a {
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transform: scale(1.0);
  transition: transform 0.75s cubic-bezier(0.33, 0.0, 0.8, 0.96);
  transform-origin: center center;
  will-change: transform;
  display: inline-block;
  contain: layout paint;
  align-content: center;
}

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

.grid a:hover {
  transform: scale(1.03);
}

.button {
  display: inline-block;
  padding: 0.8rem 0.8rem;
  font-weight: bold;
  color: var(--color-button-text-standard);
  background-color: var(--color-button-bg);
  border: 2px solid var(--color-button-border);
  cursor: pointer;
  box-shadow: 3px 3px var(--color-button-shadow-base);
}

.button:hover, .button:active {
  color: var(--color-button-text-hover);
  text-decoration: none;
  background-color: var(--color-button-bg-active);
}

.button:active {
  box-shadow: 1px 1px var(--color-button-shadow-active);
  transform: translate(2px, 2px);
}

.button.ml-onclick-form {
  box-shadow:
    inset 0 0 3px 2px var(--color-button-inner-ring),
    3px 3px var(--color-button-shadow-base);
}

.button.ml-onclick-form:active {
  box-shadow:
    inset 0 0 3px 2px var(--color-button-inner-ring),
    1px 1px var(--color-button-shadow-active);
}

.card {
  border-radius: 8px;
  box-shadow: 0 0px 6px var(--color-card-shadow);
  margin: 3rem 0 3rem;
}

.card-header {
  padding: 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #E0E0E0C0;
}

.card-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.card-meta {
  font-size: 0.875rem;
  color: var(--color-meta);
}

.card-body {
  padding: 1.5rem;
}

.card-body p {
  margin: 0 0;
  line-height: 2;
}

.split-left {
  padding-right: 40px;
}

.split-left img {
  display: block;
  max-height: 240px;
}

/* Wide */
@media (min-width: 640px) {
  .split {
    display: flex;
  }

  .split-left {
    flex: 0.75 0;
    padding-right: 40px;
  }

  .split-right {
    flex: 1;
  }
}

/* Narrow */
@media (max-width: 640px) {
  .split-left {
    padding-bottom: 20px;
  }
}

/* End custom */

/*-----------------------------------------------------------------------------------------------------*/

/* Start carousel */

/* Overlay container */
.carousel-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-carousel-overlay);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9001;
  padding: 20px;
}

/* Inner card */
.carousel-card {
  position: relative;
  max-width: calc(100% - 80px);
  min-width: 360px;
  max-height: calc(100% - 80px);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image */
.carousel-card img {
  max-width: 100%;
  max-height: calc(80vh - 80px);
  min-height: 240px;
  height: auto;
  width: auto;
  object-fit: contain;
  /*box-shadow: 0 0 32px var(--color-carousel-shadow);*/
}

/* Close button */
.carousel-close {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 28px;
  transform: translateX(100%) translateY(-100%);
  background: var(--color-close-btn-bg);
  border: 0;
  cursor: pointer;
  color: white;
}

/* Navigation buttons */
.carousel-nav {
  position: absolute;
  font-size: 28px;
  padding: 72px 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-close-btn-bg);
  border: 0;
  cursor: pointer;
  color: white;
}

.carousel-prev {
  left: 0;
  transform: translateX(-100%);
}

.carousel-next {
  right: 0;
  transform: translateX(100%);
}

.carousel-text {
  position: absolute;
  width: max-content;
  display: inline-block;
  max-width: 100%;
  left: 50%;
  background: var(--color-carousel-bg);
  border-radius: 32px;
  font-size: 1rem;
  text-align: center;
  pointer-events: none;
}

.carousel-text:empty {
  display: none;
}

.carousel-caption {
  top: 0;
  transform: translateX(-50%) translateY(-100%);
  color: var(--color-caption);
  font-weight: bold;
}

.carousel-info {
  bottom: 0;
  transform: translateX(-50%) translateY(100%);
  color: var(--color-info);
  font-size: 90%;
}

@media (max-width: 640px) {
  .carousel-nav {
    padding: 72px 36px;
  }
}

@media (min-height: 481px) {
  .carousel-text {
    padding: 32px;
  }
}

@media (max-height: 480px) {
  .carousel-text {
    padding: 0;
  }
}

/* End carousel */