@charset "utf-8";

html {
  overflow-y: scroll;
}

* {
  box-sizing: border-box;
}

header.titles { 
  margin: auto;
  max-width: 40%;
}

header.navigation {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 2;
  background-color: #FFF3F3;
}

.footer {
  margin: auto;
  margin-top: 25px;
  padding: 10px;
  width: 100%;
  border-top-style: solid;
  border-top-width: 1px;
}

body {
  margin: 0;
  font-family: Georgia, serif;
  padding: 10px;
  background-color: #FFF3F3;
}

section::after {
  clear: both;
  content: "";
  display: table;
}

h1, h2 {
  font-family: Georgia, serif;
}

h1.site-title {
  text-align: center;
  margin-top: 5px;
  margin-bottom: 5px;
  border-bottom-style: solid;
  border-bottom-width: 1px;
}

h2.sub-title {
  text-align: center;
  margin-top: 5px;
}

.card {
  background-color: white;
  padding: 10px;
  margin-top: 20px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: small;
  margin: 0;
}
.filter-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

img.inline {
  max-width: 50%;
  height: auto;
}

img.inline.left {
  float: left;
  margin: 5px 10px 0px 0px;
}

img.inline.right {
  float: right;
  margin: 5px 0px 0px 10px;
}

img.block {
  display: block;
  max-width: 70%;
  height: auto;
}

img.block.center {
  margin-left:auto;
  margin-right:auto;
  margin-top: 5px;
  margin-bottom: 5px;
}

img.logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5px;
  margin-bottom: 5px;
  height: auto;
  max-width: 150px;
}

a:link, a:visited {
  color: firebrick;
  text-decoration: underline;
}

a:hover, a:active {
  color: firebrick;
  text-decoration: none;
}

a.filter-nav {
  margin-top: 2px;
  border-radius: 4px;
  background-color: indianred;
  color: white;
  padding: 4px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

a.filter-nav:hover {
  background-color: firebrick;
}

ul.top-menu {
  list-style-type: none;
  margin-top: 15px;
  margin-bottom: 15px;
  padding: 0;
  background-color: indianred;
}

ul.top-menu::after {
  content: "";
  display: table;
  clear: both;
}

ul.top-menu li {
  float: left;
  position: relative;
}

/* Hide mobile NAV dropdown mechanics on desktop */
.drop-check, .drop-icon {
  display: none;
}

ul.top-menu li a,
ul.top-menu li label.menu-label {
  display: block;
  color: white;
  text-align: center;
  text-decoration: none;
  padding: 15px;
  cursor: pointer;
}

ul.top-menu li a:hover:not(.active),
ul.top-menu li label.menu-label:hover {
  background-color: darkred;
  padding-left: 12px;
  border-left-style: solid;
  border-left-width: 3px;
  border-left-color: mistyrose;
}

ul.top-menu li a.active {
  background-color: darkred;
  padding-left: 12px;
  border-left-style: solid;
  border-left-width: 3px;
  border-left-color: mistyrose;
}

ul.top-menu li.right {float: right;}

/* Ensure right-aligned dropdowns don't bleed off the screen */
ul.top-menu li.right ul.submenu {
  left: auto;
  right: 0;
}

ul.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: indianred;
  min-width: 180px;
  z-index: 10;
  list-style-type: none;
  padding: 0;
  margin: 0;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

/* Show submenu on mouse hover (Desktop only) */
@media screen and (min-width: 721px) {
  ul.top-menu li.dropdown:hover > ul.submenu {
    display: block;
  }
}

ul.submenu li {
  float: none;
  width: 100%;
}

ul.submenu li a {
  text-align: left;
  padding: 12px 16px;
}

/* Preserve hover effect for sub-items */
ul.submenu li a:hover {
  background-color: darkred;
  padding-left: 13px; /* Adjusted to accommodate the border smoothly */
  border-left-style: solid;
  border-left-width: 3px;
  border-left-color: mistyrose;
}

.row::after {
  content: "";
  display: table;
  clear: both;
}

.column {
  padding-left: 10px;
  padding-right: 10px;
  float: left;
}

.column.side {
  width: 40%;
}

.column.main {
  width: 60%;
}

.winemenu_wine_desc p {
  max-width:300px;
  margin-top:0;
  margin-bottom:5px;
  text-indent:0;
}

.winemenu_wine_desc hr {
  max-width:300px;
  margin-left:0;
  margin-right:auto;
}

.tooltip {
  position: relative;
  display: inline-block;
  color: black;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  top: 100%;
  left: 50%;
  margin-top: 6px;
  margin-left: -100px;
  background-color: darkred;
  font-size: 12px;
  color: white;
  text-align: center;
  padding: 7px;
  border-radius: 4px;
  position: absolute;
  z-index: 1;
}

.tooltip .tooltiptext::after {
  content: " ";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent darkred transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.mobile-icon {
  margin: auto;
  width: 54px;
  cursor: pointer;
  padding: 15px 15px;
  display: none;
}

.mobile-icon-line {
  background-color: indianred;
  display: block;
  height: 2px;
  position: relative;
  width: 24px;
}

.mobile-icon-line::before, .mobile-icon-line::after {
  background-color: indianred;
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .2s ease-out;
  width: 100%;
}

.mobile-icon-line::before {
  top: 7px;
}

.mobile-icon-line::after {
  top: -7px;
}

.mobile-menu {
  display: none;
}

.mobile-menu:checked ~ .topnav {
  display: block;
}

.mobile-menu:checked ~ .mobile-icon .mobile-icon-line {
  background: transparent;
}

.mobile-menu:checked ~ .mobile-icon .mobile-icon-line::before {
  transform: rotate(-45deg);
  top:0;
}

.mobile-menu:checked ~ .mobile-icon .mobile-icon-line::after {
  transform: rotate(45deg);
  top:0;
}

@media screen and (max-width: 720px) {

  .mobile-icon {
    display: block;
    margin-top: 15px;
    margin-bottom: 0px;
  }

  .topnav {
    display: none;
  }

  ul.top-menu li.right, ul.top-menu li {
    float: none;
  }

  .column.side, .column.main {
    width: 100%;
  }

  img.logo {
    max-with: 50%;
  }

  /* Ensure absolute positioning context for the arrow */
  ul.top-menu li { 
    position: relative; 
  }

  /* Reveal and position the toggle arrow */
  .drop-icon {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    padding: 15px 20px;
    color: white;
    cursor: pointer;
  }

  /* The checkbox hack: Open submenu when arrow is tapped */
  .drop-check:checked ~ ul.submenu {
    display: block;
  }
  
  /* Rotate the arrow when open */
  .drop-check:checked ~ .drop-icon {
    transform: rotate(180deg);
  }

  /* Mobile Submenu Styling */
  ul.submenu {
    position: static; /* Stack vertically instead of floating */
    box-shadow: none;
    /* Apply a very subtle darkening to group nested items together */
    background-color: rgba(0, 0, 0, 0.1); 
  }
  
  ul.submenu li a {
    padding-left: 30px; /* Indent sub-items so the hierarchy is obvious */
  }
}
