* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    /* font-family: Arial, sans-serif; */
    font-family: "Delius", cursive;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    margin: 0;
    padding: 0;
    background-image: url("header_bg2.jpg");
    background-repeat: no-repeat;
    background-color: #fbc25b;
    background-position: top right;
    background-size: contain;

    }

header, footer {
    text-align: center;
    padding: 10px;
}
nav {
    float: right;
    margin: 0.5rem auto;
}

.header-content {
    padding: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: #001a67;
    font-weight: bold;
}
.logo{
    font-family: "Caveat", cursive;
    font-optical-sizing: auto;
}

a.logo {
    font-size: 3rem;
    color: #17398c;

}

h1 a {
    text-decoration: none;
    color: white;
}

.container {
    padding: 20px;
    max-width: 1000px;
    margin: 1rem auto;
    background-color: rgba(255,255,255,0.25);
    border-radius: 1.5rem;
    /*backdrop-filter: blur(5px);*/
}

.flex{
    display: flex;
    justify-content: center;
}

.sidebar {
    width: 20%;
    padding-right: 20px;
}

#category-filter {
    width: 200px;
    padding-left: 20px;
}

#category-filter>li  {
    list-style: none;
      margin: 5px 30px 5px 0;
      background-color: rgba(0,0,0,0.1);
      padding: 5px 10px;
      cursor: pointer;
}

.button{
    background-color: #fff;
    border: 2px solid #001a67;
    color: #001a67;
    border-radius: 10px;
    padding: 0.25rem;
    margin: 10px;
    width: 150px;
    text-align: center;
}

.gallery {
    flex-grow: 1;
}
.image-item {
    padding: 10px;
    width: 150px;
    height: 150px;
    margin: 5px;
    /* border: 3px solid #001a67; */
    background: #fff;
    border-radius: 10px;
    display: flex;
    justify-content: center;   /* horizontal center */
    align-items: center;       /* vertical center */
    text-align: center;
    position: relative;
}
.image-item a {
    text-decoration: none;

}
.image-item p{
    position: absolute;
    left: 50%;
    top: 125px;
    transform: translate(-50%, 1px);
    width: 150px;


}

.preview {
    margin-bottom: 10px;
    max-width: 100px;
    max-height: 100px;
    height: auto;
    padding: 5px;
}

.image-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping to the next row */
    gap: 10px; /* Space between images */

}

/* Fix filtering behavior */
.hidden {
    display: none !important;
}


@media (max-width: 800px) {
  .image-item {
    width: 100px;
    height: 100px;
  }

  .flex{
    display: block;
    justify-content: center;
  }
  .image-item p{
        position: absolute;
    left: 50%;
    top: 85px;
    font-size: 0.75rem;
    transform: translate(-50%, 0px);
  }
}