* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.desktop {
	display: none;
}

body {
  background: #0d0c0c;
  color: #c98452;
  font-family: 'VT323';
  font-size: 20px;
  padding: 4em;
}

body::-webkit-scrollbar {
  width: 8px;
  background-color: #0d0c0c;
}

body::-webkit-scrollbar-thumb {
  background: #c98452;
}

#themeSelect {
  background-color: #0d0c0c;
  color: #c98452;
  border: 1px solid #c98452;
  box-shadow: none;
  padding: 2px 4px;
  font-family: 'VT323';
  font-size: 18px;
}

.bg-witch {
  position: fixed;
  bottom: 32px;
}

.bg-witch .witch {
  animation-name: hover;
  animation-duration: 5s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes hover {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0);
  }
}

.bg-witch .cat {
  transform: translate(-172px, 5px) rotate(0);
}

.bg-witch .cat:hover {
  animation-name: silly;
  animation-iteration-count: infinite;
  animation-timing-function: steps(2, end);
  animation-duration: 1s;
  transform-origin: center;
}

@keyframes silly {
  0% {
   transform: translate(-172px, 5px) rotate(-5deg);
  }

  /* 25% {
    transform: translate(-172px, 5px) rotate(5deg);
  }

  50% {
    transform: translate(-172px, 5px) rotate(-5deg);
  } */

  100% {
    transform: translate(-172px, 5px) rotate(5deg);
  }
}

main {
  max-width: 60ch;
  height: 100%;
  margin-left: 550px;
  padding: 1em;
  border: 3px double;
}

#grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.img-viewer {
  margin-top: 32px;
  padding: 1em 8px;
  border-top: 1px solid #c9845273;
  border-bottom: 1px solid #c9845273;
}

.img-container {
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

figure {
  position: relative;
}

figure img {
	box-shadow: 0 0 9px 0 currentColor;
	border-radius: 6px;
}

figure button {
	width: 32px;
	height: 32px;
  position: absolute;
  bottom: 0;
	background: transparent;
  border: 0;
  color: currentColor;
	font-size: 32px;
	display: flex;
  align-items: center;
  padding-bottom: 5px;
	cursor: pointer;
}

.btn-prev {
  left: 0;
	transform: rotate(180deg);
}

.btn-next {
  right: 0;
}

figcaption {
  text-align: center;
	margin-top: auto;
  padding: 8px 48px;
}

img {
  max-width: 100%;
}

.list-title,
strong {
	font-family: "Jacquard 24";
	font-size: 40px;
  text-shadow: 1px 1px 5px #c99452;
  animation: fire-flicker 5s infinite alternate ease-in-out;
}

.list-title {
  margin-bottom: 2px;
}

@keyframes fire-flicker {
  0%, 100% {
    text-shadow:
      0 0 5px rgba(255, 165, 0, 0.8),
      0 0 10px rgba(255, 69, 0, 0.6),
      0 0 15px rgba(255, 0, 0, 0.4);
    opacity: 1;
  }
  50% {
    text-shadow:
      0 0 3px rgba(255, 165, 0, 0.7),
      0 0 8px rgba(255, 69, 0, 0.5),
      0 0 12px rgba(255, 0, 0, 0.3);
    opacity: 0.9;
  }
}

.img-container a {
	text-decoration: none;
	text-shadow: none;
}

a {
  color: currentColor;
  text-shadow: 1px -1px 4px #f68900;
}

p {
  line-height: 1.2;
}

p + p {
	margin-top: 32px;
}

ul {
  list-style-position: inside;
	list-style-type: none;
}

li::before {
	content: '❧';
	margin-right: 4px;
  font-size: 14px;
  color: #8f6238;
}

ul * + * {
	margin-top: 4px;
}

summary {
  cursor: pointer;
}

details ul {
  margin-left: 16px;
  margin-bottom: 8px;
}

.tooltip {
  text-decoration: underline;
  text-decoration-style: dotted;
  cursor: pointer;
}

#page8 a {
	font-family: 'Jacquard 24';
  font-size: 24px;
}

@media screen and (max-width: 1200px) {
  main {
    margin-left: 450px;
  }
}

@media screen and (max-width: 900px) {
  body {
    display: flex;
    flex-direction: column-reverse;
  }

  .bg-witch {
    position: relative;
    bottom: unset;
    margin-top: 32px;
  }
  
  main {
    margin: 0;
  }
}