/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.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: #F9B804;
  font-size: 1em;
  line-height: 1.4;
  font-family: 'Nunito', sans-serif;
}

a {
  color: #F9B804;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  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
   ========================================================================== */


    .home_page {
      margin: 0;
      padding: 0;
      background-image: url("../img/background-tile-2.png");

      /* Center and scale the image nicely */
      background-position: center;
      background-repeat: repeat;
      background-size: auto;
    }

    .shop_text, .food_and_drink_text {
      color: white;
    }


    #main_menu {
      text-align: center;
    }

    #main_menu ul {
      list-style-type: none;
      margin: 0;
      padding: 0;
    }

    #main_menu li {
      font-size: 40px; 
      font-weight:700;      
      text-transform: uppercase;
      margin: 5px;
    }

    #main_menu li a {
      text-decoration: none;
      padding: 0 5px;  
    }

    #main_menu li a, #main_menu li a:link {
      text-decoration: none;
      background-position-y: -0%;
      background-image: linear-gradient( #B52029 50%, black 50%);
      transition: background 500ms ease;
      background-size: 2px;
      background-size: auto 200%;
    }
    
    #main_menu li a:hover {
      background-position-y: 100%;
    }

    #main_content {
     border: 1px solid transparent; /* this is a weird anomaly that needs to be sorted out.... */
     max-width: 1200px;
     margin: 0 auto;
    }

    .header_area {
      display: flex; 
      flex-wrap: wrap;
      justify-content: space-between;
    }

    @media only screen and (max-width: 1180px) { 

      .header_area {
        justify-content: space-around;
      }

      .button1, .button2 {
        margin-bottom: 50px;
        width: 100%;
        max-width: 900px;
      }
      
      .button1 a img, .button2 a img {
        width: 100%; 
        height: auto;
    }

  }

@media only screen and (max-width: 1080px) { 
    #main_content {
     padding: 0 3%;
    }
} 
    #header_elements {
      margin-top: 1em;
      display: flex;
      flex-wrap: wrap; 
      justify-content: space-between;
      align-items: flex-start;
    }

 
    /* Sweep To Top */
    .sign_up_button {
      font-size: 1.1em;
      background-color: black;
      text-transform: uppercase;
      text-decoration: none;
      padding: 10px 20px;
      display: inline-block;
      vertical-align: middle;
      -webkit-transform: perspective(1px) translateZ(0);
      transform: perspective(1px) translateZ(0);
      box-shadow: 0 0 1px rgba(0, 0, 0, 0);
      position: relative;
      -webkit-transition-property: color;
      transition-property: color;
      -webkit-transition-duration: 0.3s;
      transition-duration: 0.3s;
    }
    .sign_up_button:before {
      content: "";
      position: absolute;
      z-index: -1;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background:#F9B804;
      -webkit-transform: scaleY(0);
      transform: scaleY(0);
      -webkit-transform-origin: 50% 100%;
      transform-origin: 50% 100%;
      -webkit-transition-property: transform;
      transition-property: transform;
      -webkit-transition-duration: 0.3s;
      transition-duration: 0.3s;
      -webkit-transition-timing-function: ease-out;
      transition-timing-function: ease-out;
    }
    .sign_up_button:hover, .sign_up_button:focus, .sign_up_button:active {
      color: #B52029;
    }
    .sign_up_button:hover:before, .sign_up_button:focus:before, .sign_up_button:active:before {
      -webkit-transform: scaleY(1);
      transform: scaleY(1);
    }

    .logo {
      padding: 0 0 1em 0;
      text-align: center;
    }

    .owl-carousel {
      border: 1px solid transparent; /* reinstate if required */
      width: 100%;
      height: 300px;
    }

    .carousel_image {
        float: left;
        width: 100%;
        height: 100%;
    }

    .carousel_text {
        color: white;
        background-color: rgba(255, 100, 0, 0.5);            
        width: 49%;
        height: 240px;        
        float: right; 
        padding: 30px 10px;
        text-align: center;
    }

    #navigation_buttons{
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        grid-gap: 20px;
        position: relative;
        z-index: 2;
        margin-top: 100px;
      /*position: absolute;
      bottom: 70px;
      z-index: 2;
      width: 1200px;*/
    }

    .navigation_button {
      /*float: left;*/
      width: 288px;
      margin-right: 16px;
      height: 100px;
      color: black;
      background-color: white;  
      justify-self: center;       
    }

    .navigation_button:last-child {
      margin-right: 0;
    }

    .navigation_button a {
        font-size: 40px; 
        text-decoration: none;

    }

    .navigation_button a img {
      width: 288px; 
      height: 191px;
    }

    /* [1] The container */
    .img-hover-zoom {
      height: 191px; /* [1.1] Set it as per your need */
      overflow: hidden; /* [1.2] Hide the overflowing of child elements */
    }

    /* [2] Transition property for smooth transformation of images */
    .img-hover-zoom img {
      transition: transform .5s ease;
    }

    /* [3] Finally, transforming the image when container gets hovered */
    .img-hover-zoom:hover img {
      transform: scale(1.1);
    }   


    footer {

    }

    /* Full screen menu code below */

  /*style the overlay menu */
  .overlay {
    position: fixed;
    background:#B52029;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s, height .35s;
    overflow: hidden;
    z-index:3;
  }
  
  .overlay.open {
    opacity: 1;
    visibility: visible;
    height: 100%;
  }

   /*style the navigation title and menu items */    
  
  .overlay nav {
    position: relative;
    height: 50%;
    top: 40%;
    transform: translateY(-50%);
    font-size: 40px;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 10px;
  }
  .overlay ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    position: relative;
    height: 100%;
  }
  .overlay ul li {
    display: block;
    position: relative;
    opacity: 0;
    margin-bottom: 12px;
  }
  .overlay ul li a {
    display: block;
    position: relative;
    color:#F9B804;
    text-decoration: none;
    overflow: hidden;
  }

/* Let’s  add some cool hover effects  */

  .overlay ul li a:after {
    content: '';
    position: absolute;
    top: 90%;
    left: 43.5%;
    width: 0%;
    transform: translateX(-50%);
    height: 3px;
    background: #FFF;
    transition: .35s;
  }
  
  .overlay ul li a:hover,
  .overlay ul li a:focus,
  .overlay ul li a:active {
    color: white;
  }
  .overlay ul li a:hover:after,
  .overlay ul li a:focus:after,
  .overlay ul li a:active:after {
    width: 100%;
    background: white;
  }

/*  let’s make this menu to have a fade in from right effect when .open class is applied.  */
.overlay.open li {
  animation: fadeInRight .5s ease forwards;
  animation-delay: .35s;
}
.overlay.open li:nth-of-type(2) {
  animation-delay: .4s;
}
.overlay.open li:nth-of-type(3) {
  animation-delay: .45s;
}
.overlay.open li:nth-of-type(4) {
  animation-delay: .50s;
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    left: 20%;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}

/* let’s make the other buttons animate on hover */
button:focus {
outline:0;
}

.open-menu,
.close-menu,
.button {
  cursor: pointer;
  transition: transform 0.30s;
}
.open-menu:hover,
.close-menu:hover,
.button:hover {
  transform: scale(1.1);
}

/*   Last thing we need to do regarding CSS is to make it responsive.. */


@media (max-width: 670px) {
  .overlay nav {
    font-size: 30px;
  }
}
@media (max-width: 550px) {
  .overlay nav {
    font-size: 20px;
  }
}


/* ==========================================================================
   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
 */

.sr-only {
  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 .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.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
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. 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 */
}

@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;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

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

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

  h2,
  h3 {
    page-break-after: avoid;
  }
}
 /*/////////////////custom styles\\\\\\\\\\\\\\\\\\\\\\\*/

.food_image, .food_title, .food_description, .food_email, .food_phone, .food_web {
  color: white;
}

.food_image {
  margin-bottom: 1em;
}

.food_title {
  font-weight: bold;
}




 /*/////////////////image grid styles\\\\\\\\\\\\\\\\\\\\\\\*/

      .image-grid{
          display: grid;
           grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
          grid-gap: 20px;
          position: relative;
          z-index: 2;
      }
      .image-grid img{
          max-width: 300px;
      }

      .image-grid_2{
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        grid-row-gap: 1em;
        position: relative;
        z-index: 2;
        margin-bottom: 2em;
    }

    .image-grid_3{
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
      grid-row-gap: 1em;
      position: relative;
      z-index: 2;
  }


.image-grid_4{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  grid-row-gap: 1em;
  position: relative;
  z-index: 2;
  margin-bottom: 2em;
}  

    .image-grid_2 img{
        max-width: 200px;
    }
      

      .image-grid .pre-order-btn{
          max-width: 200px;
          transition: transform .2s; /* Animation */
      }
      .image-grid .pre-order-btn:hover{
         transform: scale(1.05); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
      }
  /*/////////////////home page carousel small screen stuff\\\\\\\\\\\\\\\\\\\\\\\*/    
/*hide carousel*/
@media only screen and (max-width: 768px) {
    .owl-carousel{
        display: none !important;
    }
} 
.small-screen-only{
    text-align: center;
}
@media only screen and (min-width: 768px) {
    .small-screen-only{
        display: none;
    }
}