/* style.css */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

/* Navigation Bar */
nav {
    background-color: #444;
    display: flex;
    justify-content: center;
    padding: 0.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 5px;
    font-weight: bold;
}

nav a:hover {
    background-color: #d9534f; /* Red color to signal alert/warning nature */
    border-radius: 4px;
}

/* Main Container */
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
    color: #d9534f; /* Red headers */
}

h2 {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    background-color: #333;
    color: white;
    font-size: 0.8rem;
}

.alert-box {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}
/* Force the specific Disclaimer link to be blue everywhere */
a[href="disclaimer.html"] {
    color: #0066cc; /* A strong, readable blue */
    font-weight: bold;
}

/* Ensure it stays blue even after being visited */
a[href="disclaimer.html"]:visited {
    color: #0066cc; 
}

/* Optional: Make it slightly lighter on hover so users know it's clickable */
a[href="disclaimer.html"]:hover {
    color: #004499;
    text-decoration: underline;
}

.thumbnail {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    max-width: 100%; /* Ensures it fits in the container */
    height: auto;
    border: 1px solid #ddd;
}

.thumbnail:hover {
    opacity: 0.7;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.image-container {
    text-align: center;
    margin: 20px 0;
}

.caption {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 1000; /* Sit on top of everything */
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (The Image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh; /* Don't be taller than the screen */
    object-fit: contain;
}

/* Add Animation - Zoom in */
.modal-content {  
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Source text */
.source-label {
    display: block;      /* Forces it to a new line */
    color: #888;         /* Light grey */
    font-style: italic;  /* Italic style */
    margin-top: 4px;
}

/* Source text inside the POPUP */
#source-credit {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;          /* Light grey (readable on dark background) */
    padding: 5px 0 20px 0; 
    font-size: 0.9em; 
    font-style: italic;
}

#caption {
    margin: auto;           /* Centers the container */
    display: block;
    width: 80%;             /* Ensures it doesn't touch the edges */
    max-width: 700px;       /* Keeps it readable on large screens */
    text-align: center;     /* Centers the text itself */
    color: #ccc;            /* Light grey color */
    padding: 10px 0;        /* Space top and bottom */
    font-size: 1.1em;       /* Slightly larger text */
}