.outfit {
  margin-top: 20px;
  text-align: center;
}

.outfit h1 {
  padding: 1rem;
}

.garments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.garment {
  background-color: #fff4e4;
  border: 2px solid #4f0901;
  border-radius: 10px;
  margin: 10px;
  padding: 1rem;
  text-align: center;
  width: 25%;
}

.image-name-container {
  text-align: left;
}

.item-name {
  display: inline-block;
  margin-left: 10px;
  vertical-align: top;
}

.upper-image {
  padding: 0.6rem;
}

.item-description,
.dyeable {
  padding-bottom: 1rem;
  text-align: left;
}

/* Ingredient Styles */
.ingredient-list {
  gap: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.ingredient {
  width: calc(100% - 10px);
  border-radius: 10px;
  margin: auto 0;
}

.ingredient img {
  width: 30px;
  width: 30px;
}

h3 {
  font-weight: bold;
  font-size: 1.2rem;
}
.ingredient span {
  font-size: 1.1rem;
}

/* Media Queries */
@media screen and (max-width: 1366px) {
  .garment {
    width: 40%;
  }

  h2 {
    padding: 0.2rem;
  }

  h3 {
    font-size: 1.3rem;
    font-weight: bold;
  }
}

@media screen and (max-width: 768px) {
  .garment {
    width: 80%;
  }

  .ingredient-list {
    gap: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .image-name-container {
    display: block;
    text-align: left;
  }

  .item-description,
  .dyeable {
    padding-bottom: 1rem;
    text-align: left;
  }

  .garment-name {
    margin-top: 10px;
  }
}

@media screen and (max-width: 480px) {
  .outfit h1 {
    padding-top: 1rem;
  }

  .garment {
    padding: 0.5rem;
  }

  .ingredient-list {
    gap: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .ingredient {
    display: block;
    align-items: center;
    justify-content: center;
  }

  .ingredient img {
    width: 25px;
  }

  h3 {
    font-size: 1.2rem;
    font-weight: bold;
  }

  .ingredient span {
    font-size: 1rem;
  }
}

@media screen and (max-width: 320px) {
  h3 {
    font-size: 1rem;
    font-weight: bold;
  }

  .ingredient span {
    font-size: 0.9rem;
  }
}
