@font-face {
  font-family: 'FluxischElse-Regular';
  src: url('FluxischElse-Regular.otf') format('opentype');
}

@font-face {
  font-family: 'FluxischElse-Bold';
  src: url('FluxischElse-Bold.otf') format('opentype');
}

html {
  scroll-behavior: smooth;
}

/* Reset and base styles */
body {
  margin: 0;
  padding: 5%;
  background: white;
  color: black;
  text-align: center;
  font-family: FluxischElse-Regular, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding-top: 10px;
  min-height: 100vh;
}

.info {
  margin-top: 0;
  margin-bottom: 40px;
}

.info h1 {
  margin-bottom: 0;
  font-size: 12pt;
  line-height: 15pt;
  font-family: FluxischElse-Bold, sans-serif;
}

.info p {
  margin: 0;
  font-size: 12pt;
  line-height: 15pt;
}

a {
  color: black;
  text-decoration: none;
}

a:hover {
  color: lightgrey;
  cursor: default;
}

/* Dog image */
.dog-image {
  position: absolute;
  top: 15%;
  left: 10%;
  cursor: grab;
  touch-action: none;
  transition: opacity 0.3s ease;
  user-select: none;
  z-index: 10;
}

#dog {
  width: auto;
  height: 380px;
  user-select: none;
}

/* Hide dog on scroll for small screens */
.dog-image.hide-on-scroll {
  opacity: 0;
  pointer-events: none;
}

/* Arrow */
.down-arrow {
  position: fixed;
  bottom: 80px; 
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  cursor: pointer;
  transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
  z-index: 20;
}

.down-arrow img {
  width: 34px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.down-arrow.sticky {
  position: fixed;
  top: 20px;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  z-index: 1000;
}

/* Gallery */
.image-gallery {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 80px 2% 50px;
  background: white;
  flex-wrap: nowrap; /* no wrapping on large screens */
}

.column {
  flex: 1 1 33.33%; /* three equal columns */
  max-width: 33.33%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.image-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

/* Dotted border */
.image-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 7px dotted black;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 2;
  border-radius: 0;
}

/* Tooltip */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-text {
  visibility: hidden;
  width: 70px;
  background-color: black;
  color: white;
  text-align: center;
  font-size: 12pt;
  padding: 5px;
  border-radius: 5px;
  position: absolute;
  z-index: 1;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tooltip.show .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Responsive styles */
@media screen and (max-width: 767px) {
  #dog {
    width: 300px;
  }

  .down-arrow img {
    width: 25px;
  }

  .dog-image.hide-on-scroll {
    opacity: 0;
    pointer-events: none;
  }

  .container {
    padding-top: 10px;
  }

  .image-gallery {
    flex-wrap: wrap; /* allow wrapping to stack */
    flex-direction: column;
    padding: 80px 5% 50px;
  }

  .column {
    max-width: 100%;
    flex-basis: 100%;
  }

  .down-arrow.sticky {
    top: 20px;
    bottom: auto;
  }

  .down-arrow {
    bottom: 70px;
  }
}

.gallery-toggle a.active {
  font-weight: bold;
}