body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    font-family: 'Courier New', Courier, monospace;
}

h1, h2, h3, h4 {
    color: #2c3e50;
    font-weight: 1;
}

.gallery-container {
    max-width: 1024px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
    gap: 10px;
}

.gallery img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    /*aspect-ratio: 1 / 1;*/ /* Force square aspect ratio */
    object-fit: cover; /* Cover the square area */
    border-radius: 5px; /* Optional: Rounded corners */
    /*border: 1px solid black;*/
}

.category-box {
}

.category-title {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    height: 50px;
}


a {
    color: #808080;
    text-decoration: none;
}

a:hover {
    color: black;
}

.gallery-thumbnail:hover {

}

.category-box a {
    color: #808080;
    text-decoration: none;
}

.category-box:hover a {
    color: black;
}

.table-of-contents a {
    text-decoration: none;
    color: black;
    opacity: 70%;
}

.table-of-contents a:hover {
    opacity: 100%;
}

.category-box img {
    opacity: 50%;
}

.category-box:hover img {
    opacity: 100%;
}

.title {
    text-align: center;
}

ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

ul li {
    margin-bottom: 8px;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Smaller columns on mobile */
        gap: 5px;
    }

    ul li {
        margin-bottom: 16px;
    }

    .terminal-container {
        font-size: 14px;
    }
}