/* ==========================================================================
   Font Faces
   ========================================================================== */

@font-face {
  font-family: "1942_report1942_report";
  src: url(/fonts/1942-webfont.eot);
  src:
    url("/fonts/1942-webfont.woff") format("woff"),
    url("/fonts/1942-webfont.woff2") format("woff2"),
    url("/fonts/1942-webfont.svg") format("svg");
  font-display: swap;
}

/* merriweather-regular - latin */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/merriweather-v25-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/fonts/merriweather-v25-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/fonts/merriweather-v25-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('/fonts/merriweather-v25-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('/fonts/merriweather-v25-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/fonts/merriweather-v25-latin-regular.svg#Merriweather') format('svg'); /* Legacy iOS */
  font-display: swap;
}

/* playfair-display-regular - latin */
@font-face {
  font-family: 'Playfair';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/playfair-display-v25-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/fonts/playfair-display-v25-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/fonts/playfair-display-v25-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('/fonts/playfair-display-v25-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('/fonts/playfair-display-v25-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/fonts/playfair-display-v25-latin-regular.svg#PlayfairDisplay') format('svg'); /* Legacy iOS */
  font-display: swap;
}

/* playfair-display-800 - latin */
@font-face {
  font-family: 'Playfair';
  font-style: normal;
  font-weight: 800;
  src: url('/fonts/playfair-display-v25-latin-800.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/fonts/playfair-display-v25-latin-800.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/fonts/playfair-display-v25-latin-800.woff2') format('woff2'), /* Super Modern Browsers */
       url('/fonts/playfair-display-v25-latin-800.woff') format('woff'), /* Modern Browsers */
       url('/fonts/playfair-display-v25-latin-800.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/fonts/playfair-display-v25-latin-800.svg#PlayfairDisplay') format('svg'); /* Legacy iOS */
  font-display: swap;
}

/* playfair-display-900 - latin */
@font-face {
  font-family: 'Playfair';
  font-style: normal;
  font-weight: 900;
  src: url('/fonts/playfair-display-v25-latin-900.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/fonts/playfair-display-v25-latin-900.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/fonts/playfair-display-v25-latin-900.woff2') format('woff2'), /* Super Modern Browsers */
       url('/fonts/playfair-display-v25-latin-900.woff') format('woff'), /* Modern Browsers */
       url('/fonts/playfair-display-v25-latin-900.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/fonts/playfair-display-v25-latin-900.svg#PlayfairDisplay') format('svg'); /* Legacy iOS */
  font-display: swap;
}


/* ==========================================================================
   General Body and Typography
   ========================================================================== */

body {
  margin: 0;
  padding: 40px 0 0 0;
background: linear-gradient(to bottom, #ede6e6, #e0d9d9);
background-attachment: fixed;
  min-height: 100vh;
  color: #181B20;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  padding: 0;
  font-family: 'Playfair', serif;
  font-weight: bold;
}

h1 {
  font-size: 2.2em;
  font-weight: normal;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

h2 {
  font-size: 1.8em;
  font-weight: normal;
}

h3 {
  font-size: 1.5em;
  font-weight: normal;
}

h4 {
  font-size: 1.3em;
  font-weight: 600;
}

h5 {
  font-size: 1.1em;
  font-weight: 600;
}

p, ol, ul, li, blockquote {
  font-family: Merriweather, Verdana, serif;
  font-size: 15px;
}

p, ol {
  margin-top: 0;
  line-height: 165%;
}

li {
  line-height: 150%;
}

blockquote {
  margin-top: 0;
  margin-left: 15px;
  line-height: 1.5em;
}

img {
  max-width: 100%;
}

table {
  caption-side: bottom;
  font-style: italic;
  font-size: inherit;
  max-width: 400px;
}

.manifesto {
  font-family: '1942_report1942_report', sans-serif;
  font-size: 24px;
}

.title {
  font-family: '1942_report1942_report', sans-serif;
  font-size: 42px;
  word-spacing: -16px;
  color: #be0201;
  letter-spacing: -2px;
  text-shadow: 0 0 1px #000;
  text-align: center;
}

/* ==========================================================================
   Layout and Structure
   ========================================================================== */

#content {
float: none;
  margin: 0 auto;
  max-width: 900px;
  background: #fff;
  padding: 0 15px 15px;
  font-size: 15px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
overflow: hidden;
text-align: left;
}

#header {
  max-width: 810px;
  min-height: 200px;
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
}

#footer {
  clear: both;
  max-width: 960px;
  min-height: 55px;
  margin: 0 auto 40px 255px;
  border-top: 1px solid #000000;
  font-family: Merriweather, Verdana, serif;
}

#footer p {
  margin: 0;
  padding-top: 18px;
  line-height: normal;
  text-align: center;
  color: #000000;
}

#footer a {
  color: #000000;
}

.left-title {
  width: 20%;
  float: left;
  padding: 15px;
}

.right-title {
  width: 80%;
  float: left;
  padding: 15px;
}

/* ==========================================================================
   Components
   ========================================================================== */

/* --- Navigation Bar --- */
#banner, nav {
  width: 100%;
  height: 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 99;
  list-style: none;
  box-shadow: 0 0 10px #be0201;
  background-color: rgb(252, 249, 249);
}

nav .manifesto {
  color: #be0201;
  text-shadow: 0 0 1px #000;
  font-family: '1942_report1942_report', Fallback, sans-serif;
  font-size: 1.8em;
  letter-spacing: -2px;
  word-spacing: -4px;
  margin-left: 10px;
}
nav .manifesto {
  text-align: left;
}

nav ul {
  flex: 2;
  display: flex;
  justify-content: space-evenly;
  margin: 0; /* Reset margin for ul */
  padding: 0; /* Reset padding for ul */
}

nav ul li {
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: rgb(2, 37, 18);
  font-size: 1.2em;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 5px;
  transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
  background-color: #be0201;
  color: #f6d93a;
  border-bottom: 3px solid #f6d93a;
}

nav .menu {
  font-size: 1.8em;
  display: none;
}

input[type="checkbox"] {
  display: none;
}

.header li {
  line-height: 54px;
}

/* --- Buttons --- */
.buttons {
display: inline-block; 
position: relative;
text-align: left;
  padding: 4px;
  margin: -2px 5px auto auto;
  float: right;
     line-height: 1.2;
}


.sign-up-button,
.log-in-button,
.play-yahtzee-button {
  display: inline-block;
  background-color: #be0201;
  color: #f6d93a;
  padding: 5px 8px;
  border-radius: 5px;
  border: 2px solid #000;
  text-decoration: none;
  font-weight: bold;
}

.buttons a,
.buttons button {
margin-top: 15px;
margin-bottom: 0;
}

.log-in-button,
.play-yahtzee-button {
  margin-bottom: 10px;
}

.sign-up-button:hover,
.log-in-button:hover,
.play-yahtzee-button:hover {
    color: #be0201; 
    background-color: #f6d93a; 
    border-color: #be0201;
}


/* --- Card --- */
.card {
  background: #fff;
  padding: 20px;
  margin-top: 20px;
}

/* --- Image and Figure Styling --- */
figure {
  padding: 8px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

figcaption {
  margin-top: 1px;
  text-align: center;
  max-width: 660px;
  font-size: 0.9em;
  color: #555;
}

.nowrap {
  white-space: nowrap;
}

.nowrap img {
  display: inline;
  vertical-align: top;
}

.right-floated-image {
  float: right;
  margin: 0 0 10px 10px;
}

/* --- Image Grid --- */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-gap: 20px;
  justify-content: center;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 2px solid white;
  transition: all 0.3s ease;
  padding: 5px 0;
}

.grid-item img {
  height: auto;
}

.grid-item a {
  text-decoration: none;
  color: black;
}

.grid-item a:hover {
  color: #be0201;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  border-color: #be0201;
}

.word {
  font-size: 14px;
  font-family: Roboto, sans-serif;
  text-align: center;
  max-width: 150px;
  margin-top: 5px;
  font-weight: bold;
  color: black;
}

/* --- Gallery --- */
.gallery {
  margin: .5%;
  float: left;
  width: 110px;
  padding: 1px 0 0 1px;
}

.gallery figure {
  padding-top: 1px;
  display: inline-block;
}

div.gallery img {
  height: auto;
}

div.gallery:hover {
  box-shadow: inset 0 0 0 1px black;
}

div.desc {
  padding: 5px;
  text-align: center;
  font-size: 13px;
}

/* --- Manifesto Cover --- */
.manifesto-cover {
  background-color: #b12a04;
  position: relative;
  border: 6px solid #e6d116;
  padding: 0 20px 10px;
  margin: 0 -15px;
  overflow: hidden;
  color: #f6d93a;
}

.manifesto-cover a {
  color: #f7f2c7;
}

.proper {
  font-family: '1942_report1942_report', sans-serif;
  font-size: 46px;
  text-align: center;
  color: #f6d93a;
  word-spacing: -16px;
  letter-spacing: -2px;
  text-shadow: 3px 3px 5px #000;
}

.proper-red {
  font-family: '1942_report1942_report', sans-serif;
  font-size: 46px;
  text-align: center;
  color: #be0201;
  word-spacing: -16px;
  letter-spacing: -2px;
  text-shadow: 3px 3px 5px #000;
}

.image-upper-left { position: absolute; top: 0; left: 0; }
.image-upper-right { position: absolute; top: 0; right: 0; }
.image-lower-left { position: absolute; bottom: 0; left: 0; }
.image-lower-right { position: absolute; bottom: 0; right: 0; }


/* The container for the grid */
.nav-grid {
  display: grid;
  gap: 20px; /* Space between the cards */
  /* This starts at 4 columns for large screens */
  grid-template-columns: repeat(4, 1fr);
  margin: 20px 0;
}

/* Tablet: Switch to 2 columns for screens smaller than 700px */
@media (max-width: 700px) {
  .nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* The Nav Card area */
.nav-card-container {
background: linear-gradient(to bottom, #ede6e6, #e0d9d9);
margin: 0 auto;
  max-width: 900px;
  padding: 0 15px;
}


/* The card itself */
.nav-card {
  display: flex;            /* Enables stacking */
  flex-direction: column;   /* Stacks content vertically */
  border-radius: 12px;
  border: 2px solid #000;
  overflow: hidden;         /* Clips the image corners */
  background: #be0201;      /* Background for the text area */
  text-decoration: none;
  transition: transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Adds depth */
}

.nav-card:hover {
  transform: scale(1.03); /* Subtle pop effect */
}

/* The Image */
.nav-card img {
width: 100%;
  aspect-ratio: 1 / 1;
display: block;
}

/* The Title Overlay */
.nav-card h3 {
margin: 0;
  padding: 5px;
  background: #be0201;      /* Your Brand Red */
  color: #f6d93a;           /* Your Brand Yellow */
  font-family: 'Oswald', sans-serif;
  text-align: center;
  font-size: 1.2rem;
flex-grow: 1;
line-height: 1.2;
display: flex;
  align-items: center;      /* Centers the text vertically */
  justify-content: center;  /* Centers the text horizontally */
  text-align: center;
}

/* --- Banner Section --- */
.banner-section {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.banner-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(to bottom right, #ffffff, #ededed);
  border: 3px solid #be0201;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  max-width: 850px;
  width: 100%;
}

.banner-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: linear-gradient(to bottom right, #fffafa, #fff0f0);
  border-color: #8f0201;
}

.banner-link img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px 0 0 12px;
  flex-shrink: 0;
}

.banner-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.banner-content h3 {
  color: #be0201;
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 5px;
  text-align: left;
  text-shadow: 1px 1px 2px rgba(190, 2, 1, 0.2);
}

.banner-content p {
  color: #4a4a4a;
  font-family: 'Lora', serif;
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: left;
}

/* --- Main Brand Banner Image --- */
.brand-banner-container {
  width: 100%;
  max-width: 1200px; /* Limits size on massive desktop screens */
  margin: 0 auto 1rem auto;
  border: 4px solid #000;
  border-radius: 8px;
  overflow: hidden;
  background-color: #be0201; /* Fallback color while image loads */
  display: block;
	justify-content: center;
}

.brand-banner-img {
  width: 100%;
max-width: 1200px;
  height: auto;
  display: block;
  object-fit: cover;
margin: 0 auto;
}

/* Responsive spacing for mobile */
@media (max-width: 600px) {
  .brand-banner-container {
    margin-bottom: 1.2rem;
    border-width: 3px;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 1);
  }
}

/* --- Pillar Hub System --- */
.pillar-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Keeps remaining cards centered if uneven */
  gap: 16px; /* Spacing between the cards */
  max-width: 1200px;
  margin: 5px auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #e9e1d3;
  border: 2px solid #b5aead;
  border-radius: 12px;
  padding: 10px 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  box-sizing: border-box;

  /* FORCE EXACTLY 2 CARDS PER LINE ON MOBILE */
  /* Calculates 50% width minus half of the total gap space */
  width: calc(50% - 8px); 
  max-width: 220px;
}

.pillar-card:hover {
  border-color: #be0201;
  transform: translateY(-5px);
}

.pillar-card img {
width: 80px;          
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 5px;
}

.pillar-card h3 {
  color: #be0201;
  font-family: Merriweather, serif;
  font-size: 1.1rem;
  margin: 0 0 4px 0;
  text-shadow: 1px 1px 2px #000;
}

.pillar-card p {
  color: #333;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0 5px;
  text-align: left;
max-width: 95%;
}

/* Responsive adjustment for Tablets and Desktops */
@media (min-width: 768px) {
  .pillar-card {
    /* SCALE TO EXACTLY 4 CARDS PER LINE ON LARGER SCREENS */
    width: calc(25% - 12px);
    max-width: 280px; /* Increases max card width limit for large layouts */
  }
}

/* Global FAQ Accordion Styles */
.faq-section {
    margin-top: 20px;
    margin-bottom: 20px;
}

.faq-section h2 {
    line-height: 24px;
    padding-bottom: 15px;
}

.faq-section details {
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;

}

.faq-section summary {
    font-weight: bold;
    cursor: pointer;
    color: #be0201;
    outline: none;
}

.faq-section details p {
    margin-top: 10px;
    line-height: 1.5;
}

/* --- Misc --- */
#padding {
  padding: 30px 10px 50px;
  float: right;
  text-align: center;
}

.parent-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 3px;
}

.nederlands { display: flex; align-items: center; padding-left: 10px; padding-top: 15px; }
.nederlands img, .menu img { cursor: pointer; margin-right: 10px; }

.question {
  margin-top: -7px;
}

.fa-question-circle {
  font-size: 2.75em;
}

/* Accessibility helper to hide elements visually while keeping them for SEO */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.search-container { display: none; position: absolute; top: 50px; right: 10px; z-index: 1000; }
.gcse-search { width: 300px; }

.login-dropdown {
    position: absolute; top: 100%; right: 0; background-color: #1a202c;
    border: 1px solid #718096; border-radius: 0.5rem; padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); z-index: 1000;
    display: none; flex-direction: column; gap: 0.5rem; min-width: 200px; margin-top: 5px;
}
.login-dropdown.show { display: flex; }
.login-dropdown input { width: 100%; padding: 0.5rem; border: 1px solid #4a5568; border-radius: 0.3rem; background-color: #2d3748; color: #e2e8f0; box-sizing: border-box; }
.login-dropdown .button.score-button {
    width: 100%; margin-top: 0.5rem; padding: 0.5rem 1rem; border-radius: 0.7rem;
    font-weight: 700; border: 2px solid #f6d93a; cursor: pointer;
    background-image: linear-gradient(to bottom, #be0201, #a30101); color: #f6d93a;
}
.login-dropdown .signup-link { display: block; text-align: center; margin-top: 0.75rem; color: #f6d93a; text-decoration: none; font-size: 0.8rem; }

.iti { width: 60%; margin: 0 auto; text-align: center !important; }
.iti__country-list .iti__dial-code { display: none !important; }


/* ==========================================================================
   Media Queries
   ========================================================================== */

/* --- Sidebars (Large Screens) --- */

@media screen and (min-width: 1101px) {
  .floatRight {
    float: right;
    margin: 0 40px 20px 20px;
    width: 110px;
    background-color: #ede6e6;
    position: fixed;
    right: 0;
    bottom: 0;
  }
  
  div.content {
    margin-left: 120px;
    padding: 1px 16px;
    height: 1000px;
  }
}


/* --- Responsive Adjustments (Medium to Small Screens) --- */

@media screen and (max-width: 1200px) {
  .popular, .sidebar-right {
    display: none;
  }
}

@media screen and (max-width: 1100px) {
  .floatRight {
    display: none;
  }
}

@media (max-width: 1000px) {
  nav ul {
    position: fixed;
    top: 60px;
    left: -100%;
    background: #f9f7f7;
    height: calc(100vh - 60px);
    width: 60%;
    flex-direction: column;
    align-items: left;
    transition: left 0.5s linear;
    text-align: left;
    padding: 20px 0 20px 10px;
    border: 2px solid #be0201;
    box-sizing: border-box;
    overflow-y: auto;
  }

  #chk1:checked ~ ul {
    left: 0;
  }

  nav .menu {
    display: block;
    width: 100px;
    text-align: center;
  }

  nav ul li {
    width: 100%;
    margin-bottom: 15px;
  }

  nav ul li a {
    display: block;
    width: 100%;
    padding: 15px 10px;
    box-sizing: border-box;
    border: 3px solid transparent;
  }

  nav ul li a:hover,
  nav ul li a:active {
    background-color: #be0201;
    color: #f6d93a;
    border-color: #f6d93a;
    border-bottom: 3px solid #f6d93a; /* Maintain border consistency with desktop */
  }
  
  li, .header li {
    line-height: 24px;
  }

  .fa-bars {
    cursor: pointer;
  }

  .fa-question-circle {
    color: #be0201;
  }
}

/* Tablet layout: 2 columns */
@media (max-width: 900px) {
  .pillar-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  figure {
    float: right;
    margin: 0;
  }
}

@media (max-width: 768px) {
  .banner-link {
    flex-direction: column;
    text-align: center;
    border-radius: 12px;
  }

  .banner-link img {
    width: 100%;
    height: 200px;
    border-radius: 12px 12px 0 0;
  }

  .banner-content {
    padding: 15px;
    align-items: center;
  }

  .banner-content h3 {
    text-align: center;
    font-size: 1.4rem;
  }  
  
}

@media (max-width: 500px) {
  .title {
    font-size: 34px;
    word-spacing: -2px;
  }
  nav .manifesto {
  font-size: 1.3rem;
  margin-left: 5px;
  text-align: left;
}
  nav img.manifesto {
  width: auto;
  height: 36px;
}
  .pillar-container {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 480px) {
  .banner-link {
    border-radius: 8px;
  }

  .banner-link img {
    height: 180px;
    border-radius: 8px 8px 0 0;
  }

  .banner-content {
    padding: 10px;
  }

  .banner-content h3 {
    font-size: 1.2rem;
  }

  .banner-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 380px) {
  nav img.manifesto {
  width: auto;
  height: 30px;
}
}


/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .no-print, .no-print *, .head, .popular, #sidebar-right, #footer, img {
    display: none !important;
  }
  
  @page {
    margin: 2cm;
  }
  
  body {
    font: 12pt Georgia, "Times New Roman", Times, serif;
    line-height: 1.3;
    background: #fff; /* Ensure clean background for printing */
    color: #000;
  }
  
  h1, h2, h3 {
    font-weight: bold;
    margin-top: 15px;
  }

  h1 { font-size: 20pt; }
  h2 { font-size: 14pt; }
  h3 { font-size: 14pt; }
}
