@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #0f0;
    font-family: 'Share Tech Mono', monospace;
    overflow: hidden;
}

#matrix {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.mainframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    background: rgba(0, 10, 0, 0.8);
    border: 2px solid #0f0;
    box-shadow: 0 0 20px #0f0, inset 0 0 20px #0f0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
}

header {
    border-bottom: 2px solid #0f0;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 20, 0, 0.9);
}

h1 {
    margin: 0;
    font-size: 2rem;
    text-shadow: 0 0 10px #0f0;
    letter-spacing: 2px;
}

.status-bar {
    font-size: 0.8rem;
    color: #cfc;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #0f0;
    text-decoration: none;
    border: 1px solid #0f0;
    padding: 5px 15px;
    text-transform: uppercase;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.5);
}

nav a:hover {
    background: #0f0;
    color: #000;
    box-shadow: 0 0 15px #0f0;
}

main {
    padding: 20px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

main::-webkit-scrollbar {
    width: 10px;
}

main::-webkit-scrollbar-track {
    background: #000;
    border-left: 1px solid #0f0;
}

main::-webkit-scrollbar-thumb {
    background: #0f0;
}

.module {
    border: 1px solid #0f0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    position: relative;
}

.module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid #0f0;
    border-left: 2px solid #0f0;
}

.module::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #0f0;
    border-right: 2px solid #0f0;
}

.module h2 {
    margin-top: 0;
    border-bottom: 1px dashed #0f0;
    padding-bottom: 5px;
    text-shadow: 0 0 5px #0f0;
}

.glitch {
    animation: glitch 1s linear infinite;
}

@keyframes glitch {

    2%,
    64% {
        transform: translate(2px, 0) skew(0deg);
    }

    4%,
    60% {
        transform: translate(-2px, 0) skew(0deg);
    }

    62% {
        transform: translate(0, 0) skew(5deg);
    }
}

.marquee-container {
    background: #0f0;
    color: #000;
    padding: 5px;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
}

footer {
    border-top: 2px solid #0f0;
    padding: 10px;
    text-align: center;
    font-size: 0.8rem;
    background: rgba(0, 20, 0, 0.9);
}
