/* --- MATRIX PURE CSS THEME --- */

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

body {
    font-family: 'Courier New', monospace;
    background: black;
    color: #00ff00;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh; /* ensures full-page black background */
}

/* Subtle scanline effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0,255,0,0.05),
        rgba(0,255,0,0.05) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 0;
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

/* Glowing headers */
h1, h2, h3, h4, h5, h6 {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 20px #00ff00;
    font-family: 'Courier New', monospace;
}

/* Header, nav, and footer */
header, nav, footer {
    background: rgba(0,0,0,0.9);
    border: 2px solid #00ff00;
    box-shadow: 0 0 15px #00ff00;
    text-align: center;
    z-index: 2;
    position: relative;
    padding: 20px;
}

/* Navigation links */
nav a {
    color: #00ff00;
    text-decoration: none;
    text-shadow: 0 0 5px #00ff00;
    transition: all 0.3s ease;
}

nav a:hover {
    text-shadow: 0 0 15px #00ff00, 0 0 30px #00ff00;
    transform: translateX(3px);
}

/* Buttons */
button, .button, input[type="submit"] {
    background: rgba(0,30,0,0.8);
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 10px 25px;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 10px #00ff00;
    transition: all 0.3s ease;
}

button:hover, .button:hover, input[type="submit"]:hover {
    background: rgba(0,60,0,1);
    box-shadow: 0 0 20px #00ff00;
    transform: scale(1.05);
}

/* Lists */
ul, ol {
    list-style: none;
    padding: 0;
}

li {
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(0,20,0,0.5);
    border-left: 4px solid #00ff00;
    text-shadow: 0 0 5px #00ff00;
    transition: all 0.3s ease;
}

li:hover {
    background: rgba(0,40,0,0.7);
    transform: translateX(5px);
}

/* Inputs and forms */
input, textarea, select {
    background: rgba(0,10,0,0.8);
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 8px;
    font-family: 'Courier New', monospace;
    box-shadow: inset 0 0 10px #00ff00;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 15px #00ff00;
}

/* Tables */
table, th, td {
    border: 1px solid #00ff00;
    color: #00ff00;
    border-collapse: collapse;
}

th {
    background: rgba(0,40,0,0.8);
    text-shadow: 0 0 5px #00ff00;
    font-weight: bold;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: black;
}

::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 6px;
    box-shadow: 0 0 10px #00ff00;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

/* Selection */
::selection {
    background: rgba(0,255,0,0.3);
    color: #00ff00;
}

/* --- FIX FOOTER WHITE SPACE --- */
footer {
    background-color: black;  /* black footer */
    color: #00ff00;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 0 10px #00ff00;
    border-top: 2px solid #00ff00;
}

/* Ensure main content fills space above footer */
main {
    background-color: black;
    min-height: calc(100vh - 80px); /* adjust footer height as needed */
}
