Brotherhood Brewery Homepage

In this example below you will see how to do a Brotherhood Brewery Homepage with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by Krago1, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright Krago1 ©

Technologies

  • HTML
  • CSS
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>Brotherhood Brewery Homepage</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <link href='https://www.google.com/fonts#UsePlace:use/Collection:Open+Sans' rel='stylesheet' type='text/css'>

  <title>Brotherhood Brewery</title>

  <!-- external CSS link -->
  <link rel="stylesheet" href="css/normalize.css">
  <link rel="stylesheet" href="css/main.css">
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
  <script src="js/main.js"></script>
  <script>
    $(document).ready(function() {
      var minAge = $('select').val();
      $('select').on('change', function() {
        minAge = $(this).val();
      });
      $('button').on('click', function() {
        sessionStorage.clear();
        $.ageCheck({
          minAge: minAge
        });
      });
      $.ageCheck({
        minAge: minAge
      });
    });
  </script>


</head>

<body>
  <div id="container">
    <div id="jump-home"></div>
    <header class="large">
      <div id = "navigation">
      <h1>
      <img id="logo" class="large" src="https://res.cloudinary.com/dy424tagz/image/upload/v1463788942/Logo_h0ntey.jpg" alt="logo"></h1>
      <ul id=nav class="large">
        <li id="nav-left1" class="large"><a href="#jump-home">Home</a></li>
        <li id="nav-left2" class="large"><a href="#jump-our-story">Our Story</a></li>
        <li id="nav-left3" class="large"><a href="#jump-beer">Beer</a></li><img id="logo2" class="small2" src="https://res.cloudinary.com/dy424tagz/image/upload/v1463788942/Logo_h0ntey.jpg" alt="logo">
        <li id="nav-right1" class="large"><a href="#jump-contact">Contact</a></li>
        <li id="nav-right2" class="large"><a href="#jump-gallery">Gallery</a></li>
        <li id="nav-right3" class="large"><a href="#jump-wine">Wine</a></li>
      </ul>
      </div>
    </header>

    <main>
      <section class="Home">
        <h2><a name = "Home">Welcome to the Brotherhood!</a></h2>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce varius augue nec metus viverra interdum. Sed in gravida lectus.</p>
        <img id="home-image" src="https://res.cloudinary.com/dppolxvop/image/upload/v1464825297/Brotherhood_wg31od.jpg" alt="home-image">
        <div id="jump-our-story"></div>
      </section>

      <section class="Our-Story">
        <h2><a name = "Our Story">Our Story</a></h2>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce varius augue nec metus viverra interdum. Sed in gravida lectus. Pellentesque habitant morbi tristique senectus et netu et malesuada fames ac turpis egestas. Mauris ut vulputate nisl.
          Maecenas quis auctor dui. Ut porta aliquam lorem, at volutpat orci commodo a. Suspendisse nunc orci, porttitor ac sapien a, rutrum porttitor odio. Phasellus faucibus tristique orci eget dictum.</p>
        <h3 class="story-header-right">The Brewers</h3>
        <div class="story-text-right"> <img id="story-image-left" src="https://res.cloudinary.com/dppolxvop/image/upload/v1464224309/IMG_5289_qvtlis.jpg" alt="brewery-image"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce varius augue nec metus viverra interdum. Sed
          in gravida lectus. Pellentesque habitant morbi tristique senectus et netu et malesuada fames ac turpis egestas. Mauris ut vulputate nisl. Maecenas quis auctor dui. Ut porta aliquam lorem, at volutpat orci commodo a. Suspendisse nunc orci, porttitor
          ac sapien a, rutrum porttitor odio. Phasellus faucibus tristique orci eget dictum.</div>
        <h3 class="story-header-left">The Name</h3>
        <div class="story-text-left">
          <img id="story-image-right" src="https://res.cloudinary.com/dppolxvop/image/upload/v1464224296/Logo_xqmspp.jpg" alt="brewer-image"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce varius augue nec metus viverra interdum. Sed in
          gravida lectus. Pellentesque habitant morbi tristique senectus et netu et malesuada fames ac turpis egestas. Mauris ut vulputate nisl. Maecenas quis auctor dui. Ut porta aliquam lorem, at volutpat orci commodo a. Suspendisse nunc orci, porttitor
          ac sapien a, rutrum porttitor odio. Phasellus faucibus tristique orci eget dictum.</div>
        <h3 class="story-header-right">The Product</h3>
        <div class="story-text-right"> <img id="story-image-left" src="https://res.cloudinary.com/dppolxvop/image/upload/v1464224281/Beer_Collection_fevnwk.jpg" alt="brewer-image"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce varius augue nec metus viverra interdum.
          Sed in gravida lectus. Pellentesque habitant morbi tristique senectus et netu et malesuada fames ac turpis egestas. Mauris ut vulputate nisl. Maecenas quis auctor dui. Ut porta aliquam lorem, at volutpat orci commodo a. Suspendisse nunc orci,
          porttitor ac sapien a, rutrum porttitor odio. Phasellus faucibus tristique orci eget dictum.</div>
      </section>
      <div id="jump-beer"></div>
      <section class="Beer">
        <h2><a name = "Beer">Beer</a></h2>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce varius augue nec metus viverra interdum. Sed in gravida lectus. Pellentesque habitant morbi tristique senectus et netu et malesuada fames ac turpis egestas. Mauris ut vulputate nisl.
          Maecenas quis auctor dui. Ut porta aliquam lorem, at volutpat orci commodo a. Suspendisse nunc orci, porttitor ac sapien a, rutrum porttitor odio. Phasellus faucibus tristique orci eget dictum.</p>
        <a href="#" id="beer-name1">Black IPA</a>
        <a href="#" id="beer-name2">Saison</a>
        <a href="#" id="beer-name3">Scottish Ale</a>
        <a href="#" id="beer-name4">Chocolate Stout</a>
        <img id="beer-image" src="https://res.cloudinary.com/dppolxvop/image/upload/v1464825297/Brotherhood_wg31od.jpg" alt="beer-image">


        <div class="beer-description-text1">
          <h3 class="beer-description-header">Black IPA</h3> <img id="beer-description-image" src="https://res.cloudinary.com/dppolxvop/image/upload/v1464224219/Sam_Abrams_mfz4hr.png" alt="beer-images"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce varius augue nec metus viverra interdum.
          Sed in gravida lectus. Pellentesque habitant morbi tristique senectus et netu et malesuada fames ac turpis egestas. Mauris ut vulputate nisl. Maecenas quis auctor dui. Ut porta aliquam lorem, at volutpat orci commodo a. Suspendisse nunc orci,
          porttitor ac sapien a, rutrum porttitor odio. Phasellus faucibus tristique orci eget dictum.
          <div class="beer-abv">ABV: 4.2% | IBUs: 10 | CALORIES: 131</div>
        </div>

        <div class="beer-description-text2">
          <h3 class="beer-description-header">Saison</h3> <img id="beer-description-image" src="https://res.cloudinary.com/dppolxvop/image/upload/v1465519593/Sais_Anos_vph2ov.jpg" alt="beer-images"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce varius augue nec metus viverra interdum.
          Sed in gravida lectus. Pellentesque habitant morbi tristique senectus et netu et malesuada fames ac turpis egestas. Mauris ut vulputate nisl. Maecenas quis auctor dui. Ut porta aliquam lorem, at volutpat orci commodo a. Suspendisse nunc orci,
          porttitor ac sapien a, rutrum porttitor odio. Phasellus faucibus tristique orci eget dictum.
          <div class="beer-abv">ABV: 4.2% | IBUs: 10 | CALORIES: 131</div>
        </div>

        <div class="beer-description-text3">
          <h3 class="beer-description-header">Scottish Ale</h3> <img id="beer-description-image" src="https://res.cloudinary.com/dppolxvop/image/upload/v1465519610/Scottish_Ale_rk0m37.jpg" alt="beer-images"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce varius augue nec metus viverra interdum.
          Sed in gravida lectus. Pellentesque habitant morbi tristique senectus et netu et malesuada fames ac turpis egestas. Mauris ut vulputate nisl. Maecenas quis auctor dui. Ut porta aliquam lorem, at volutpat orci commodo a. Suspendisse nunc orci,
          porttitor ac sapien a, rutrum porttitor odio. Phasellus faucibus tristique orci eget dictum.
          <div class="beer-abv">ABV: 4.2% | IBUs: 10 | CALORIES: 131</div>
        </div>

        <div class="beer-description-text4">
          <h3 class="beer-description-header">Chocolate Stout</h3> <img id="beer-description-image" src="https://res.cloudinary.com/dppolxvop/image/upload/v1465519554/Black_Dog_vfh8bt.jpg" alt="beer-images"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce varius augue nec metus viverra interdum.
          Sed in gravida lectus. Pellentesque habitant morbi tristique senectus et netu et malesuada fames ac turpis egestas. Mauris ut vulputate nisl. Maecenas quis auctor dui. Ut porta aliquam lorem, at volutpat orci commodo a. Suspendisse nunc orci,
          porttitor ac sapien a, rutrum porttitor odio. Phasellus faucibus tristique orci eget dictum.
          <div class="beer-abv">ABV: 4.2% | IBUs: 10 | CALORIES: 131</div>
        </div>
        <div id="jump-wine"></div>

      </section>

      <section class="Wine">
        <h2><a name = "Wine">Wine</a></h2>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce varius augue nec metus viverra interdum. Sed in gravida lectus. Pellentesque habitant morbi tristique senectus et netu et malesuada fames ac turpis egestas. Mauris ut vulputate nisl.
          Maecenas quis auctor dui. Ut porta aliquam lorem, at volutpat orci commodo a. Suspendisse nunc orci, porttitor ac sapien a, rutrum porttitor odio. Phasellus faucibus tristique orci eget dictum.</p>
        <a href="#" id="wine-name1">Merlot</a>
        <a href="#" id="wine-name2">Chardonnay</a>
        <a href="#" id="wine-name3">Pinot Noir</a>
        <a href="#" id="wine-name4">Riesling</a>
        <img id="wine-image" src="https://res.cloudinary.com/dppolxvop/image/upload/v1465517506/Wine_Collection_ipvyev.jpg" alt="wine-image">

        <div class="wine-description-text1">
          <h3 class="wine-description-header">Merlot</h3> <img id="wine-description-image" src="https://res.cloudinary.com/dppolxvop/image/upload/v1464224234/Wine_ovgvgm.jpg" alt="wine-images"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce varius augue nec metus viverra interdum. Sed
          in gravida lectus. Pellentesque habitant morbi tristique senectus et netu et malesuada fames ac turpis egestas. Mauris ut vulputate nisl. Maecenas quis auctor dui. Ut porta aliquam lorem, at volutpat orci commodo a. Suspendisse nunc orci, porttitor
          ac sapien a, rutrum porttitor odio. Phasellus faucibus tristique orci eget dictum.
          <div class="wine-abv">ABV: 4.2% | IBUs: 10 | CALORIES: 131</div>
        </div>

        <div class="wine-description-text2">
          <h3 class="wine-description-header">Chardonnay</h3> <img id="wine-description-image" src="https://res.cloudinary.com/dppolxvop/image/upload/v1464224234/Wine_ovgvgm.jpg" alt="wine-images"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce varius augue nec metus viverra interdum. Sed
          in gravida lectus. Pellentesque habitant morbi tristique senectus et netu et malesuada fames ac turpis egestas. Mauris ut vulputate nisl. Maecenas quis auctor dui. Ut porta aliquam lorem, at volutpat orci commodo a. Suspendisse nunc orci, porttitor
          ac sapien a, rutrum porttitor odio. Phasellus faucibus tristique orci eget dictum.
          <div class="wine-abv">ABV: 4.2% | IBUs: 10 | CALORIES: 131</div>
        </div>

        <div class="wine-description-text3">
          <h3 class="wine-description-header">Pinot Noir</h3> <img id="wine-description-image" src="https://res.cloudinary.com/dppolxvop/image/upload/v1464224234/Wine_ovgvgm.jpg" alt="wine-images"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce varius augue nec metus viverra interdum. Sed
          in gravida lectus. Pellentesque habitant morbi tristique senectus et netu et malesuada fames ac turpis egestas. Mauris ut vulputate nisl. Maecenas quis auctor dui. Ut porta aliquam lorem, at volutpat orci commodo a. Suspendisse nunc orci, porttitor
          ac sapien a, rutrum porttitor odio. Phasellus faucibus tristique orci eget dictum.
          <div class="wine-abv">ABV: 4.2% | IBUs: 10 | CALORIES: 131</div>
        </div>

        <div class="wine-description-text4">
          <h3 class="wine-description-header">Riesling</h3> <img id="wine-description-image" src="https://res.cloudinary.com/dppolxvop/image/upload/v1464224234/Wine_ovgvgm.jpg" alt="wine-images"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce varius augue nec metus viverra interdum. Sed
          in gravida lectus. Pellentesque habitant morbi tristique senectus et netu et malesuada fames ac turpis egestas. Mauris ut vulputate nisl. Maecenas quis auctor dui. Ut porta aliquam lorem, at volutpat orci commodo a. Suspendisse nunc orci, porttitor
          ac sapien a, rutrum porttitor odio. Phasellus faucibus tristique orci eget dictum.
          <div class="wine-abv">ABV: 4.2% | IBUs: 10 | CALORIES: 131</div>
        </div>
        <div id="jump-gallery"></div>
      </section>
      <section class="Gallery">
        <h2><a name = "Gallery">Gallery</a></h2>
        <img id="gallery-image" src="https://res.cloudinary.com/dppolxvop/image/upload/v1464825215/Gallery_gpfwvr.png" alt="gallery-image">
        <div id="jump-contact"></div>
      </section>
      <section class="Contact">
        <h2><a name = "Contact">Contact</a></h2>
        <h3>Contact Information</h3><br>
        <h4>100 Main Street <br>
            New York NY 11010</h4>
        <h5>Phone: 555-555-5555 <br>
            Email: BrotherhoodBrewery@email.com</h5>
        <script class="Map" src='https://maps.googleapis.com/maps/api/js?v=3.exp'></script>
        <div style='overflow:hidden;height:220px;width:350px;float:right;'>
          <div id='gmap_canvas' style='height:220px;width:350px;'></div>
          <div><small><a href="http://embedgooglemaps.com">                 embed google maps             </a></small></div>
          <div><small><a href="https://termsandcondiitionssample.com">terms and conditions sample</a></small></div>
          <style>
            #gmap_canvas img {
              max-width: none!important;
              background: none!important
            }
          </style>
        </div>
        <script type='text/javascript'>
          function init_map() {
            var myOptions = {
              zoom: 10,
              center: new google.maps.LatLng(40.719549461270944, -73.98568525751956),
              mapTypeId: google.maps.MapTypeId.ROADMAP
            };
            map = new google.maps.Map(document.getElementById('gmap_canvas'), myOptions);
            marker = new google.maps.Marker({
              map: map,
              position: new google.maps.LatLng(40.719549461270944, -73.98568525751956)
            });
            infowindow = new google.maps.InfoWindow({
              content: '<strong>Brotherhood Brewery</strong><br>New York NY<br>'
            });
            google.maps.event.addListener(marker, 'click', function() {
              infowindow.open(map, marker);
            });
            infowindow.open(map, marker);
          }
          google.maps.event.addDomListener(window, 'load', init_map);
        </script>
      </section>
    </main>
    <footer>

      <section class="copyright">
        Drink Responsibly | &copy; Copyright 2016. Brotherhood Brewery | Follow us on Social Media:
        <a href="https://www.instagram.com">
          <image id="instagram" src="https://res.cloudinary.com/dppolxvop/image/upload/v1463942588/instagram_f7kjd0.png" alt="Instagram" </image>
        </a>
        <a href="https://www.facebook.com">
          <image id="facebook" src="https://res.cloudinary.com/dy424tagz/image/upload/v1463789176/facebook_wdodvd.png" alt="Facebook" </image>
        </a>
      </section>

    </footer>
  </div>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
  <script src="js/main.js"></script>

</body>

</html>
  
  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/Krago1/brotherhood-brewery-homepage-grZZgK */
* {
  -moz-box-sizing: border-box;
  /* Firexfox */
  -webkit-box-sizing: border-box;
  /* Safari/Chrome/iOS/Android */
  box-sizing: border-box;
  /* IE */
}

@import url(https://fonts.googleapis.com/css?family=Bree+Serif);
.ac-overlay {
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 1);
  z-index: 99998;
  opacity: 0;
  cursor: wait;
}

.ac-container {
  box-sizing: border-box;
  font-family: 'Bree Serif', serif;
  width: 360px;
  position: fixed;
  padding: 20px 20px 30px 20px;
  background: rgba(148, 106, 62, 1);
  z-index: 99999;
  opacity: 0;
  text-align: center;
  border-radius: 4px;
  box-shadow: 0px 0px 5px #000;
  font-weight: normal;
}

.ac-container h2 {
  box-sizing: border-box;
  margin: 0 0 14px 0;
  font-size: 26px;
  color: black;
  border-bottom: 1px solid #ccc;
  padding-bottom: 11px;
}

.ac-container h3 {
  box-sizing: border-box;
  color: yellow;
  margin-bottom: 5px;
  margin-top: 15px;
  font-size: 26px;
}

.ac-container p {
  box-sizing: border-box;
  margin: 0 0 20px 0;
  font-size: 14px;
  color: black;
  line-height: 20px;
}

.ac-container p strong {
  color: yellow;
}

.ac-container select,
.ac-container input {
  box-sizing: border-box;
  color: #555;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
  margin-right: 5px;
  border: 1px solid #ccc;
}

.ac-container input.day {
  box-sizing: border-box;
  width: 45px;
  height: 28px;
}

.ac-container input.year {
  box-sizing: border-box;
  width: 70px;
  height: 28px;
}

.ac-container select {
  box-sizing: border-box;
  height: 28px;
  padding-left: 4px;
}

.ac-container button {
  box-sizing: border-box;
  display: inline-block;
  margin-bottom: 0;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 4px 10px 4px 10px;
  font-size: 12px;
  line-height: 1.5;
  width: 84px;
  background: #b83f3b;
  color: #fff;
  text-shadow: 1px 1px 0 #84A51D;
}

.ac-container button:hover {
  box-sizing: border-box;
  background: #fb534e;
}

.ac-container .errors {
  box-sizing: border-box;
  margin: 0 0 20px 0;
  font-size: 12px;
  line-height: 18px;
  color: #FF1F1F;
}

.ac-container .errors ul,
.ac-container .errors li {
  box-sizing: border-box;
  padding: 0 0 3px 0;
  margin: 0 0 0 0;
  list-style: none;
}

.ac-container .errors li span {
  box-sizing: border-box;
  font-size: 9px;
  background: #ebebeb;
  border: 1px solid #ccc;
  width: 14px;
  height: 14px;
  border-radius: 7px;
  display: inline-block;
  color: #FF1F1F;
  font-weight: bold;
  text-align: center;
  margin-right: 5px;
  line-height: 13px;
  position: relative;
  top: -2px;
  text-shadow: 1px 1px 0 #fff;
  font-family: arial;
}

.ac-container .fields {
  box-sizing: border-box;
  clear: both;
  margin: 10px 0 10px 0;
}

@media (max-width: 500px) {
  .ac-container {
    box-sizing: border-box;
    width: auto;
    margin-right: 20px;
    margin-left: 1px;
  }
  .ac-container select,
  .ac-container input.day,
  .ac-container input.year {
    box-sizing: border-box;
    display: block;
    margin-bottom: 10px;
    margin-right: 0;
    width: 100%;
  }
  .ac-container button {
    box-sizing: border-box;
    display: block;
    width: 100%;
  }
}

body {
  color: #000;
  background: url(https://res.cloudinary.com/dppolxvop/image/upload/v1463940931/papier_xzi0x9.png) center 100%;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  font-family: Helvetica, Arial, sans-serif;
}

#container {
  width: 100%;
  margin: auto;
  height: 500px;
}

header,
h1,
ul,
li {
  transition: all .5s linear;
}

header.large {
  width: 100%;
  display: block;
  background-color: rgba(148, 106, 62, .7);
  padding-top: 1px;
  padding-bottom: 8px;
  vertical-align: top;
  position: fixed;
  z-index: 99;
  overflow: hidden;
}

#navigation {
  width: 960px;
  padding-left: 8px;
  padding-right: 8px;
  margin: 0 auto;
}

#logo.large {
  width: 80px;
  margin-left: 45%;
  position: relative;
}

#logo.large2 {
  display: none;
}

#nav.large {
  list-style-type: none;
  margin-right: 50px;
}

#nav-left1.large {
  float: left;
}

#nav-left2.large {
  float: left;
}

#nav-left3.large {
  float: left;
}

#nav-right1.large {
  float: right;
}

#nav-right2.large {
  float: right;
}

#nav-right3.large {
  float: right;
}

header.small {
  width: 100%;
  display: block;
  background-color: rgba(148, 106, 62, 1.0);
  position: fixed;
  z-index: 99;
  overflow: hidden;
}

#logo2.small {
  width: 50px;
  display: inline-block;
}

#logo2.small2 {
  display: none;
}

#nav.small {
  list-style-type: none;
  padding-left: 5px;
  padding-right: 20px;
  padding-top: 10px;
}

#nav-left1.small {
  float: left;
}

#nav-left2.small {
  float: left;
}

#nav-left3.small {
  float: left;
  padding-right: 50px;
}

#nav-right1.small {
  float: right;
}

#nav-right2.small {
  float: right;
}

#nav-right3.small {
  float: right;
}

ul > li > a {
  text-decoration: none;
  color: #f9e42e;
  padding: 10px 20px;
  font-size: 18px;
}

ul > li > a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

header li {
  color: white;
  padding: 0 20px;
  float: left;
  font-size: 20px;
}

h2 {
  text-align: center;
  font-size: 30px;
  font-family: arial;
  font-weight: bold;
  color: #b83f3b;
}

main {
  display: block;
  width: 960px;
  padding-top: 200px;
  padding-bottom: 100px;
  padding-left: 61px;
  padding-right: 61px;
  margin: 0 auto;
  overflow: hidden;
}

.Home {
  display: block;
  padding-top: 22px;
  padding-bottom: 100px;
  padding-left: 61px;
  padding-right: 61px;
  margin: 0 auto;
  overflow: hidden;
  border-bottom: solid;
  border-bottom-width: 1px;
}

.Our-Story {
  display: block;
  padding-top: 22px;
  padding-bottom: 50px;
  padding-left: 61px;
  padding-right: 61px;
  margin: 0 auto;
  overflow: hidden;
  border-bottom: solid;
  border-bottom-width: 1px;
}

.Our-Story > p {
  padding-bottom: 30px;
  border-bottom: solid;
  border-bottom-width: 1px;
}

.Our-Story > .story-header-right {
  float: right;
  padding-right: 220px;
}

.Our-Story > .story-header-left {
  float: left;
  padding-left: 250px;
}

#story-image-left {
  float: left;
  width: 175px;
  margin-right: 40px;
}

#story-image-right {
  float: right;
  width: 100px;
  margin-left: 40px;
}

.Our-Story > .story-text-right {
  float: right;
  text-align: center;
  padding-bottom: 20px;
  padding-left: 25px;
  padding-right: 25px;
}

.Our-Story > .story-text-left {
  float: left;
  text-align: center;
  padding-bottom: 20px;
  padding-left: 25px;
  padding-right: 25px;
}

.Beer {
  display: block;
  padding-top: 22px;
  padding-bottom: 50px;
  padding-left: 61px;
  padding-right: 61px;
  margin: 0 auto;
  overflow: hidden;
  border-bottom: solid;
  border-bottom-width: 1px;
}

.Beer > p {
  padding-bottom: 20px;
}

#beer-image {
  padding-left: 160px;
  padding-top: 30px;
  position: relative;
  width: 550px;
  display: inline;
}

#beer-name1 {
  margin-left: 50px;
  margin-top: 50px;
  text-decoration: none;
  color: #b83f3b;
  font-size: 20px;
}

#beer-name2 {
  margin-left: 50px;
  text-decoration: none;
  color: #b83f3b;
  font-size: 20px;
}

#beer-name3 {
  margin-left: 50px;
  text-decoration: none;
  color: #b83f3b;
  font-size: 20px;
}

#beer-name4 {
  margin-left: 50px;
  text-decoration: none;
  color: #b83f3b;
  font-size: 20px;
}

.Beer > .beer-description-text1 {
  float: right;
  font-size: 15px;
  text-align: center;
  padding-bottom: 20px;
  padding-left: 25px;
  padding-right: 25px;
  display: none;
}

.Beer > .beer-description-text1 > .beer-description-header {
  padding-left: 160px;
  padding-top: 50px;
  font-size: 20px;
}

.Beer > .beer-description-text1 > .beer-abv {
  float: right;
  font-weight: bold;
  font-size: 15px;
  padding-right: 110px;
  padding-top: 30px;
}

.Beer > .beer-description-text2 {
  float: right;
  font-size: 15px;
  text-align: center;
  padding-bottom: 20px;
  padding-left: 25px;
  padding-right: 25px;
  display: none;
}

.Beer > .beer-description-text2 > .beer-description-header {
  padding-left: 160px;
  padding-top: 50px;
  font-size: 20px;
}

.Beer > .beer-description-text2 > .beer-abv {
  float: right;
  font-weight: bold;
  font-size: 15px;
  padding-right: 110px;
  padding-top: 30px;
}

.Beer > .beer-description-text3 {
  float: right;
  font-size: 15px;
  text-align: center;
  padding-bottom: 20px;
  padding-left: 25px;
  padding-right: 25px;
  display: none;
}

.Beer > .beer-description-text3 > .beer-description-header {
  padding-left: 160px;
  padding-top: 50px;
  font-size: 20px;
}

.Beer > .beer-description-text3 > .beer-abv {
  float: right;
  font-weight: bold;
  font-size: 15px;
  padding-right: 110px;
  padding-top: 30px;
}

.Beer > .beer-description-text4 {
  float: right;
  font-size: 15px;
  text-align: center;
  padding-bottom: 20px;
  padding-left: 25px;
  padding-right: 25px;
  display: none;
}

.Beer > .beer-description-text4 > .beer-description-header {
  padding-left: 160px;
  padding-top: 50px;
  font-size: 20px;
}

.Beer > .beer-description-text4 > .beer-abv {
  float: right;
  font-weight: bold;
  font-size: 15px;
  padding-right: 110px;
  padding-top: 30px;
}

#beer-description-image {
  float: left;
  width: 90px;
  margin-right: 70px;
}

.Wine {
  display: block;
  padding-top: 22px;
  padding-bottom: 50px;
  padding-left: 61px;
  padding-right: 61px;
  margin: 0 auto;
  overflow: hidden;
  border-bottom: solid;
  border-bottom-width: 1px;
}

.Wine > p {
  padding-bottom: 20px;
}

#wine-image {
  padding-left: 190px;
  padding-top: 30px;
  position: relative;
  width: 525px;
  display: inline;
}

#wine-name1 {
  margin-left: 50px;
  text-decoration: none;
  color: #b83f3b;
  font-size: 20px;
}

#wine-name2 {
  margin-left: 100px;
  text-decoration: none;
  color: #b83f3b;
  font-size: 20px;
}

#wine-name3 {
  margin-left: 100px;
  text-decoration: none;
  color: #b83f3b;
  font-size: 20px;
}

#wine-name4 {
  margin-left: 100px;
  text-decoration: none;
  color: #b83f3b;
  font-size: 20px;
}

.Wine > .wine-description-text1 {
  float: right;
  font-size: 15px;
  text-align: center;
  padding-bottom: 20px;
  padding-left: 25px;
  padding-right: 25px;
  display: none;
}

.Wine > .wine-description-text1 > .wine-description-header {
  padding-left: 160px;
  padding-top: 50px;
  font-size: 20px;
}

.Wine > .wine-description-text1 > .wine-abv {
  float: right;
  font-weight: bold;
  font-size: 15px;
  padding-right: 110px;
  padding-top: 30px;
}

.Wine > .wine-description-text2 {
  float: right;
  font-size: 15px;
  text-align: center;
  padding-bottom: 20px;
  padding-left: 25px;
  padding-right: 25px;
  display: none;
}

.Wine > .wine-description-text2 > .wine-description-header {
  padding-left: 160px;
  padding-top: 50px;
  font-size: 20px;
}

.Wine > .wine-description-text2 > .wine-abv {
  float: right;
  font-weight: bold;
  font-size: 15px;
  padding-right: 110px;
  padding-top: 30px;
}

.Wine > .wine-description-text3 {
  float: right;
  font-size: 15px;
  text-align: center;
  padding-bottom: 20px;
  padding-left: 25px;
  padding-right: 25px;
  display: none;
}

.Wine > .wine-description-text3 > .wine-description-header {
  padding-left: 160px;
  padding-top: 50px;
  font-size: 20px;
}

.Wine > .wine-description-text3 > .wine-abv {
  float: right;
  font-weight: bold;
  font-size: 15px;
  padding-right: 110px;
  padding-top: 30px;
}

.Wine > .wine-description-text4 {
  float: right;
  font-size: 15px;
  text-align: center;
  padding-bottom: 20px;
  padding-left: 25px;
  padding-right: 25px;
  display: none;
}

.Wine > .wine-description-text4 > .wine-description-header {
  padding-left: 160px;
  padding-top: 50px;
  font-size: 20px;
}

.Wine > .wine-description-text4 > .wine-abv {
  float: right;
  font-weight: bold;
  font-size: 15px;
  padding-right: 110px;
  padding-top: 30px;
}

#wine-description-image {
  float: left;
  width: 75px;
  margin-right: 70px;
}

.Gallery {
  display: block;
  padding-top: 22px;
  padding-bottom: 50px;
  padding-left: 61px;
  padding-right: 61px;
  margin: 0 auto;
  overflow: hidden;
  border-bottom: solid;
  border-bottom-width: 1px;
}

.Contact {
  display: block;
  padding-top: 22px;
  padding-bottom: 50px;
  padding-left: 61px;
  padding-right: 61px;
  margin: 0 auto;
  overflow: hidden;
}

.Contact > h3 {
  float: left;
  display: inline-block;
  font-size: 18px;
}

.Contact > h4 {
  text-align: left;
  float: left;
  padding-top: 50px;
  margin-top: 0px;
  position: absolute;
  font-size: 14px;
}

.Contact > h5 {
  text-align: left;
  float: left;
  padding-top: 20px;
  margin-top: 80px;
  position: absolute;
  font-size: 14px;
}

#home-image {
  padding-left: 7%;
  position: relative;
  width: 650px;
}

#gallery-image {
  padding-left: 7%;
  position: relative;
}

p {
  text-align: center;
  font-size: 13px;
}

.bottom-nav {
  display: inline block;
  background: yellow;
  padding: 5%;
  margin: 0 auto;
}

footer {
  display: block;
  background: #121212;
  padding-top: 30px;
  padding-bottom: 30px;
  margin: 0 auto;
}

footer .copyright {
  display: inline-block;
  padding-left: 26%;
  bottom: 15px;
  height: 30px;
  font-size: 13px;
  font-weight: 'semibold';
  top: 10px;
  color: white;
  margin: 0 auto;
}

#instagram {
  margin-left: 15px;
  width: 26px;
}

#facebook {
  margin-left: 10px;
  width: 10px;
}

/*Downloaded from https://www.codeseek.co/Krago1/brotherhood-brewery-homepage-grZZgK */
(function($) {

  $.ageCheck = function(options) {

    var settings = $.extend({
      minAge: 21,
      redirectTo: '',
      redirectOnFail: '',
      title: 'Age Verification',
      copy: 'This Website requires you to be [21] years or older to enter. Please enter your Date of Birth in the fields below in order to continue:'
    }, options);

    var _this = {
      month: '',
      day: '',
      year: '',
      age: '',
      errors: Array(),
      setValues: function() {
        var month = $('.ac-container .month').val();
        var day = $('.ac-container .day').val()
        _this.month = month;
        _this.day = day.replace(/^0+/, ''); //remove leading zero
        _this.year = $('.ac-container .year').val();
      },
      validate: function() {
        _this.errors = [];
        if (/^([0-9]|[12]\d|3[0-1])$/.test(_this.day) === false) {
          _this.errors.push('Day is invalid or empty');
        };
        if (/^(19|20)\d{2}$/.test(_this.year) === false) {
          _this.errors.push('Year is invalid or empty');
        };
        _this.clearErrors();
        _this.displayErrors();
        return _this.errors.length < 1;
      },
      clearErrors: function() {
        $('.errors').html('');
      },
      displayErrors: function() {
        var html = '<ul>';
        for (var i = 0; i < _this.errors.length; i++) {
          html += '<li><span>x</span>' + _this.errors[i] + '</li>';
        }
        html += '</ul>';
        setTimeout(function() {
          $('.ac-container .errors').html(html)
        }, 200);
      },
      reCenter: function(b) {
        b.css("top", Math.max(0, (($(window).height() - (b.outerHeight() + 150)) / 2) +
          $(window).scrollTop()) + "px");
        b.css("left", Math.max(0, (($(window).width() - b.outerWidth()) / 2) +
          $(window).scrollLeft()) + "px");
      },
      buildHtml: function() {

        var copy = settings.copy;
        var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
        var html = '';
        html += '<div class="ac-overlay"></div>';
        html += '<div class="ac-container">';
        html += '<h2>' + settings.title + '</h2>';
        html += '<p>' + copy.replace('[21]', '<strong>' + settings.minAge + '</strong>'); + '</p>';
        html += '<div class="errors"></div>';
        html += '<div class="fields"><select class="month">';
        for (var i = 0; i < months.length; i++) {
          html += '<option value="' + i + '">' + months[i] + '</option>'
        }
        html += '</select>';
        html += '<input class="day" maxlength="2" placeholder="01" />';
        html += '<input class="year" maxlength="4" placeholder="1989"/>';
        html += '<button>Submit</button></div></div>';

        $('body').append(html);

        $('.ac-overlay').animate({
          opacity: 0.8
        }, 500, function() {
          _this.reCenter($('.ac-container'));
          $('.ac-container').css({
            opacity: 1
          })
        });

        $(".ac-container .day, .ac-container .year").focus(function() {
          $(this).removeAttr('placeholder');
        });
      },
      setAge: function() {
        _this.age = '';
        var birthday = new Date(_this.year, _this.month, _this.day);
        var ageDifMs = Date.now() - birthday.getTime();
        var ageDate = new Date(ageDifMs); // miliseconds from epoch
        _this.age = Math.abs(ageDate.getUTCFullYear() - 1970);
      },
      setSessionStorage: function(key, val) {
        try {
          sessionStorage.setItem(key, val);
          return true;
        } catch (e) {
          return false;
        }
      },
      handleSuccess: function() {
        var successMsg = '<h3>Success!</h3><p>You are now being redirected back to the site...</p>';
        $('.ac-container').html(successMsg);
        setTimeout(function() {
          $('.ac-container').animate({
            'top': '-350px'
          }, 200, function() {
            $('.ac-overlay').animate({
              'opacity': '0'
            }, 500, function() {
              if (settings.redirectTo != '') {
                window.location.replace(settings.redirectTo);
              } else {
                $('.ac-overlay, .ac-container').remove();
              }
            });
          });
        }, 2000);
      },
      handleUnderAge: function() {
        var underAgeMsg = '<h3>Sorry, you are not old enough to view this site...</h3>';
        $('.ac-container').html(underAgeMsg);
        if (settings.redirectOnFail != '') {
          setTimeout(function() {
            window.location.replace(settings.redirectOnFail);
          }, 2000);
        }
      }
    }; //end _this

    if (sessionStorage.getItem("ageVerified") == "true") {
      return false;
    }

    _this.buildHtml();

    $('.ac-container button').on('click', function() {
      _this.setValues();
      if (_this.validate() === true) {
        _this.setAge();

        if (_this.age >= settings.minAge) {
          if (!_this.setSessionStorage("ageVerified", "true")) {
            console.log('sessionStorage not supported by your browser');
          };
          _this.handleSuccess();
        } else {
          _this.handleUnderAge();
        }
      }
    });

    $(window).resize(function() {
      _this.reCenter($('.ac-container'));
      setTimeout(function() {
        _this.reCenter($('.ac-container'));
      }, 500);
    });
  };
}(jQuery));

$(document).on("scroll", function() {
  if ($(document).scrollTop() > 50) {
    $("header").removeClass("large").addClass("small");
  } else {
    $("header").removeClass("small").addClass("large");
  }
});

$(document).on("scroll", function() {
  if ($(document).scrollTop() > 50) {
    $("#logo").removeClass("large").addClass("large2");
  } else {
    $("#logo").removeClass("large2").addClass("large");
  }
});

$(document).on("scroll", function() {
  if ($(document).scrollTop() > 50) {
    $("#logo2").removeClass("small2").addClass("small");
  } else {
    $("#logo2").removeClass("small").addClass("small2");
  }
});

$(document).on("scroll", function() {
  if ($(document).scrollTop() > 50) {
    $("#nav").removeClass("large").addClass("small");
  } else {
    $("#nav").removeClass("small").addClass("large");
  }
});

$(document).on("scroll", function() {
  if ($(document).scrollTop() > 50) {
    $("#nav-left1").removeClass("large").addClass("small");
  } else {
    $("#nav-left1").removeClass("small").addClass("large");
  }
});

$(document).on("scroll", function() {
  if ($(document).scrollTop() > 50) {
    $("#nav-left2").removeClass("large").addClass("small");
  } else {
    $("#nav-left2").removeClass("small").addClass("large");
  }
});

$(document).on("scroll", function() {
  if ($(document).scrollTop() > 50) {
    $("#nav-left3").removeClass("large").addClass("small");
  } else {
    $("#nav-left3").removeClass("small").addClass("large");
  }
});

$(document).on("scroll", function() {
  if ($(document).scrollTop() > 50) {
    $("#nav-right1").removeClass("large").addClass("small");
  } else {
    $("#nav-right1").removeClass("small").addClass("large");
  }
});

$(document).on("scroll", function() {
  if ($(document).scrollTop() > 50) {
    $("#nav-right2").removeClass("large").addClass("small");
  } else {
    $("#nav-right2").removeClass("small").addClass("large");
  }
});

$(document).on("scroll", function() {
  if ($(document).scrollTop() > 50) {
    $("#nav-right3").removeClass("large").addClass("small");
  } else {
    $("#nav-right3").removeClass("small").addClass("large");
  }
});

$("#beer-name1").hover(function() {
  event.preventDefault();
  if ($('.beer-description-text2').is(":visible")) {
    $(".beer-description-text2").slideToggle();
  }
  if ($('.beer-description-text3').is(":visible")) {
    $(".beer-description-text3").slideToggle();
  }
  if ($('.beer-description-text4').is(":visible")) {
    $(".beer-description-text4").slideToggle();
  }
  $(".beer-description-text1").slideToggle();
  $("#beer-image").slideToggle();
});

$("#beer-name2").hover(function() {
  event.preventDefault();
  if ($('.beer-description-text1').is(":visible")) {
    $(".beer-description-text1").slideToggle();
  }
  if ($('.beer-description-text3').is(":visible")) {
    $(".beer-description-text3").slideToggle();
  }
  if ($('.beer-description-text4').is(":visible")) {
    $(".beer-description-text4").slideToggle();
  }
  $(".beer-description-text2").slideToggle();
  $("#beer-image").slideToggle();
});

$("#beer-name3").hover(function() {
  event.preventDefault();
  if ($('.beer-description-text2').is(":visible")) {
    $(".beer-description-text2").slideToggle();
  }
  if ($('.beer-description-text1').is(":visible")) {
    $(".beer-description-text1").slideToggle();
  }
  if ($('.beer-description-text4').is(":visible")) {
    $(".beer-description-text4").slideToggle();
  }
  $(".beer-description-text3").slideToggle();
  $("#beer-image").slideToggle();
});

$("#beer-name4").hover(function() {
  event.preventDefault();
  if ($('.beer-description-text2').is(":visible")) {
    $(".beer-description-text2").slideToggle();
  }
  if ($('.beer-description-text3').is(":visible")) {
    $(".beer-description-text3").slideToggle();
  }
  if ($('.beer-description-text1').is(":visible")) {
    $(".beer-description-text1").slideToggle();
  }
  $(".beer-description-text4").slideToggle();
  $("#beer-image").slideToggle();
});

$("#wine-name1").hover(function() {
  event.preventDefault();
  if ($('.wine-description-text2').is(":visible")) {
    $(".wine-description-text2").slideToggle();
  }
  if ($('.wine-description-text3').is(":visible")) {
    $(".wine-description-text3").slideToggle();
  }
  if ($('.wine-description-text4').is(":visible")) {
    $(".wine-description-text4").slideToggle();
  }
  $(".wine-description-text1").slideToggle();
  $("#wine-image").slideToggle();
});

$("#wine-name2").hover(function() {
  event.preventDefault();
  if ($('.wine-description-text1').is(":visible")) {
    $(".wine-description-text1").slideToggle();
  }
  if ($('.wine-description-text3').is(":visible")) {
    $(".wine-description-text3").slideToggle();
  }
  if ($('.wine-description-text4').is(":visible")) {
    $(".wine-description-text4").slideToggle();
  }
  $(".wine-description-text2").slideToggle();
  $("#wine-image").slideToggle();
});

$("#wine-name3").hover(function() {
  event.preventDefault();
  if ($('.wine-description-text2').is(":visible")) {
    $(".wine-description-text2").slideToggle();
  }
  if ($('.wine-description-text1').is(":visible")) {
    $(".wine-description-text1").slideToggle();
  }
  if ($('.wine-description-text4').is(":visible")) {
    $(".wine-description-text4").slideToggle();
  }
  $(".wine-description-text3").slideToggle();
  $("#wine-image").slideToggle();
});

$("#wine-name4").hover(function() {
  event.preventDefault();
  if ($('.wine-description-text2').is(":visible")) {
    $(".wine-description-text2").slideToggle();
  }
  if ($('.wine-description-text3').is(":visible")) {
    $(".wine-description-text3").slideToggle();
  }
  if ($('.wine-description-text1').is(":visible")) {
    $(".wine-description-text1").slideToggle();
  }
  $(".wine-description-text4").slideToggle();
  $("#wine-image").slideToggle();
});

Comments