
:root {
  --dark-accent: rgb(37, 17, 1); /* Decorative border color */
  --contrast-color: rgb(44, 87, 132); /* Navbar, e.g. */
  --text-color: var(--dark-accent);
  --background-color: rgb(120, 205, 215);
}
img.fullwidth {
  width: 100%;
}
.headerlogo {
  height: 1.5rem;
}
img.cellimage {
  width: calc(100%);
  height: calc(100%);
  align: center;
  object-fit: cover;
  margin-left: auto;
  margin-right: auto;
}
nav {
  height: 40px;
  padding: 0 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  background-color: var(--contrast-color);
}
nav ul {
  margin: 0;
}
.nav-items, .nav-main {
  display: flex;
}
/* Overall document styling */
body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: Georgia, serif; /* or any serif font */
  margin: 0;
  padding: 0;
}

/* Document container with margins for a worn page effect */
.tome {
  margin: 0 auto; /* Center the content */
  max-width: 1200px; /* Adjust width as needed */
  position: relative;
}


/* Main content area for the text */
.content {
  display: grid;
  gap: 1rem;
  margin: 0 auto;
  margin-top: 1rem;
  max-width: 1200px; /* Adjust width as needed */
}
@media only screen and (max-width: 599px) {
  .content { grid-template-columns: repeat(1, 1fr); }
}
@media only screen and (min-width: 600px) and (max-width: 767px) {
  .content { grid-template-columns: repeat(2, 1fr); }
}
@media only screen and (min-width: 768px)  and (max-width: 899px){
  .content { grid-template-columns: repeat(2, 1fr); }
}
@media only screen and (min-width: 900px) {
  .content { grid-template-columns: repeat(3, 1fr); }
}
div.content_block, div.recipe_block {
  width: 100%;
  background-color: white;
  padding: 1em;
  font-size: smaller;
}
div.cover_image {
  width: 40%;
  padding: 1em;
  float: right;
}
div.cover_image img {
  width: 100%;
}
div.recipe_block h1 {
  font-size: inherit;
  font-weight: bold;
  font-variant: small-caps;
}
.cell {
  padding: 20px 20px 20px 20px; /* Top/Right/Bottom/Left padding */
  background-color: #fff; /* Cream colored content area */
  border-top: 2px solid var(--dark-accent); /* Decorative border color */
  border-bottom: 2px solid var(--dark-accent); /* Decorative border color */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
  aspect-ratio: 1;
  min-height: 0;
  overflow: hidden;
}
@media only screen and (min-width: 600px) {
  .cell {
    border: 2px solid var(--dark-accent); /* Decorative border color */
    border-radius: 5px;
  }
}
@media only screen and (min-width: 769px) {
  .cell {
    padding: 40px 40px 40px 40px; /* Top/Right/Bottom/Left padding */
  }
}

/* Margin notes section with styling */
.margin-notes {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px; /* Adjust width as needed */
  padding: 20px;
  font-size: 0.8em; /* Smaller font for notes */
  color: #666; /* Grayed-out text color for notes */
}

/* Any additional styling for specific elements within the content area */
a.cella:link, a.cella:visited {
  text-decoration: none;
}
a.cella:link {
  color: #333;
}
div.cell  h1 {
  font-family: inherit; /* Inherit font from body */
  text-overflow: ellipsis;
  display: block;
  white-space: nowrap;
  width: 100%;
  overflow: hidden;
  font-size: 16px;
  font-variant: small-caps;
  margin-top: -1.5em;
  margin-bottom: 10px;
}
@media only screen and (max-width: 768px) {
  div.cell  h1 {
    margin-top: -1em;
    font-size: 18px;
  }
}

p {
  line-height: 1.5; /* Adjust line spacing for readability */
  margin-bottom: 15px;
}

.clear {
  clear: both;
}

#recipe_search_input {
  background-image: url('/static/images/searchicon.png'); /* Add a search icon to input */
  background-position: 10px 12px; /* Position the search icon */
  background-repeat: no-repeat; /* Do not repeat the icon image */
  width: 100%; /* Full-width */
  font-size: 16px; /* Increase font-size */
  text-indent: 40px;
  padding: 12px 0px 12px 0px; /* Add some padding */
  border: 1px solid #ddd; /* Add a grey border */
  margin-bottom: 12px; /* Add some space below the input */
}

.fullimage img.img-fluid, div.fullwidth img {
  width: 100%;
  height: auto;
}
ul.recipe_list {
  /* Remove default list styling */
  list-style-type: none;
  width: 100%;
  padding: 0;
  margin: 0;
}

.recipe_list li a {
  border: 1px solid #ddd; /* Add a border to all links */
  margin-top: -1px; /* Prevent double borders */
  /* background-color: #f6f6f6; /* Grey background color */
  padding: 12px; /* Add some padding */
  text-decoration: none; /* Remove default text underline */
  font-size: 18px; /* Increase the font-size */
  color: black; /* Add a black text color */
  display: block; /* Make it into a block element to fill the whole list */
}

.recipe_list li a:hover:not(.header) {
  background-color: #ddd; /* Add a hover effect to all links, except for headers */
}
.nav-main li a {
  text-decoration: none;
  display: block; /* Make it into a block element to fill the whole list */
  height: 100%;
  vertical-align: middle;
  padding: 0 1rem;
  color: white;
}
.nav-main li a:hover {
  background-color: var(--dark-accent);
}
ul.nav-main, div.nav-items {
  height: 100%;
}
li.entry {
  list-style: none;
  margin: 0;
  height: 100%;
}
li.active {
  background: var(--dark-accent);
}
span.menu {
  display: inline-block;
  vertical-align: middle;
  margin-top: .25rem;
}
