* {
  font-family: 'Lato', sans-serif;
}

body {
  background-color: white;
  background-image: url('/Images/Background-Grade.png');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: top center;
  background-size: cover;
}

.wrapper {
  background-color: white;
  margin: 2% 5%;
  padding: 2em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* subtle shadow */
  border-radius: 8px; /* optional, smooth corners */
  padding-top: 60px; /* Add space to prevent overlap */
}

.navbar {
  background-color: #dce7f3;
  padding: 1em;
  justify-content: center;
  text-transform: uppercase;
  text-align: center;
  font-size: 20px;
  border-radius: 10px;
}

a {
  text-decoration: none;
  color: inherit;
  margin: 0;
  font-weight: bold;
}

.cgrid {
  display: grid;
  gap: 1em;
  margin: 0 5%;
  text-align: justify;
}

.col2 {
  grid-template-columns: repeat(2, 1fr);
}

.col3 {
  grid-template-columns: repeat(3, 1fr);
}

.col4 {
  grid-template-columns: repeat(4, 1fr);
}

.col5 {
  grid-template-columns: repeat(5, 1fr);
}

.col6 {
  grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 768px) {
  .col2, .col3, .col4, .col5, .col6 {
    grid-template-columns: 1fr;
  }
}

img {
  border-radius: 20px;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.1);
}

.photo {
  text-align: center;
}

.photoPotra {
  display: block;
  margin: auto;
  width: 50%;
}

.photoLand {
  display: block;
  margin: auto;
  width: 85%;
}

.box {
  background-color: #efefef;
  border: none;
  border-radius: 30px;
  padding: 3%;
  margin: 2%;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); 
}

.box h4 {
  border-bottom: 1px solid;
}

.main a {
  color: #000;
  font-weight: bold;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.backquote {
  font-style: italic;
  font-weight: 300;
  color: #555; /* slightly lighter than black */
  border-left: 2px solid #efefef;
  padding-left: 1em;
  margin: 2em auto; /* top/bottom spacing and horizontal centering */
  max-width: 80%; /* prevents it from stretching too wide */
}

h1 {
  margin: 1% 2%; /* slight left margin */
  text-transform: uppercase;
  font-weight: bold;
  color: #000;
  border-bottom: 2px solid #000;
  padding-bottom: 0.2em;
}

/* Shared styles for H2 and H3 */
h2, h3 {
  background-color: #dce7f3;
  margin-top: 1em;
  border-radius: 10px;
}

/* H2 – Bold */
h2 {
  font-weight: bold;
  font-size: 1.8em; /* Optional size tweak */
  padding: 0.2em;
}

/* H3 – Smaller than H2 */
h3 {
  font-weight: normal;
  padding: 0.1em;
  font-size: 1.4em;
}

/* H4 – Small, bold, light gray (#efefef), no background */
h4 {
  font-size: 1.2em;
  font-weight: bold;
  background: none;
  margin-top: 1em;
}

/* Table block wrapper */
.tableHead {
  margin: 0;
  padding: 0;
  text-align: center;
  border-radius: 50px 50px 0 0;
  background-color: #efefef;
  border: solid black 3px;
}

.tableHead h1,
.tableHead h2,
.tableHead h3,
.tableHead h4,
.tableHead p {
  margin: 0;
  padding-top: 0.2em;
  padding: 0;
  text-align: center;
  background-color: transparent;
}

/* Table directly below */
.tableHead table {
  border-top: none; /* removes double-border with label above */
  border-radius: 0 0 8px 8px;
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  background-color: transparent;
}

/* Table header cells */
th {
  background-color: #efefef; /* same as .box background */
  color: black;
  text-align: center;
  font-weight: 600; /* slightly bold */
  font-size: 1.1em;
  padding: 0.5em;
  border: none;
  border-bottom: 4px solid;
}

/* Table data cells */
td {
  background-color: #fff;
  color: black;
  padding: 0.5em;
  border: none;
  border-bottom: 1px solid #ddd; /* thinner, lighter inner borders */
  text-align: center;
  vertical-align: top;
}

.f {
  background-color: #dce7f3;
  color: #444; /* light text, not pure black */
  text-align: center;
  padding: 0.5em;
  font-size: 0.9em;
  margin-top: 1%;
}

.content {
  margin: 0 5%;
  max-width: 800px; /* optional: keeps long text readable */
  line-height: 1.6;  /* improves readability */
}

/* Sidebar Toggle Button */
.sidebar-toggle {
  font-size: 20px;
  cursor: pointer;
  background-color: #efefef;
  color: black;
  padding: 10px 15px;
  display: inline-block;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1001;
  border-radius: 25px;
  box-shadow: 4px 0 8px rgba(0, 0, 0, 0.1);
}

/* Sidebar */
#sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 220px;
  height: 100%;
  background-color: white;
  overflow-y: auto;
  padding: 1em;
  box-shadow: 4px 0 8px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease;
  z-index: 1000;
  margin-right: 20px;
}

/* Checkbox toggled = open sidebar */
#menu-toggle:checked ~ #sidebar {
  left: 0;
}

/* Push content if needed */
#menu-toggle:checked ~ .wrapper {
  margin-left: 280px;
  transition: margin-left 0.3s ease;
}

/* Optional: Adjust body overflow when sidebar is open */
#menu-toggle:checked ~ body {
  overflow-x: hidden;
}

/* Sidebar links */
#sidebar ul {
  list-style-type: none;
  padding-left: 0;
}

#sidebar ul li {
  margin: 0.5em 0;
}

#sidebar ul ul {
  margin-left: 1em;
  font-size: 0.95em;
}


/* Fate Stats */
.monster-block {
    background-color: #ffffff;
    border-top: 10px solid #dce7f3;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border-radius: 10px;
}

.monster-header {
    font-size: 20px;
    font-weight: bold;
	background: #dce7f3;
    color: black;
    text-transform: uppercase;
	margin: -20px;
	padding-bottom: 10px;
	margin-bottom: 10px;
	text-align: center;
}

.monster-subtitle {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    font-size: 14px;
    margin-bottom: 15px;
    gap: 10px;
}

.stat-grid div {
    padding: 5px 0;
}

.abilities {
	display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
    gap: 10px; /* spacing between boxes */
    text-align: center;
    font-size: 14px;
    margin-bottom: 15px;
}

.abilities div {
    background-color: #dce7f3;
    border: none;
	border-radius: 15px;
	padding: 5px;
}

.abilities hr {
	border: none;
	width: 70%;
	border-top: 1px solid #ccc;
}

.traits, .actions {
    margin-bottom: 15px;
}

.traits h3, .actions h3 {
    color: black;
	font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.trait, .action {
    font-size: 14px;
    margin-bottom: 8px;
}

.trait strong, .action strong {
    font-weight: bold;
}

.footer-note {
    font-size: 10px;
    color: #666;
    text-align: center;
    margin-top: 10px;
}

.fate {
    background: #dce7f3;
    color: Black;
    text-align: center;
	border-radius: 100px;
	max-width: 100px
}
.fate-sheet div {
    margin-bottom: 20px;
}

.fate-sheet strong {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.fate-sheet ul {
    list-style: none;
    padding-left: 0;
}

.fate-sheet li {
    margin-bottom: 5px;
}
