/* Styles for the hero image */
.heroindex {
  /* Photo by mnm.all on Unsplash */
  /* background: url('1.jpg') center; */
  background-size: cover;
  padding: 3rem 2rem;
  /* grid styles */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: center;
  border-bottom: solid 1px #dfdfdf;
}

.heroindex > * {
  color: black;
}

.heroindex > h1 {
  font-size: 4rem;
  padding-bottom: 1rem;
  text-align: center;
}

.heroindex > article > p {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: 'auto';
}

.heroindex > article > a {
  padding: 1rem;
  margin-top: .75rem;
  background-color: white;
  color: black;
  border-radius: 8px;
  border:solid 2px;
  font-family: 'auto';
  font-weight: 600;
}


/* breweries styles */
.breweries {
  padding: 3rem;
}

.breweries > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-gap: 5rem;
}

.breweries > ul > li {
  border: 1px solid #E2E2E2;
  border-radius: .5rem;
}

.breweries > ul > li > figure {
  max-height: 220px;
  overflow: hidden;
  border-top-left-radius: .5rem;
  border-top-right-radius: .5rem;
  position: relative;
}

.breweries > ul > li > figure > img {
  width: 100%;
}

.breweries > ul > li > figure > figcaption {
  position: absolute;
  bottom: 0;
  background-color: rgb(255 255 255);
  width: 100%;
}

.breweries > ul > li > figure > figcaption > h3 {
  color: black;
  padding: .75rem;
  font-size: 2.25rem;
}

.breweries > ul > li > p {
  font-size: 2rem;
  line-height: 1.5;
  padding: 1rem .75rem;
  color: #666666;
}

.breweries > ul > li > a {
  padding: .5rem 1rem;
  margin: .5rem;
}

:root {
  --primary: #227093;
  --secondary: #ff5252;
  --background: #eee;
  --highlight: #ffda79;
  /* Theme color */
  --theme: var(--primary);
}
*, *::before, *::after {
  box-sizing: border-box;
}

/* Core styles/functionality */
.tab input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}
.tab__content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s;
}
.tab input:checked ~ .tab__content {
  max-height: 10rem;
}

/* Visual styles */
.accordion {
  color: var(--theme);
  border: 2px solid;
  border-radius: 0.5rem;
  overflow: hidden;
}
.tab__label,
.tab__close {
  display: flex;
  color: white;
  background: var(--theme);
  cursor: pointer;
}
.tab__label {
  justify-content: space-between;
  padding: 1rem;
}
.tab__label::after {
  content: "\276F";
  width: 1em;
  height: 1em;
  text-align: center;
  transform: rotate(90deg);
  transition: all 0.35s;
}
.tab input:checked + .tab__label::after {
  transform: rotate(270deg);
}
.tab__content p {
  margin: 0;
  padding: 1rem;
}
.tab__close {
  justify-content: flex-end;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}
.accordion--radio {
  --theme: var(--secondary);
}

/* Small animation */
.tab input:not(:checked) + .tab__label:hover::after {
  -webkit-animation: bounce .5s infinite;
          animation: bounce .5s infinite;
}
@-webkit-keyframes bounce {
  25% {
    transform: rotate(90deg) translate(.25rem);
  }
  75% {
    transform: rotate(90deg) translate(-.25rem);
  }
}
@keyframes bounce {
  25% {
    transform: rotate(90deg) translate(.25rem);
  }
  75% {
    transform: rotate(90deg) translate(-.25rem);
  }
}

/* The Magic Float Center Code */
.float_center {
  float: right;

  position: relative;
  left: -50%; /* or right 50% */
  text-align: left;
}
.float_center > .child {
  position: relative;
  left: 50%;
}


/* style */

.clear {
  clear:both;
}
.title {
  text-align: center;
  color: #ffffff;
  margin: 40px 0 0 0;
	text-transform: uppercase;
}
.subtitle {
  text-align: center;
  color: #020202;
  margin: 0;
  margin-top: -46px;
  font-family: 'auto';
  font-weight: 600;
}
.note {
  text-align: center;
  color: #A00C2F;
/*   margin: 0; */
}

.float_center ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.float_center ul li {
  float: left;
  list-style-type: none;
  margin: .5em;
}
.float_center ul a {
      display: block;
    line-height: 26px;
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0.25em 1.5em;
    background-color: #ffffff;
    border-radius: 4px;
    border: solid 1px;
    font-size: 12px;
}


@media only screen and (max-width: 600px) {
  body {
   .heroindex > h1 {
    font-size: 2rem;
}
}