body {
    background-color: #dec822;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
.navbar {
    background-color: #241745;
    overflow: visible;
    position: fixed;
    top: 0;
    width: 100%;
    min-height: 90px; 
    z-index: 1000; 
}
.navbar img {
    height: 60px;
    width: 60px;
    background-color: aliceblue;
    border-radius: 50%;
    padding: 5px;
    margin: 10px;
}
.navbar img:hover {
    transition: .3s;
    transform: scale(1.1);
    box-shadow: 10px 10px 10px rgb(0, 0, 0);
}

ul {
    background-color: #241745;
    display: flex;
    justify-content: space-evenly;
    align-items: center;   
    border-radius: 50%;
}
ul li {
    float: left;
}
.navbar li a, .navbar li button {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    display: flex; 
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    min-height: 60px;
    box-sizing: border-box;      
    line-height: 1.2;
    border: none;
    background: none;
    cursor: pointer;
}

.navbar li button.hidden {
    display: none;
}

.items-container {
  margin: 260px auto 0; /* move further below navbar */
  max-width: 1100px;
  height: 70vh;
  background-color: #f4f4f4;
  border-radius: 12px;
  border: 2px solid #ddd;
  overflow-y: auto;
}


.items-container > * {
    margin: 12px 20px; 
}


.items-container h1 {
  margin: 16px 0;
  padding: 0 12px;
  text-align: center;
}


.contact-number {
    font-size: 1.5em;
    font-weight: bold;
    display: block;
    margin: 8px auto 0;
    text-align: center;
}


.items-list {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 16px;
  max-width: 100vw;
  height: calc(2 * 220px + 16px);
}


.item-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: max-content;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.add_item img{
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ffffff;
    border: none;
    border-radius: 100%;
    height: 90px;
    width: 90px;
    transition: transform 0.3s ease;
}
.add_item img:hover {
    transition: transform 0.3s;
    transform: scale(1.1) rotate(90deg);
}

.inbox-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 0;
  width: 90px;
  height: 90px;
  background: white;
  text-decoration: none;
  box-shadow: none;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s;
  border-radius: 50%;
}

.inbox-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.inbox-btn:hover {
    transition: transform 0.3s;
    transform: scale(1.1);
    
}

.form_container { 
  display: flex; 
  flex-direction: column; 
  align-items: center;    
  justify-content: center;   
  margin: 50px auto;      
  max-width: 600px; 
  min-height: 70vh; 
  background-color: #f4f4f4; 
  border-radius: 12px; 
  border: 2px solid #ddd; 
  padding: 40px; 
  box-shadow: 10px 10px 10px rgb(0, 0, 0);
}

#foundItemForm {
  display: flex;
  flex-direction: column;
  width: 100%;   
  gap: 30px;        
}
form button {
    background: linear-gradient(45deg,#f3ec78,#af4261);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform .3s, box-shadow .3s;
}
form button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* parallax sections */
.parallax {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    filter: brightness(0.9);
    margin-top: 60px; /* drop under navbar */
}

.parallax .caption {
    background: rgba(0,0,0,0.4);
    padding: 20px 40px;
    border-radius: 8px;
}

.parallax .border {
    font-size: 3em;
    letter-spacing: 3px;
    font-style: italic;
    text-transform: uppercase;
}

/* Utility */
.hidden { display: none !important; }

/* Claim label */
.claimed-label {
    background: #ffeb3b;
    border-radius: 8px;
    padding: 6px 10px;
    margin-top: 10px;
    font-weight: 600;
}

/* Buttons inside cards */
.item-card button {
    margin-top: 8px;
    padding: 8px 10px;
    border: none;
    background: #241745;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}
.item-card button:hover {
    background: #3f2b82;
}

.about {
    padding: 120px 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.3em;
    line-height: 1.75;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* item card and image styling */
.item-card {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.item-card .images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.item-image {
    max-width: 120px;
    max-height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

/* responsive adjustments */
@media (max-width: 768px) {
    .navbar ul {
        /* keep horizontal but shrink and allow wrapping when space is tight */
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
        align-items: center;
        padding: 0;
    }
    .navbar img {
        height: 40px;
        width: 40px;
        margin: 2px;
    }
    .navbar li a {
        padding: 4px 6px;
        font-size: 0.8em;
    }
    .items-container {
        margin: 140px 10px 0;
        max-width: 95%;
        height: auto;
    }
    .about {
        padding: 80px 20px;
        font-size: 1.1em;
    }
    .parallax {
        height: 50vh;
        margin-top: 60px;
    }
    .parallax .border {
        font-size: 2em;
    }
    .form_container {
        margin: 30px 10px;
        padding: 20px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .navbar ul {
        padding: 0;
    }
    .navbar li a {
        font-size: 0.8em;
    }
    .contact-number {
        font-size: 1.2em;
    }
    .search-container input {
        font-size: 0.9em;
    }
}

/* Modal for admin edit */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.modal.hidden {
  display: none !important;
}

.modal-content {
  background: white;
  padding: 24px;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.modal-content h2 {
  margin-top: 0;
}

.modal-content label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

