/* Website by Laura Jardim, 2025 - 05 - 05 */

@font-face {
  font-family: 'Satoshi Light';
  src: url("../fonts/Satoshi-Light.woff2") format("woff2");
}

@font-face {
  font-family: 'Satoshi Bold';
  src: url("../fonts/Satoshi-Bold.woff2") format("woff2");
}

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Satoshi Light';
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f9f8f5;
  color: black;
}

h1 {
  font-family: 'Satoshi Bold';
  font-size: 3rem;
}

  a {
    font-family: 'Satoshi Light';
    font-size: 1rem;
    text-decoration: none;
    color: black;
    color: inherit;
  }
  
  a:visited {
  color: inherit;
  text-decoration: none;
}

  a:hover, a:focus, a:active {
  color: inherit;
  text-decoration: none;
}

p {
  font-family: 'Satoshi Light';
  font-size: 1rem;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  background: #f9f8f5;
  border-bottom: 0.05rem solid #000;
  z-index: 9000;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 4rem;
  margin-top: 4rem;
  background-color: #f9f8f5;
  border-right: 0.05rem solid black;
  overflow-x: hidden;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: left;
  transition: width 0.3s ease;
}

.toggle-btn {
  background: none;
  border: none;
  color: rgb(0, 0, 0);
  font-size: 1.5rem;
  width: 2rem;
  margin-top: 1rem;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

/* Default: hamburger visible, bar hidden */
.hamburger-icon {
  display: inline;
  margin-left: 65%;
}

.bar-icon {
  display: none;
}

/* When sidebar is expanded: hide hamburger, show bar */
.sidebar.expanded .hamburger-icon {
  display: none;
}

.sidebar.expanded .bar-icon {
  display: inline;
  margin-left: 65%;
}

.sidebar.expanded {
  width: 15rem;
  transition: width 0.3s ease;
  z-index: 99999;
}

/* Hide menu items by default */
.menu-items {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
  gap: 1rem;
  margin-left: 1rem;
}

.menu-items a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  font-size: 1.5rem;
}

.menu-items a:hover {
  color: #666;
}

/* Show menu items when sidebar is expanded */
.sidebar.expanded .menu-items {
  opacity: 1;
  pointer-events: auto;
}

.main-content {
  margin-top: 3rem;
  margin-left: 3rem;
  padding: 5.5rem 0.2rem 0.2rem 1.2rem;
}

header h1 {
  font-family: 'Satoshi Bold';
  font-size: 1.6rem;
}

.filters {
  position: fixed;
  top: 4rem;
  left: 4rem;
  width: calc(100% - 60px);
  background: #f9f8f5;
  border-bottom: 0.05rem solid #000000;
  display: flex;
  gap: 3rem;
  align-items: center;
  padding: 1rem 1rem;
  z-index: 800;
}

.filters input,
.filters select {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background: transparent;
  border: none;
  border-bottom: 0.05rem solid #737373;
  outline: none;
  text-align: left;
  border-radius: 0;
  appearance: none;
}

main {
  padding: 0.5rem;
  padding-top: 1rem;
}



.custom-dropdown {
  position: relative;
  width: 15.5rem;
  font-family: 'Satoshi Light';
  z-index: 9000;
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.5rem;
  border-bottom: 0.05rem solid #737373; /* Matches the input field */
  font-size: 1rem;
}

.dropdown-arrow {
  width: 0.1rem;
  height: 0.5rem;
  position: relative;
  transition: transform 0.3s ease;
}

.dropdown-arrow::before,
.dropdown-arrow::after {
  content: '';
  position: absolute;
  width: 0.5rem;
  height: 0.05rem;
  background: black;
  top: 0.4rem;
  border-radius: 0.05rem;
}

.dropdown-arrow::before {
  transform: rotate(45deg);
  left: 0;
}

.dropdown-arrow::after {
  transform: rotate(-45deg);
  right: 0;
}

.custom-dropdown.open .dropdown-arrow {
  transform: rotate(180deg) translateY(-0.5rem);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 15.5rem;
  background: #f9f8f5;
  border: 0.05rem solid black;
  padding: 0.7rem;
  z-index: 99999999; /* increase this */
  margin-top: 0.4rem;
  pointer-events: auto; /* ensure interaction */
}

.custom-dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-item {
  margin-bottom: 0.7rem;
  font-size: 1rem;
}

.dropdown-item label {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.dropdown-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 0.9rem;
  height: 0.9rem;
  background: #f9f8f5;
  border: 0.05rem solid black;
  border-radius: 50%;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  padding: 0;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  flex-shrink: 0;
  font-size: 0;
  line-height: 0;
}

.dropdown-item input[type="checkbox"]::before {
  content: "";
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  background: #f2d1f5;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease;
}

.dropdown-item input[type="checkbox"]:checked::before {
  transform: translate(-50%, -50%) scale(1);
}

.dropdown-menu,
.dropdown-item,
.dropdown-item label,
.dropdown-item input {
  pointer-events: auto;
}

.back-to-top {
  position: fixed;
  bottom: 1rem;
  font-family: 'Satoshi Light';
  right: 1.2rem;
  font-size: 1.2rem;
  border: 0.05rem solid black;
  background: #E1D2F3;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

.image-gallery > div {
  column-count: 3;
  column-gap: 10px;
  margin-left: 80px;
  margin-right: 20px;
  margin: 0 auto;
}

.image-gallery img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
  border-radius: 25px;
  break-inside: avoid; /* Prevent images from being split awkwardly */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.image-gallery img.visible {
  opacity: 1;
  transform: translateY(0);
}

.lightbox-overlay {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8); /* dark shadow */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: zoom-out;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 60px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.lightbox-button {
  font-family: 'Satoshi Light';
  position: absolute;
  bottom: 30px;
  right: 30px;
  background-color: white;
  color: black;
  border: 1px solid black;
  padding: 12px 18px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 5px 20px rgba(0,0,0,0.25);
  transition: background 0.2s ease;
}

.lightbox-button:hover {
  background-color: black;
  color: white;
}

.scrollbar {
            height: 100%;
            width: 100%;
            overflow: auto;
            padding: 0 10px;
        }
        
        #scrollbar::-webkit-scrollbar {
            width: 0.4rem;
        }
        
        #scrollbar::-webkit-scrollbar-track {
            border-radius: 10px;
            background-color: #f9f8f5;
            border: 1px solid #000000;
        }
        
        #scrollbar::-webkit-scrollbar-thumb {
            border-radius: 8px;
            height: 1rem;
            background-color: rgb(0, 0, 0);
        }

#noResults{
  font-family: 'Satoshi Light';
  color: rgb(0, 0, 0);
  font-variation-settings: "lineHeight" 1;
  font-size: 1rem;
  padding:30px;
  padding-top: 50px;
  padding-bottom: 30px;
  text-align: center;
  max-width: 100%;
  margin: 0;
}

  @media (min-width: 1600px) {
  html {
    font-size: 24px;
  }
}