/*Home Brew Stylle*/

body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #c77b09;
    color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items at the top */
    min-height: 100vh;
    flex-wrap: wrap;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url("images/backGround.jpg");
    background-attachment: fixed; /* Make the background image fixed */
}

.container {
    display: flex;
    width: 100%;
}

.left-spacer {
    width: 10%; /* Adjust the width as needed */
}

.content {
    width: 60%; /* Adjust the width as needed */
    padding: 20px;
}

.right-spacer {
    width: 30%; /* Adjust the width as needed */
    padding: 20px;
    margin-top: 20px; 
}

.right-spacer img {
    width: 100%; /* Ensure the image uses the full width of the spacer */
    height: auto;
    margin-top: 20px; /* Add margin to create space between the image and main div */
    border: 5px solid rgb(61, 6, 6); /* Add border to the image */
    border-radius: 10px; /* Add rounded corners to the border */
}

h1, h2, h3 {
    color: #ffffff;
}
h1 {
    border-bottom: 2px solid #bf4040;
    padding-bottom: 10px;
}

p, ul, ol {
    margin-bottom: 20px;
}
ul, ol {
    padding-left: 20px;
}
.navigation {
    margin-bottom: 20px;
}

.book-entry {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.7);
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
}

.navigation {
    position: fixed;
    top: 15%; /* Center the navigation box vertically */
    left: 5%;
    width: 200px; /* Adjust the width as needed */
    background-color: #2c2c2c;
    padding: 10px;
    display: flex;
    flex-direction: column;
    z-index: 1000; /* Ensure the navigation is on top */
    border: 3px solid rgb(61, 6, 6);
    border-radius: 5%;
}

/* Base overlay (hidden) */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

/* When open, make it visible */
.overlay.open {
  visibility: visible;
  opacity: 1;
}

/* Close button styling */
#close-menu {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #bf4040;
  cursor: pointer;
}

/* Navigation links inside overlay */
.overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.overlay-nav a {
  color: #bf4040;
  font-size: 2rem;
  text-decoration: none;
  transition: color 0.2s;
}

.overlay-nav a:hover {
  color: #ff7b00;
}

/* Optional: style the open-menu button */
#open-menu {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  background: #2c2c2c;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 1630px) {
  .container {
    flex-direction: column; /* or custom flex ratios */
  }

  .left-spacer {
    width: 100%;
    height: 50px;
  }

  .right-spacer {
    width: 100%;
    height: auto;
  }
}