/*fontselection
https://fonts.google.com/share?selection.family=EB+Garamond:ital,wght@0,400..800;1,400..800|IM+Fell+DW+Pica|UnifrakturCook:wght@700
*/

/* --- Grunddesign --- */
body {
  margin: 0;
  padding: 0;
  color: #e6d9c6;
  font-family: "IM Fell DW Pica", "Goudy Bookletter 1911", serif;
  background: #1a1410;
}

.parchment-bg {
  background: #1a1410 url('/assets/img/background.png') repeat;
  background-size: cover;
}

/* --- Header --- */
.site-header {
  text-align: center;
  padding: 2rem 1rem;
  border-bottom: 2px solid #5a3d23;
  background: rgba(0, 0, 0, 0.4);
}

.site-title {
  font-size: 3rem;
  font-family: "UnifrakturCook", "IM Fell DW Pica", serif;
  margin: 0;
  color: #d4b98a;
}

.site-sub {
  margin-top: -0.5rem;
  font-size: 1.3rem;
  color: #bfa27a;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-title a:hover {
  text-shadow: 0 0 5px #d4b98a;
}

/* --- Navigation --- */
.nav-bar {
  margin-top: 1.5rem;
}

.nav-bar a {
  margin: 0 1rem;
  color: #e6d9c6;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid transparent;
}

.nav-bar a:hover {
  border-bottom: 2px solid #d4b98a;
}

/* --- Content --- */
.content-area {
  box-sizing: border-box;
  max-width: 900px;
  width: 100%;
  /*margin: auto;*/
  padding: 2rem;
  background: rgba(26, 20, 16, 0.75);
  border: 1px solid #5a3d23;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

h1,
h2,
h3 {
  font-family: "UnifrakturCook", serif;
  color: #d9c29c;
}

p,
li {
  font-size: 1.15rem;
  line-height: 1.6;
}

.content-area a {
  color: #d4b98a;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid #5a3d23;
  padding-bottom: 2px;
  transition: 0.2s ease-in-out;
}

/* --- External Links --- */
.content-area a[href^="http"]::after {
  content: " ↗";
  font-size: 0.9rem;
  opacity: 0.7;
  margin-left: 4px;
}

.content-area a:hover {
  color: #f0dcb3;
  border-bottom-color: #d4b98a;
  text-shadow: 0 0 6px rgba(212, 185, 138, 0.8);
}

.content-area a:visited {
  color: #bfa27a;
  border-bottom-color: hsl(29, 34%, 36%);
}

.content-area blockquote {
  line-height: 1;
  padding: 2%;
  position: relative;
  color: #2b1f12;
  font-family: "EB Garamond", "Times New Roman", serif;
}

.content-area blockquote * {
  z-index: 2;
  position: relative;
}

.content-area blockquote:before {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: 0 0 30px #8a4d0f inset;
  background: #fffef0;
  filter: url(/assets/img/filter.svg#wavy) drop-shadow(3px 5px 5px rgba(00, 0, 0, 0.8));
  z-index: 1;
}

hr {
  border: 0;
  height: 2px;
  background: #5a3d23;
  margin: 2rem 0;
  opacity: 0.7;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: rgba(26, 20, 16, 0.6);
  border: 1px solid #5a3d23;
}


table th,
table td {
  padding: 0.5rem 1rem;
  border: 1px solid #5a3d23;
  color: #e6d9c6;
}


table th {
  background: rgba(90, 61, 35, 0.5);
  font-family: "UnifrakturCook", serif;
  font-size: 1rem;
  color: #d9c29c;
}


table tr:nth-child(even) {
  background: rgba(40, 30, 20, 0.4);
}


table tr:hover {
  background: rgba(212, 185, 138, 0.12);
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 2rem;
  color: #a98c65;
  font-size: 0.9rem;
}

/* --- Layout Wrapper --- */
.page-wrapper {
  box-sizing: border-box;
  display: flex;
  gap: 1.5rem;
  max-width: 1200px;
  margin: auto;
  padding: 1rem;

}


/* --- Sidebar --- */
.sidebar {
  box-sizing: border-box;
  width: 260px;
  flex-shrink: 0;
  background: rgba(26, 20, 16, 0.75);
  border: 1px solid #5a3d23;
  border-radius: 10px;
  padding: 1rem;
  height: fit-content;
}


.sidebar-title {
  font-family: "UnifrakturCook", serif;
  font-size: 1.6rem;
  margin-top: 0;
  color: #d9c29c;
  text-align: center;
}


.sidebar-cards .game-card {
  margin-bottom: 1rem;
  padding: 0.8rem;
  text-align: center;
}


.sidebar-cards .game-card h4 {
  margin: 0;
  font-size: 1rem;
  color: #d9c29c;
}


@media (max-width: 800px) {
  .page-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    order: -1;
  }

  .sidebar-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .sidebar-cards .game-card {
    flex: 1;
    margin: 2%;
  }
}

/* --- Game Icons --- */
.game-icon {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  border: 1px solid #5a3d23;
}


/* Sidebar Links */
.sidebar-cards .game-card {
  border: 1px solid #5a3d23;
  background: rgba(26, 20, 16, 0.6);
  color: #d9c29c;
  display: block;
  transition: 0.2s ease-in-out;
  padding: 0.8rem;
  border-radius: 8px;
}


.sidebar-cards .game-card:hover {
  background: rgba(50, 38, 24, 0.85);
  border-color: #d4b98a;
  box-shadow: 0 0 8px rgba(212, 185, 138, 0.4);
  transform: translateY(-3px);
}


/* Sidebar icon sizing */
.sidebar-cards .game-icon {
  width: 80%;
  margin: 0 auto 0.5rem auto;
  display: block;
}