:root {
    --bg: #ffffff;
    --text: #000000;
    --border: #000000;
    --accent: #eeeeee;
}

* { 
    margin: 0; 
    padding: 0;
    box-sizing: border-box; 
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header Flex Layout */
header {
    border-bottom: 2px solid var(--border);
    margin-bottom: 3rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Keeps tabs aligned with the bottom of the logo */
}

header h1 {
    text-transform: uppercase;
    margin: 0;
    letter-spacing: -1px;
    font-size: 2.5rem;
    line-height: 1;
}

header h1 a {
    text-decoration: none;
    color: var(--text);
}

/* Tab Styles */
.nav-tabs {
    display: flex;
    gap: 1.5rem;
}

.nav-tabs a {
    text-decoration: none;
    color: var(--text);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 4px 8px;
}

.nav-tabs a:hover {
    background-color: var(--accent);
}

/* Nav Dropdown Styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg);
    border: 2px solid var(--border, #000);
    min-width: 160px;
    z-index: 1;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: inherit;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid var(--border, #000);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--accent, #eee); /* Use your accent color */
    color: #000;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

main {
    min-height: 50vh;
}

footer {
    margin-top: 5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Plain Button Style */
.btn {
    background: var(--text);
    color: var(--bg);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    text-transform: uppercase;
}

.btn:hover {
    background: var(--accent);
    color: var(--text);
    outline: 2px solid var(--text);
}

.construction-box {
    border: 2px dashed var(--border, #000);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

/* =========================================
   THE POSTERBOARD 
========================================= */

/* 1. The Frame & Cork Background */
.corkboard {
    /* We use a brownish color for the cork, and a darker brown solid border for the wood frame */
    background-color: #c99b6c; 
    border: 20px solid #5c3a21;
    border-radius: 8px;
    padding: 2rem;
    
    /* An "inset" box-shadow creates a dark shadow INSIDE the frame, giving the board 3D depth */
    box-shadow: inset 0 0 30px rgba(0,0,0,0.4), 10px 10px 20px rgba(0,0,0,0.2);
    margin-bottom: 3rem;
}

/* 2. The Grid System */
.poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    align-items: start;
}

/* 3. The Individual Posters */
.poster-item {
    position: relative; 
    box-shadow: 3px 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
    
    display: block; 
    text-align: center;
    text-decoration: none;
    color: var(--text);
    border-radius: 4px; /* Tiny rounded corners */
}
.poster-img {
    width: 100%;
    height: auto; 
    display: block; /* Removes weird spacing underneath images */
}
/* Make them pop out when hovered over */
.poster-item:hover {
    transform: scale(1.05) translateY(-5px);
    z-index: 10;
}

/* We rotate odd and even posters slightly so they look like they were slapped up in a hurry */
.poster-item:nth-child(even) { transform: rotate(3deg); }
.poster-item:nth-child(odd) { transform: rotate(-2deg); }
.poster-item:nth-child(3n) { transform: rotate(1deg); }


/* "::before" creates a fake, invisible HTML element just inside the poster. 
   We style it to look like a red thumbtack! */
.poster-item::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%); /* Perfectly centers it horizontally */
    width: 12px;
    height: 12px;
    background-color: #cc0000;
    border-radius: 50%;
    box-shadow: inset -2px -2px 4px rgba(0,0,0,0.4), 1px 1px 2px rgba(0,0,0,0.5);
    z-index: 5;
}

@media (max-width: 768px) {
    /* Stack the logo and the nav links vertically */
    header .container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    header h1 {
        text-align: center;
        font-size: 2.2rem; 
    }

    /* Allow links to wrap, but keep them evenly spaced without boxes */
    .nav-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.2rem;
    }

    /* Keep the links clean and minimal, just like the desktop version */
    .nav-tabs a {
        padding: 4px 8px;
        font-size: 0.95rem;
        border: none;
    }

    /* Fix the dropdown so it centers properly */
    .dropdown-content {
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }
}