/* Primary website colors, we don't care if you use light mode */
:root {
  --fg: #eee;
  --bg: #111;
  --muted: #777;
}

/* Don't let the browser control the size of stuff, we control allat */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* KILL THE SCROLL BAR!!! */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

/* Basic stuff, our font, our colors and such */
body {
  font: 16px/1.6 ui-monospace, monospace;
  color: var(--fg);
  background: var(--bg);
}

/* Makes sure all of our stuff is in a nice little vertical rectangle */
main {
  max-width: 560px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

/* This is for the title and nav bars and stuff */
.center {
  text-align: center;
}

h1 { font-size: 1rem; font-weight: normal; }

h2 {
  font-size: 1rem;
  font-weight: normal;
  color: var(--muted);
  margin-bottom: 1rem;
}

nav { margin: 1rem 0 4rem; }
nav a { margin-right: 1rem; }

section { margin-bottom: 4rem; }

a { color: inherit; text-underline-offset: 5px; }
a:hover { color: var(--muted); }
ul { list-style: none; }

pre {
  font: inherit;
  font-size: 0.7rem;
  line-height: 1.3;
  overflow-x: auto;
}

#photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* The evil fastfetch element (this is really bad but i dont want to do scripting for it) */
.fastfetch {
  width: max-content;
  max-width: calc(100vw - 2rem);
  margin-left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  overflow-x: auto;
  overflow-y: hidden;
}

.fastfetch b { color: #1d99f3; }
.fastfetch .w { color: var(--fg); }

.fastfetch .palette {
  display: inline-block;
  width: 24ch;
  height: 1.3em;
  vertical-align: top;
  background: linear-gradient(to right,
    #232627 0 12.5%, #ed1515 0 25%, #11d116 0 37.5%, #f67400 0 50%,
    #1d99f3 0 62.5%, #9b59b6 0 75%, #1abc9c 0 87.5%, #fcfcfc 0);
}

.fastfetch .palette.bright {
  background: linear-gradient(to right,
    #7f8c8d 0 12.5%, #c0392b 0 25%, #1cdc9a 0 37.5%, #fdbc4b 0 50%,
    #3daee9 0 62.5%, #8e44ad 0 75%, #16a085 0 87.5%, #ffffff 0);
}

/* Gallery stuff!!! This shows the images */
#gallery {
  width: min(100vw - 4rem, 1600px);
  margin-left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

#gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: pointer;
}

/* overlay stuff for clicking on images */
#overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 100;
}

#overlay.open {
  display: flex;
}

#overlay-img {
  max-width: 95vw;
  max-height: 95vh;
}