* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #106853;
}

.container {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.section-one,
.section-two,
.section-three,
.section-four {
  position: relative;
  width: 25%;
  height: 100%;
  transform: skew(-9deg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: all 0.5s;
}

.section-one {
  background: #fc8410;
  border-right: 5px solid #fff;
}

.section-two {
  background-color: #106853;
}

.section-three {
  background: #fc8410;
  border-left: 5px solid #fff;
}

.section-four {
  background: #5e9942;
  border-left: 5px solid #fff;
}

.section-one:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: #fc8410;
  transform: skew(9deg);
  z-index: -1;
  background-image: url("../img/lucky-holidays/bg-leaf.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left bottom;
}

.section-two:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: #106853;
  transform: skew(9deg);
  z-index: -1;
  background-image: url("../img/lucky-office/bg-leaf.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right bottom;
}

.section-three:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: #fc8410;
  transform: skew(9deg);
  z-index: -1;
  background-image: url("../img/lucky-office/bg-leaf.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right bottom;
}

.section-four:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  /* background: #106853; */
  background: #5e9942;
  transform: skew(9deg);
  z-index: -1;
  background-image: url("../img/lucky-office/bg-leaf.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right bottom;
}

.one-is-active .section-one {
  width: 50%;
}
.one-is-active .section-two,
.one-is-active .section-three {
  width: 25%;
}

.two-is-active .section-two {
  width: 50%;
}
.two-is-active .section-one,
.two-is-active .section-three {
  width: 25%;
}

.three-is-active .section-three {
  width: 50%;
}
.three-is-active .section-one,
.three-is-active .section-two {
  width: 25%;
}

.four-is-active .section-four {
  width: 50%;
}
.four-is-active .section-one,
.four-is-active .section-two {
  width: 25%;
}

.content {
  transform: skew(9deg);
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  transition: all 250ms;
}

.content img {
  margin-bottom: 30px;
  width: 120px;
}

.content .btn-general {
  min-width: 160px;
  height: 50px;
  border: 1px solid #fff;
  color: #212126;
  background: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: 10px;
  font-size: 15px;
  font-family: "Montserrat", sans-serif;
  transition: all 250ms;
}

.content .btn-general:hover {
  background: #fff;
  color: #212126;
}

.section-one .content .btn-general:hover {
  background: #106853;
  color: #fff;
  border-color: #106853;
}

.section-two .content .btn-general:hover {
  background: #fc8410;
  color: #fff;
  border-color: #fc8410;
}

.section-three .content .btn-general:hover {
  background: #106853;
  color: #fff;
  border-color: #106853;
}

.section-four .content .btn-general:hover {
  background: #fc8410;
  color: #fff;
  border-color: #fc8410;
}

.section-four img {
  height: 99px;
  width: auto;
}

/* Responsive */
@media (max-width: 767px) {
  .container {
    flex-direction: column;
  }

  .section-one,
  .section-two,
  .section-three,
  .section-four {
    width: 100% !important;
    height: 25% !important;
    transform: none;
    border: none;
  }

  .section-one::after,
  .section-two::after,
  .section-three::after,
  .section-four::after {
    display: none;
  }

  /* .section-one:before {
    content: "";
    position: absolute;
    top: calc(100% - 20px);
    left: 0;
    width: calc(100% + 20px);
    height: 40px;
    background: #fc8410;
    transform: rotate(3deg);
    z-index: 1;
  } */

  .content {
    transform: none;
  }

  .content img {
    margin-bottom: 20px;
    width: 100px;
  }

  .content .btn-general {
    min-width: 140px;
    height: 40px;
    font-size: 14px;
  }

  .one-is-active .section-one {
    height: 55%;
  }
  .one-is-active .section-two,
  .one-is-active .section-three {
    height: 22.5%;
  }

  .two-is-active .section-two {
    height: 55%;
  }
  .two-is-active .section-one,
  .two-is-active .section-three {
    height: 22.5%;
  }

  .three-is-active .section-three {
    height: 55%;
  }
  .three-is-active .section-one,
  .three-is-active .section-two {
    height: 22.5%;
  }

  .four-is-active .section-four {
    height: 55%;
  }
  .four-is-active .section-one,
  .four-is-active .section-two {
    height: 22.5%;
  }
}
