:root {
  --clr-bg-100: #ffffff;
  --clr-bg-200: #cccccc;
  --clr-bg-300: rgba(255, 255, 255, 0.8);
  --clr-bg-400: rgba(160, 160, 160, 0.9);
  --clr-bg-500: rgba(190, 190, 190, 0.9);
  --clr-fg-100: #000000;
  --clr-fg-200: #333333;
  --clr-fg-300: rgba(0, 0, 0, 0.8);
  --clr-fg-400: rgba(0, 0, 0, 0.2);
  --clr-accent-100: rgb(255, 49, 152);
  --clr-accent-200: #35928d;
  --clr-accent-300: rgb(54, 109, 52);
  --clr-menu-bg-100: rgba(0, 185, 223, 0.9);
  --clr-menu-bg-200: rgba(0, 185, 223, 1);
  --clr-menu-fg-100: #ffffff;
  --clr-menu-fg-200: #ffffff;
  --clr-menu-accent: rgba(53, 146, 141, 0.6);
  --clr-menu-bg-top: rgb(73, 225, 255);
  --clr-menu-bg-bottom: rgb(1, 108, 129);
  --clr-border-100: #00a9d0;
  --clr-img-border: rgba(255, 213, 146, 0.9);
  --clr-button-bg: rgb(0, 185, 223);
  --clr-button-fg: white;
  --clr-slideshow-bg: #000b;
  --fs-100: 0.6rem;
  --fs-200: 0.8rem;
  --fs-300: 1rem;
  --fs-400: 1.3rem;
  --fs-500: 1.6rem;
  --fs-600: 1.8rem;
  --fs-menu-100: 1.6rem;
  --flow-spacer: 1em;
  --hspacer: 2em;
  --br: 0.3em;
  --default-padding: 1em;
  --icon-border-clr: #000;
  --icon-border-radius: 0.3rem;
  --page-width: 54rem;
  --gallery-img-height: 240px;
  --gallery-img-border: 2px solid #333;
  --gallery-img-outline: 4px solid #fff;
  --article-background: linear-gradient(white, #fffadb);
  --nav-height: 3.4rem;
}
@media (max-width: 600px) {
  :root {
    --fs-100: 0.4rem;
    --fs-200: 0.6rem;
    --fs-300: 0.8rem;
    --fs-400: 1.1rem;
    --fs-500: 1.3rem;
    --fs-600: 1.5rem;
  }
}

/* Reset */

*::before,
*::after,
* {
  box-sizing: border-box;
}

img {
  display: block;
  max-width: 100%;
  object-fit: contain;
}
body {
  margin: 0;
}
html {
  scroll-behavior: smooth;
}

code {
  font-family: monospace;
}
body,
h1,
h2,
h3,
h4,
p,
dl,
dd,
figure {
  margin: 0;
}

ul[class],
ol[class],
nav ul {
  list-style: none;
  padding: 0;
}
button {
  cursor: pointer;
}
button[class] {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
}

input,
button,
textarea,
select {
  font: inherit;
}

/* typography */
body {
  font-family: sans-serif;
  font-size: var(--fs-300);
  line-height: 1.3;
  /* letter-spacing: 0.05em; */
}
h1,
h2,
h3,
h4 {
  font-family: sans-serif;
  /* margin-top: 0.5em; */
}
h1 {
  font-size: var(--fs-600);
}
h2 {
  font-size: var(--fs-500);
}
h3 {
  font-size: var(--fs-300);
}
h4 {
  font-size: var(--fs-300);
}
/* fonts */

/* general styling */
body,
nav {
  background: var(--clr-bg-100);
  color: var(--clr-fg-100);
  line-height: 1.6;
}
a {
  color: inherit;
}
.link-look:hover,
.link-look:focus,
a:hover,
a:focus {
  color: var(--clr-accent-100);
}
.link-look {
  text-decoration: underline;
  cursor: pointer;
}

.flow-content > * + * {
  margin-top: var(--flow-spacer, 1em);
}
.space-between > * + * {
  margin-left: var(--hspacer, 2em);
}

/* Utility */
.small {
  font-size: 0.8rem;
}
.right {
  text-align: right;
}
.center {
  text-align: center;
}
.bold {
  font-weight: bold;
}
.txt-bigger {
  font-size: 1.2rem;
}
.txt-smaller {
  font-size: 0.9rem;
}
.txt-bold {
  font-weight: bold;
}
.padding {
  padding: var(--padding, var(--default-padding));
}
.cursor-pointer {
  cursor: pointer;
}
.gridrow {
  display: contents;
  cursor: pointer;
}
.grid-span-row {
  grid-column: 1/-1;
}
.gridrow div {
  transition: border, background-color 0.5s ease;
}
.gridrow:hover > div {
  background: var(--clr-accent-100);
  border-top: 1px solid var(--clr-light-300);
  border-bottom: 1px solid var(--clr-light-300);
}
.flex-vert-align {
  display: flex;
  align-items: center;
}
.flex-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.flex-row {
  flex-direction: row;
}
.fullscreen {
  width: 100vw;
  height: 100vh;
}

/* components */
/* .button {
  display: inline-block;
  text-decoration: none;
  padding: 0.5em 0.75em;
  border-radius: 0.25em;
  background: var(--bg, var(--clr-dark-200));
  color: var(--fg, var(--clr-light-500));
  cursor: pointer;
}
.button:hover,
.button:focus {
  filter: brightness(150%);
} */
.icon-button {
  width: 2rem;
  cursor: pointer;
}
.hoverstyle {
  color: inherit;
  text-decoration: inherit;
}
.hoverstyle:hover,
.hoverstyle:focus {
  text-decoration: underline;
  color: inherit;
}

/* menu */
.nav-hamburger {
  position: fixed;
  top: 0;
  left: 0;
  background: var(--clr-menu-bg-100);
  color: var(--clr-menu-fg-100);
  font-size: var(--fs-400);
  display: inline-block;
  padding: 0.2rem 0.8rem;
  cursor: pointer;
  z-index: 3;
}
nav {
  position: fixed;
  z-index: 3;
}
nav a:hover,
nav a:focus {
  color: var(--clr-menu-fg-100);
}
.menu-item-active {
  text-decoration: underline;
}
@media (max-width: 799px) {
  nav {
    top: 2.8rem;
  }
  nav > ul {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 0;
    left: var(--menu-left, -15em);
    width: 15em;
    max-width: 100vw;
    max-height: calc(100vh - 4rem);
    background: var(--clr-menu-bg-100);
    color: var(--clr-menu-fg-100);
    font-size: var(--fs-menu-100);
    overflow: auto;
    transition: left ease-in-out 0.3s;
    margin: 0;
  }
  nav > ul.show {
    --menu-left: 0;
  }
  nav > ul > li,
  .submenu-li > ul > li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    background: var(--clr-menu-bg-100);
    border-top: 1px solid var(--clr-menu-bg-top);
    border-bottom: 1px solid var(--clr-menu-bg-bottom);
  }

  nav > ul > li > a,
  .submenu-li > ul > li > a {
    display: block;
    width: 100%;
    padding: 0.1em 2em;
    background: var(--clr-menu-bg-100);
    text-decoration: none;
  }
  .submenu-li > div {
    padding: 0.1em 1em;
  }
  .submenu-li {
    background: var(--clr-menu-accent);
  }
  .submenu-li > ul {
    display: flex;
    flex-direction: column;
    margin: 0 0.8em 0.3em;
    width: calc(100% - 1.6em);
  }
}
/* menu big screen */
@media (min-width: 800px) {
  .nav-hamburger {
    display: none;
  }
  nav {
    top: 0;
    left: 0;
    right: 0;
    height: 3rem;
    background: var(--clr-menu-bg-100);
    font-size: var(--fs-menu-100);
  }
  nav > ul > li:hover,
  .submenu-active {
    text-decoration: underline;
  }
  nav > ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 0;
    width: calc(100% - 4em);
    max-width: 100vw;
    color: var(--clr-menu-fg-100);
    margin: 0 2em;
  }
  nav > ul > li,
  .submenu-li > ul > li {
    height: 100%;
  }
  nav > ul > li > a,
  .submenu-li > div,
  .submenu-li > ul > li > a {
    display: block;
    width: 100%;
    padding: 0.1em 1em;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
  }
  .submenu-li {
    position: relative;
  }
  .submenu-li > ul {
    position: absolute;
    right: 0;
    top: 2.8rem;
    display: none;
    cursor: pointer;
  }
  .submenu-li.hover:hover > ul {
    display: flex;
    flex-direction: column;
    margin: 0;
    z-index: 100;
  }
  .submenu-li:hover > ul > li {
    padding: 0;
    background: var(--clr-menu-bg-100);
    border-top: 1px solid var(--clr-menu-bg-top);
    border-bottom: 1px solid var(--clr-menu-bg-bottom);
  }
  /* transitions */
  .submenu-li:hover > ul > li,
  nav > ul > li {
    transition: all ease-in-out 0.2s;
  }
  .submenu-li:hover > ul > li:hover,
  nav > ul > li:hover {
    transform: scale(1.1);
  }
}

/* Page */
.page {
  width: 100%;
  margin: 0 auto;
  max-width: var(--page-width);
  padding: 0 1em;
  margin-top: 3em;
  margin-bottom: 2em;
}

/* Section */
/* .section {
  display: flex;
  flex-wrap: wrap;
  flex-basis: 100%;
} */
/* Section */
.section {
  width: 100%;
  scroll-margin-top: var(--nav-height);
  margin: 1em 0 3em 0;
}
.section-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-top: 1em;
}
.section-articles-border {
  border: 2px solid var(--clr-border-100);
  border-radius: var(--br);
  background: var(--article-background);
  padding: 0.6em 1.2em;
}
.section-articles > * {
  flex-grow: 1;
}
/* section:target:before {
  content: "";
  display: block;
  height: 100px;
  margin: -100px 0 0;
} */

/* Article */
article {
  font-family: sans-serif;
}
article > pre > code {
  white-space: pre-wrap;
}
article > * {
  margin: 1rem;
}
.article-border {
  padding: 0.6em 1.2em 1.5em 1.2em;
  background: var(--article-background);
  border: 2px solid var(--clr-border-100);
  border-radius: var(--br);
  box-shadow: 10px 10px 15px #ccc;
  margin-bottom: 1em;
}
.article-LR {
  flex-basis: 100%;
  display: grid;
  gap: 1em;
  grid-template-rows: 1fr 1fr;
  padding-bottom: 0.8em;
}
@media (min-width: 640px) {
  .article-LR {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
}
/* blog page (section type "blog") */
.blogtimestamp {
  background: #fffadb;
  font-size: var(--fs-200);
  padding: 0.5em 0;
}
.article-fullwidth {
  flex-basis: 100%;
}
.article-small {
  flex-basis: 300px;
  max-width: 450px;
}
.article-tiny {
  flex-basis: 150px;
  max-width: 225px;
}

/* Markdown *********************************************/
.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 0 10px 0 0;
  vertical-align: baseline;
}
.md-image {
  display: block;
  border: 2px solid var(--clr-img-border);
  border-radius: 5px;
  max-width: 100%;
  width: var(--md-img-width, var(--md-img-base-width));
}
.md-image-left {
  margin: 5px 15px 5px 0;
  float: left;
}
.md-image-right {
  margin: 5px 0 15px 5px;
  float: right;
}
.md-image-center {
  margin: 15px auto;
}
.img_ {
  width: 100%;
  max-height: calc(100vh - 6em);
}
@media (max-width: 400px) {
  .md-image {
    --md-img-width: 100%;
  }
}
ul.md-checklist {
  list-style-image: url("images/check-la.svg");
  font-size: 25px;
}
.md-quote > .par {
  font-family: serif;
  font-style: italic;
  line-height: 1.8;
  font-size: 16px;
}
.md-quote > .par::before {
  content: "❠ ";
  color: #666;
  display: inline-block;
  transform: rotate(180deg) scale(3);
  margin: 1em 1em 0 0.5em;
}
.md-quote > .par::after {
  content: " ❠";
  color: #666;
  display: inline-block;
  transform: scale(3) translateY(-0.2em);
  margin: 0 0 0 1em;
}
picture {
  font-size: 0;
}
.md-table {
  border-spacing: 0px;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 16px;
}
.md-table th,
.md-table td {
  padding-left: 0.5em;
  padding-right: 0.5em;
  border: 1px #666 solid;
}
.md-table th {
  background: rgba(190, 190, 190, 0.8);
}
code {
  font-size: 15px;
}
.md-button,
.button {
  display: inline-block;
  padding: 0 0.8em;
  height: 2em;
  line-height: 2em;
  white-space: nowrap;
  overflow: hidden;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  background: var(--clr-button-bg);
  color: var(--clr-button-fg);
  border-radius: 4px;
}
.md-button:hover,
.button:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.md-icon-container {
  display: flex;
  align-items: center;
}
/* .md-icon-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 3px 0;
  cursor: pointer;
  text-decoration: underline;
}
.md-icon-inline-link {
  display: inline-block;
  height: 40px;
  margin: 3px 0;
  cursor: pointer;
  text-decoration: underline;
} */
.md-icon-yt,
.md-icon-wp,
.md-icon-pdf,
.md-icon-unknown {
  width: 40px;
  height: 40px;
  margin: 0 0.8em 0 0;
  background-color: var(--clr-bg-100);
  background-size: cover;
  background-position: center center;
  border: 1px solid var(--icon-border-clr);
  border-radius: var(--icon-border-radius);
}
.md-icon-unknown:first-child {
  text-decoration: none;
}
.md-icon-yt {
  border: none;
  background-color: transparent;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("/images/icons/youtube-100.png");
}
.md-icon-pdf {
  background-image: url("/images/icons/pdf-100.png");
}
.md-icon-wp {
  background-image: url("/images/icons/wikipedia-100.png");
}
.md-icon-unknown::before {
  display: flex;
  align-items: center;
  justify-content: center;
  content: "?";
  font-size: var(--fs-400);
}
.md-audio-title {
  font-size: 16px;
}
.md-quote > .md-p {
  font-family: sans-serif;
  font-style: italic;
  line-height: 1.8;
  font-size: 16px;
}
.md-quote > .md-p::before {
  content: "❠ ";
  color: #666;
  display: inline-block;
  transform: rotate(180deg) scale(3);
  margin: 1em 1em 0 0.5em;
}
.md-quote > .md-p::after {
  content: " ❠";
  color: #666;
  display: inline-block;
  transform: scale(3) translateY(-0.2em);
  margin: 0 0 0 1em;
}
.md-youtube-large,
.md-youtube-medium,
.md-youtube-small {
  margin-bottom: 1.5em;
}
.md-youtube-large {
  max-width: 100%;
  max-height: 100%;
}
.md-youtube-medium {
  width: 450px;
}
.md-youtube-small {
  width: 300px;
}

/* Gallery ************************************/
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: var(--page-width);
}
.gallery > div {
  position: relative;
  flex-grow: 1;
  background-color: var(--clr-bg-400);
  transition: all 0.4s ease-in;
}
.gallery > div.gallery-item {
  border: var(--gallery-img-border);
  border-radius: var(--br);
}
.gallery > div.gallery-item:hover {
  transform: scale(1.1);
  outline: var(--gallery-img-outline);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  z-index: 1;
}
.gallery > div > picture > img {
  cursor: pointer;
  object-fit: contain;
}
@media (min-width: 400px) {
  .gallery > div > picture > img {
    height: var(--gallery-img-height, 200px);
  }
}
.gallery-smaller {
  --gallery-img-height: 100px;
}
.gallery > div > div {
  position: absolute;
  bottom: 0.6em;
  left: 0;
  right: 0;
  z-index: 2;
  color: var(--clr-bg-100);
  text-shadow: 0 0 0.2em #000;
  width: 100%;
  text-align: center;
}

/* Modal */
.modal-background {
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(30, 30, 30, 0.5);
}
.modal-content-no-padding {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  border: 2px solid white;
  border-radius: 6px;
  z-index: 4;
  background: rgba(30, 30, 30, 0.8);
  color: white;
  overflow: auto;
}
.modal-close {
  position: absolute;
  right: 0;
  top: 0;
  height: 50px;
  width: 50px;
  background: var(--clr-menu-bg-100);
  color: var(--clr-bg-100);
  font-family: sans-serif;
  font-size: 30px;
  font-weight: bold;
  line-height: 50px;
  text-align: center;
  z-index: 5;
  border-radius: 3px;
  cursor: pointer;
}
.modal-close::before {
  content: "×";
}
.modal-close:hover {
  background: var(--clr-accent-200);
}

.modal-slideshow {
  width: 800px;
  height: 800px;
}

/* slideshow ***********************************/
.slideshow-container {
  position: relative;
  background: var(--clr-slideshow-bg);
  /* background: transparent; */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slideshow-container > picture {
  width: 100%;
  height: 100%;
}
.slideshow-container > picture > img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
}
.slideshow-left,
.slideshow-right {
  position: absolute;
  font-size: 3rem;
  width: 1em;
  height: 2em;
  top: calc(50% - 1em);
  border: none;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.1);
  color: rgba(255, 255, 255, 0.5);
  text-shadow: 0 0 0.2em rgba(0, 0, 0, 0.2);
}
.slideshow-left:hover,
.slideshow-right:hover {
  color: var(--clr-bg-100);
}
.slideshow-left {
  left: 0;
}
.slideshow-right {
  right: 0;
}
.slideshow-title {
  position: absolute;
  bottom: 2em;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--clr-bg-100);
  text-shadow: 0 0 0.2em #000;
  font-size: var(--fs-400);
}
.slideshow-navigation {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  height: 2em;
  align-items: center;
  justify-content: center;
}
.slideshow-navigation > div {
  width: 0.7em;
  height: 0.7em;
  border: 1px solid var(--clr-bg-100);
  border-radius: 50%;
  cursor: pointer;
  margin: 5px;
  background: var(--clr-slideshow-bg-nav, var(--clr-fg-400));
  box-shadow: 0 0 0.4em #000;
}
.slideshow-dot-cur {
  --clr-slideshow-bg-nav: var(--clr-bg-100);
}

/* The actual popup (appears on top) */
.popup .popuptext {
  visibility: hidden;
  width: 260px;
  background-color: #666;
  border: 1px solid white;
  color: #fff;
  font-size: 0.7rem;
  font-style: italic;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -180px;
}
.popup ul {
  padding-left: 10px;
}
div.youtube {
  background: url(images/icons/youtube-100.png) no-repeat;
  background-size: 36px;
  background-position: center;
  padding-top: 30px;
  font-size: 0.6rem;
  font-weight: bold;
  text-shadow: none;
  text-align: center;
}
div.audio {
  background: url(images/icons/play.svg) no-repeat;
  background-size: 40px;
  background-position: center;
}
.audio-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  padding: 10% 0;
}
.PI-audio {
  background: #0f0;
  width: 80%;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.PI-popup-youtube {
  width: 600px;
  height: 500px;
  overflow: hidden;
}
.PI-popup-audio {
  width: 500px;
  height: 200px;
}

/* Popup arrow */
.popup .popuptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 70%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Toggle this class when clicking on the popup container (hide and show the popup) */
.popup .show {
  visibility: visible;
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 1s;
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Home page */
.ImgHeader {
  position: relative;
  width: 100%;
  height: 405px;
  max-width: 720px;
  background-image: url("../../images/logo/logo-400.png");
  background-size: 200px 345px;
  background-position: center;
  background-repeat: no-repeat;
  margin: 60px auto 0 auto;
}
.ImgHeader div.leftup {
  position: absolute;
  left: 0;
  top: 0;
  margin-top: -10px;
  color: #ff3198;
  margin-left: -50px;
}
div.leftup img {
  width: 330px;
}
div.rightdown img {
  width: 310px;
}
.ImgHeader div.rightdown {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0 80px 70px 0;
  color: #35928d;
  margin-right: -40px;
  margin-bottom: -40px;
}
@media (max-width: 700px) {
  div.leftup img {
    width: 200px;
  }
  div.rightdown img {
    width: 200px;
  }
  .ImgHeader div.leftup {
    margin-left: 0px;
  }
  .ImgHeader div.rightdown {
    margin-right: 0px;
  }
}
.article-checklist > ul {
  list-style-image: url("/images/check-la.svg");
  font-size: 25px;
}
