html{
    background-color: rgb(238, 237, 236);
}

em{
    font-weight: bold;
    font-style: normal;
}

header{
    text-align:center;
    padding-top:100px;
    padding-bottom: 100px;
    background-image: url(../images/bannanabread2.jpg);
    background-position:center;
    background-size: fill;
    border-radius: 20px;
    background-position:center;
    background-size: cover;
    max-width: 1200 rem; 
    margin: 0 auto; 
    color: rgb(249, 246, 242);
    text-shadow:0px 1px 4px rgba(0,0,0,0.5);
}


.description{
    font-size: 12pt;
    font-style: italic;
}

body {
    color: rgb(39, 35, 29);
    margin: .8 rem;
    padding: 0.8 rem;
    line-height: 1.6;
}


.underline{
    text-decoration: underline;
}

.attribution{
    line-height: .5;
    color: gray;
}

h1 {
    margin: 0;
    font-size: 80px;
    line-height: 1;

}

.container {
    max-width: 850px;
    margin: 1rem auto;
    padding: 1rem;

}

.recipe-container {
  display: flex;
  /* grid-template-columns: 1fr 2fr; */
  gap: 2rem;
  max-width: 1000px;
  width: 100% auto;
  justify-content: center; 
  margin: 0 auto; 
  flex-wrap: nowrap;  
  align-items: flex-start;
  
}


.section {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.underline {
  border-bottom: 3px solid rgb(212, 194, 172);
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
  text-align: center;
}

.content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.content p {
  margin: 0.5rem 0;
  line-height: 1.5;
}


.rounded-container {
  background-color: rgb(228, 218, 208);
  padding: 8px; 
  border-radius: 20px; 
  width: 9rem auto;
  font-size: .8rem;
  display: inline-block; 
  margin-right: 8px; 
  margin-bottom: 8px;
  text-align:center;
  justify-content: center;
  flex-wrap: wrap;  
}


.ingredients-section {
  background-color: #fafafa;
  border-radius: 12px;
  padding: 40px;
  max-width: 400px;
  min-width: 250px;
  margin: 0 auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);

}

.ingredient-list {
  list-style: none;
  padding: 0;
  margin: 0;
  
}

.ingredient-list li {
  margin: 8px 0;
}

.ingredient-list input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.2); 
  cursor: pointer;
}

.ingredient-list label {
  cursor: pointer;
  transition: color 0.3s ease;
}

.ingredient-list input[type="checkbox"]:checked + span,
.ingredient-list input[type="checkbox"]:checked ~ label {
  text-decoration: line-through;
  color: #888;
}

footer{
    text-align:center;
}


@media (max-width: 730px) {
  .recipe-container {
    flex-wrap: wrap;
  }

  .ingredients-section {
    max-width: none;
    width: 100%;
  }
}


.instructions-container{
  height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
}