:root {
  --primary-color: #c72727;
  --secondary-color: #f99500;
  --light-color: #f3f3f3;
  --dark-color: #333;
  --max-width: 1100px;
}

.category {
  --sides-color: #f99500;
  --ent-color: #a66bbe;
  --holiday-color: #a84127;
  --dessert-color: #a66bbe;
  --tech-color: #009cff;
  --chinese-color:#00CC33;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', san-sarif;
  line-height: 1.5;
  background: var(--light-color);
  /* Set "method-step-counter" to 0 */
  counter-reset: method-step-counter;
}

a {
  color: #333;
  text-decoration: none;
}

ul {
  list-style: none;
}

p {
  margin: 0.5rem 0;
}

.img-100 {
  width: 100%;
}

.img-75 {
  width: 75%;
}
.img-50 {
  width: 75%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Staatliches', cursive;
  margin-bottom: 0.55rem;
  line-height: 1.3;
}

/* Utility */
.container {
  max-width: var(--max-width);
  margin: auto;
  padding: 0 2rem;
  overflow: hidden;
}

.category {
  display: inline-block;
  color: #fff;
  font-size: 0.55rem;
  text-transform: uppercase;
  padding: 0.4rem 0.6rem;
  border-radius: 15px;
  margin-bottom: 0.5rem;
}

.category-sides {
  background: var(--sides-color);
}
.category-ent {
  background: var(--ent-color);
}
.category-tech {
  background: var(--tech-color);
}
.category-holiday {
  background: var(--holiday-color);
}
.category-dessert {
  background: var(--dessert-color);
}
.category-chinese {
  background: var(--chinese-color);
}
/*Button*/

.btn {
  display: inline-block;
  border: none;
  background: var(--dark-color);
  color: #fff;
  padding: 0.5rem 1.5rem;
}

.btn-light {
  background: var(--light-color);
}
.btn-primary {
  background: var(--primary-color);
}
.btn-secondary {
  background: var(--secondary-color);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn:hover {
  opacity: 0.9;
}

/*Card*/
.card {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
}

.card img {
  border-radius: 10px;
}

/*Background*/
.bg-dark {
  background: var(--dark-color);
  color: #fff;
}

.bg-primary {
  background: var(--primary-color);
  color: #fff;
}

.bg-secondary {
  background: var(--secondary-color);
  color: #fff;
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark a,
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary a,
.bg-secondary h1,
.bg-secondary h2,
.bg-secondary h3,
.bg-secondary a {
  color: #fff;
}

/*Padding*/
.py-1 {
  padding: 1.5rem 0;
}
.py-2 {
  padding: 2rem 0;
}
.py-3 {
  padding: 3rem 0;
}
.p-1 {
  padding: 1.5rem;
}
.p-2 {
  padding: 2rem;
}
.p-3 {
  padding: 3rem;
}

.l-heading {
  font-size: 3rem;
}

/*text style*/
.bold-heavy {
  font-weight: bolder;
}

/*list*/
.list li {
  padding: 0.5rem 0;
  border-bottom: #555 dotted 1px;
  width: 90%;
}
.list li a:hover {
  color: var(--primary-color) !important;
}

/* Inner page grid container*/
.page-container {
  display: grid;
  grid-template-columns: 12fr;
  margin: 2rem 0;
  grid-gap: 1.5rem;
}

.page-container > *:first-child {
  grid-row: 1 / span 3;
}

/*Navigation*/
#main-nav {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

#main-nav .container {
  display: grid;
  grid-template-columns: 4fr 8fr;
  padding: 1rem;
  align-items: center;
}

#main-nav .logo {
  width: 180px;
}

#main-nav ul {
  justify-self: end;
  display: flex;
}

#main-nav ul li a {
  padding: 0.75rem;
  font-weight: bold;
}

#main-nav ul li a.current {
  background: var(--primary-color);
  color: #fff;
}

#main-nav ul li a:hover {
  background: var(--light-color);
  color: var(--dark-color);
}

#main-nav .social {
  justify-self: center;
}
#main-nav .social i {
  columns: #777777;
  margin: 0.5rem;
}

/*Showcase*/

#showcase {
  color: #fff;
  background: #333;
  padding: 2rem;
  position: relative;
}

/*add image to showcase*/
#showcase:before {
  content: '';
  background: url('../img/featured.jpg') no-repeat center center/cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

#showcase .showcase-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  align-items: center;
  height: 50vh;
}

/*make the text appear before image*/
#showcase .showcase-content {
  z-index: 1;
}

#showcase .showcase-content p {
  margin-bottom: 1rem;
}

/* home articles*/
#home-articles .articles-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1rem;
}

.image-side {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1rem;
  align-items: center;
  grid-column: 1 / span 2;
}

/* #home-articles .articles-container > *:first-child {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1rem;
  align-items: center;
  grid-column: 1 / span 2;
}


 #home-articles .articles-container > *:last-child{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1rem;
  align-items: center;
  grid-column: 2 / span 2;
}
 */
#article .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eee;
  padding: 0.5rem;
}

#article .meta .category {
  margin-top: 0.4rem;
}

#article h2 {
  padding-top: 1rem;
}
/* Summary */
.summary {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.summary ul {
  display: flex;
  justify-content: start;
}
.summary ul li {
  padding-right: 15px;
}

.summary i {
  padding-top: 5px;
  color: var(--primary-color);
}




/* Headers */
h1.m-heading{
  font-size: 2rem;
  margin-top: 20px;
}



/*Ingredient*/

.subheader {
  text-align: left;
  font-weight: normal;
  text-decoration: underline;
}

.ingredients {
  display: grid;
  grid-template-columns: [ingAmt] 10% [ingItem] auto;
  justify-items: start;
  row-gap: 20px;
  /* background-color: #f4f4f4; */
  color: #000;
  padding: 10px;
  margin-top: 10px;
}

.ingredients span {
  text-align: left;
}

.measurement {
  font-weight: bold;
  color: var(--primary-color);
}

/*Method using grid*/
.method {
  display: grid;
  grid-template-columns: 1fr 10fr;
  justify-items: start;
  row-gap: 10px;
  /* background-color: #f4f4f4; */
  color: #000;
  padding: 10px;
  margin-top: 10px;
}

.methodgroup {
  text-align: left;
}

.methodstep {
  margin-top: 10px;
}

.methodstep:before {
  /* Increment "my-sec-counter" by 1 */
  counter-increment: method-step-counter;
  content: counter(method-step-counter,decimal-leading-zero);
  float: left;
  /* margin-top: -5px; */
  margin-right: 14px;
  margin-bottom: 0px;
  margin-left: 0px;
  /* font-family: Georgia, Times New Roman, Times, serif; */
  font-family:'Lato', san-sarif;
  font-size: 1.5rem;
  /* font-weight: 700; */
  line-height: 1;
  text-align: left;
}

.method span {
  text-align: left;
}

.methodsection {
  background-color: lightgrey;
  border-radius: 1%;
  padding: 5px;
}

.methodrowsmaller {
  row-gap: 2px !important;
}

.methodstepwithpictureRight {
  display: grid;
  grid-template-columns: 30% auto;
  grid-template-rows: auto;
  grid-column: 1 / span 2;
  grid-gap: 0.5rem;
  box-sizing: border-box;
  align-items: start;
  margin-left: auto;
  margin-right: auto;
}

.methodstepwithpictureLeft {
  display: grid;
  grid-template-columns: 30% auto;
  grid-column: 1 / span 2;
  grid-template-rows: auto;
  grid-gap: 0.8rem;
  box-sizing: border-box;
  align-items: start;
  margin-left: auto;
  margin-right: auto;
}

.method-item {
  box-sizing: border-box;
}

.tip-list{
  list-style: disc;
  padding-left: 15px;
}
/*footer*/
#main-footer {
  background: var(--dark-color);
  color: #fff;
}

#main-footer img {
  width: 150px;
}

#main-footer a {
  color: #fff;
}

#main-footer .footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 1.5rem;
}

#main-footer .footer-container > *:last-child {
  background: #444;
  grid-column: 1 / span 4;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
}

#main-footer .footer-container input[type='email'] {
  width: 90%;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}

#main-footer .footer-container input[type='submit'] {
  width: 90%;
}

.tab-header {
  font-family: 'Staatliches', cursive;
  margin-bottom: 0.55rem;
  line-height: 1.3;
  font-size: 2em;
  margin-top: 0.55rem;
}

/* printng page css */
@media print {
  

  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
  a, a:visited { text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } /* h5bp.com/t */
  tr, img { page-break-inside: avoid; }
  img { max-width: 100% !important; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3 { page-break-after: avoid; }
  
  #foodimage,
  #main-nav,
  #main-footer {
    display: none;
  }
  .noprint {
    display: none;
 }
 .ingredients {
  display: grid;
  grid-template-columns: [ingAmt] 20% [ingItem] auto;
  justify-items: start;
  row-gap: 20px;
  /* background-color: #f4f4f4; */
  color: #000;
  padding: 10px;
  margin-top: 10px;
}
}