body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: repeating-linear-gradient(
        135deg,
        #00ff00 0 10px,
        #000 10px 20px
    );
    color: #000;
    font-family: 'VT323', 'Courier New', Courier, monospace;
    font-size: 18px;
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
}

.container, .post, #main-content {
    background: #2b2b2b !important;
    border: 4px solid #000;
    box-shadow: 8px 8px 0 #ff00ff, 16px 16px 0 #00ffff;
    color: #bbbbbb;
    max-width: 900px;
    margin: 32px auto;
    padding: 32px 24px;
    border-radius: 0;
    position: relative;
    z-index: 1;
}

.portfolio-items {
    background: transparent;
    border: none;
    box-shadow: none;
    color: inherit;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.header, #header {
    background: linear-gradient(90deg, #ff0 0%, #0ff 100%);
    color: #000;
    border-bottom: 4px solid #000;
    text-align: center;
    padding: 32px 0 16px 0;
    font-family: 'VT323', 'Courier New', Courier, monospace;
    box-shadow: 0 8px 0 #00f;
    letter-spacing: 2px;
}

h1, h2, h3 {
    color: #ff00ff;
    font-family: 'VT323', 'Courier New', Courier, monospace;
    text-shadow: 2px 2px 0 #fff, 4px 4px 0 #00f;
    margin-bottom: 16px;
    letter-spacing: 1px;
}
h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }

#nav, nav, .nav {
    background: linear-gradient(90deg, #0000ff 0%, #00ffff 100%);
    border-bottom: 4px solid #000;
    text-align: center;
    padding: 18px 0;
    margin-bottom: 24px;
    font-family: 'VT323', 'Courier New', Courier, monospace;
    font-size: 1.3rem;
    box-shadow: 0 4px 0 #ff0;
}
#nav ul, nav ul, .nav ul {
    display: inline-block;
    padding: 0;
    margin: 0;
}
#nav li, nav li, .nav li {
    display: inline-block;
    margin: 0 18px;
}
#nav a, nav a, .nav a {
    color: #fff;
    background: #000;
    padding: 8px 18px;
    border: 2px solid #ff0;
    border-radius: 0;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 2px 2px 0 #ff00ff;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
#nav a:hover, nav a:hover, .nav a:hover {
    background: #ff0;
    color: #000;
    box-shadow: 4px 4px 0 #00f;
    text-decoration: underline;
}

.footer, #footer {
    background: linear-gradient(90deg, #ff00ff 0%, #ffff00 100%);
    color: #000;
    border-top: 4px solid #000;
    text-align: center;
    padding: 18px 0;
    font-family: 'VT323', 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    box-shadow: 0 -4px 0 #00f;
    margin-top: 32px;
}

a {
    color: #aa0000;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
a:hover {
    color: rgb(95, 95, 247);
    text-decoration: underline;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #be98fc;
    border: 3px solid rgba(0,0,0,0.8);
    margin: 24px 0;
    font-family: 'VT323', 'Courier New', Courier, monospace;
}
th, td {
    padding: 12px 8px;
    border-bottom: 2px solid rgba(0, 64, 255, 0.15);
    text-align: left;
    color: #203f5e;
}
th {
    background: #65e765;
    color: #bb8001;
    border-bottom: 4px solid rgba(0,0,0,0.8);
}
tr:nth-child(even) td {
    background: rgba(255,255,255,0.01);
}

ul, ol {
    margin: 16px 0 16px 32px;
    list-style-type: square;
}
li {
    margin-bottom: 8px;
}

button, input[type="submit"], input[type="button"] {
    background: linear-gradient(90deg, #ff0 0%, #0ff 100%);
    color: #000;
    border: 3px solid #000;
    font-family: 'VT323', 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    padding: 8px 24px;
    margin: 8px 0;
    box-shadow: 2px 2px 0 #00f;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background: #ff00ff;
    color: #fff;
    box-shadow: 4px 4px 0 #ff0;
}

img {
    max-width: 100%;
    height: auto;
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #ff0;
    margin: 16px 0;
}

code, pre {
    background: #000;
    color: #0ff;
    padding: 4px 8px;
    border-radius: 0;
    font-family: 'Fira Mono', 'Courier New', Courier, monospace;
    font-size: 1em;
    border: 2px solid #ff0;
    box-shadow: 2px 2px 0 #ff00ff;
}

::-webkit-scrollbar {
    width: 14px;
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: #ff0;
    border: 3px solid #000;
    box-shadow: 2px 2px 0 #00f;
}

::selection {
    background: #ff0;
    color: #000;
}

.pjax-transition {
	transition: opacity 220ms ease, transform 220ms ease;
	-webkit-transition: opacity 220ms ease, transform 220ms ease;
}

.pjax-hidden {
	opacity: 0;
	transform: translateY(8px);
	pointer-events: none;
}

@media (max-width: 700px) {
    .container, .post, #main-content {
        padding: 12px 4px;
        margin: 12px 2px;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.3rem; }
    #nav a, nav a, .nav a {
        padding: 6px 8px;
        font-size: 1rem;
        margin: 0 4px;
    }
}

img.gif-size {
    width: 200px !important;
    height: 200px !important;
    max-width: none !important;
}

nav.pagination {
    text-align: center;
    margin: 12px 0 0;
    font-size: 0.95rem;
    line-height: 1;
    display: block;
    background: transparent;
}

nav.pagination a {
    display: inline-block;
    margin: 0 6px;
    padding: 4px 8px;
    background: transparent;
    color: inherit;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: none;
    transition: background 0.15s, color 0.15s, transform 0.08s;
}

nav.pagination a:hover,
nav.pagination a:focus {
    background: rgba(255,255,255,0.04);
    transform: translateY(-1px);
    outline: none;
}

nav.pagination a.current,
nav.pagination a[aria-current="page"] {
    background: transparent;
    color: #ff00ff;
    border-color: #ff00ff;
    font-weight: 700;
    box-shadow: none;
    padding: 3px 7px;
}

nav.pagination a.prev,
nav.pagination a.next {
    padding: 3px 8px;
    font-weight: 600;
}

nav.pagination a:focus {
    box-shadow: 0 0 0 3px rgba(255,0,255,0.12);
}

@media (max-width: 480px) {
    nav.pagination {
        font-size: 0.85rem;
        margin: 8px 0 0;
    }
    nav.pagination a {
        margin: 0 4px;
        padding: 3px 6px;
    }
    nav.pagination a.current {
        padding: 2px 5px;
    }
}

.link-card {
    background: #2b2b2b;
    border: 4px solid #000;
    box-shadow: 8px 8px 0 #ff00ff, 16px 16px 0 #00ffff;
    color: #bbbbbb;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 420px;
    margin: 32px auto;
    padding: 36px 24px;
    border-radius: 0;
    position: relative;
    z-index: 1;
}

.profile {
    margin-bottom: 18px;
}
.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid #000;
    box-shadow: 4px 4px 0 #ff0;
    object-fit: cover;
    display: block;
    margin: 0 auto 12px;
}

.link-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin: 6px 0 12px;
    --link-width: 360px;
}

.link-list .link {
    width: var(--link-width);
    max-width: 100%;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(90deg, #111 0%, #2b2b2b 100%);
    border: 3px solid #ff0;
    box-shadow: 6px 6px 0 #00f;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
    white-space: normal;
    word-break: break-word;
}

.link-list .link:hover,
.link-list .link:focus {
    transform: translateY(-3px);
    box-shadow: 8px 8px 0 #ff00ff;
    background: linear-gradient(90deg, #ff0 0%, #0ff 100%);
    color: #000;
    outline: none;
}

.link-list .link svg {
    vertical-align: -2px;
    margin-right: 8px;
    fill: currentColor;
}

.card .footer.small {
    margin-top: 14px;
    opacity: 0.95;
}

@media (max-width: 700px) {
    .link-card { padding: 20px 14px; margin: 12px 8px; }
    .avatar { width: 80px; height: 80px; }
    .link-list .link {
        padding: 12px;
        font-size: 1rem;
        max-width: none;
        width: 100%;
    }
}