body {
  font-family: 'Georgia', serif;
  background-color: #ebe1ce;
  color: #2e1a05;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: #5a3825;
  color: #fff;
  text-align: center;
  padding: 1em 0;
}

nav a {
  color: #fff;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

main {
  max-width: 1300px;
  min-width: 400px;
  flex: 1;
  margin: 30px auto;
  padding: 20px;
  background-color: #faf1e5;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

footer {
  background-color: #5a3825;
  color: white;
  text-align: center;
  padding: 10px;
  bottom: 0;
  width: 100%;
}

label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

input, textarea, select, button {
  width: 95%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

button {
  background-color: #bb7b53;
  color: white;
  border: none;
  margin-top: 15px;
  cursor: pointer;
}

button:hover {
  background-color: #9c623e;
}

.container {
  margin: 50px auto;
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

form {
  background-color: rgb(255, 249, 241);
  border: 1px solid #5a3825;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  width: 100%;
  padding: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.invalid-field {
  border: 2px solid red;
}

p#errorBox {
   width: 90%;
   color: red;
   font-size: 1.1em;
   margin-left: 10px;
   margin-top: 10px;
   border: 1px solid red;
   background-color: white;
   padding: 15px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.card {
  background-color: rgb(255, 249, 241);
  border: 2px solid #5a3825;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  width: 200px;
  padding: 15px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

.card h3 {
  margin-top: 10px;
  color: #5a3825;
}

.card p {
  font-size: 0.9em;
  color: #3a2417;
}

#roll-button {
  font-size: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  align-items: center;
}

.input-group input {
  width: 50px;
  height: 80px;
  padding: 5px 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc
}

.input-group label {
  font-weight: bold;
  margin-top: 10px;
  align-items: center;
}

.ability-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  align-items: center;
}

footer a {
  color: #cdc6be;
}

/* Responsive Image Class */
.responsive {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}