
.section1 .inner{
    width: 100%;
    height: 960px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.main{
    /* position: absolute; */
    text-align: center;
    opacity: 1;
    z-index: 5;
    display: flex;
    /* width: 100%; */
    justify-content: center;
    flex-direction: row;
}

.video{
    opacity: 0.3;
    z-index: 1;
}

.main :nth-child(2){
    z-index: 1;
    width: 100%;
    text-align: center;
    width: 300px;
}

.main :nth-child(1){
    z-index: 8;
    /* margin-top: -3px; */
    /* position: absolute; */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  h1 {
    padding: 50px 0;
    font-size: 45px;
    text-align: center;
    color: rgb(54, 56, 55);
  }
  :active, :hover, :focus {
    outline: 0!important;
    outline-offset: 0;
  }
  ::before,
  ::after {
    position: absolute;
    content: "";
  }
  
  .btn-holder {
    /* display: flex; */
    /* flex-wrap: wrap; */
    /* justify-content: center; */
    /* max-width: 937px; */
    /* margin: -66px auto -24px; */
    /* margin-top: 598px; */
    position: absolute;
    position: center;
    /* margin: -33px 9px; */
    /* padding: 30%; */
    z-index: 6;
    margin-top: 195px;
}

  .btn {
    position: relative;
    display: inline-block;
    width: auto;
    height: auto;
    background-color: transparent;
    border: none;
    cursor: pointer;
    /* margin: 51px 47px 52px; */
    min-width: 150px;
  }
    .btn span {
      position: relative;
      display: inline-block;
      font-size: 14px;
      font-weight: bold;
      letter-spacing: 10px;
      text-transform: uppercase;
      top: 0;
      left: 0;
      width: 100%;
      padding: 15px 20px;
      transition: 0.3s;
      /* margin-top: 500px; */
    }
  
  
  
  /* 3.hover-filled-slide-left */
  .btn.hover-filled-slide-left::before {
    top: 0; bottom: 0; left: 0;
    height: 100%; width: 100%;
  }
  .btn.hover-filled-slide-left:hover::before {
    width: 0%;
  }
  
  
  /*--- btn-3 ---*/
  .btn-3 {
    padding: 5px;
    margin-top: 595px;
  }
  .btn-3 span {
    color: rgb(0 0 0);
    background-color: rgb(255 255 255);
  }
  .btn-3::before,
  .btn-3::after {
    background: transparent;
    z-index: 2;
  }
  
  /* 11. hover-border-1 */
  .btn.hover-border-1::before,
  .btn.hover-border-1::after {
    width: 10%; height: 25%;
    transition: 0.35s;
  }
  .btn.hover-border-1::before {
    top: -1px;
    left: 0px;
    border-left: 2px solid rgb(255 255 255);
    border-top: 2px solid rgb(255 255 255);
  }
  .btn.hover-border-1::after {
    bottom: 0; right: 0;
    border-right: 2px solid rgb(255, 255, 255);
    border-bottom: 2px solid rgb(255, 255, 255);
  }
  .btn.hover-border-1:hover::before,
  .btn.hover-border-1:hover::after {
    width: 99%;
    height: 98%;
  }
  
  /* 12. hover-border-2 */
  .btn.hover-border-2::before,
  .btn.hover-border-2::after {
    width: 10%; height: 25%;
    transition: 0.35s;
  }
  .btn.hover-border-2::before {
    bottom: 0; left: 0;
    border-left: 1px solid rgb(28, 31, 30);
    border-bottom: 1px solid rgb(28, 31, 30);
  }
  .btn.hover-border-2::after {
    top: 0; right: 0;
    border-right: 1px solid rgb(28, 31, 30);
    border-top: 1px solid rgb(28, 31, 30);
  }
  .btn.hover-border-2:hover::before,
  .btn.hover-border-2:hover::after {
    width: 99%;
    height: 99%;
  }
  
  /* 13. hover-border-3 */
  .btn.hover-border-3::before,
  .btn.hover-border-3::after {
    width: 0%; height: 0%;
    opacity: 0;
    transition: width 0.2s 0.15s linear, height 0.15s linear, opacity 0s 0.35s;
  }
  .btn.hover-border-3::before {
    top: 0; right: 0;
    border-top: 1px solid rgb(28, 31, 30);
    border-left: 1px solid rgb(28, 31, 30);
  }
  .btn.hover-border-3::after {
    bottom: 0; left: 0;
    border-bottom: 1px solid rgb(28, 31, 30);
    border-right: 1px solid rgb(28, 31, 30);
  }
  .btn.hover-border-3:hover::before,
  .btn.hover-border-3:hover::after {
    width: 100%; height: 99%;
    opacity: 1;
    transition: width 0.2s linear, height 0.15s 0.2s linear, opacity 0s;   
  }
  
  /* 14. hover-border-4 */
  .btn.hover-border-4::before,
  .btn.hover-border-4::after {
    width: 0%; height: 0%;
    opacity: 0;
    transition: width 0.2s linear, height 0.15s 0.2s ease-out, opacity 0s 0.35s;
  }
  .btn.hover-border-4::before {
    bottom: 0; left: -1px;
    border-top: 1px solid rgb(28, 31, 30);
    border-left: 1px solid rgb(28, 31, 30);
  }
  .btn.hover-border-4::after {
    top: 0; right: 0;
    border-bottom: 1px solid rgb(28, 31, 30);
    border-right: 1px solid rgb(28, 31, 30);
  }
  .btn.hover-border-4:hover::before,
  .btn.hover-border-4:hover::after {
    width: 100%; height: 99%;
    opacity: 1;
    transition: width 0.2s 0.15s ease-out, height 0.15s ease-in, opacity 0s;   
  }
  
  /* 15. hover-border-5 */
  .btn.hover-border-5::before,
  .btn.hover-border-5::after {
    width: 0%; height: 0%;
    opacity: 0;
  }
  .btn.hover-border-5::before {
    top: 0; right: 0;
    border-top: 1px solid rgb(28, 31, 30);
    border-left: 1px solid rgb(28, 31, 30);
    transition: width 0.2s 0.5s ease-out, height 0.15s 0.35s linear, opacity 0s 0.7s;
  }
  .btn.hover-border-5::after {
    bottom: 0; left: 0px;
    border-bottom: 1px solid rgb(28, 31, 30);
    border-right: 1px solid rgb(28, 31, 30);
    transition: width 0.2s 0.15s linear, height 0.15s ease-in, opacity 0s 0.35s;
  }
  .btn.hover-border-5:hover::before,
  .btn.hover-border-5:hover::after {
    width: 100%; height: 96%;
    opacity: 1;
  }
  .btn.hover-border-5:hover::before {
    transition: width 0.2s ease-in, height 0.15s 0.2s linear, opacity 0s;   /* 1,2 */
  }
  .btn.hover-border-5:hover::after {
    transition: width 0.2s 0.35s linear, height 0.15s 0.5s ease-out, opacity 0s 0.3s; 
  } 
  
  /* 16. hover-border-6 */
  .btn.hover-border-6::before,
  .btn.hover-border-6::after {
    top: 0;
    transition: width 0.2s 0.35s ease-out;
  }
  .btn.hover-border-6::before {
    right: 50%;
  }
  .btn.hover-border-6::after {
    left: 50%;
  }
  .btn.hover-border-6:hover::before,
  .btn.hover-border-6:hover::after {
    width: 50%;
    transition: width 0.2s ease-in;   
  }
  
  .btn.hover-border-6 span::before,
  .btn.hover-border-6 span::after {
    width: 0%; height: 0%;
    background: transparent;
    opacity: 0;
    z-index: 2;
    transition: width 0.2s ease-in, height 0.15s 0.2s linear, opacity 0s 0.35s;
  }
  .btn.hover-border-6 span::before {
    top: 0; left: 0;
    border-left: 2px solid rgb(54, 56, 55);
    border-bottom: 2px solid rgb(54, 56, 55);
  }
  .btn.hover-border-6 span::after {
    top: 0; right: 0;
    border-right: 2px solid rgb(54, 56, 55);
    border-bottom: 2px solid rgb(54, 56, 55);
  }
  .btn.hover-border-6 span:hover::before,
  .btn.hover-border-6 span:hover::after {
    width: 50%; height: 96%;
    opacity: 1;
    transition: height 0.2s 0.2s ease-in, width 0.2s 0.4s linear, opacity 0s 0.2s;   
  }
  
  /* 17. hover-border-7 */
  .btn.hover-border-7::before,
  .btn.hover-border-7::after {
    bottom: 0;
    transition: width 0.2s 0.35s ease-out;
  }
  .btn.hover-border-7::before {
    right: 50%;
  }
  .btn.hover-border-7::after {
    left: 50%;
  }
  .btn.hover-border-7:hover::before,
  .btn.hover-border-7:hover::after {
    width: 50%;
    transition: width 0.2s ease-in;   
  }
  
  .btn.hover-border-7 span::before,
  .btn.hover-border-7 span::after {
    width: 0%; height: 0%;
    background: transparent;
    opacity: 0;
    z-index: 2;
    transition: width 0.2s ease-in, height 0.15s 0.2s linear, opacity 0s 0.35s;
  }
  .btn.hover-border-7 span::before {
    bottom: 0; left: 0;
    border-left: 2px solid rgb(54, 56, 55);
    border-top: 2px solid rgb(54, 56, 55);
  }
  .btn.hover-border-7 span::after {
    bottom: 0; right: 0;
    border-right: 2px solid rgb(54, 56, 55);
    border-top: 2px solid rgb(54, 56, 55);
  }
  .btn.hover-border-7 span:hover::before,
  .btn.hover-border-7 span:hover::after {
    width: 50%; height: 96%;
    opacity: 1;
    transition: height 0.2s 0.2s ease-in, width 0.2s 0.4s linear, opacity 0s 0.2s;   
  }
  
  /* 18. hover-border-8 */
  .btn.hover-border-8::before,
  .btn.hover-border-8::after {
    bottom: 0;
    width: 15%;
    transition: width 0.2s 0.35s ease-out;
  }
  .btn.hover-border-8::before {
    right: 50%;
  }
  .btn.hover-border-8::after {
    left: 50%;
  }
  .btn.hover-border-8:hover::before {
    width: 50%;
    transition: width 0.2s ease-in;   
  }
  .btn.hover-border-8:hover::after {
    width: 50%;
    transition: width 0.1s ease-in;   
  }
  
  .btn.hover-border-8 span::before,
  .btn.hover-border-8 span::after {
    width: 0%; height: 0%;
    bottom: 0;
    background: transparent;
    opacity: 0;
    z-index: 2;
  }
  .btn.hover-border-8 span::before {
    left: 0%;
    border-left: 2px solid rgb(54, 56, 55);
    transition: height 0.25s ease-in, opacity 0s 0.35s;   
  }
  .btn.hover-border-8 span:hover::before {
    height: 96%;
    opacity: 1;
    transition: height 0.25s 0.2s ease-out, opacity 0s 0.2s;   
  }
  .btn.hover-border-8 span::after {
    right: 0%;
    border-right: 2px solid rgb(54, 56, 55);
    border-top: 2px solid rgb(54, 56, 55);
    transition: width 0.2s ease-in, height 0.15s 0.2s linear, opacity 0s 0.35s;   
  }
  .btn.hover-border-8 span:hover::after {
    width: 99%; height: 96%;
    opacity: 1;
    transition: height 0.15s 0.1s linear, width 0.2s 0.25s linear, opacity 0s 0.1s;   
  }
  
  /* 19. hover-border-9 */
  .btn.hover-border-9::before,
  .btn.hover-border-9::after {
    bottom: 0;
    width: 15%;
    transition: width 0.2s 0.35s ease-out;
  }
  .btn.hover-border-9::before {
    right: 50%;
  }
  .btn.hover-border-9::after {
    left: 50%;
  }
  .btn.hover-border-9:hover::before {
    width: 50%;
    transition: width 0.1s ease-in;   
  }
  .btn.hover-border-9:hover::after {
    width: 50%;
    transition: width 0.2s ease-in;   
  }
  
  .btn.hover-border-9 span::before,
  .btn.hover-border-9 span::after {
    width: 0%; height: 0%;
    bottom: 0;
    background: transparent;
    opacity: 0;
    z-index: 2;
  }
  .btn.hover-border-9 span::after {
    right: 0%;
    border-right: 2px solid rgb(54, 56, 55);
    transition: height 0.25s ease-in, opacity 0s 0.35s;   
  }
  .btn.hover-border-9 span:hover::after {
    height: 96%;
    opacity: 1;
    transition: height 0.25s 0.2s ease-out, opacity 0s 0.2s;   
  }
  .btn.hover-border-9 span::before {
    left: 0%;
    border-left: 2px solid rgb(54, 56, 55);
    border-top: 2px solid rgb(54, 56, 55);
    transition: width 0.2s ease-in, height 0.15s 0.2s linear, opacity 0s 0.35s;   
  }
  .btn.hover-border-9 span:hover::before {
    width: 98.5%; height: 96%;
    opacity: 1;
    transition: height 0.15s 0.1s linear, width 0.2s 0.25s linear, opacity 0s 0.1s;   
  }
  
  /* 20. hover-border-10 */
  .btn.hover-border-10::before,
  .btn.hover-border-10::after {
    left: 0%;
    height: 30%;
    width: 2px;
    transition: height 0.2s 0.35s ease-out;
  }
  .btn.hover-border-10::before {
    top: 50%;
  }
  .btn.hover-border-10::after {
    bottom: 50%;
  }
  .btn.hover-border-10:hover::before {
    height: 50%;
    transition: height 0.2s ease-in;   
  }
  .btn.hover-border-10:hover::after {
    height: 50%;
    transition: height 0.1s ease-in;   
  }
  
  .btn.hover-border-10 span::before,
  .btn.hover-border-10 span::after {
    width: 0%; height: 0%;
    background: transparent;
    opacity: 0;
    z-index: 2;
  }
  .btn.hover-border-10 span::after {
    bottom: 0; left: 0%;
    border-bottom: 2px solid rgb(54, 56, 55);
    transition: width 0.25s ease-in, opacity 0s 0.35s;   
  }
  .btn.hover-border-10 span:hover::after {
    width: 100%;
    opacity: 1;
    transition: width 0.25s 0.2s ease-out, opacity 0s 0.2s;   
  }
  .btn.hover-border-10 span::before {
    top: 0%; left: 0%;
    border-top: 2px solid rgb(54, 56, 55);
    border-right: 2px solid rgb(54, 56, 55);
    transition: height 0.15s ease-in, width 0.2s 0.15s linear, opacity 0s 0.35s;   
  }
  .btn.hover-border-10 span:hover::before {
    width: 98.5%; height: 96%;
    opacity: 1;
    transition: width 0.2s 0.1s linear, height 0.15s 0.3s ease-out, opacity 0s 0.1s;   
  }

  .scroll {
    padding-top: 89px;
    margin-top: 527px;
    height: 500px;
    z-index: 55;
}
  
  .scroll span {
    position: absolute;
    top: 0;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-animation: sdb 2s infinite;
    animation: sdb 2s infinite;
    opacity: 0;
    box-sizing: border-box;
    margin-top: 870px;
  }
  a span:nth-of-type(1) {
    -webkit-animation-delay: 0s;
    animation-delay: 0s;
  }
  a span:nth-of-type(2) {
    top: 16px;
    -webkit-animation-delay: .15s;
    animation-delay: .15s;
  }
  a span:nth-of-type(3) {
    top: 32px;
    -webkit-animation-delay: .3s;
    animation-delay: .3s;
  }
  @-webkit-keyframes sdb {
    0% {
      opacity: 0;
    }
    50% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
  @keyframes sdb {
    0% {
      opacity: 0;
    }
    50% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }

/**섹션2**/

.section2 .inner{
  width: 100%;
  height: 583px;
  text-align: center;
  display: flex;
  justify-content: center;
  margin-top: 143px;
}


  .container {
    display: flex;
    width: 72%;
    padding: 10% 1%;
    box-sizing: border-box;
    height: 100%;
    z-index: 2;
  }
  


  .colorbox{
    width: 100%;
    /* color: black; */
    z-index: 1;
    position: absolute;
    height: 104px;
    margin-top: -24px;
}

  .l-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 8px;
    width: 100%;
    max-width: 1878px;
    height: 614px;
}

  @media screen and (max-width: 760px) {
    .l-container {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  .b-game-card {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-bottom: 150%;
    perspective: 1000px;
  }
  .b-game-card__cover {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-image: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
    background-size: cover;
    perspective-origin: 50% 50%;
    transform-style: preserve-3d;
    transform-origin: top center;
    will-change: transform;
    transform: skewX(0.001deg);
    transition: transform 0.35s ease-in-out;
  }
  .b-game-card__cover::after {
    display: block;
    content: "";
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(226deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.4) 35%, rgba(255, 255, 255, 0.2) 42%, rgba(255, 255, 255, 0) 60%);
    transform: translateY(-20%);
    will-change: transform;
    transition: transform 0.65s cubic-bezier(0.18, 0.9, 0.58, 1);
  }
  .b-game-card:hover .b-game-card__cover {
    transform: rotateX(7deg) translateY(-6px);
  }
  .b-game-card:hover .b-game-card__cover::after {
    transform: translateY(0%);
  }
  .b-game-card::before {
    display: block;
    content: "";
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 6px 12px 12px rgba(0, 0, 0, 0.4);
    will-change: opacity;
    transform-origin: top center;
    transform: skewX(0.001deg);
    transition: transform 0.35s ease-in-out, opacity 0.5s ease-in-out;
  }
  .b-game-card:hover::before {
    opacity: 0.6;
    transform: rotateX(7deg) translateY(-6px) scale(1.05);
  }



  /*버튼 애니메이션*/

  @import url("https://fonts.googleapis.com/css?family=Lato:100,300,400");
  @import url("https://fonts.googleapis.com/css?family=Roboto:100");
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  .header {
    text-align: center;
    font-family: "Roboto", sans-serif;
    font-size: 34px;
    margin-top: 12vh;
    /* position: absolute; */
  }
  
  .footer {
    text-align: center;
    font-family: "Lato", sans-serif;
    font-weight: 300;
    font-size: 20px;
    margin-top: 15vh;
  }
  
  .button-container-1 {
    position: absolute;
    width: 100px;
    height: 50px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 6vh;
    overflow: hidden;
    border: 1px solid;
    font-family: "Lato", sans-serif;
    font-weight: 300;
    font-size: 20px;
    transition: 0.5s;
    letter-spacing: 1px;
    border-color: rgba(255, 255, 255, 0.32);
    margin-top: 798px;
  }
  .button-container-1 button {
    width: 101%;
    height: 100%;
    background: #000;
    -webkit-mask: url("https://raw.githubusercontent.com/robin-dela/css-mask-animation/master/img/nature-sprite.png");
    mask: url("https://raw.githubusercontent.com/robin-dela/css-mask-animation/master/img/nature-sprite.png");
    -webkit-mask-size: 2300% 100%;
    mask-size: 2300% 100%;
    border: none;
    color: #fff;
    cursor: pointer;
    -webkit-animation: ani2 0.7s steps(22) forwards;
    animation: ani2 0.7s steps(22) forwards;
  }
  .button-container-1 button:hover {
    -webkit-animation: ani 0.7s steps(22) forwards;
    animation: ani 0.7s steps(22) forwards;
  }
  
  .mas {
    position: absolute;
    color: rgb(255, 255, 255);
    text-align: center;
    width: 101%;
    font-family: "Lato", sans-serif;
    font-weight: 300;
    position: absolute;
    font-size: 15px;
    margin-top: 15px;
    overflow: hidden;
    font-weight: bold;
  }
  
  @-webkit-keyframes ani {
    from {
      -webkit-mask-position: 0 0;
      mask-position: 0 0;
    }
    to {
      -webkit-mask-position: 100% 0;
      mask-position: 100% 0;
    }
  }
  @keyframes ani {
    from {
      -webkit-mask-position: 0 0;
      mask-position: 0 0;
    }
    to {
      -webkit-mask-position: 100% 0;
      mask-position: 100% 0;
    }
  }
  @-webkit-keyframes ani2 {
    from {
      -webkit-mask-position: 100% 0;
      mask-position: 100% 0;
    }
    to {
      -webkit-mask-position: 0 0;
      mask-position: 0 0;
    }
  }
  @keyframes ani2 {
    from {
      -webkit-mask-position: 100% 0;
      mask-position: 100% 0;
    }
    to {
      -webkit-mask-position: 0 0;
      mask-position: 0 0;
    }
  }
