body {
    font-family: 'Courier New', Courier, monospace;
    color: #ffffff;
    background-image: url('site_elements/brickwall.png'); 
    background-repeat: repeat;
    margin: 0;
    padding: 20px;
}

.window-box {
    background-color: #0000aa;
    border: 4px solid;
    border-image: linear-gradient(to bottom right, #ffffff, #888888) 1;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 5px 5px 0px #000000;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.page-title {
    font-size: 3.5em;
    font-weight: bold;
    color: #ffd500;
    text-shadow: 3px 3px 0px #000000;
    flex-grow: 1;
    text-align: right;
    padding-right: 150px;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-link:hover {
    opacity: 0.8;
    transition: opacity 0.1s;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.game-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border: 3px solid #ffffff;
    image-rendering: pixelated;
    margin-bottom: 10px;
}

.game-thumb-placeholder {
    width: 100%;
    height: 230px;
    background: #222;
    border: 3px dashed #555;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-weight: bold;
    margin-bottom: 10px;
}

.itch-link {
    align-self: flex-start;
    margin-top: auto;
}

.game-card {
    background-color: #000055;
    display: flex;
    flex-direction: column;
    height: 530px; 
    position: relative;
    transition: transform 0.1s;
}

.project-card {
    background-color: #000055;
    display: flex;
    flex-direction: column;
    height: 340px; 
    position: relative;
    transition: transform 0.1s;
}

.game-card h3 {
    margin-top: 0;
    font-size: 1.2em;
    height: 2.4em;
    overflow: hidden;
}

.card-content {
    flex-grow: 1;
}

.game-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px #000000;
}

.engine-badge {
    display: inline-block;
    background: #ffaa00;
    color: #000;
    padding: 2px 8px;
    font-weight: bold;
    font-size: 0.8em;
    margin-bottom: 10px;
}

input[type="text"], textarea, select {
    width: 100%;
    box-sizing: border-box;
    background: #000;
    color: #00ff00; 
    border: 2px solid #ffffff;
    padding: 10px;
    font-family: inherit;
    margin-bottom: 15px;
}

.retro-btn {
    display: inline-block;
    background: #cccccc;
    color: #000000;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #ffffff;
    border-right-color: #555555;
    border-bottom-color: #555555;
    font-weight: bold;
    cursor: pointer;
}

.retro-btn:active {
    border: 2px solid #555555;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
}

.main-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.side-panel {
    flex: 1;
    max-width: 250px;
}

.content-area {
    flex: 3;
}

.news-ticker {
    background: #000;
    color: #00ff00;
    padding: 5px;
    border: 2px inset #888;
    font-family: 'Courier New', monospace;
    margin-top: 10px;
}

.stats-list {
    list-style: none;
    padding: 0;
    font-size: 0.9em;
}

.stats-list li {
    margin-bottom: 8px;
    border-bottom: 1px dashed #555;
}

.highlighted {
    background-color: #000033;
    border-image: linear-gradient(to bottom right, #ffff00, #aa8800) 1;
    box-shadow: 5px 5px 0px #aa8800;
}

.highlighted h2 {
    color: #ffff00;
    text-shadow: 2px 2px 0px #000;
}

.text-center {
    text-align: center;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 1.05em;
    }

    .window-box {
        padding: 15px;
        margin-bottom: 15px;
    }

    .main-layout {
        flex-direction: column;
    }

    .side-panel {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .page-title {
        font-size: 2.8em;
        padding-right: 10px;
    }

    .header-top {
        flex-direction: column;
        gap: 15px;
    }

    header nav a {
        margin-right: 10px;
        font-size: 0.95em;
    }

    h2 {
        font-size: 1.4em;
    }

    h3 {
        font-size: 1.1em;
    }

    .game-card, .project-card {
        height: auto;
    }

    input[type="text"], textarea, select {
        font-size: 1em;
        padding: 6px;
    }

    button {
        font-size: 1em;
        padding: 8px 12px;
    }
}

header nav a {
    color: #00ff00; /* Hacker Green - very readable on blue */
    text-decoration: none;
    font-weight: bold;
    margin-right: 15px;
    transition: color 0.1s;
}

header nav a:hover {
    color: #ffff00; /* Turns yellow when hovered */
    text-decoration: underline;
}

header nav a:active {
    color: #ffffff;
}