body {
    background-color: #111;
    color: white;
    font-family: "Times New Roman", Times, serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Nav container */
nav {
    display: flex;
    justify-content: center; /* Center the nav container */
    align-items: center; /* Center vertically */
    padding: 10px;
    background-color: black;
}

/* Nav inner container */
.nav-container {
    display: flex;
    flex-direction: column; /* Stack logo and nav-links vertically */
    align-items: center; /* Center horizontally */
    position: relative; /* Make this the reference for absolute positioning */
}

/* Logo styles */
.logo-img {
    width: 70%; /* Make the logo responsive */
    max-width: 500px; /* Set a maximum size */
    height: auto;
}

/* Content warning container */
.content-warning {
    height: 30vh; /* Use viewport height for responsive sizing */
    width: auto; /* Maintain aspect ratio */
    position: absolute; /* Position relative to the nav-container */
    top: 50%; /* Center vertically */
    left: 70%; /* Move to the right of the logo */
    transform: translateY(-50%); /* Center vertically */
    margin-left: 2vw; /* Space between logo and content warning (viewport width) */
}

/* Content warning images */
.content-warning img {
    height: 100%; /* Fill the container height */
    width: auto; /* Maintain aspect ratio */
    position: absolute;
    top: 0;
    left: 0;
}

/* Hide the hover image by default */
.content-warning .warning-hover {
    opacity: 0;
}

/* Show the hover image on hover */
.content-warning:hover .warning-default {
    opacity: 0;
}

.content-warning:hover .warning-hover {
    opacity: 1;
}

/* Nav links container */
.nav-links {
    display: flex;
    align-items: flex-end; /* Align items to the bottom */
    gap: 2vw; /* Space between items (viewport width) */
    margin-top: 2vh; /* Space above nav links (viewport height) */
    height: 10vh; /* Use viewport height for responsive sizing */
}

/* Nav icons */
.nav-icon {
    height: 10vh; /* Use viewport height for responsive sizing */
    width: auto; /* Maintain aspect ratio */
}

.nav-icon:hover {
    transform: scale(1.2);
}

/* Smooth transitions for all resizing and movement */
.logo-img, .content-warning, .nav-icon, .nav-links {
    transition: all 0.3s ease;
}

/* Headers */
h1, h2, h3 {
    color: paleblue; /* Pale blue headers */
}

/* Gallery Styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
    gap: 10px; /* Space between images */
    padding: 20px;
}

.gallery-image {
    width: 100%; /* Fill the grid cell */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Ensure images fill their containers */
    border: 2px solid limegreen;
    transition: transform 0.2s ease; /* Optional: Add hover effect */
}

.gallery-image:hover {
    transform: scale(1.05); /* Optional: Slightly enlarge on hover */
}


/* Masonry Grid Stuff */
.grid {
    display: flex;
    justify-content: center; /* Centers everything horizontally */
    flex-wrap: wrap; /* Ensures items wrap correctly */
    max-width: 100%;
    margin: 0 auto;
    margin-left: 10%;
}

.grid-item {
    width: 30%; /* Adjust as needed */
    margin-bottom: 10px;
    margin-right: 10px;
}

.grid-item img {
    width: 100%;
    display: block;
    border-radius: 5px; /* Optional styling */
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid limegreen;
}

/* Lightbox navigation */
.close, .nav-arrow {
    position: absolute;
    color: white;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
}

.close {
    top: 20px;
    right: 30px;
}

.nav-arrow {
    top: 50%;
    transform: translateY(-50%);
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}


/* Reusable Centered Box */
.center-box {
    display: block;
    justify-content: center;
    align-items: center;
    text-align: center; /* Centers text inside */
    width: 80%; /* Adjust for responsiveness */
    max-width: 600px; /* Prevents excessive width */
    margin: 40px auto; /* Centers horizontally with spacing from nav */
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
    color: white;
    font-size: 1.2rem; /* Responsive font size */
    border-radius: 10px; /* Soft rounded corners */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3); /* Subtle shadow effect */
}

.center-box a {
    display: inline-block; /* Allows proper positioning */
    text-decoration: none; /* Removes default underline */
    color: limegreen; /* Makes it stand out */
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.center-box a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Adds a slight hover effect */
}

.button-container {
    text-align: center; /* Ensures the buttons are centered */
    margin-top: 10px; /* Adds spacing */
}

.button-container a {
    display: inline-block;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-weight: bold;
    color: limegreen;
    transition: background 0.3s ease;
}

.button-container a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Basic styling for the image container (optional) */
.image-container {
    display: inline-block; /* Or block, depending on layout */
    position: relative; /* Needed if you wanted CSS-only relative tooltips, but less important here */
    cursor: pointer; /* Indicate interactivity */
}

/* Tooltip styling */
#custom-tooltip {
    position: absolute; /* Crucial for positioning with JS */
    display: none;      /* Hidden by default */
    background-color: black;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    white-space: pre-wrap; /* <<< IMPORTANT: Preserves line breaks and wraps text */
    z-index: 1000;        /* Ensure it's on top */
    pointer-events: none; /* Prevent tooltip from blocking mouse events */
    max-width: 400px;     /* Optional: prevent it from becoming too wide */
    /* Add any other desired styles: box-shadow, etc. */
}





/*  */
/* RESPONSIVE CODES BELOW */
/*  */


/* Responsive tweaks */
@media (max-width: 600px) {
    .center-box {
        width: 90%;
        font-size: 1rem;
        padding: 15px;
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  
  .logo-img {
        transform: translateX(-30%);
    }
    
    
    .content-warning {
        left: 35%; /* Move closer to the logo on tablets */
    }

    .nav-icon {
        height: 8vh; /* Smaller nav icons */
    }

    .nav-links {
        height: 8vh; /* Smaller nav links container */
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-warning {
        left: 50%; /* Move closer to the logo on tablets */
    }

    .nav-icon {
        height: 8vh; /* Smaller nav icons */
    }

    .nav-links {
        height: 8vh; /* Smaller nav links container */
    }
}

@media (max-width: 576px) {
  
    .logo-img {
        transform: translateX(-30%);
    }
  
    .content-warning {
        left: 17%; /* Move even closer to the logo on mobile */
    }

    .nav-icon {
        height: 7vh; /* Even smaller nav icons */
    }

    .nav-links {
        height: 12vh; /* Even smaller nav links container */
    }
}

@media (max-width: 480px) {
    .content-warning {
        left: 20%; /* Center horizontally on very small screens */
    }

    .nav-icon {
        height: 7vh; /* Smallest nav icons */
    }

    .nav-links {
        height: 12vh; /* Smallest nav links container */
    }
}