/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

:root {
  --background-color: DarkSlateGray; 
}

@media (prefers-color-scheme: light) {
  :root {
    --background-color: MintCream; 
  }
}

body {
  background-color: var(--background-color);
  color: contrast-color(var(--background-color));
  font-family: Verdana;
}

.main {
  width: 800px;
  margin: 0 auto;
}

menu.main {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #333333;
  font-family: "Courier New";
}

menu.main li {
  display: block;
  margin: -2px 10px;
  border: 2px solid #333;
}

menu.main li a {
  margin: 5px; 
}

.pixelated {
  image-rendering: pixelated;
}

.image-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
}

.image-gallery > img {
  margin: 5px; 
}

.zoom-image {
  display: block;
  border: 1px solid DarkSeaGreen;
  background-color: var(--background-color);
  padding: 1px;
  filter: grayscale();
}

.zoom-image:hover {
  transition: all 0.2s;
  filter: none;
  z-index: 999;
}

.zoom-image.x2.active {
  transform: scale(2);
  /* transition-timing-function: steps(2, jump-both); */
}

.zoom-image.x3.active {
  transform: scale(3);
  /* transition-timing-function: steps(3, jump-both); */
}