body {
  background-color: #17011c;
  color: #fff;
  font-family: "Martian Mono", monospace;
  margin: 0;
  padding:50px;
}

.container {
  max-width: 700px;
  margin: 0 auto;
}

.header {
  display: flex;
}

.link {
  border: 1px solid #fff;
  margin-top: 25px;
  display: flex;
  align-items: center;
  position: relative;
  transition: transform 0.2s ease;
  padding:10px;
}

.link:hover {
  transform: scale(1.1);
}

.brand {
  position: relative;
  width: 30px;
  height: 30px;
  background: #fff;
  padding: 10px;
  border: 10px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image {
  max-width: 40px;
  display: block;
}

.spinning {
  animation: spinInf 2s linear infinite;
}

@keyframes spinInf {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.bubble {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 20px;
  background: #fff;
  color: #000;
  padding: 6px 12px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

.site {
  font-size: 20px;
  font-weight: bold;
  padding: 15px;
  margin-left: 25px;
  line-height: 42px;
}

.photostream {
  border: 1px solid #fff;
  padding: 15px 10px 20px 10px;
  margin-top: 25px;
  display: block;
  filter: drop-shadow(5px 5px 5px #0b0b0b);
}

.photostream img {
  transition: transform 0.2s ease;
  will-change: transform;
}

.photostream img:hover {
  transform: scale(1.1);
}

.photos {
  max-width: 1000px;
  margin: 0 auto;
}

.gallery {
  column-count: 3;
  column-gap: 12px;
  margin-top: 25px;
}

.gallery img {
  width: 100%;
  margin-bottom: 10px;
  cursor: pointer;
  break-inside: avoid;
}

.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: row;
}

.mat-wrapper {
  background: white;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 20px #000;
}

.mat-wrapper img {
  display: block;
  background: white;
  padding: 100px;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  box-sizing: border-box;
}

.arrow {
  font-size: 1.5rem;
  color: #17011c;
  background:white;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10000;
  user-select: none;
  padding: .25rem .5rem;
}

.arrow-row {
  display: none;
  justify-content: space-between;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.arrow-left {
  left: 20px;
}

.arrow-right {
  right: 20px;
}

.archive-toggle {
  margin-top: 15px;
  font-size: 16px;
}

.archive-label {
  cursor: pointer;
  user-select: none;
  font-weight: bold;
  display: inline-block;
  transition: transform 0.2s ease;
  padding:10px 15px 10px 15px
}

.archive-list {
  list-style: none;
  margin: 10px 0px 15px 0px;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.archive-list a {
  color: #fff;
  text-decoration: none;
}

.archive-list a:hover {
  text-decoration: underline;
}

.archive-list li{
  list-style-type: square;
}

#random-thumbs > div {
  display: flex;
  justify-content: center;
}

.loader-box {
  width: 25px;
  height: 25px;
  background-color: white;
  margin: 50px auto;
  border-radius: 4px;
}

.gohome{
  font-size:10px;
  padding:5px;
}

a {
  color: #fff;
  font-size: 18px;
  text-decoration: none;
}

a:visited {
  color: #fff;
}

h1 {
  font-size: 30px;
  line-height: 40px;
  margin: 5px;
}

h2 {
  padding-bottom: 10px;
  font-size: 22px;
  line-height: 30px;
}

h3 {
  color: #fff;
  margin: 0 0 20px 0;
  padding: 10px;
}

@media (max-width: 600px) {
  body {
    padding:10px;
    margin:0px;
  }

  .container {
    padding: 0 0px;
  }

  .link {
    gap: 15px;
    margin-top:10px;
  }

  .site {
    margin-left: 0;
    padding: 5px 0;
    font-size: 14px;
    line-height: 16px;
  }

  .bubble {
    font-size: 12px;
  }

  .brand {
    width: 30px;
    height: 30px;
    padding: 5px;
    border-width: 8px;
  }

  .photostream {
    padding: 10px;
    margin-top:10px;
  }

  .gallery { 
    column-count: 1; 
  }

  .arrow {
    position: static;
    transform: none;
    z-index: auto;
    font-size: 16px;
    padding: 6px 12px;
    background: #eee;
    color: #000;
    border: 1px solid #aaa;
    border-radius: 5px;
  }

  .mat-wrapper {
    flex-direction: row;
    padding: 50px 25px;
    gap: 10px;
  }

  .mat-wrapper img {
    padding: 0 !important;
    max-width: 75vw;
    max-height: 75vh;
    background: white;
  }

  .arrow {
    position: static !important;
    transform: none;
    font-size: 18px;
    background: white;
    border:none;
  }

  .archive-label{
    font-size: 14px;
  }

  .archive-list a{
    font-size:14px;
  }

  #random-thumbs {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #random-thumbs > div {
    width: 100%;
    justify-content: center;
  }

  #random-thumbs img {
    max-width: 90%;
  }

  h1{
    font-size:20px;
  }

  h2{
    font-size:16px;
    line-height:24px;
  }

  h3{
    font-size:14px;
  }

}