:root {
  --red: #ea3c51;
  --white: #ffffff;
  --grey: #f7f7f7;
  --dark-grey: #999999;
  --black: #111;
}

@font-face {
  font-family: Youngserif Regular;
  src: url(youngserif-regular.otf);
}

@font-face {
  font-family: Cooperhewitt Bold;
  src: url(cooperhewitt-bold.otf);
}

body {
  font-family: Youngserif Regular;
  font-size: 16px;
  line-height: 1.5;

  background-color: var(--white);
  color: var(--black);
}

h1 {
  font-size: 24px;
  font-weight: 700;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background-color: var(--red);
  color: var(--white);
  padding: 20px 40px 20px 40px;
  
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

nav a {
  color: var(--white);
  text-decoration: none;
  margin-left: 40px;
  transition: all 0.3s;
}

nav a:hover {
  border-bottom: 2px solid var(--white);
}

.filters {
  text-align: center;
  margin-bottom: 60px;
}

.filters a {
  color: var(--black);
  font-size: 16px;
  margin-right: 16px;
  margin-left: 16px;
}


.filters .selected {
  font-weight: 700;
  color: var(--red);
  border-bottom: 2px solid var(--red);
}

.filters li {
  display: inline;
  margin-bottom: 4px;
}

.show-filters {
  display: none;
}

.filters .show-filters {
  color: var(--black);
  margin-bottom: 8px;
}

.container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-right: 20px;
  padding-left: 20px;
}

.hero {
  background: url('hero.png');
  background-size: cover;
  background-position: center;
  padding-top: 340px;
  padding-bottom: 300px;
  color: var(--red);
}

.intro {
  text-align: center;
}

h2 {
  font-family: Cooperhewitt Bold;
  font-size: 80px;
  text-transform: uppercase;
}

h3 {
  font-family: Cooperhewitt Bold;
  font-size: 32px;
  text-transform: uppercase;
  color: var(--red);
}

h4 {
  font-family: Youngserif Regular;
  color: var(--white);
  font-size: 24px;
}

h5 {
  font-family: Cooperhewitt Bold;
  font-size: 24px;
  color: var(--red);
}

.heading {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.grey {
  background-color: var(--grey);
}

.title {
  border: 3px solid var(--red);
  padding: 12px 16px 8px 16px;
  text-align: center;
}

.about {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--grey);
  padding-bottom: 80px;
  padding-right: 200px;
  padding-left: 200px;
}

.text,
.img {
  width: 50%;
  padding: 0 40px 0 40px;
  background-color: var(--grey);
}

.text p,
.text h5 {
  margin-bottom: 16px;
  background-color: var(--grey);
}

.food .container {
  display: flex;
  flex-wrap: wrap;
  padding-right: 20px;
  padding-left: 20px;
  max-width: 1140px;
}

.product {
  width: 33.33%;
  position: relative;
}

.product img {
  padding-right: 20px;
  padding-left: 20px;
}

.food {
  margin-bottom: 60px;
}

.overlay {
  opacity: 0;
  background-color: var(--red);
  position: absolute;

  border-radius: 40px 40px 10px 40px;
  top: 0;
  left: 0;
  padding: 8px 16px 12px 16px;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product:hover .overlay {
  opacity: 1;
}

.overlay h4 {
  font-size: 20px;
  font-weight: 700;
}

.description {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 60px;
  padding-left: 20px;
  padding-right: 20px;
}

.caption {
  font-family: Cooperhewitt Bold;
  color: var(--red);
  font-size: 24px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.price {
  color: var(--dark-grey);
  margin-top: 8px;
}

footer {
  background-color: var(--red);
  color: var(--white);
  padding: 20px;
}

@media (max-width: 1100px) {
  .about {
    padding-right: 40px;
    padding-left: 40px;
  }
  .heading {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  footer img {
    margin-top: 40px;
  }
}

@media (max-width: 640px) {
  h2 {
    font-size: 48px;
  }
  .title {
    font-size: 24px;
  }
  .about {
    display: flex;
    flex-direction: column;
    padding-right: 20px;
    padding-left: 20px;
  }
  .img,
  .text {
    width: 100%;
  }
  .container {
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
  }
  .product {
    width: 100%;
    text-align: center;
  }
  .filters li,
  .show-filters {
    display: block;
  }
}

@media (max-width:540px) {
  header {
    display: flex;
    flex-direction: column;
    text-align: center;
    position: absolute;
  }
  nav {
    margin-top: 20px;
  }
  nav a {
    margin-left: 8px;
    margin-right: 8px;
  }
  .hero {
    padding-top: 200px;
    padding-bottom: 80px;
    text-align: center;
  }
  h2 {
    font-size: 28px;
  }
  h4 {
    font-size: 20px;
  }
}
