:root { --cell-size: 1fr; --border-color: #eee; }
body { font-family: system-ui, -apple-system, sans-serif; margin: 0; background: #fff; color: #333; }
.banner { text-align: center; padding: 40px 20px; border-bottom: 1px solid var(--border-color); }
.banner h1 { margin: 0; font-size: 1.5rem; letter-spacing: 1px; }
.tagline { margin: 10px 0 5px; font-weight: bold; }
.tagline-bn { margin: 0; color: #666; }
.note { font-size: 0.8rem; color: #999; margin-top: 15px; }

.grid-container {
    display: grid;
    grid-template-columns: repeat(40, 1fr);
    width: 100%;
    max-width: 1600px;
    margin: 20px auto;
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.block {
    aspect-ratio: 1/1;
    background: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.2s;
    /* New styles for the number */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px; /* Tiny letters */
    color: #ccc;    /* Light gray so it doesn't distract */
    user-select: none;
}

/* Ensure the image sits on top of the number once published */
.block img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2; 
}

/* Ensure the pending indicator stays visible */
.block.pending::after {
    z-index: 3;
}

.block:hover { background: #f9f9f9; }
.block img { width: 100%; height: 100%; object-fit: cover; }
.block.pending { background: #fffbe6; }
.block.pending::after { content: 'P'; position: absolute; font-size: 8px; color: #d4a017; top: 2px; right: 2px; }

@media (max-width: 768px) {
    .grid-container { grid-template-columns: repeat(20, 1fr); }
}

/* Modal */
.modal { position: fixed; z-index: 100; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; }
.modal.hidden { display: none; }
.modal-content { background: #fff; padding: 25px; width: 90%; max-width: 400px; border-radius: 4px; position: relative; }
.close { position: absolute; right: 15px; top: 10px; cursor: pointer; font-size: 24px; }
input, button { display: block; width: 100%; margin: 10px 0; padding: 10px; box-sizing: border-box; }
button { background: #000; color: #fff; border: none; cursor: pointer; }


/* Button Styling */
.btn-primary {
    background: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-primary:hover {
    background: #fff;
    color: #000;
}

/* Instructions Content Styling */
.instr-content {
    text-align: left;
    line-height: 1.6;
}

.instr-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.instr-content li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-family: monospace;
    font-size: 1.1rem;
}

.instr-content .contact-note {
    background: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #000;
    margin-top: 15px;
    font-size: 0.9rem;
}



.banner {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 1px solid var(--border-color);
    max-width: 500px;
    
    /* 1. Keep these */
    position: absolute;
    z-index: 10;
    background-color: #ededed86;
    border: 1px solid black;
    border-radius: 10px;
    
    /* 2. Add these lines to perfectly center it */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* 3. Make sure to set a width, otherwise it might shrink */
    width: 80%; 
}
