@charset "utf-8";
/* CSS Document */
body {
    font-family: 微軟正黑體, Arial;
    margin: 0 auto;
    padding: 0;
    background:url(images/bgdeco.png), #FFF;
    background-size: contain;
    overflow-x: hidden;
    animation: bgani 30s infinite linear;
}

@keyframes bgani {
    0% { background-position: 0 0; }
    100% { background-position: 0px 1000px; }
}

a {
    color: #de507d;
    text-decoration: none;
}
a:hover {
    color: #0CC;
}

.gp {
    display: inline-block;
}

/* 東立選單 */
#nav {
    min-height: 1vh;
    text-align: center;
    margin-bottom: 0;
    z-index: B6DDFE9;
    margin-top: 1em;
}

#nav a {
    color: #572A1B;
    animation: 1s linear 0s normal none infinite jello-horizontal;
    margin: 1%;
    font-size: 1.1em;
    display: inline-block;
    text-decoration: none;
}

@-webkit-keyframes jello-horizontal {
    0% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
    30% {
        -webkit-transform: scale3d(1.25, 0.75, 1);
        transform: scale3d(1.25, 0.75, 1);
    }
    40% {
        -webkit-transform: scale3d(0.75, 1.25, 1);
        transform: scale3d(0.75, 1.25, 1);
    }
    50% {
        -webkit-transform: scale3d(1.15, 0.85, 1);
        transform: scale3d(1.15, 0.85, 1);
    }
    65% {
        -webkit-transform: scale3d(0.95, 1.05, 1);
        transform: scale3d(0.95, 1.05, 1);
    }
    75% {
        -webkit-transform: scale3d(1.05, 0.95, 1);
        transform: scale3d(1.05, 0.95, 1);
    }
    100% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}
/* 東立選單結束 */

/* 主視覺 */
.vicover {
    margin: 0 auto;
    text-align: center;
}
.visual {
    width: 80%;
    display: block;
    margin: 0 auto;
}
.visual img {
    width: 100%;
    max-width: 1100px;
}
/* 主視覺結束 */

/* 各內容區塊樣式 */
.block {
    position: relative;
    width: 100%;
    margin-top: -2%;
    text-align: center;
}
h1 {
    color: #FFF;
    margin: 1em auto;
    margin-top: 1.5em;
    text-align: center;
    font-size: 40px;
}
.block3 {
    display: block;
    margin: auto;
    width: 65%;
}
.block3 h2{ font-size:2.5em; color:#FFF; text-shadow:#d44264 3px 3px 7px}
.book {
    width: 70%;
}
.regular {
    margin: 2% auto;
}

.copyright {
    display: block;
    color: #7a82bf;
    font-size: 12px;
    margin: 1% auto;
    letter-spacing: .1em;
    line-height: 2em;
    text-align: center;
}
.cover{ width:30%; max-width:350px; margin:2% auto; display:block; animation:big 0.2 }
.cover img{ width:100%; box-shadow:#444 5px 5px 10px}
.price {
    text-align: center;
    margin: 2% auto;
    color: #000;
    line-height: 2em;
}
.gift:hover{ animation:big 0.2S ease-in both;}
.cover:hover{ animation:big 0.2S ease-in both;}
.book img:hover{animation:big 0.2S ease-in both;}
button:hover{animation:big 0.2S ease-in both;}
@keyframes big {
    0% { transform: none; }
    100% { transform: scale(1.05); }
}
.bgdeco{ display:inline-block; position:fixed; animation:top infinite 60s; z-index:-99}
@keyframes top {
    0% { transform: translate(-1500px,-10px); }
    100% { transform: translate(0px,-10px); }
}
.bgdeco img{ width:3000px}

.gift {
    width: 80%;
    display: block;
    max-width: 800px;
    margin: 1% auto;
    z-index: 99;
}

.book{ width:27%; display:inline-block; vertical-align:top; margin:2%}
.book img{ width:100%; box-shadow:#333 2px 2px 10px}
button{ margin:5% 2%; font-size:16px; border-radius:0.2em; font-weight:300; color:#FFF; background:#7a82bf; cursor:pointer; border:hidden; letter-spacing:0.05em}

.ml3 {
    font-weight: 900;
    font-size: 4em;
    margin: 3% auto;
}

.logo {
    width: 100%;
    z-index: 99;
    top: 0;
    display: inline-block;
    position: absolute;
    left: 0;
}
.stitle {
    width: 100%;
    z-index: 99;
    top: -15%;
    display: inline-block;
    position: absolute;
    left: 2%;
}

p {
    line-height: 2.5em;
    margin: 0% auto;
    text-align: center;
    color: #FFF;
    font-weight: bolder;
    text-indent: 0;
    text-shadow: #d44264 1px 1px 4px, #d44264 0 0 5px, #d44264 0 0 7px;
}

p a {
    text-decoration: none;
}

@keyframes rot {
    0% { transform: rotate(0); }
    50% { transform: rotate(-2deg); }
    100% { transform: rotate(0); }
}

/* shop */

.btn {
    font-size: 1.2em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1% 2%;
    border: 2px solid #7a82bf;
    border-radius: 10em;
    background:;
    overflow: hidden;
    margin: 1% 1%;
    position: relative;
    display: inline-block;
    color: #7a82bf;
    width: 16%;
    z-index: 5;
    transition: all 0.5s;
    cursor: pointer;
}
.long{ display:block; margin:2% auto; width:300px}
.btn:hover {
    color: #FFF;
    text-shadow: #d44264 1px 1px 4px, #d44264 0px 0px 10px, #d44264 0px 0px 10px, #d44264 0px 0px 10px;
    animation: swoosh 0.4s ease-out 0.2s;
    border: 2px solid #d44264;
}

.btn:before,
.btn:after {
    content: "";
    background-color: #d44264;
    height: 100%;
    width: 100%;
    opacity: .9;
    position: absolute;
    top: 0;
    left: -100%;
    z-index: -1;
    transition: all 0.4s ease-out 0.1s;
}

.btn:after {
    opacity: 0;
    transform: scale(0.9, 0.7);
    left: 0;
    transition: all 0.3s ease-out 0s;
}

.btn:hover:before {
    left: 100%;
}

.btn:hover:after {
    opacity: .7;
    transform: scale(1);
}

@keyframes swoosh {
    0%, 100% { box-shadow: 0 0 0 0 transparent; }
    50% { box-shadow: 0 0 0 8px rgba(212,66,100, 0.5); }
}

/* shop over */

.gradient2 {
    color: #FFF;
    letter-spacing: .05em;
    line-height: 2em;
    font-size: 1.8em;
    text-align: center;
    margin:1% auto;
    font-weight: bold;
	text-shadow:#7a82bf 0 0 5px,#7a82bf 0 0 10px,#7a82bf 0 0 15px
}

 
/* 漸層效果 */
.gradient3 {
  background: linear-gradient(90deg, rgba(122,130,191, 0) 0%, rgba(122,130,191, 1) 10%, rgba(122,130,191, 1) 90%, rgba(122,130,191, 0) 100%);
  color: #FFF;
  width: 80%;
  margin: 2% auto;
  font-size: 1.2em;
  letter-spacing: 0.1em;
  font-weight: bolder;
}

/* Text shadow, line height, and font size adjustments */
.gradient4 {
  color: #7a82bf;
  font-size: 1.5em;
  letter-spacing: 0.1em;
  font-weight: bolder;
  margin: 1% auto;
  line-height: 2em;
  text-align: center;
  text-shadow: 0 0 4px #FFF, 0 0 7px #FFF, 0 0 10px #FFF, 0 0 15px #FFF;
}

.gradient4 span {
  position: relative;
  display: inline-block;
  letter-spacing: 0.05em;
  color: #FFF;
  font-size: 0.8em;
  text-shadow: 0 0 4px #d44264, 0 0 7px #d44264, 0 0 10px #d44264;
  animation: jump 1s ease infinite;
}

.gradient4 span:nth-child(2) {
  animation-delay: 0.14s;
}
.gradient4 span:nth-child(3) {
  animation-delay: 0.28s;
}
.gradient4 span:nth-child(4) {
  animation-delay: 0.42s;
}
.gradient4 span:nth-child(5) {
  animation-delay: 0.56s;
}
.gradient4 span:nth-child(6) {
  animation-delay: 0.7s;
}
.gradient4 span:nth-child(7) {
  animation-delay: 0.84s;
}

/* Glitch effect */
.glitch {
  font-size: 5em;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1.2em;
  position: relative;
  color: #FFF;
  text-shadow: 0.05em 0 0 #000, -0.03em -0.04em 0 #eb6d8e, 0.025em 0.04em 0 #d44264;
  animation: glitch 725ms infinite;
}

.glitch span {
  position: absolute;
  top: 0;
  left: 22.5%;
}

.glitch span:first-child {
  animation: glitch 500ms infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  transform: translate(-0.04em, -0.03em);
  opacity: 0.75;
}

.glitch span:last-child {
  animation: glitch 375ms infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  transform: translate(0.04em, 0.03em);
  opacity: 0.75;
}

/* Keyframes for glitch effect */
@keyframes glitch {
  0% {
    text-shadow: 0.05em 0 0 #fff000, -0.03em -0.04em 0 #000, 0.025em 0.04em 0 #d44264;
  }
  15% {
    text-shadow: 0.05em 0 0 #fff000, -0.03em -0.04em 0 #000, 0.025em 0.04em 0 #d44264;
  }
  16% {
    text-shadow: -0.05em -0.025em 0 #fff000, 0.025em 0.035em 0 #eb6d8e, -0.05em -0.05em 0 #d44264;
  }
  49% {
    text-shadow: -0.05em -0.025em 0 #000, 0.025em 0.035em 0 #eb6d8e, -0.05em -0.05em 0 #d44264;
  }
  50% {
    text-shadow: 0.05em 0.035em 0 #000, 0.03em 0 0 #eb6d8e, 0 -0.04em 0 #d44264;
  }
  99% {
    text-shadow: 0.05em 0.035em 0 #000, 0.03em 0 0 #eb6d8e, 0 -0.04em 0 #d44264;
  }
  100% {
    text-shadow: -0.05em 0 0 #000, -0.025em -0.04em 0 #eb6d8e, -0.04em -0.025em 0 #d44264;}
 }
@media (max-width:767px){
.btn{ width:50%; display:block; margin:3% auto}
.gift{ width:90%}
.block3{  width:90% }
.stitle{  top:-5%;} 
.glitch {  font-size: 3em;}
.gradient2 {font-size: 1.4em; margin-top: 2em;}
.visual{ width:100%}
}
