* {
  font-family: 'Raleway';
}

hr {
  border-top: 4px solid #c9c9c9 !important;
  margin: 1em;
  margin-left: 0;
}

body {
  background: linear-gradient(#000, #0f1319);
  min-height: 78vh;
}

nav#TOC {
  background: black !important;
  background: url(../img/background.gif) !important;
  background-repeat: repeat;
  filter: drop-shadow(0px 10px 4px #000);
}

nav#TOC ul,
nav#TOC a {
  color: #f0f0f9 !important;
  text-decoration: none;
  font-weight: 300;
  font-size: 2.3vmin !important;
}

h1 {
  font-weight: 300;
}

h2 {
  font-weight: 300;
  padding: 0.1em;
  padding-bottom: 0;
  padding-top: 0.3em;
  margin-bottom: 1.1em;
}

h3 {
  font-weight: 300;
}

body nav:first-of-type:before {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body nav:first-of-type {
  justify-content: flex-end;
  padding: 0px;
  padding-right: 6vw;
}

body>p:nth-child(19)>strong:nth-child(1) {
  color: #ff4b4b;
}

::marker {
  font-size: 1em;
  color: #fcdc8b;
}

a {
  font-size: 1.3em;
  background: transparent;
}

blockquote p strong em {
  color: #fcdc8b;
  font-size: 1.2;
  font-weight: 200;
}

p,
li {
  font-size: 1.2em;
}

option {
    background: var(--background);
}

figure {
  margin-left: 0.9em;
}

figcaption strong {
  font-weight: 200;
}

img {
  border-radius: 0.667em;
}

footer {
  text-align: center;
  background-color: #262626;
  padding: 4rem;
  position: absolute;
  left: 0;
  width: 100%;
}

footer h4,
h5,
h6,
h7 {
  margin: 0;
}

footer h5 {
  font-size: 0.9em;
  font-weight: 200;
}

footer h6 {
  font-size: 0.8em;
  font-weight: 100;
}

footer h7 {
  font-size: 0.6em;
  font-weight: 100;
}

.top {
  position: fixed;
  background: transparent;
  top: 0.5vmin;
  left: 8vmin;
  z-index: 1000;
}

.top .logo {
  height: 5vmin;
  padding: 1.1vmin;
}

/* Helpers */
.red,
.red strong {
  color: red !important;
}

.warn {
  background: rgba(250, 200, 0, 0.3);
  border-radius: 0.6em;
  margin: 0.334em;
  margin-top: 3em;
  padding: 1em;
}

.warn h3 {
  margin: 0;
  padding: 0;
}

.warn h3:before {
  content: "⚠️  ";
}

.info {
  background: rgba(10, 20, 200, 0.1);
  border-radius: 0.6em;
  margin: 0.334em;
  margin-top: 3em;
  padding: 1em;
}

.info h3 {
  margin: 0;
  padding: 0;
}

.info h3:before {
  content: "ℹ️  ";
}

.question {
  background: rgba(0, 100, 200, 0.3);
  border-radius: 0.6em;
  margin: 0.334em;
  margin-top: 3em;
  padding: 1em;
}

.question h3 {
  margin: 0;
  padding: 0;
}

.question h3:before {
  content: "❔ ";
}

/* Responsive Image gallery Style rules */
.gallery ul {
  margin: 0;
  padding: 40px 5%;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery ul>li {
  flex: 1 1 auto;
  /* or flex: auto; */
  height: 300px;
  cursor: pointer;
  position: relative;
}

.gallery::after {
  content: "";
  flex-grow: 999;
}

.gallery a {
  font-size: unset;
}

.gallery li img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  vertical-align: middle;
  border-radius: 5px;
}

.gallery .title {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(17, 20, 33, 0.7);
  top: 0;
  left: 0;
  /* transform: scale(1); */
  transition: all 0.2s 0.1s ease-in-out;
  color: #fff;
  border-radius: 5px;

  /* center overlay content */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* hover */
.gallery li:hover .title {
  background: rgba(57, 57, 57, 0.2);
  /* transform: scale(0); */
}
