* {
  margin: 0;
}

body {
  background-color: #833549;
  background-image: url('images/damask-red.png');
}

.container {
  position: fixed;
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.main {
  background-color: #E6C697;
  color: #27170e; 
  padding: 20px;
  width: 80%;
  height: 80%;
  margin: auto;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10px;
  border: 7px double #27170e;
  box-shadow: 0px 0px 5px rgba(35, 35, 35, 0.658); 
  background-image: url('images/parchment-bg.png');
  background-repeat: repeat;
  background-size: 150px;
}

div.grid {
  display: grid;
  grid-template-columns: 33% 66%;
  grid-template-rows: 100%;
  grid-template-areas: "left right";
  column-gap: 5px;
}

#header {
  grid-area: left;
  place-content: center;
  border-right: 2px solid #27170e;
}

.menu-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px auto;
  cursor: pointer;
  min-height: 45px;
  width: 100%;
}

.menu-icon {
  display: block;
  font-size: 2em;
  font-weight: 550;
  color: #811c28;
  transition: transform 0.2s ease;


}

.menu-links {
  display: none;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0px;
  white-space: nowrap;

}

.menu-links a {
  color: #811c28;
  text-decoration: none;
  font-family: 'Crimson Text', serif;
  font-size: 1.2em;
  padding: 5px 10px;
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

.menu-links a:hover {
  background-color: rgba(93, 11, 31, 0.1); 
}

.menu-container:hover .menu-icon {
  display: none;
}
.menu-container:hover .menu-links {
  display: flex;
}

.content {
  grid-area: right;
  place-content: center;
  overflow-y: scroll;
  padding: 20px;
}

div.c {
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

h1.c,h2.c,h3.c,p.c {
  text-align: center;
}

img.c {
  display: block;
  margin: auto;
}

.bailey {
  position: fixed;
  bottom: 10px;
  right: 25px;
  z-index: 10;
}

.bailey-tongue img {
  height: 110px;
}

.bailey-uwu img {
  height: 80px;
  bottom: 0px;
}

.bailey .bailey-uwu {
  display: none;
}

#bailey-help:target ~ .bailey .bailey-uwu {
  display: block;
}

#bailey-help:target ~ .bailey .bailey-tongue {
  display: none;
}

#bailey-help {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 80px;
  width: 200px;
  background-color: #f9f1e1;
  border: 1.5px dashed black;
  padding: 10px;
  font-size: 0.75em;
  z-index: 10;
}

.bailey-help:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 0;
	border: 33px solid transparent;
	border-top-color: #00aabb;
	border-bottom: 0;
	border-right: 0;
	margin-left: -16.5px;
	margin-bottom: -33px;
  z-index: 10;
}

#bailey-help:target {
  display: block;
}

blockquote {
  border-left: 4px solid #5D0B1F;
  border-radius: 5px;
  margin: 0 10px;
  padding: 0.25em 10px;
  quotes: "\201C""\201D";
}

blockquote:before {
  color: #5D0B1F;
  font-size: 4em;
  line-height: 0em;
}

blockquote p {
  display: inline;
}

figcaption {
  text-align: right;
}

.navbar {
  text-align: center;
  font-family: 'Crimson Text';
}

p, ol, figcaption, summary, td, li {
  font-family: 'Crimson Pro';
  font-size: 1.3em;
  margin-bottom: 10px;
}

h1 {
  font-family: 'IM Fell English';
  font-size: 2.5em;
  margin-bottom: 10px;
}

h2 {
  font-family: 'Crimson Pro';
  font-size: 1.75em;
  margin-bottom: 10px;
}

h3, th, summary {
  font-family: 'Crimson Pro';
  font-size: 1.5em;
  margin-bottom: 10px;
}

a, th {
  color: #5D0B1F;
}

a:hover {
  color: #811c28;
}

summary {
  font-weight: bold;
  color: #5D0B1F;
  text-align: center;
  cursor: pointer;
  padding: 5px;
}

summary::marker {
  content: "";
}

.content {
  --sb-track-color: transparent;
  --sb-thumb-color: #5D0B1F;
  --sb-size: 8px;
}

.content::-webkit-scrollbar {
  width: var(--sb-size);
}

.content::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 5px;
}

.content::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 5px;
}

@supports not selector(::-webkit-scrollbar) {
  .content {
      scrollbar-color: var(--sb-thumb-color)
                     var(--sb-track-color);
  }
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-item {
  height: 150px;
  margin: 5px;
}

.gallery-item img {
  height: 100%;
}

.service-menu {
  max-width: 80%;
  margin: auto;
  padding: 0px 20px;
  border-left: 4px solid #5D0B1F;
  border-radius: 5px;
}

.item-list {
  list-style: none;
  padding: 0;
}

.item {
  margin-bottom: 20px;
}

.item-header {
  display: flex;
  align-items: flex-end;
}

.item-name {
  font-weight: bold;
  padding-right: 5px;
  flex-shrink: 1;
  flex-wrap: wrap;
}

.dots {
  flex-grow: 1;
  border-bottom: 3px dotted #27170e;
  margin: 0;
  min-width: 40px;
}

.price {
  font-weight: bold;
  margin-left: 5px;
  white-space: nowrap;
}

.item-desc {
  font-style: oblique;
  margin-top: 10px;
}

@media (max-width: 600px) {
div.grid {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 33% 66%;
  grid-template-areas: "top" "bottom";
  padding: 10px;
  row-gap: 5px;
}

#header {
  grid-area: top;
  place-content: center;
  border-bottom: 2px solid #27170e;
  border-right: 0px
}

.menu-icon {
  display: none;
}

.menu-links {
  gap: 10px;
  display: flex;
}
  
.menu-links a {
  font-size: 1.1em;
  padding: 4px 6px;
}

.content {
  grid-area: bottom;
  place-content: center;
  overflow-y: scroll;
}
}

@media (min-width: 601px) and (max-width: 1075px) {

  div.grid {
    grid-template-columns: 40% 60%;
  }

  .menu-container:hover .menu-links,
  .menu-container:focus .menu-links,
  .menu-container:focus-within .menu-links {
    display: flex;
    flex-direction: column;
    gap: 8px; 
    width: 100%;
    transform: translate(0,0);
  }

  .menu-links a {
    font-size: 1.1em;
    padding: 6px 12px;
    width: 80%;
    text-align: center;
  }
}