/*Hover border */
.itemhover .item-top {
  position: absolute;
  height: 1px;
  width: 0px;
  right: 0px;
  top: 0px;
  background: -webkit-linear-gradient(
    left,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet
  );
  background: -o-linear-gradient(
    left,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet
  );
  background: -moz-linear-gradient(
    left,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet
  );
  background: linear-gradient(
    to right,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet
  );
  transition: all 0.5s ease;
}
.itemhover .item-right {
  position: absolute;
  height: 0px;
  width: 1px;
  right: 0px;
  bottom: 0px;
  background: -webkit-linear-gradient(
    top,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet
  );
  background: -o-linear-gradient(
    top,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet
  );
  background: -moz-linear-gradient(
    top,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet
  );
  background: linear-gradient(
    to bottom,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet
  );
  transition: all 0.5s ease;
}
.itemhover .item-bot {
  position: absolute;
  height: 1px;
  width: 0px;
  left: 0px;
  bottom: 0px;
  background: -webkit-linear-gradient(
    right,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet
  );
  background: -o-linear-gradient(
    right,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet
  );
  background: -moz-linear-gradient(
    right,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet
  );
  background: linear-gradient(
    to left,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet
  );
  transition: all 0.5s ease;
}
.itemhover .item-left {
  position: absolute;
  height: 0px;
  width: 1px;
  left: 0px;
  top: 0px;
  background: -webkit-linear-gradient(
    bottom,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet
  );
  background: -o-linear-gradient(
    bottom,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet
  );
  background: -moz-linear-gradient(
    bottom,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet
  );
  background: linear-gradient(
    to top,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet
  );
  transition: all 0.5s ease;
}
.itemhover:hover .item-left {
  height: 100%;
  bottom: 0px;
  top: inherit;
}
.itemhover:hover .item-top {
  width: 100%;
  left: 0px;
}
.itemhover:hover .item-right {
  height: 100%;
  top: 0px;
  bottom: inherit;
}
.itemhover:hover .item-bot {
  width: 100%;
  right: 0px;
  left: inherit;
}

/*RotateY Img*/
.rotateY_img img {
  transition: 1.25s;
}

.rotateY_img:hover img {
  transform: rotateY(360deg);
  transition: 1.25s;
}

/*Hover xem thêm*/
.hover_xemthem {
  transition: 0.4s;
}

.hover_xemthem:hover {
  letter-spacing: 2px;
}

/*End hover xem thêm*/

/*Hover sáng 1*/
.hover_sang1 {
  position: relative;
  overflow: hidden;
}

.hover_sang1:before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  content: "";
  z-index: 10;
  -webkit-transition: -webkit-transform 0.6s;
  transition: transform 0.6s;
  -webkit-transform: scale3d(2.2, 1.4, 1) rotate3d(0, 0, 1, 45deg)
    translate3d(0, -120%, 0);
  transform: scale3d(2.2, 1.4, 1) rotate3d(0, 0, 1, 45deg)
    translate3d(0, -120%, 0);
}

.hover_sang1:hover:before {
  webkit-transform: scale3d(2.2, 1.4, 1) rotate3d(0, 0, 1, 45deg)
    translate3d(0, 120%, 0);
  transform: scale3d(2.2, 1.4, 1) rotate3d(0, 0, 1, 45deg)
    translate3d(0, 120%, 0);
}
/*End Hover sáng 1*/

/*Hover sáng 2*/
.hover_sang2 {
  position: relative;
  overflow: hidden;
}

.hover_sang2:before {
  position: absolute;
  top: 0;
  left: -85%;
  z-index: 10;
  display: block;
  content: "";
  width: 50%;
  height: 100%;
  background: -webkit-linear-gradient(
    left,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 100%
  );
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 100%
  );
  -webkit-transform: skewX(-25deg);
  transform: skewX(-25deg);
}

.hover_sang2:hover:before {
  transition: 1s;
  left: 100%;
}
/*End Hover sáng 2*/

/*Hover sáng 3*/
.hover_sang3 {
  position: relative;
  overflow: hidden;
  display: block;
}

.hover_sang3:before {
  content: "";
  background: rgba(255, 255, 255, 0.5);
  bottom: 0;
  left: 0;
  position: absolute;
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);
  -khtml-opacity: 1;
  -o-opacity: 1;
  -ms-opacity: 1;
  -webkit-opacity: 1;
  -moz-opacity: 1;
  opacity: 1;
  width: 0;
  height: 0;
  z-index: 3;
}

.hover_sang3:after {
  content: "";
  background: rgba(255, 255, 255, 0.5);
  top: 0;
  right: 0;
  position: absolute;
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);
  -khtml-opacity: 1;
  -o-opacity: 1;
  -ms-opacity: 1;
  -webkit-opacity: 1;
  -moz-opacity: 1;
  opacity: 1;
  width: 0;
  height: 0;
  z-index: 2;
}

.hover_sang3:hover:before,
.hover_sang3:hover:after {
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  -ms-transform: rotateY(180deg);
  -o-transform: rotateY(180deg);
  transform: rotateY(180deg);
  -webkit-transition-duration: 1.3s;
  -moz-transition-duration: 1.3s;
  -ms-transition-duration: 1.3s;
  -o-transition-duration: 1.3s;
  transition-duration: 1.3s;
  -khtml-opacity: 0;
  -o-opacity: 0;
  -ms-opacity: 0;
  -webkit-opacity: 0;
  -moz-opacity: 0;
  opacity: 0;
  height: 100%;
  width: 100%;
}
/*End Hover sáng 3*/

/*Effect banner*/
.effect-banner {
  position: relative;
}

.effect-banner .effect-banner-image {
  display: block;
}
.effect-banner .effect-banner-image:before,
.effect-banner .effect-banner-image:after {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  content: "";
  -webkit-transition: all 500ms ease;
  -moz-transition: all 500ms ease;
  -ms-transition: all 500ms ease;
  -o-transition: all 500ms ease;
  transition: all 500ms ease;
  z-index: 1;
}
.effect-banner .effect-banner-image:before {
  border-left: 1px solid #ffffff;
  border-right: 1px solid #ffffff;
  -webkit-transform: scale(1, 0);
  -moz-transform: scale(1, 0);
  -ms-transform: scale(1, 0);
  -o-transform: scale(1, 0);
  transform: scale(1, 0);
}
.effect-banner .effect-banner-image:after {
  border-top: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  -webkit-transform: scale(0, 1);
  -moz-transform: scale(0, 1);
  -ms-transform: scale(0, 1);
  -o-transform: scale(0, 1);
  transform: scale(0, 1);
}
.effect-banner:hover .effect-banner-image:before,
.effect-banner:hover .effect-banner-image:after {
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
}
/*End Effect banner*/

.logo-effect {
  position: relative;
}

.logo-effect:before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 40px;
  height: 40px;
  z-index: 999;
  animation: quaylogo1 7s infinite linear;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  border-radius: 0 5px 0 0;
}

.logo-effect:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 40px;
  z-index: 999;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  animation: quaylogo2 7s infinite linear;
  border-radius: 0 0 0 5px;
}

@keyframes quaylogo1 {
  0% {
    right: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    border-radius: 0 5px 0 0;
  }

  8.33% {
    right: 0;
    top: 0;
    width: 40px;
    height: 2px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    border-radius: 0 5px 0 0;
  }

  16.67% {
    right: calc(100% - 40px);
    top: 0;
    width: 40px;
    height: 2px;
    border-top: 2px solid #fff;
    border-right: 0;
    border-left: 2px solid #fff;
    border-radius: 5px 0 0 0;
  }

  25% {
    right: calc(100% - 40px);
    top: 0;
    width: 40px;
    height: 40px;
    border-top: 2px solid #fff;
    border-right: 0;
    border-left: 2px solid #fff;
    border-radius: 5px 0 0 0;
  }

  33.33% {
    right: calc(100% - 2px);
    top: 0;
    width: 2px;
    height: 40px;
    border-top: 2px solid #fff;
    border-right: 0;
    border-bottom: 0;
    border-left: 2px solid #fff;
    border-radius: 5px 0 0 0;
  }

  41.67% {
    right: calc(100% - 2px);
    top: calc(100% - 40px);
    width: 2px;
    height: 40px;
    border-top: 0;
    border-right: 0;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    border-radius: 0 0 0 5px;
  }

  50% {
    right: calc(100% - 40px);
    top: calc(100% - 40px);
    width: 40px;
    height: 40px;
    border-top: 0;
    border-right: 0;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    border-radius: 0 0 0 5px;
  }

  58.33% {
    right: calc(100% - 40px);
    top: calc(100% - 2px);
    width: 40px;
    height: 2px;
    border-top: 0;
    border-right: 0;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    border-radius: 0 0 0 5px;
  }

  66.67% {
    right: 0;
    top: calc(100% - 2px);
    width: 40px;
    height: 2px;
    border-top: 0;
    border-right: 2px solid #fff;
    border-left: 0;
    border-bottom: 2px solid #fff;
    border-radius: 0 0 5px 0;
  }

  75% {
    right: 0;
    top: calc(100% - 40px);
    width: 40px;
    height: 40px;
    border-top: 0;
    border-right: 2px solid #fff;
    border-left: 0;
    border-bottom: 2px solid #fff;
    border-radius: 0 0 5px 0;
  }

  83.33% {
    right: 0;
    top: calc(100% - 40px);
    width: 2px;
    height: 40px;
    border-top: 0;
    border-right: 2px solid #fff;
    border-left: 0;
    border-bottom: 2px solid #fff;
    border-radius: 0 0 5px 0;
  }

  91.67% {
    right: 0;
    top: 0;
    width: 2px;
    height: 40px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    border-left: 0;
    border-bottom: 0;
    border-radius: 0 5px 0 0;
  }

  100% {
    right: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    border-left: none;
    border-bottom: none;
    border-radius: 0 5px 0 0;
  }
}

@keyframes quaylogo2 {
  0% {
    left: 0;
    bottom: 0;
    width: 40px;
    height: 40px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    border-radius: 0 0 0 5px;
  }

  8.33% {
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    border-radius: 0 0 0 5px;
  }

  16.67% {
    left: calc(100% - 40px);
    bottom: 0;
    width: 40px;
    height: 2px;
    border-bottom: 2px solid #fff;
    border-left: 0;
    border-top: 0;
    border-right: 2px solid #fff;
    border-radius: 0 0 5px 0;
  }

  25% {
    left: calc(100% - 40px);
    bottom: 0;
    width: 40px;
    height: 40px;
    border-bottom: 2px solid #fff;
    border-left: 0;
    border-top: 0;
    border-right: 2px solid #fff;
    border-radius: 0 0 5px 0;
  }

  33.33% {
    left: calc(100% - 2px);
    bottom: 0;
    width: 2px;
    height: 40px;
    border-bottom: 2px solid #fff;
    border-left: 0;
    border-top: 0;
    border-right: 2px solid #fff;
    border-radius: 0 0 5px 0;
  }

  41.67% {
    left: calc(100% - 2px);
    bottom: calc(100% - 40px);
    width: 2px;
    height: 40px;
    border-bottom: 0;
    border-left: 0;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    border-radius: 0 5px 0 0;
  }

  50% {
    left: calc(100% - 40px);
    bottom: calc(100% - 40px);
    width: 40px;
    height: 40px;
    border-bottom: 0;
    border-left: 0;
    border-right: 2px solid #fff;
    border-top: 2px solid #fff;
    border-radius: 0 5px 0 0;
  }

  58.33% {
    left: calc(100% - 40px);
    bottom: calc(100% - 2px);
    width: 40px;
    height: 2px;
    border-bottom: 0;
    border-left: 0;
    border-right: 2px solid #fff;
    border-top: 2px solid #fff;
    border-radius: 0 5px 0 0;
  }

  66.67% {
    left: 0;
    bottom: calc(100% - 2px);
    width: 40px;
    height: 2px;
    border-bottom: 0;
    border-left: 2px solid #fff;
    border-right: 0;
    border-top: 2px solid #fff;
    border-radius: 5px 0 0 0;
  }

  75% {
    left: 0;
    bottom: calc(100% - 40px);
    width: 40px;
    height: 40px;
    border-bottom: 0;
    border-left: 2px solid #fff;
    border-right: 0;
    border-top: 2px solid #fff;
    border-radius: 5px 0 0 0;
  }

  83.33% {
    left: 0;
    bottom: calc(100% - 40px);
    width: 2px;
    height: 40px;
    border-bottom: 0;
    border-left: 2px solid #fff;
    border-right: 0;
    border-top: 2px solid #fff;
    border-radius: 5px 0 0 0;
  }

  91.67% {
    left: 0;
    bottom: 0;
    width: 2px;
    height: 40px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: 0;
    border-top: 0;
    border-radius: 0 0 0 5px;
  }

  100% {
    left: 0;
    bottom: 0;
    width: 40px;
    height: 40px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 5px;
  }
}

.animate-border {
  position: relative;
  display: block;
  width: 100px;
  height: 3px;
  background: var(--tool-color);
  overflow: hidden;
}

.animate-border:after {
  position: absolute;
  content: "";
  width: 30px;
  height: 3px;
  left: 15px;
  bottom: 0;
  border-left: 10px solid #fff;
  border-right: 10px solid #fff;
  -webkit-animation: animborder 2s linear infinite;
  animation: animborder 2s linear infinite;
}

@-webkit-keyframes animborder {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  100% {
    -webkit-transform: translateX(113px);
    transform: translateX(113px);
  }
}

@keyframes animborder {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  100% {
    -webkit-transform: translateX(113px);
    transform: translateX(113px);
  }
}



.icon-top {
    position: absolute;
    height: 1px;
    width: 0px;
    right: 0px;
    top: 0px;
    background: #E8B53B;
    transition: all 0.5s ease;
}

.icon-left {
    position: absolute;
    height: 0px;
    width: 1px;
    left: 0px;
    top: 0px;
    background: #E8B53B;
    transition: all 0.5s ease;
}

.icon-right {
    position: absolute;
    height: 0px;
    width: 1px;
    right: 0px;
    bottom: 0px;
    background: #E8B53B;
    transition: all 0.5s ease;
}

.icon-bottom {
    position: absolute;
    height: 1px;
    width: 0px;
    left: 0px;
    bottom: 0px;
    background: #E8B53B;
    transition: all 0.5s ease;
}

.icon-hover{
  position: relative;
}



.icon-hover:hover a {
    color: #E8B53B;
}
.icon-hover:hover .icon-left {
    height: 100%;
    bottom: 0px;
    top: inherit;
}

.icon-hover:hover .icon-top {
    width: 100%;
    left: 0px;
}

.icon-hover:hover .icon-right {
    height: 100%;
    top: 0px;
    bottom: inherit;
}

.icon-hover:hover .icon-bottom {
    width: 100%;
    right: 0px;
    left: inherit;
}


/* Blink */
.blink {
-webkit-animation-name: blink;
-webkit-animation-duration: 1s;
-webkit-animation-timing-function: linear;
-webkit-animation-iteration-count: infinite;
-moz-animation-name: blink;
-moz-animation-duration: 1s;
-moz-animation-timing-function: linear;
-moz-animation-iteration-count: infinite;
animation-name: blink;
animation-duration: 1s;
animation-timing-function: linear;
animation-iteration-count: infinite;
}

@keyframes shake {
10%, 90% {
  transform: translate3d(-1px, 0, 0);
}

20%, 80% {
  transform: translate3d(2px, 0, 0);
}

30%, 50%, 70% {
  transform: translate3d(-4px, 0, 0);
}

40%, 60% {
  transform: translate3d(4px, 0, 0);
}
}


.phone-vibrate {
-webkit-animation: vibrate 2s cubic-bezier(.36, .07, .19, .97) infinite;
animation: vibrate 1.5s cubic-bezier(.36, .07, .19, .97) infinite;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-perspective: 300px;
perspective: 300px;
}


@keyframes vibrate {
0%, 2%, 4%, 6%, 8%, 10%, 12%, 14%, 16%, 18% {
  -webkit-transform: translate3d(-1px, 0, 0);
          transform: translate3d(-1px, 0, 0);
}
1%, 3%, 5%, 7%, 9%, 11%, 13%, 15%, 17%, 19% {
  -webkit-transform: translate3d(1px, 0, 0);
          transform: translate3d(1px, 0, 0);
}
20%, 100% {
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
}
}

/* General Button */
button.general-button {position: relative;width: 175px;height: 45px;text-align: center;line-height: 45px;display: block;overflow: hidden;border-radius: 30px;border: 0;}

button.general-button span {position: relative;}

button.general-button > div {position: absolute;top: -80px;left: 0;width: 200px;height: 200px;background: linear-gradient(45deg, #B78634, #F1D97E, #F1D97E, #B78634);transition: 0.5s;}

button.general-button > div::after,
button.general-button > div::before {
content: '';
width: 200%;
height: 200%;
position: absolute;
}

button.general-button > div::before {border-radius: 45%;background: #BB8B39;animation: animate_general_button 5s linear infinite;}

button.general-button > div::after {border-radius: 40%;background: rgb(255 255 255 / 50%);animation: animate_general_button 10s linear infinite;}

button.general-button:hover > div {top: -130px;}

@keyframes animate_general_button {
  0% {
    transform: translate(-50%, -75%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -75%) rotate(360deg);
  }
}
/*End  General Button */