/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background-color: #000; /* pure black outside */
    height: 100%;
    color: #f4f4f4;
    font-size: 20px;
    font-family: Arial, sans-serif;
}

/* Wrap: center column for desktop */
#wrap {
    width: 900px; /* fixed desktop width */
    margin: 0 auto;
    background-color: #111;
    background-image: url("data:image/svg+xml,%3Csvg width='42' height='44' viewBox='0 0 42 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Page-1' fill='none' fill-rule='evenodd'%3E%3Cg id='brick-wall' fill='%2392ac92' fill-opacity='0.4'%3E%3Cpath d='M0 0h42v44H0V0zm1 1h40v20H1V1zM0 23h20v20H0V23zm22 0h20v20H22V23z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background: #111;
    text-align: center;
}

#avatar {
    width: 120px;
    height: auto;
    border-radius: 50%;
    border: 3px solid #92ac92;
    margin: 22px auto;
}

h1 {
    font-size: 36px;
}

/* Navigation */
#links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 24px 0;
    flex-wrap: wrap; /* wraps links on small screens */
}

#links a {
    color: #f4f4f4;
    text-decoration-thickness: 3px;
    text-decoration-color: #92ac92;
    padding: 4px 6px;
    display: inline-block;
    margin: 10px 14px;
    font-size: 22px;
}

#links a:hover {
    color: #92ac92;
    text-decoration-color: #f4f4f4;
}

/* Main content */
main {
    flex-grow: 1;
    
    padding: 20px;
}

/* Main headings */
main h2 {
    font-size: 32px;
    color: #92ac92;
    margin-bottom: 20px;
    border-bottom: 2px solid #92ac92;
    padding-bottom: 6px;
}

/* Subheadings */
main h3 {
    font-size: 26px;
    color: #92ac92;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Paragraphs */
main p {
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Content sections / boxes */
main section, main article {
    background-color: #1a1a1a; /* dark retro box */
    border: 2px solid #92ac92;
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* Links inside content */
main a {
    color: #f4f4f4;
    text-decoration: underline;
    text-decoration-color: #92ac92;
}

main a:hover {
    color: #92ac92;
    text-decoration-color: #f4f4f4;
}

/* Remove default bullets */
main ul {
    list-style: none;
    padding-left: 30px; /* space for arrows */
    position: relative;
}

/* Add retro arrows */
main ul li {
    position: relative; /* needed for ::before positioning */
    margin: 10px 0;
    padding-left: 20px; /* space so text doesn’t overlap arrow */
}

main ul li::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    top: 50%;
    left: 0;
    transform: translateY(-50%) rotate(-45deg); /* arrow shape */
    border-right: 2px solid #92ac92;
    border-bottom: 2px solid #92ac92;
}

#stuff-link {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    color: #f4f4f4;
    background-color: #111;
    border: 2px solid #92ac92;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

#stuff-link:hover {
    color: #111;
    background-color: #92ac92;
    border-color: #f4f4f4;
}


main a {
    color: #f4f4f4;
    text-decoration: none;
}

main a:hover {
    color: #92ac92;
    text-decoration: underline;
}


/* Footer */
footer {
    padding: 24px;
    background-color: #111;
    font-size: 18px;
    text-align: center;
}

footer a {
    color: #f4f4f4;
    text-decoration: none;
}

footer a:hover {
    color: #92ac92;
}

/* -------------------- */
/* MOBILE RESPONSIVE */
@media (max-width: 960px) {
    #wrap {
        width: 100%;           /* take full width on smaller screens */
        border: none;
    }

    #links a {
        font-size: 18px;
        margin: 8px;
    }

    #avatar {
        width: 100px;
        margin: 16px auto;
    }

    h1 {
        font-size: 28px;
    }
}
