/* Base page setup - 100% width browser window */
body {
    margin: 0;
    padding: 20px;
    width: 100vw;
    box-sizing: border-box;
    /* W3C Web Safe Font: Arial */
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f9f9f9;
    color: #333333;
}

/* Container with a border around the entire multi-column layout */
.content-container {
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #333333;
    padding: 30px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    
    /* 4-column layout requirements */
    column-count: 4;
    column-gap: 30px;
    column-rule: 1px solid #e0e0e0;
}

/* Paragraph formatting for readability */
p {
    margin-bottom: 1.2em;
    line-height: 1.6;
    font-size: 14px;
    text-align: justify;
    /* Prevents awkward breaks inside columns */
    break-inside: avoid;
    page-break-inside: avoid;
}

/* General Headings */
h2 {
    break-after: avoid;
    page-break-after: avoid;
    margin-top: 0;
    padding-top: 10px;
    font-size: 20px;
    line-height: 1.3;
}

/* First Title: History of CSS using Google Font 'Playfair Display' */
.title-history {
    font-family: 'Playfair Display', serif;
    color: #1a365d;
    border-bottom: 2px solid #1a365d;
    padding-bottom: 6px;
}

/* Second Title: Difficulty with adoption using Google Font 'Montserrat' */
.title-difficulty {
    font-family: 'Montserrat', sans-serif;
    color: #9b2c2c;
    border-bottom: 2px solid #9b2c2c;
    padding-bottom: 6px;
}

/* Source footer styling with text-shadow */
.source-footer {
    margin-top: 30px;
    font-size: 13px;
    font-style: italic;
    color: #555555;
    break-inside: avoid;
    page-break-inside: avoid;
    /* Text shadow requirement */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Responsive design fallback for smaller screens */
@media (max-width: 1200px) {
    .content-container {
        column-count: 2;
    }
}
@media (max-width: 768px) {
    .content-container {
        column-count: 1;
    }
}