/* Raleway */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap');

/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: var(--blue);
  font-size: 1em;
  line-height: 1.4;
  font-family: 'Raleway', sans-serif;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: var(--gray);
  text-shadow: none;
}

::selection {
  background: var(--gray);
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid var(--gray);
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
img {
  display: block;
  transform: translate3d(0,0,0);
}
/*
 * orange+blue, gray+blue, cream+orange, blue+cream
 */
:root {
  --orange: #ff4822;
  --blue: #072944;
  --cream: #ffeeda;
  --gray: #e1e1e1;
  --chocolate: #221715;

  --navbar-height: 4rem;
  --shadow-color: 0deg 0% 0%;
}

.page {
  padding-top: var(--navbar-height);
  background-color: var(--orange)
}

.header {
  z-index: 1;
  position: fixed;
  height: var(--navbar-height);
  background-color: var(--blue);
  left: 0;
  right: 0;
  top: 0;
  border-top: .5rem solid var(--orange);
  box-shadow:
    0px 1px 1.1px hsl(var(--shadow-color) / 0.16),
    0px 3.3px 3.7px -0.8px hsl(var(--shadow-color) / 0.14),
    0px 8.2px 9.2px -1.7px hsl(var(--shadow-color) / 0.11),
    0px 20px 22.5px -2.5px hsl(var(--shadow-color) / 0.08);
}

.container {
  max-width: 1000px;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.navbar {
  display: flex;
  justify-content: space-between;
  height: 100%;
  align-items: center;
}

.navbar-link {
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  font-weight: 400;
  align-items: center;
  justify-content: center;
  padding: 0.5em 1em;
}
.navbar-link:is(:focus, :hover) {
  background-color: var(--blue);
}

.home-link {
  padding: 1rem;
}

.menu-toggle {
  cursor: pointer;
  border: none;
  background-color: transparent;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.menu-toggle__bar {
  display: block;
  width: 1.5rem;
  height: 2px;
  margin: 3px;
  background-color: var(--cream);
}
.menu-toggle:hover .menu-toggle__bar {
  background-color: var(--orange);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:is(:first-child, :last-child) {
  position: absolute;
  margin: 0;
  width: 2rem;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child {
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-child {
  transform: rotate(-45deg);
}

.navbar__collapse {
  position: fixed;
  top: var(--navbar-height);
  right: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
}
.menu-toggle[aria-expanded="true"] + .navbar__collapse {
  background-color: var(--gray);
  opacity: 1;
  visibility: visible;
}
.navbar__links {
  position: absolute;
  left: 0;
  right: 0;
}

.menu {
  box-shadow:
    0px 1px 1.1px hsl(var(--shadow-color) / 0.16),
    0px 3.3px 3.7px -0.8px hsl(var(--shadow-color) / 0.14),
    0px 8.2px 9.2px -1.7px hsl(var(--shadow-color) / 0.11),
    0px 20px 22.5px -2.5px hsl(var(--shadow-color) / 0.08);
  padding: 1em;
  background-color: var(--orange);
  display: flex;
  flex-direction: column;
  align-items: center;
  list-style: none;
}

.menu__item {
  margin: 0.5rem;
  width: 100%;
}
.menu__item--current a {
  border: 1px solid var(--blue);
}

.carousel [role='list'] {
  padding: 0;
  list-style: none;
}
.carousel-media {
  display: flex;
}
.carousel-scroll-container {
  overflow-x: auto;
  /* Mandatory scroll snap is more consistent for a slideshow */
  scroll-snap-type: x mandatory;
  /* Smoothly snap from one focal point to another */
  scroll-behavior: smooth;
}
.carousel-item {
  /* Limit the height of each media item */
  /* height: 300px; */
  /* Full-width slides */
  width: 100%;
  /* Prevent media from shrinking */
  flex-shrink: 0;
  /* The focal point for each item is the center */
  scroll-snap-align: center;
}
.carousel-item:first-of-type {
  /* Allow users to fully scroll to the start */
  scroll-snap-align: start;
}
.carousel-item:last-of-type {
  /* Allow users to fully scroll to the end */
  scroll-snap-align: end;
}
/* Target direct descendant too in case the images have a wrapper parent */
.carousel-item > *,
.carousel-item :is(picture, figure, img) {
  /* Cover the slide */
  width: 100%;
  height: 100%;
}
.carousel-item img {
  /* Remove line height (typically done in a CSS reset) */
  display: block;
  /* Responsive width based on aspect ratio */
  width: auto;
  /* Crop and center overflowing images */
  object-fit: cover;
  object-position: center;
}

.about-bar {
  background-color: var(--blue);
  color: var(--cream);
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
  font-size: 0.9rem;
  padding: 5rem 1rem;
  border-bottom: .5rem solid var(--orange);
}
.about-bar__tagline {
  margin-bottom: 5rem;
}
.about-bar__logo {
  max-width: 20rem;
  margin: auto;
}

.food-menu {
  background-color: var(--orange);
  padding: 1rem;
}
.food-menu__page {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.footer {
  background-color: var(--chocolate);
  color: var(--cream);
  padding: 3rem 1rem 2rem 1rem;
}

.footer__address {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.footer__link {
  color: var(--cream);
  text-decoration: none;
}
.footer__alcohol-warning {
  margin-top: 2rem;
}

.alcohol-warning {
  font-size: 0.75rem;
  text-transform: lowercase;
  text-align: center;
  padding: 12px;
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  justify-content: center;
}


.alcohol-warning__text {
  flex-grow: 1;
}

.alcohol-warning__age {
  justify-content: center;
  align-items: center;
  border-radius: 100%;
  text-align: center;
  display: flex;
  height: 3rem;
  width: 3rem;
  font-size: 1.5rem;
  color: var(--orange);
  border: 2px solid var(--orange);
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
  .menu-toggle,
  .menu-toggle[aria-expanded="true"] {
    display: none;
  }

  .navbar__collapse,
  .menu-toggle[aria-expanded="true"] .navbar__collapse {
    visibility: visible;
    opacity: 1;
    position: static;
    display: block;
    height: 100%;
  }

  .menu {
    padding: 0;
    box-shadow: none;
    flex-direction: row;
    background-color: transparent;
  }

  .menu__item--current a {
    border: 1px solid var(--orange);
  }

  .navbar-link:is(:hover,:active) {
    background-color: var(--orange);
  }

  .navbar__links,
  .menu-toggle[aria-expanded="true"] .navbar__links {
    position: static;
    width: 100%;
    height: 100%;
  }

  .carousel {
    background-color: var(--orange);
  }
  .carousel-media {
    justify-content: space-evenly;
  }
  .carousel-item {
    width: auto;
    flex: 0 0 33.3333%; /* Each item takes 1/3 of container width */
    height: 600px;
  }
  .carousel-item img {
    width: 100%;
  }
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
