#bonban {
  position: relative;
  overflow: hidden;
}

#bonban .bonban-link img {
  max-width: 100%;
}

#bonban .bonban-wave-top,
#bonban .bonban-wave-bottom {
  position: absolute;
  left: 0;
}

#bonban .bonban-wave-bottom {
  bottom: 0;
}

#bonban ul {
  margin-bottom: 0;
}

#bonban li:focus {
  outline: none;
}

#bonban .box-ban {
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

#bonban .bonban-item-description {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 100%;
  text-align: center;
}

#bonban p.h1 {
  position: relative;
  display: inline-block;
  z-index: 1;
  font-family: "Baloo Paaji";
  color: #32355d;
  line-height: 1.25;
}

#bonban p.h1:before {
  content: "";
  position: absolute;
  top: 70%;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 105%;
  background: #9ad8d3;
  z-index: -1;
}

#bonban p.h2 {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  color: #424679;
  line-height: 1.65;
}

#bonban p.h3 {
  font-size: 14px;
  line-height: 1.7;
  color: #7b7ea0;
}

#bonban .box-ban a:focus,
#bonban .box-ban a:active {
  outline: none;
  text-decoration: none;
}

#bonban .bonban-cover-img {
  position: relative;
}

#bonban .bonban-cover-img::before {
  content: '';
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

#bonban .bonban-video-link {
  width: 100%;
  height: 20px;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  text-align: center;
  z-index: 2;
  cursor: pointer;
}

#bonban .bonban-video-link {
  background: url('../img/play.png');
  background-size: contain;
  transition: all 0.3s ease;
  width: 130px;
  height: 130px;
  transition: all 0.3s ease;
  opacity: 0.7;
}

#bonban .bonban-cover-img:hover .bonban-video-link {
  opacity: 1;
}

#bonban .modal-dialog {
  max-width: 1200px;
}

#bonban .modal-content {
  background: transparent;
  border: none;
}

#bonban #video-element {
  width: 100%;
}

#bonban .bonban-item {
  margin-bottom: 20px;
}

#bonban .bonban-link {
  display: inline-block;
  position: relative;
  padding: 12px;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  background-size: 15px 2px, 15px 2px, 2px 15px, 2px 15px;
  background-position: left top, right bottom, left bottom, right top;
  transition: all 3s ease;
  border-radius: 8px;
}

#bonban ul .bonban-item:nth-child(3n+1) .bonban-link {
  background-image: linear-gradient(90deg, #ff6f96 50%, transparent 50%), linear-gradient(90deg, #ff6f96 50%, transparent 50%), linear-gradient(0deg, #ff6f96 50%, transparent 50%), linear-gradient(0deg, #ff6f96 50%, transparent 50%);
}

#bonban ul .bonban-item:nth-child(3n+2) .bonban-link {
  background-image: linear-gradient(90deg, #ffd075 50%, transparent 50%), linear-gradient(90deg, #ffd075 50%, transparent 50%), linear-gradient(0deg, #ffd075 50%, transparent 50%), linear-gradient(0deg, #ffd075 50%, transparent 50%);
}

#bonban ul .bonban-item:nth-child(3n+3) .bonban-link {
  background-image: linear-gradient(90deg, #7dc1ff 50%, transparent 50%), linear-gradient(90deg, #7dc1ff 50%, transparent 50%), linear-gradient(0deg, #7dc1ff 50%, transparent 50%), linear-gradient(0deg, #7dc1ff 50%, transparent 50%);
}

#bonban .bonban-link:hover {
  animation: border-dance 1s infinite linear;
}

.bon-btn-wrapper {
  display: inline-block;
}

.bonban-icon {
  position: absolute;
}

@keyframes border-dance {
  0% {
    background-position: left top, right bottom, left bottom, right top;
  }
  100% {
    background-position: left 15px top, right 15px bottom, left bottom 15px, right top 15px;
  }
}

@media screen and (min-width: 1881px) {
  #bonban {
    margin-bottom: 124px;
    padding-top: 124px;
    padding-bottom: 104px;
  }

  #bonban .bonban-wave-top,
  #bonban .bonban-wave-bottom {
    width: 100%;
  }

  #bonban p.h1 {
    font-size: 32px;
  }
  
  #bonban p.h1:before {
    height: 8px;
  }

  #bonban p.h3 {
    margin-bottom: 24px;
  } 

  #bonban .btn-secondary {
    font-size: 16px;
    padding: 14px 24px
  } 
}

@media screen and (max-width: 1880px) {
  #bonban {
    margin-bottom: calc(30px + (124 - 30) * ((100vw - 320px) / (1880 - 320)));
    padding-top: calc(64px + (124 - 64) * ((100vw - 320px) / (1880 - 320)));
    padding-bottom: calc(44px + (104 - 44) * ((100vw - 320px) / (1880 - 320)));
  }

  #bonban p.h1 {
    font-size: calc(25px + (32 - 25) * ((100vw - 320px) / (1880 - 320)));
  }
  
  #bonban p.h1:before {
    height: calc(6px + (8 - 6) * ((100vw - 320px) / (1880 - 320)));
  }

  #bonban p.h3 {
    margin-bottom: calc(12px + (24 - 12) * ((100vw - 320px) / (1880 - 320)));
  }
  
  #bonban .btn-secondary {
    font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1880 - 320)));
    padding: calc(10px + (14 - 10) * ((100vw - 320px) / (1880 - 320))) calc(20px + (24 - 20) * ((100vw - 320px) / (1880 - 320)));
  }
}

@media screen and (min-width: 768px) {
  #bonban .bonban-wave-top {
    top: 20px;
  }
}

@media screen and (max-width: 767px) {
  #bonban .bonban-wave-top {
    top: 0;
  }
}


@media screen and (min-width: 576px) {
  .bonban-icon-1 {
    left: 5%;
    top: 30%;
  }

  .bonban-icon-2 {
    right: 7%;
    top: 21%;
  }

  .bonban-icon-3 {
    bottom: 2%;
    right: 8%
  }

  .bonban-icon-4 {
    left: 10%;
    bottom: 4%;
  }
}


@media screen and (max-width: 575px) {
  #bonban .bonban-item {
    text-align: center;
  }

  .bonban-icon-1 {
    transform: scale(.7);
    left: 1%;
    top: 0%;
  }
  
  .bonban-icon-2 {
    right: 0;
    top: 1%;
    transform: scale(.7);
  }
  
  .bonban-icon-3 {
    bottom: 0%;
    right: 0;
    transform: scale(.7);
  }
  
  .bonban-icon-4 {
    left: 3%;
    bottom: -1%;
    transform: scale(.7);
  }
  
}
