#all {
  background-color: #ccc;
  width: 820px;
  margin: 0 auto;
}

#side {
  background-color: var(--brown2);
  float: left;
  width: 220px;
  position: fixed;
}

#main {
  overflow: hidden;
  /* Hide scrollbars */
  background-color: var(--brown2);
  float: right;
  width: 580px;
}

#sidepadding {
  padding: 10px;
}

.sideimgholder {
  margin: auto;
  width: 60%;
  /* Define the width of the parent container */
  height: auto;
  /* Allow height to adjust based on content */
  display: block;
  /* Enable Flexbox for alignment */
  justify-content: center;
  /* Center horizontally */
  align-items: center;
  /* Center vertically */
}

.sideimg {
  width: 100%;
  /* Ensure the image does not exceed the parent's width */
  height: auto;
  /* Maintain the aspect ratio */
  object-fit: contain;
  /* Ensure the image fits entirely within the parent */
  padding: 5px;
}

#nav {
  font-size: 16px;
  padding: 10px 0px 10px 0px;
}

ul {
  margin: auto;
  padding-left: 0px;
  -webkit-column-count: 2;
  -moz-column-count: 2;
  column-count: 2;
}

li {
  text-align: left;
  list-style-type: none;
  width: 100%;
}

div.divider {
  border-top: 4px double var(--black);
  margin: 5px 0px 10px 0px;
}

div#guestbook {
  border-top: 6px double var(--brown1);
  margin: 10px 0px 10px 0px;
}

#sidecontent {
  font-size: 13px;
  text-align: center;
}

#mainimg {
  display: block;
  margin: auto;
  width: 30%;
}

.header {
  height: 260px;
  background-size: cover;
  background-image: url('/img/dungeon.jpg');
}

.subheaders {
  margin: 0px;
  text-indent: 10px;
  font-weight: normal;
  letter-spacing: 4px;
  font-size: 24px;
  color: var(--brown2);
  background-color: var(--green1);
}

.maincontent {
  padding: 0px 15px 15px 15px;
  text-align: justify;
  font-size: 14px;
  letter-spacing: 1px;
}

/* Librería */

.bookcase {
  display: flex;
  /* Arrange books in a row */
  gap: 10px;
  /* Add spacing between books */
  justify-content: center;
  /* Center the books horizontally */
}

.book {
  padding: 10px;
  /* Add padding inside the book */
  margin-top: 15px;
  border: double 9px var(--black);
  background-color: var(--blue1);
  width: 140px;
  /* Set the width of each book */
  height: auto;
  /* Maintain aspect ratio */
  transition: transform 0.3s ease;
  /* Add hover effect */
}

.book:hover {
  transform: scale(1.02);
  /* Slightly enlarge the book on hover */
  font-style: normal;
  /* Reset font style on hover */
}

.book:active {
  transform: scale(1);
  /* Slightly reduce size on click */
}

.book img {
  background-color: var(--black);
  padding: 8px;
  width: -webkit-fill-available;
  /* Make the image fill the book width */
  height: auto;
  /* Maintain aspect ratio */
  margin-top: 10px;
  /* Add space between text and image */
}

.book h1 {
  text-align: center;
  /* Center the title text */
  font-size: 1.3em;
  /* Adjust font size for the title */
  color: var(--black);
  /* Title color */
}

/* Extra */

.board {
  display: block;
  background: var(--green1);
  margin: auto;
  border: solid, 6px, var(--brown1);
  padding: 6px;
}

div.hechizo {
  display: grid;
  justify-content: center;
  background-color: var(--brown1);
  width: 48%;
  margin: auto;
  border: double 9px var(--brown2);
}

div.hechizo p {
  color: var(--brown2)
}

div.hechizo button{
  color: var(--brown2);
  border: double 6px var(--blue1);
  background-color: unset;
  font: inherit;
}

div.hechizo button:hover{
  color: var(--blue2);
  background-color: var(--black);
  border-color: var(--blue2);
}

/* Guestbook */

table.guestbook {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown2);
  font-family: Copperplate, Papyrus, fantasy;
  font-size: 14px;
  font-style: italic;
  margin: 4px;
}

table.guestbook tbody {
  background: var(--brown1);
  padding: 6px;
  border: double 9px var(--brown2);
  width: 75%;
}

table#entries tr {
  display: block;
  word-break: break-word;
  padding: 6px;
  border: 3px solid var(--brown2);
  margin: 6px;
}

textarea#message {
  color: inherit;
  font: inherit;
  background: none;
  border: solid 3px;
  resize: none;
}

textarea#message:focus-visible {
  outline: none;
}

input#sign {
  color: inherit;
  font: inherit;
  background: none;
  border: solid 3px;
}

input#sign:focus-visible {
  outline: none;
}

input#submit {
  color: inherit;
  font: inherit;
  float: right;
  background: none;
  border: none;
}

div#entry {
  border: solid 4px var(--brown2);
  margin: 4px;
  padding: 4px;
}