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

body {
    background: #000080;
    font-family: "Times New Roman", Times, serif;
    color: #00ff00;
    padding: 10px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect width="100" height="100" fill="%23000080"/><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.3"/><circle cx="40" cy="30" r="1" fill="%23ffffff" opacity="0.4"/><circle cx="70" cy="50" r="1" fill="%23ffffff" opacity="0.3"/><circle cx="20" cy="80" r="1" fill="%23ffffff" opacity="0.5"/><circle cx="90" cy="20" r="1" fill="%23ffffff" opacity="0.3"/></svg>');
}

header {
    background: linear-gradient(45deg, #ff0000, #ffff00, #00ff00);
    border: 5px solid #ffff00;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    animation: rainbow 3s infinite;
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

h1 {
    font-size: 2.5em;
    color: #ff0000;
    text-shadow: 3px 3px #000000, -1px -1px #ffff00;
    font-family: "Impact", "Arial Black", sans-serif;
    animation: blink 1s infinite;
}

h1 a {
    color: #ff0000;
    text-decoration: none;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.7; }
}

.site-description {
    font-size: 1.2em;
    color: #000000;
    font-weight: bold;
}

.marquee-container {
    background: #ffff00;
    color: #ff0000;
    padding: 10px;
    border: 3px solid #00ff00;
    margin-bottom: 20px;
    overflow: hidden;
}

marquee {
    font-weight: bold;
    font-size: 1.2em;
}

nav {
    background: #808080;
    border: 3px ridge #ffffff;
    padding: 15px;
    margin-bottom: 20px;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

nav a {
    color: #ffff00;
    text-decoration: underline;
    font-weight: bold;
    padding: 5px 10px;
    background: #000080;
    border: 2px outset #ffffff;
    display: inline-block;
}

nav a:hover {
    background: #ff0000;
    color: #ffffff;
    border-style: inset;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #c0c0c0;
    border: 5px ridge #ffffff;
    padding: 20px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 20px;
}

main {
    background: #ffffff;
    padding: 20px;
    border: 3px groove #000000;
}

aside {
    background: #ffff99;
    padding: 15px;
    border: 3px solid #ff0000;
}

.sidebar-section {
    margin-bottom: 20px;
    border: 2px dashed #ff0000;
    padding: 10px;
    background: #ffffcc;
}

.sidebar-section h3 {
    color: #ff0000;
    font-size: 1.1em;
    margin-bottom: 10px;
    text-decoration: underline;
}

/* Force paragraph spacing everywhere */
main p {
    margin-bottom: 15px !important;
}

article p {
    margin-bottom: 15px !important;
}

.post-content p {
    margin-bottom: 15px !important;
}

/* Also for the content area */
main > p,
article > p {
    margin-bottom: 15px !important;
}

article {
    background: #ffffcc;
    border: 3px solid #000000;
    padding: 15px;
    margin-bottom: 20px;
}

article h2 {
    color: #ff0000;
    font-size: 1.5em;
    margin-bottom: 10px;
    text-decoration: underline;
}

article h2 a {
    color: #ff0000;
    text-decoration: underline;
}

article h2 a:hover {
    color: #ffff00;
}

.post-meta {
    color: #0000ff;
    font-size: 0.9em;
    margin-bottom: 10px;
    font-style: italic;
}

.post-content {
    color: #000000;
    line-height: 1.6;
}

.post-content p {
    margin-bottom: 15px;
}

.post-content strong {
    color: #ff0000;
}

.read-more {
    background: #ff0000;
    color: #ffff00;
    padding: 5px 15px;
    text-decoration: none;
    border: 2px outset #ffffff;
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
}

.read-more:hover {
    background: #ffff00;
    color: #ff0000;
    border-style: inset;
}

.counter {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    background: #000000;
    border: 3px double #ffff00;
}

footer {
    background: #000000;
    color: #00ff00;
    padding: 20px;
    text-align: center;
    border: 3px solid #ff0000;
    margin-top: 20px;
}

.webring {
    margin: 15px 0;
    padding: 10px;
    border: 2px dashed #00ff00;
}

.blink {
    animation: blink 1s infinite;
}

@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 1.8em;
    }
}



/* Post Navigation */
.post-navigation {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 3px dashed #ff0000;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.nav-previous,
.nav-next,
.nav-home,
.nav-random {
    background: #ff0000;
    color: #ffff00;
    padding: 8px 15px;
    text-decoration: none;
    border: 2px outset #ffffff;
    font-weight: bold;
    display: inline-block;
}

.nav-previous:hover,
.nav-next:hover,
.nav-home:hover,
.nav-random:hover {
    background: #ffff00;
    color: #ff0000;
    border-style: inset;
}

.nav-previous.disabled,
.nav-next.disabled {
    background: #808080;
    color: #c0c0c0;
    border-style: inset;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-previous,
    .nav-next,
    .nav-home,
    .nav-random {
        text-align: center;
    }
}
