/* GENERAL LAYOUT */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f3f3;
}

/* SUCCESS MESSAGE */
.success-message {
    text-align: center;
    color: #0f8f0f;
    background: #e7ffe7;
    border: 1px solid #0f8f0f;
    padding: 15px;
    margin: 20px auto;
    width: 50%;
    font-size: 1.4rem;
    border-radius: 8px;
    font-weight: bold;
}
.logged-in-user-top {
    width: 100%;
    text-align: right;
    padding: 5px 15px 0 0;
    font-size: 0.9rem;
    color: #444;
    opacity: 0.85;
}

/* NAVIGATION BAR */
.top-nav {
    width: 100%;
    background: #f7f7f7;
    padding: 10px 0;
    text-align: center;
    font-size: 1.1rem;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
    position: relative; /* needed for absolute user label */
}

.top-nav a {
    text-decoration: none;
    color: #333;
    padding: 0 10px;
}

.top-nav a:hover {
    color: #0077cc;
}

.top-nav .divider {
    margin: 0 10px;
    color: #888;
}

/* HEADER IMAGE */
#site-header {
    text-align: center;
    margin-bottom: 20px;
}

.header-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    background: #fff;
}

.header-image {
    max-width: 900px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* INDEX SEARCH BAR (homepage) */
.search-input {
    width: 60%;
    max-width: 600px;
    padding: 12px 18px;
    border-radius: 35px;
    border: 1px solid #aaa;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    font-size: 1.2rem;
    outline: none;
}

.search-input:focus {
    border-color: #555;
}

/* CENTER UTILITY CLASS */
.center {
    text-align: center;
    margin-top: 30px;
}

/* IMAGE MODAL VIEWER */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.92);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 0 15px #000;
}

/* GLOBAL SEARCH BAR (all pages except homepage) */
.global-search {
    width: 100%;
    text-align: center;
    margin: 25px 0 15px 0;
}

.global-search input {
    width: 55%;
    max-width: 600px;
    padding: 12px 18px;
    border-radius: 35px; /* match homepage style */
    border: 1px solid #aaa;
    font-size: 1.1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    outline: none;
}

.global-search input:focus {
    border-color: #555;
}

/* BUTTON STYLE REMOVED — NOT USED ANYMORE  
   (global-search no longer uses a button shape or label)
*/

.logout-link {
    color: #c00;
    text-decoration: none;
    font-weight: bold;
}

.logout-link:hover {
    text-decoration: underline;
}

.slideshow-container {
    width: 100%;
    text-align: center;
    margin: 35px 0 25px 0; /* adds space below search bar */
}

#slideshow-image {
    max-width: 450px;     /* medium size */
    width: 80%;           /* responsive on mobile */
    border-radius: 10px;
    border: 1px solid #ccc;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);  /* subtle depth */
}

