/* Main CSS for WWII Trivia Website */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    background-image: url('../img/texture.jpg');
    background-repeat: repeat;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background-color: #0a1a2f;
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-style: italic;
    opacity: 0.9;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    margin-top: 1rem;
}

nav li {
    margin: 0 1rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #1a3a5f;
}

.hero {
    background: linear-gradient(rgba(10, 26, 47, 0.85), rgba(10, 26, 47, 0.9)), url('../img/hero-bg.jpg') center/cover no-repeat;
    color: #fff;
    padding: 3rem 0;
    text-align: center;
    margin: 2rem 0;
    border-radius: 8px;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.featured-content h3, .featured-facts h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #0a1a2f;
    text-align: center;
    position: relative;
}

.featured-content h3::after, .featured-facts h3::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #d32f2f;
    margin: 0.5rem auto;
}

.story-card, .fact-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.story-card:hover, .fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.story-card img, .fact-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.story-content, .fact-content {
    padding: 1.5rem;
}

.story-title, .fact-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #0a1a2f;
}

.story-excerpt, .fact-content {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: #d32f2f;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.read-more:hover {
    color: #b71c1c;
}

footer {
    background-color: #0a1a2f;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 0.5rem 0;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
