/* General Reset */

@font-face {
  font-family: Elephant Outline;
  src: url('Elephant-Outline.otf');
}

@font-face {
  font-family: MostraOneBold;
  src: url('../MostraOneBold\ Regular.ttf');
}

@font-face {
  font-family: MostraOneLight;
  src: url('../MostraOneLight\ Regular.ttf');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Syne', sans-serif;
    background-color: white;
    overflow-x: hidden;
  }
  
  /* Header */
  header {
    position: relative;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #8caeac;
    font-family: 'Poppins', sans-serif;
  }
  
  header h1 {
    font-size: 28px;
  }

  h3 {
    font-size: 10pt;
    font-family: MostraOneBold, sans-serif;
  }

  .container {
    margin:0 auto; /* this will center the page */
    width:960px; /*  use your width here */
 }
  
  /* Info Button */
  .info-button {
    cursor: pointer;
    padding: 10px 15px;
    background-color: #82B2AF;
    color: white;
    font-weight: 500;
    transition: background-color 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transform-origin: center;  /* Ensures the rotation is around the center of the button */
  }
  
  .info-button:hover {
    background-color: #8d6a9f;
    color: white;
  }

  
/* Info Modal (Initially hidden) */
.info-modal {
    display: none;
    position: fixed;
    top: 50px;
    left: 10%;
    right: 10%;
    background-color: #fff;
    padding: 20px;
    font-family: 'Courier Prime', monospace;
    z-index: 100;
    max-width: 600px;
    width: 80%;
  }
  
  /* Textarea inside the Modal */
  #info-textarea {
    width: 100%;
    height: 200px;
    padding: 10px;
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    resize: none; /* Disable resizing */
  }
  
  /* Close Button */
  #close-info {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #0F7173;
  }
  
  
  
  /* Grid Layout */
  .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 200px;
    gap: 10px;
    margin: 20px;
    padding-bottom: 100px;
    
  }
  
  .grid-item {
    position: relative;
    overflow: hidden;
    background-color: #82b2af8f;
  }
  
  .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Centra l'immagine */
    transition: transform 0.3s ease-in-out;
    position:absolute;
  }

  .grid-container a {
    display: block;
  }
  
  .grid-item img:hover {
    transform: scale(1.05);
  }

  .filter-container {
    display: flex;
    justify-content: space-between; /* Space between categories and years */
    align-items: center;             /* Vertically align items */
    flex-wrap: wrap;                 /* Wrap if screen is small */
    padding: 10px;
  }
  
  .category-container {
    display: flex;
    justify-content: center;         /* Center category buttons */
    flex-wrap: wrap;                 /* Wrap buttons if needed */
    gap: 10px;                       /* Add some space between buttons */
  }
  
  /* categories button styles */
.button-category {
  padding: 5px 10px;
  font-size: 14px;
  margin: 5px;
  color: white;
  background-color: #82B2AF;
  border: 1px solid #82B2AF;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Button hover effect */
.button-category:hover {
  background-color: #8d6a9f;
  border: 1px solid #8d6a9f;

}

/* Active button - You can add a class when a button is clicked to style it as active */
.button-category.active {
  background-color: #8d6a9f;
  color: white;
}


#yearFilter {
  padding: 5px 10px;
  background-color: #8d6a9f;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}

  /* Footer / Bio Bar */
  .bio-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background-color: #8d6a9f;
    font-size: 0.9rem;
    font-family: 'Syne', monospace;
    color: white;
    text-align: center;
    z-index: 10;
  }
  

  