* {
  cursor: url(/assets/cursor.png), auto;
}

html {
  overflow-y: scroll;
}

:root {
  --gallery-gap: 1rem;
}

@font-face {
  font-family: "Winky";
  src: url("assets/fonts/WinkyRough.ttf") format("truetype");
}

body {
  font-family: "Winky";
  margin: 2rem;
  color: #333;
}



h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}



.filter-buttons button {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border-style: solid;
  border-width: 2px;
  border-color: #ffa1ff;
  background: linear-gradient(0deg, #ffe4ff 0%, #ffd9ff 50%, #ffffff 100%);
  transition: all 0.3s ease;
  font-family: "Winky";
}




.filter-buttons button:hover {
  background: linear-gradient(to bottom, #ffd3f9, #ffa1ff);
  box-shadow: 2px 2px 5px -4px rgba(0, 0, 0, 0.72), inset 0 0 1px 2px #ffcdff;
  text-shadow: 1px 1px 0 #fed9fb;
}

/* Masonry layout */
.gallery {
  min-height: 200px;
  transition: min-height 0.2s ease;
}


.gallery .item {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: visible;

}

.gallery .item.hidden {
  opacity: 0;
  transform: scale(0.95);
  position: relative;
  overflow: visible;
}

.gallery .item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
  background: linear-gradient(to bottom, #fbc4f9, #ffedfa);
  box-shadow: 2px 2px 5px -4px rgba(0, 0, 0, 0.72), inset 0 0 1px 2px #fde1f1;
  border: 2px solid #ffa1ff;
  transition: transform 0.3s ease;
  margin-bottom: var(--gallery-gap);
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 1.2s ease;
}


.gallery .item img.loaded {
  opacity: 1;
  filter: grayscale(0.5);
  transition: transform 0.3s ease;
}

.gallery .item img.loaded:hover {
  transform: scale(1.15);
  box-shadow: 0 0 10px #ffa1ff;
  filter: grayscale(0);
  z-index: 100;
  position: relative;
}

/* Responsive columns */
@media (max-width: 768px) {
  .gallery {
    column-count: 3;
  }
}

@media (max-width: 500px) {
  .gallery {
    column-count: 2;
  }
}


::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar:horizontal {
  height: 14px;
}

::-webkit-scrollbar-corner {
  background: #fed9f0;
}

::-webkit-scrollbar-track:vertical {
  background: linear-gradient(90deg, #ffb7ff, #ffffff 20%);
  border-radius: 3px;
}

::-webkit-scrollbar-track:horizontal {
  background: linear-gradient(180deg, #ffb7ff, #ffffff 20%);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  border: 1.5px solid #ffa1ff;
  border-radius: 3px;
  box-shadow: inset 0 -1px 1px #fff, inset 0 1px 1px #fff;
}

::-webkit-scrollbar-thumb:vertical {
  background: url("/assets/scrollbar_i02.png") no-repeat 50%,
    linear-gradient(90deg, #fed9f0 45%, #ffb7ff 0, #ffa1ff);
}

::-webkit-scrollbar-thumb:horizontal {
  background: url("/assets/scrollbar_i01.png") no-repeat 50%,
    linear-gradient(180deg, #fed9f0 45%, #ffb7ff 0, #ffa1ff);
}

::-webkit-scrollbar-button:horizontal:end:increment,
::-webkit-scrollbar-button:horizontal:start:decrement,
::-webkit-scrollbar-button:vertical:end:increment,
::-webkit-scrollbar-button:vertical:start:decrement {
  display: block;
}

::-webkit-scrollbar-button:vertical {
  height: 15px;
}

::-webkit-scrollbar-button:vertical:start:decrement {
  background: white;
  background: url("/assets/scrollbar_i03.png"), #fde1f1;
  background-repeat: no-repeat;
  background-position: center;
  -moz-background-size: 100% auto, cover;
  -webkit-background-size: 100% auto, cover;
  -o-background-size: 100% auto, cover;
  background-size: 100% auto, cover;
  border: 1.5px solid #ffa1ff;
  border-radius: 3px;
}

::-webkit-scrollbar-button:vertical:start:increment {
  display: none;
}

::-webkit-scrollbar-button:vertical:end:decrement {
  display: none;
}

::-webkit-scrollbar-button:vertical:end:increment {
  background: white;
  background: url("/assets/scrollbar_i04.png"), #fed9f0;
  background-repeat: no-repeat;
  background-position: center;
  -moz-background-size: 100% auto, cover;
  -webkit-background-size: 100% auto, cover;
  -o-background-size: 100% auto, cover;
  background-size: 100% auto, cover;
  border: 1.5px solid #ffb7ff;
  border-radius: 3px;
}

::-webkit-scrollbar-button:horizontal {
  width: 14px;
}
::-webkit-scrollbar-button:horizontal:start:increment {
  display: none;
}
::-webkit-scrollbar-button:horizontal:end:decrement {
  display: none;
}

::-webkit-scrollbar-button:horizontal:start:decrement {
  background: white;
  background: url("/assets/scrollbar_i05.png"),
    linear-gradient(180deg, #ffb7ff, #fde1f1 20%);
  background-repeat: no-repeat;
  background-position: center;
  -moz-background-size: 100% auto, cover;
  -webkit-background-size: 100% auto, cover;
  -o-background-size: 100% auto, cover;
  background-size: 100% auto, cover;
  background-position: center;
  border-radius: 3px;
  border: 1.5px solid #fbc4f4;
}

::-webkit-scrollbar-button:horizontal:end:increment {
  background: white;
  background: url("/assets/scrollbar_i06.png"),
    linear-gradient(180deg, #ffa1ff, #fde1f1 20%);
  background-repeat: no-repeat;
  background-position: center;
  -moz-background-size: 100% auto, cover;
  -webkit-background-size: 100% auto, cover;
  -o-background-size: 100% auto, cover;
  background-size: 100% auto, cover;
  background-position: center;
  border-radius: 3px;
  border: 1.5px solid #ffa1ff;
}