.section4 {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.s4_title {
  font-family: sans-serif, "Helvetica Neue", "Lucida Grande", Arial;
  font-stretch: expanded;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 40px;
  font-weight: 900;
}
.s4_title h1 {
  margin-bottom: 0;
  padding-bottom: 0;
}

.s4_hr {
  width: 50%;
  margin-top: 0;
  padding-top: 0;
}

.s4_services {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  column-gap: 50px;
  
}

.s4_service {
  display: flex;
  width: 350px;
}

.s4_img {
  width: 30px;
  margin-right: 5px;
  border: 2px solid rgb(255, 191, 0);
  border-radius: 5px;
  padding: 5px 5px 5px 5px;
}

.s4_text1 {
  padding-top: 0;
  margin-top: 0;
  margin-left: 15px;
}

.s4_text2 {
  margin-left: 15px;
  font-family: 'Times New Roman', Times, serif;
  font-size: 13px;
}
.s4_card {
  position: relative;
  width: 350px;
  height: 350px;
  color: #2e2d31;
  background: #131313;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
}

.s4_temporary_text {
  font-weight: bold;
  font-size: 24px;
  padding: 6px 12px;
  color: #f8f8f8;
}
.s4_cards {
  display: flex;
  flex-wrap: wrap;
  row-gap: 20px;
  column-gap: 20px;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 30px;
}
.s4_card_title {
  font-weight: bold;
}

.s4_card_content {
  position: absolute;
  left: 0;
  bottom: 0;
    /* edit the width to fit card */
  width: 100%;
  padding: 20px;
  background: #f2f2f2;
  border-top-left-radius: 20px;
    /* edit here to change the height of the content box */
  transform: translateY(150px);
  transition: transform .25s;
  padding-right: 10px;
}

.s4_card_content::before {
  content: '';
  position: absolute;
  top: -47px;
  right: -45px;
  width: 10px;
  height: 100px;
  transform: rotate(-100deg);
  border-radius: 50%;
  box-shadow: inset 48px 48px #f2f2f2;
}

.s4_card_title {
  color: #131313;
  line-height: 15px;
}

.s4_card_subtitle {
  display: block;
  font-size: 12px;
  padding-right: 20px;
  padding-bottom: 0;
  margin-bottom: 0;
}

.s4_card_description {
  font-size: 14px;
  opacity: 0;
  transition: opacity .5s;
  padding-right: 20px;
}

.s4_card:hover .s4_card_content {
  transform: translateY(0);
  cursor: pointer;
}

.s4_card:hover .s4_card_description {
  opacity: 1;
  transition-delay: .25s;
  cursor: pointer;
}

#card1 {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)), url('pictures/duringwork.jpeg');
  background-size: 400px;
}

#card2 {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)), url('pictures/huis/huis10.jpeg');
  background-size: 300px;
}

#card3 {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)), url('pictures/huis/huis7.jpeg');
  background-size: 300px;
}

#card4 {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)), url('pictures/huis/paint.jpeg');
  background-size: 300px;
}

#card5 {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)), url('pictures/huis/huis12.jpeg');
  background-size: 300px;
}

#card6 {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)), url('pictures/huis/huis13.jpeg');
  background-size: 300px;
}










