body {
    background-color: var(--color-paper, #fdfaf4);
    background-image: url('/images/paper-texture.png');
    background-size: cover;
    background-repeat: repeat;
    color: var(--color-ink, #2f2f2f);
    font-family: var(--font-body, 'Droid Serif', serif);
    font-size: 14px;
    line-height: 1.6;
    margin: 8px;
    padding: 0;
}


.page-container {
    background-color: rgba(253, 250, 244, 0.97);
    width: 95%;
    max-width: 1300px;
    margin: 1em auto;
    padding: 2em;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.article-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1200px;
    margin: auto;
    padding: 2rem;
}

.head > * {
    text-align: center;
    position: relative;
}

:root {
    --color-paper: #f4f1ea;
    --color-paper-dark: #f8f5f0;
    --color-ink: #1a1a1a;
    --color-accent: #8b0000;
    --font-serif: 'Playfair Display', serif;
    --font-body: 'Old Standard TT', serif;
}

p {
    margin-top: 0;
    margin-bottom: 20px;
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}
.newspaper-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1rem 0;
    padding-bottom: 1rem;
    border-bottom: 4px solid var(--color-ink);
}

.newspaper-date {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 2rem;
    text-align: center;
    color: #666;
    margin-bottom: 1rem;
}

.head{
    text-align: center !important;
    position: relative;
}

.headline{
    text-align: center;
    line-height: normal;
    font-family: 'Playfair Display', serif;
    display: block;
    margin: 0 auto;
}

.verhaal{
    font-size: 16px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

header{
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 80px;
    text-transform: uppercase;
    display: inline-block;
    line-height: 71px;
    margin-bottom: 20px;
    text-align: center;
}



.article-card {
    background-color: var(--color-paper-dark);
    border: 1px solid #ddd;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-card a {
    text-decoration: none;
    color: inherit;
}

.article-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-date {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin: 0.5rem 0;
    line-height: 1.3;
    text-align: center !important;
}

.article-excerpt {
    color: #444;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--color-ink);
    font-family: var(--font-body);
    font-style: italic;
}

/* Single Article Page */

.single-article {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--color-paper-dark);
    border: 1px solid #ddd;
    text-align: left;
    font-family: var(--font-body);
}

.single-article .back-link {
    display: block; /* Makes sure it stacks above */
    margin-bottom: 0;
    color: var(--color-ink);
    text-decoration: none;
    font-style: italic;
    font-size: 0.95rem;
}

.single-article .back-link:hover {
    text-decoration: underline;
}

.single-article .article-header {
    text-align: center;
    margin-bottom: 0; /* Reduced margin between header and content */
    padding: 0; /* Remove any padding if applied */
}

.single-article .article-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin: 0; /* No margin around the title */
    line-height: 1.1; /* Tighten line height */
}

.single-article .article-date {
    font-style: italic;
    color: #666;
    font-size: 1rem;
    margin-top: 0; /* Remove any top margin */
    padding: 0; /* Remove padding */
    display: inline; /* Ensure it stays inline with the title */
}

.single-article time {
    margin: 0; /* Remove margin from time element */
    padding: 0; /* Remove padding */
    display: inline; /* Force inline display */
}




.single-article .article-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eee;
}


.single-article .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-article .article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
    color: var(--color-ink);
}


/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}


.form-control {
    width: 100%;
    padding: 0.6rem;
    font-size: 1rem;
    font-family: var(--font-body, serif);
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}


/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    
}

/* Utilities */
.text-center {
    text-align: center;
}

.welcome-message {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--color-paper-dark);
    border: 1px solid #ddd;
    grid-column: 1 / -1;
}

.error-message {
    color: #dc2626;
    background-color: #fee2e2;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.success-message {
    color: #059669;
    background-color: #d1fae5;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

header{
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 80px;
    text-transform: uppercase;
    display: inline-block;
    line-height: 72px;
    margin-bottom: 20px;
}
p{
    margin-top: 0;
    margin-bottom: 20px;
}

textarea {
    border-radius: 25px;
    padding: 7px;
}
.article-author {
    font-style: italic;
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 0.2rem;
}



.pagination {
    text-align: center;
    margin: 3rem 0;
}

.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 0.5rem 1rem;
    background-color: var(--color-ink);
    color: var(--color-paper);
    text-decoration: none;
    border-radius: 0.25rem;
    font-weight: bold;
    transition: background-color 0.2s;
}

.pagination a:hover,
.pagination a.active {
    background-color: var(--color-accent);
}


.subhead{
    text-transform: uppercase;
    border-bottom: 2px solid #2f2f2f;
    border-top: 2px solid #2f2f2f;
    padding: 12px 0 12px 0;
    text-align: left;
    position: relative;
    display: flex;
    justify-content: space-between;
}
.nav {
    text-transform: uppercase;
    right: 0;
}

/* Responsive Grid */
@media (max-width: 900px) {
    
}

@media (max-width: 600px) {
    
}
@media (max-width: 900px) {
    .newspaper-title {
        font-size: 3rem;
    }
    .newspaper-date {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .newspaper-title {
        font-size: 2.25rem;
    }
    .newspaper-date {
        font-size: 1.25rem;
    }
}
.article-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: bold;
    font-family: var(--font-serif, Georgia, serif);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.6rem;
    font-size: 1rem;
    font-family: var(--font-body, serif);
    background-color: var(white);
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.article-form input[type="submit"].button {
    font-family: var(--font-serif);
    font-weight: bold;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

/* Themed Admin Dashboard */
.admin-container {
    font-family: var(--font-body, Georgia, serif);
    background: var(--color-paper-dark, #faf6ef);
    border: 1px solid #ccc;
    padding: 2em;
    max-width: 1000px;
    margin: 2em auto;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
}

/* Dashboard Table – Themed */
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    background-color: var(--color-paper, #fdfaf4);
    border: 1px solid #ccc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dashboard-table th,
.dashboard-table td {
    border: 1px solid #ddd;
    padding: 1em;
    text-align: left;
}

.dashboard-table th {
    background-color: #ece6dc;
    color: var(--color-ink, #1a1a1a);
    font-weight: 600;
    text-transform: uppercase;
}

.dashboard-table tr:hover {
    background-color: #f5f2ec;
}
textarea[name="description"] {
    width: 600px;
}
textarea[name="race"] {
    width: 600px;
}

/* Themed Buttons */
.button,
.button.add-article,
.icon-button {
    width: 220px; /* Fixed width for uniformity */
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body, Georgia, serif);
    font-weight: bold;
    border-radius: 4px;
    border: 1px solid #b5a78d;
    background-color: rgba(215, 203, 178, 0.5);
    color: #3b2f1d;
    text-align: center;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
}

.button:hover,
.button.add-article:hover,
.icon-button:hover {
    background-color: rgba(207, 192, 163, 0.95);
    color: #000;
}

.button.delete,
.icon-button.delete {
    background-color: rgba(170, 59, 59, 0.9);
    border-color: #822e2e;
    color: #fff;
}

.button.delete:hover,
.icon-button.delete:hover {
    background-color: rgba(146, 42, 42, 1);
    color: #fff;
}

.button:disabled {
    opacity: 0.6;
    pointer-events: none;
}


.button.add-article:hover {
    background-color: #cfc0a3;
    color: #000;
}

.icon-button:hover {
    background-color: #cfc0a3;
    color: #000;
}

.icon-button .icon {
    font-size: 1.2em;
    line-height: 1;
}

.icon-button.delete {
    background-color: #aa3b3b;
    border-color: #822e2e;
    color: #fff;
}

.icon-button.delete:hover {
    background-color: #922a2a;
    color: #fff;
}

/* Restore Zoom Hover for Front Page Article Cards */
.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-image img {
    transition: transform 0.3s ease-in-out;
}

/* Restore Zoom-Out Hover for Single Article Page */
.single-article .article-image img {
    transform: scale(1.1);
    transition: transform 0.4s ease;
}

.single-article .article-image:hover img {
    transform: scale(1);
}

.auth-container {
    background-color: var(--color-paper-dark, #fdfaf4);
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: var(--font-body, Georgia, serif);
}

.auth-title {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    border-bottom: 2px solid var(--color-ink, #1a1a1a);
    padding-bottom: 0.5rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .form-label {
    font-weight: bold;
    font-family: var(--font-body);
    margin-bottom: 0.4rem;
    display: block;
}

.auth-form .form-control {
    width: 100%;
    padding: 0.6rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 4px;
}

.auth-form .button {
    width: 100%;
    padding: 0.6rem;
    font-size: 1rem;
    background-color: #556b2f;
    color: white;
    border: 1px solid #3d4e1c;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-serif);
}

.auth-form .button:hover {
    background-color: #6b8e23;
}

.error-message {
    background-color: #fee2e2;
    border-radius: 0.25rem;
    color: #dc2626;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}


@media print {
  body, html {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }

  #pdf-article {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 800px;
    background: white;
  }
}

#party-modal {
    position: fixed;
    z-index: 1000;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: white;
    border: 1px solid #ccc;
    padding: 1rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.player-entry {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.player-entry input,
.player-entry select {
    flex: 1 1 150px;
}
/* Fix title and subtitle size on small screens */
@media (max-width: 600px) {
    .newspaper-title {
        font-size: 1.75rem;
        text-align: center;
        word-break: break-word;
    }

    .newspaper-date {
        font-size: 1rem;
        text-align: center;
    }

    .headline {
        font-size: 1.25rem;
        text-align: center;
        word-break: break-word;
    }

    .page-container {
        padding: 1rem;
        width: 95%;
    }

    .article-grid {
        padding: 1rem;
        justify-content: center;
        grid-template-columns: 1fr;
    }

    .article-card {
        margin: 0 auto;
    }

    header {
        font-size: 2.25rem;
        line-height: 1.2;
        text-align: center;
        word-break: break-word;
    }
.site-header {
  text-align: center;       /* center the container contents */
  overflow: hidden;         /* prevent any overflow if image is too big */
}

.masthead-logo {
  width: 90%;               /* let it shrink below its intrinsic size */
  max-width: 300px;         /* cap it so it never gets absurdly large */
  margin: 0 auto;           /* center within .site-header */
}

.masthead-logo img {
  display: block;           /* remove inline‐img whitespace issues */
  width: 100%;              /* fill its container */
  height: auto;             /* preserve aspect ratio */
}
/* Responsive Admin Dashboard */
@media (max-width: 768px) {
  .admin-container {
    padding: 1rem;                    /* tighten up the padding */
  }

  .dashboard-table {
    display: block;                   /* allow it to scroll horizontally */
    width: 100%;                      
    overflow-x: auto;                 
    -webkit-overflow-scrolling: touch;/* smooth scrolling on iOS */
  }

  .dashboard-table th,
  .dashboard-table td {
    white-space: nowrap;              /* prevent wrapping inside cells */
    padding: 0.5rem;                  /* a bit less padding for small screens */
    font-size: 0.85rem;               /* shrink text slightly */
  }
}
 /*end of small screen thingies */
}
/* at the very bottom of your main stylesheet, after everything else */
h1.newspaper-title > a:link,
h1.newspaper-title > a:visited,
h1.newspaper-title > a:hover,
h1.newspaper-title > a:focus {
  text-decoration: none !important;
  color: inherit       !important;
  /* remove any border-style that might look like an underline: */
  border: none         !important;
}
.site-header {
  text-align: center;
  margin: 1rem 0;
  background-color: var(--color-paper);
  padding: 0; /* no extra padding needed */
}

.masthead-logo {
  max-height: 120px;
  width: auto;
  display: inline-block;
}

/* Responsive Title Image */

/* Tweak further on very narrow phones if needed */
@media (max-width: 400px) {
  .masthead-logo {
    width: 100%;            /* let it go edge-to-edge */
    max-width: none;        /* remove the cap so it can fill more */
  }
}




