* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Georgia', serif;
}

body {
    background-color: #f8f5e6;
    color: #333;
    line-height: 1.6;
    background-image: url('paper_texture.png');
    background-repeat: repeat;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-family: 'Times New Roman', Times, serif;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

button#randomButton {
    padding: 10px 20px;
    background-color: #8b4513;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    order: 2;
}

button#randomButton:hover {
    background-color: #6d370f;
}

select#languageSelect {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #fff8e1;
    order: 1;
}

#articleContainer {
    background-color: #fffef5;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 300px;
    border: 1px solid #d3d3d3;
}

.intro-text {
    text-align: center;
    color: #666;
    margin-top: 50px;
    font-style: italic;
}

#articleContent {
    word-wrap: break-word;
}

#articleContent h2 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-family: 'Times New Roman', Times, serif;
}

#articleContent p {
    margin-bottom: 15px;
    text-align: justify;
}

#articleContent img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border: 1px solid #eee;
}

#articleContent a {
    color: #8b4513;
    text-decoration: none;
}

#articleContent a:hover {
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    #articleContainer {
        padding: 15px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    button#randomButton, 
    select#languageSelect {
        width: 100%;
        max-width: 300px;
    }
}

