/* documentcss.css */

/* Base page */
.page {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #ececec;
    padding: 20px;
}

/* Content wrapper */
.page .content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center; /* Center everything */
}

/* Header row with back button + title */
.page .page-header {
    display: flex;
    flex-direction: column;  /* stack: button above title */
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* Titles */
.page h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 0;              /* remove default offset */
}

.page h2 {
    font-size: 1.6rem;
    margin: 18px 0 0;       /* spacing instead of <br> */
}

/* Divider */
.page hr {
    border: 0;
    height: 2px;
    background-color: #ccc;
    margin: 18px 0 22px;
}

/* Back button */
.page .back-button {
    background-color: #f7f7f7;
    color: #34495e;
    border: 1px solid #ccc;
    padding: 8px 14px;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    margin: 0;              /* IMPORTANT: remove negative margin */
    border-radius: 10px;
}

.page .back-button:hover {
    background-color: #eeeeee;
    color: #2c3e50;
}

/* Document links */
.page h2 a {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f7f7f7;
    border: 1px solid #d8d8d8;
    color: #34495e;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.page h2 a:hover {
    background-color: #eeeeee;
    color: #2c3e50;
    text-decoration: underline;
}

/* Lists (if you use them on other Dokumenty pages) */
.page ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.page ul li {
    padding: 10px 12px;
    margin: 0 auto 8px;
    background-color: #f7f7f7;
    border-left: 4px solid #ccc;
    max-width: 700px;
    text-align: left; /* list items read better left-aligned */
}

.page ul li a {
    color: #34495e;
    text-decoration: none;
    display: block;
}

.page ul li a:hover {
    text-decoration: underline;
    color: #2c3e50;
    background-color: #eeeeee;
}

/* Mobile */
@media (max-width: 600px) {
    .page {
        padding: 15px;
    }

    .page h1 {
        font-size: 2rem;
    }

    .page h2 {
        font-size: 1.3rem;
    }

    .page .back-button {
        width: 100%;
        max-width: 280px; /* centered, looks good on phone */
    }

    .page h2 a {
        width: 100%;
        max-width: 420px;
    }
}