body {
    margin: 0;
    color: white;
    font-family: 'Press Start 2P', cursive;
    /* Strong animated black + green gradient */
    background: linear-gradient(-45deg, #000000, #001a00, #00ff88, #003300, #000000);
    background-size: 600% 600%;
    animation: gradientMove 25s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}

header {
    text-align: center;
    padding: 25px;
    border-bottom: 1px solid #222;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
}

h1 { font-size: 18px; }

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #8be9fd;
    font-size: 10px;
}

nav a:hover { color: #fff; }

.hero { text-align: center; padding: 40px 20px; }
.hero h2 { font-size: 14px; margin-bottom: 10px; }
.hero p { font-size: 10px; color: #aaa; }

main {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* --- GRID LAYOUT (BROWSE PAGE) --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 200px);
    gap: 20px;
    justify-content: center;
}

.shield {
    background: rgba(20,20,20,0.5);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,255,150,0.2);
    transition: 0.25s;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the content inside the card */
}

.shield:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0,255,150,0.4);
}

.shield img {
    width: 100%;
    image-rendering: pixelated;
    border-radius: 6px;
}

.shield h4 {
    font-size: 10px;
    margin: 10px 0 5px;
    word-break: break-all; 
    line-height: 1.4;
    text-align: center;
    width: 100%;
}

.shield p {
    font-size: 8px;
    color: #888;
    text-align: center;
    margin-bottom: 10px;
}

/* --- UPLOAD FORM STYLING --- */
.upload-form-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 30px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #00ff88;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.input-group {
    display: flex;
    flex-direction: column; 
    margin-bottom: 25px;
}

.input-group label {
    font-size: 10px;
    color: #00ff88;
    margin-bottom: 10px;
    text-align: left;
}

.input-group input {
    padding: 12px;
    background: #111;
    border: 1px solid #333;
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    border-radius: 5px;
    outline: none;
}

.input-group input:focus {
    border-color: #8be9fd;
}

/* --- BUTTON STYLES --- */
button {
    width: 100%;
    padding: 12px;
    background: #50fa7b;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    color: #000;
    transition: 0.2s;
    margin-top: 5px;
}

button:hover {
    background: #8be9fd;
    transform: translateY(-2px);
}

.delete-btn {
    background: #ff5555;
    color: white;
}

.delete-btn:hover {
    background: #ff79c6;
}

footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 8px;
    color: #666;
}
