/* ===========================================
   Alex Firlik Website Blog Archive Layout
  page
   =========================================== */

/* ---------- Page ---------- */

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #dddddd;
    color: #000;
    max-width: 720px;
    margin: 20px auto;
    padding: 0 16px;
    line-height: 1.6;
    font-size: 0.9em;
}

/* ---------- Headings ---------- */

h1 {
    text-align: center;
    color: #1f6fd6;
    margin-bottom: 10px;
}

h2 {
    color: #1f6fd6;
    text-align: center;
    margin-top: 24px;
    margin-bottom: 10px;
}

/* ---------- Main Content Box ---------- */

.content-box {
    background-color: #ffffff;
    border: 2px solid #1f6fd6;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 24px;
}

/* ---------- Paragraphs ---------- */

p {
    text-align: center;
    margin-top: 0;
}

/* ---------- Archive Grid ---------- */

.year-list {
    list-style: none;
    padding: 0;
    margin: 16px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 500px;
}

.year-list li {
    text-align: center;
    border: 2px solid #1f6fd6;
    border-radius: 8px;
    padding: 10px 0;
    background-color: #f9f9f9;
}

.year-list li:hover {
    background-color: #eef4ff;
}

.year-list a {
    color: #1f6fd6;
    text-decoration: none;
    font-weight: bold;
    display: block;
}

/* ---------- Navigation Buttons ---------- */

.nav-buttons {
    text-align: center;
    margin-top: 16px;
}

.button {
    display: inline-block;
    background-color: #1f6fd6;
    color: #ffffff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

.button:hover {
    background-color: #3a82f6;
}

/* ---------- Responsive ---------- */

@media (max-width: 500px) {
    .year-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 320px) {
    .year-list {
        grid-template-columns: 1fr;
    }
}