/*
 * CSS styling for tips section
 */
.tips {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.serving,
.storing {
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  width: 45%;
  padding: 5%;
  margin: 2%;
  height: 150px;
  border-radius: 2% 2% 2% 2%;
}

.serving {
  background-image: url("/Users/ryanwu/Documents/WashU/CSE/ifspring2024/recipe/complete/images/serving.jpeg");
}

.storing {
  background-image: url("/Users/ryanwu/Documents/WashU/CSE/ifspring2024/recipe/complete/images/storing.jpeg");
}

.serving::before,
.storing::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0, 0.75);
  backdrop-filter: blur(2px);
  z-index: 1;
  border-radius: 2% 2% 2% 2%;
}


.serving h3,
.serving p,
.storing h3,
.storing p {
  color: white;
  position: relative;
  z-index: 2;
}

@media (min-width: 950px) {
  .tips {
    display: flex;
    flex-direction: row;
  }
}

@media (max-width: 949px) {
  .tips {
    display: flex;
    flex-direction: column;
  }

  .serving,
  .storing {
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    width: 85%;
    padding: 10%;
    margin: 5%;
    height: 150px;
  }
}
