/* Black background, red and white text with cursive fonts for film blog */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    padding: 20px;
}

/* Main wrapper and container */
.wrapper, .container {
    max-width: 800px;
    margin: 0 auto;
}

/* Headers - only article titles get cursive */
h1, h2, h3, h4, h5, h6 {
    color: #ff0000;
    margin-bottom: 15px;
    font-weight: normal;
}

/* Article titles specifically in cursive */
article h1, article h2, .article-list h2, .article-list h3 {
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-size: 1.8rem;
    border-bottom: 1px solid #ff0000;
    padding-bottom: 10px;
    transition: all 0.3s ease;
}

/* Buzzing animation for latest/current post */
@keyframes buzz {
    0% { transform: translate(0); }
    10% { transform: translate(-1px, -1px); }
    20% { transform: translate(1px, -1px); }
    30% { transform: translate(-1px, 1px); }
    40% { transform: translate(1px, 1px); }
    50% { transform: translate(-1px, -1px); }
    60% { transform: translate(1px, -1px); }
    70% { transform: translate(-1px, 1px); }
    80% { transform: translate(1px, 1px); }
    90% { transform: translate(-1px, -1px); }
    100% { transform: translate(0); }
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 5px #ff0000; }
    50% { text-shadow: 0 0 15px #ff0000, 0 0 25px #ff0000; }
}

/* Apply buzzing to first article (latest post) */
article:first-child h1, article:first-child h2,
.article-list li:first-child h2, .article-list li:first-child h3 {
    animation: buzz 0.15s infinite, glow 2s ease-in-out infinite;
}

/* Hover effects for all article titles */
article h1:hover, article h2:hover, .article-list h2:hover, .article-list h3:hover {
    animation: buzz 0.1s infinite;
    text-shadow: 0 0 10px #ff0000;
}

/* Regular headers stay serif */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Times New Roman', serif;
}

/* Article content - regular fonts */
article, .article-content, main p {
    font-family: 'Courier New', monospace;
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Links with typewriter effect on hover */
a {
    color: #ff0000;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: #ffffff;
    text-decoration: none;
}

a:hover::after {
    content: '_';
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Subtle shake animation for pagination */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* Navigation and pagination with subtle animations */
.paginator {
    margin-top: 40px;
    text-align: center;
}

.paginator a {
    margin: 0 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    padding: 5px 10px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.paginator a:hover {
    border: 1px solid #ff0000;
    animation: shake 0.5s ease-in-out;
}

/* Article listings with fade-in effect */
.article-list {
    list-style: none;
    margin-top: 30px;
}

.article-list li {
    margin-bottom: 25px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.article-list li:hover {
    opacity: 1;
    transform: translateX(5px);
}

/* Header and footer forms */
header, footer {
    color: #ffffff;
    margin-bottom: 20px;
}

/* Aside content */
aside {
    margin-top: 40px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #cccccc;
}

/* Search elements */
.search-page input {
    background-color: #333;
    border: 1px solid #ff0000;
    color: #ffffff;
    padding: 8px;
}

/* General text elements */
p {
    margin-bottom: 15px;
}

/* Ensure article body text stays monospace */
article p, article div, .article-content {
    font-family: 'Courier New', monospace;
}