.menu-block-title {
  text-align: center;
}

.menu-block-title a {
  text-decoration: none;
}

.menu-block {
  container-type: inline-size;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.menu-block > div {
  width: 100%;
  background-color: #fef8f9;
  overflow: hidden;
  border: 1px solid #fae0e4;
  border-radius: 1rem;
}

.menu-block > div:hover {
  border: 1px solid #fbe4e8;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
}

.menu-block > div:hover h3 {
  background-color: #f87b8d;
}

.menu-block > div h3 {
  background-color: #f65970;
  color: #fcfcfc;
  margin: 0;
  text-shadow: none;
  text-align: center;
  padding: 10px;
}

.menu-block > div h3 a {
  color: #fcfcfc;
  text-decoration: none;
}

.menu-block > div ul {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
  margin: 0;
}

.menu-block > div ul li:first-child {
  padding-top: 9px;
}

.menu-block > div ul li:last-child {
  padding-bottom: 9px;
  border: 0;
}

.menu-block > div ul li {
  padding: 6px;
  text-align: center;
  border-bottom: 1px solid #fdf2f3;
  box-shadow: 0px 2px 0 #fcfcfc;
}

.menu-block > div ul li:hover {
  background-color: #fdf2f3;
}

.menu-block > div ul li:hover a {
  color: #675f5d;
}

.menu-block > div ul li a {
  color: #7d6b6a;
  text-decoration: none;
}

.menu-block > div:first-child:nth-last-child(n + 2), .menu-block > div:first-child:nth-last-child(n + 2) ~ div {
  border-radius: 0;
}

.menu-block > div:first-child:nth-last-child(n + 2):first-child, .menu-block > div:first-child:nth-last-child(n + 2) ~ div:first-child {
  border-radius: 1rem 1rem 0 0;
}

.menu-block > div:first-child:nth-last-child(n + 2):last-child, .menu-block > div:first-child:nth-last-child(n + 2) ~ div:last-child {
  border-radius: 0 0 1rem 1rem;
}

@container (min-width: 414px) {
  .menu-block {
    gap: 1.5rem;
  }
  .menu-block > div {
    width: 100%;
  }
  .menu-block > div:first-child:nth-last-child(n + 2), .menu-block > div:first-child:nth-last-child(n + 2) ~ div {
    border-radius: 1rem;
    width: calc(50% - 15px);
    margin-bottom: 1rem;
  }
  .menu-block > div:first-child:nth-last-child(n + 2):first-child, .menu-block > div:first-child:nth-last-child(n + 2) ~ div:first-child {
    border-radius: 1rem;
  }
  .menu-block > div:first-child:nth-last-child(n + 2):last-child, .menu-block > div:first-child:nth-last-child(n + 2) ~ div:last-child {
    border-radius: 1rem;
  }
}
