body {
    background: #fff8ee;
    font-family: 'Noto Sans SC', sans-serif;
}

p {
    line-height: 2em;
    margin-bottom: 1em;
}

.welcome-page-content, .description-page-content {
    position: relative;
    min-height: 100vh;
    background: #fff8ee;
}

.welcome-page-content {
    padding-bottom: 10vw;
}

.product-page-content {
    position: relative;
    /* min-height: 100vh; */
    background: #ffffff;
}

.product-page-content, .description-page-content {
    position: relative;
    display: none;
}

.bunting-book {
    position: relative;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

.bunting-and-book-1 {
    width: 800%;
    animation: moveSpriteSheet 1s steps(4) infinite;
}

.bunting-and-book-2 {
    width: 650%;
    animation: moveSpriteSheet 1s steps(4) infinite;
}

#ladybug1 {
    display: none;
    position: absolute;
    right: 7%;
    top: 53%;
    width: 5%;
    height: auto;
    animation: wiggle 2s steps(3) infinite;
}

#ladybug2 {
    position: absolute;
    right: 7%;
    top: 85%;
    width: 13vw;
    height: auto;
    transform: scaleX(-1);
    animation: wiggle 2s steps(3) infinite;
}

.bee, .bee-1 {
    position: absolute;
    width: 10vw;
    height: 10vw;
    overflow: hidden;
    z-index: 100
}

.bee img, .bee-1 img {
    height: 100%;
    width: 600%;
    animation: moveSpriteSheet 0.2s steps(6) infinite;
}

.bee.bee-float, .bee-1.bee-float {
    animation:
        moveSpriteSheetBg 0.2s steps(6) infinite,
        float 2s steps(6) infinite;
}

#bee1 {
    left: 60vw;
    top: 6vw;
}

#bee2 {
    left: 25vw;
    top: 35vw;
}

#bee3 {
    left: 80vw;
    top: 55vw;
}

#bee4 {
    left: 7vw;
    top: 105vw;
}

.light {
    position: absolute;
    width: 8vw;
    height: 8vw;
    overflow: hidden;
    z-index: 99;
}

.light img {
    height: 100%;
    width: 200%;
    animation: moveSpriteSheet 3s steps(2) infinite;
}

#light1 {
    right: 10vw;
    top: 10vw;
}

#light2 {
    left: 15vw;
    top: 33vw;
}

#light3 {
    right: 15vw;
    top: 135vw;
}

#light4 {
    left: 7vw;
    top: 165vw;
}

#light5 {
    right: 5vw;
    top: 5vw;
}

#light6 {
    left: 10vw;
    top: 100vw;
}

#light7 {
    right: 10vw;
    top: 130vw;
}

#light8 {
    left: 8vw;
    top: 225vw;
}

#light9 {
    right: 10vw;
    top: 235vw;
}

.welcome {
    position: relative;
    min-height: 80vh;
}

.welcome-center, .wrapper-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.welcome-center {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wrapper-center {
    position: relative;
}

.welcome img, .wrapper-center, .footer-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.welcome-cn {
    width: 70%;
}

.welcome-en {
    width: 80%;
}

.description-details {
    font-size: 3vw;
    color: #221c15;
    padding: 50px;
}

.description-details p {
    padding: 1vw;
}

.description-title-cn {
    padding-bottom: 10px;
    width: 45%;
}

.description-title-en {
    padding-bottom: 10px;
    width: 60%;
}

.chinese-details, .english-details {
    display: block;
}

.chinese-details {
    padding-top: 10%;
    padding-bottom: 5%;
}

.english-details {
    padding-top: 5%;
    padding-bottom: 10%;
}

.description-quote-cn {
    width: 70%;
}

.description-quote-en {
    width: 80%;
}

.welcome-submit {
    display: block;
    margin-top: 5%;
    width: 40vw;
    cursor: pointer;
}

.welcome-note {
    margin-top: 5%;
    margin-bottom: 5%;
}

.welcome-note p {
    font-size: 2.5vw;
    color: #643819;
    padding: 2vw 0 2vw 0;
}

.welcome .input-name {
    border: 1px solid rgba(0, 0, 0, .5);
    width: 50vw;
    padding: 2vw;
    text-align: center;
    font-size: 2.5vw;
    border-radius: calc(2vw + 1em);
    -moz-appearance: none;
    -webkit-appearance: none;
}
.welcome .input-name:focus {
    border-color: #000;
    outline:none;
}

.welcome .input-name::placeholder {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 2.5vw;
    color: rgba(0, 0, 0, .5);
}

.product-page-title img {
    padding: 10px;
    width: 80%;
}

.reel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transform-origin: 50% 50%;
    width: auto;
    height: 110vw;
}

.reel img {
    width: auto;
    height: 100%;
}

.reel .message {
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.message p {
    width: 80%;
    color: #643819;
    font-size: 4vw;
    text-align: center;
    word-wrap: break-word;
    margin: auto;
}

.message #username {
    color: #643819;
    font-weight: bold;
    font-size: 5vw;
}

#cn-description {
    text-indent: 0.6em;
}

.gap {
    padding: 2vw;
}

/* ------------ Slider CSS ------------ */
.slider {
    position: relative;
    width: 90vw;
    left: 50%;
    transform: translateX(-50%);
}

.box {
    width: 33.33vw;
}

.slide-img {
    position: relative;
    padding: 3vw;
    height: 100%;
}

.img-container {
    position: relative;
    width: 100%;
    height: 100%;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, .2);
}

.img-container img.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-sizing: border-box;
}

.img-container img.animal-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.detail-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.type {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-row-gap: 2vw;
    font-size: 2.5vw;
}

.type span.card-name {
    font-weight: bold;
}

/* ------------ Author CSS ------------ */
.wrapper-author {
    padding-top: 10%;
    /* display: flex;
    flex-direction: column; */
    display: grid;
    grid-auto-flow: row;
    justify-content: center;
    justify-items: center;
    grid-row-gap: 20px;
}

.card {
    position: relative;
    cursor: pointer;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
}

.card:hover > .front {
    transform: perspective(600px) rotateY(-180deg);
}

.card:hover > .back {
    transform: perspective(600px) rotateY(0deg);
}

.front, .back {
    width: 100%;
    height: 100%;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    position: absolute;
    transition: transform .3s linear;
}

.front img {
    width: 100%;
    height: 100%;
}

.front {
    transform: perspective(600px) rotateY(0deg);
}

.back {
    background: #d7e9c1;
    border-radius: 50%;
    transform: perspective(600px) rotateY(180deg);
}

.back-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #2c3e50;
    text-align: center;
    width: 100%;
}

.back-content span {
    font-size: 4vw;
    font-weight: bold;
}

.sm {
    margin: 2vw 0;
}

.sm a {
    display: inline-flex;
    width: 12vw;
    height: 12vw;
    justify-content: center;
    align-items: center;
    color: #2c3e50;
    font-size: 7vw;
    transition: 0.4s;
    border-radius: 50%;
    text-decoration: none;
}

.sm a:hover {
    background-color: #2c3e50;
    color: #ffffff;
}

h3 {
    font-size: 4vw;
}

.author-intro {
    width: 70vw;
    font-size: 3vw;
    text-align: justify;
}

.never-alone-quote {
    position: relative;
    width: 50vw;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 2.5rem;
    padding-bottom: 10vw;
}

/* ------------ Footer CSS ------------ */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 10vw;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.footer-logo {
    width: auto;
    height: 100%;
}

@media only screen and (max-width: 1024px) and (orientation: landscape) 
{
    .welcome-center {
        position: relative;
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
    }

    #ladybug1 {
        display: none;
    }

    #bee1 {
        left: 80vw;
        top: 20vw;
    }
    #bee2 {
        left: 42vw;
        top: 4vw;
    }

    #light1 {
        right: 10vw;
        top: 10vw;
    }
    
    #light2 {
        left: 15vw;
        top: 27vw;
    }
    
    #light3 {
        right: 13vw;
        top: 130vw;
    }
    
    #light4 {
        left: 7vw;
        top: 150vw;
    }
    
    #light5 {
        right: 5vw;
        top: 3vw;
    }
    
    #light6 {
        left: 10vw;
        top: 100vw;
    }
    
    #light7 {
        right: 10vw;
        top: 130vw;
    }
    
    #light8 {
        left: 8vw;
        top: 218vw;
    }
    
    #light9 {
        right: 10vw;
        top: 228vw;
    }

    .reel {
        height: 50vw;
    }

    .message p {
        font-size: 2vw;
    }

    .message #username {
        font-size: 3vw;
    }
}

/* For tablet. */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (min-height: 1024px) and (max-height: 1366px)
{
    .bunting-and-book-1 {
        width: 600%;
    }

    .bunting-and-book-2 {
        width: 500%;
    }

    #ladybug2 {
        right: 7%;
        top: 78%;
    }

    .bee, .bee-1 {
        width: 7.5vw;
        height: 7.5vw;
    }

    #bee1 {
        left: 80vw;
        top: 20vw;
    }

    #bee2 {
        left: 42vw;
        top: 4vw;
    }

    #bee3 {
        left: 80vw;
        top: 43vw;
    }
    
    #bee4 {
        left: 7vw;
        top: 90vw;
    }

    .light {
        width: 7vw;
        height: 7vw;
    }
    
    #light1 {
        right: 10vw;
        top: 10vw;
    }
    
    #light2 {
        left: 15vw;
        top: 28vw;
    }
    
    #light3 {
        right: 15vw;
        top: 115vw;
    }
    
    #light4 {
        left: 7vw;
        top: 150vw;
    }
    
    #light5 {
        right: 5vw;
        top: 3vw;
    }
    
    #light6 {
        left: 10vw;
        top: 100vw;
    }
    
    #light7 {
        right: 10vw;
        top: 130vw;
    }
    
    #light8 {
        left: 8vw;
        top: 196vw;
    }
    
    #light9 {
        right: 10vw;
        top: 206vw;
    }

    .welcome-cn {
        width: 60%;
    }
    
    .welcome-en {
        width: 70%;
    }

    .welcome-note p, .welcome .input-name {
        font-size: 2.3vw;
    }

    .welcome-submit {
        /*padding-top: 2vw;*/
        width: 35vw;
    }

    .wrapper-center {
        padding-bottom: 20vw;
    }

    .description-details {
        font-size: 2.6vw;
    }

    .description-title-cn {
        width: 40%;
    }
    
    .description-title-en {
        width: 50%;
    }

    .description-quote-cn {
        width: 60%;
    }
    
    .description-quote-en {
        width: 70%;
    }

    .card {
        width: 40vw;
        height: 40vw;
    }

    .back-content span {
        font-size: 3vw;
    }

    .sm a {
        width: 10vw;
        height: 10vw;
        font-size: 6vw;
    }

    h3 {
        font-size: 3.5vw;
    }

    .author-intro {
        padding-top: 2.5vw;
        padding-bottom: 2.5vw;
        font-size: 2.5vw;
    }

    #ladybug1 {
        display: none;
    }

    .reel {
        height: 90vw;
    }

    .message p {
        font-size: 3.5vw;
    }

    .message #username {
        font-size: 4.5vw;
    }
}

/* For desktop */
@media only screen and (min-width: 1025px)
{
    .bunting-and-book-1{ 
        width: 400%;
    }

    .bunting-and-book-2 {
        width: 400%;
    }

    #ladybug2 {
        right: 4%;
        top: 74%;
        width: 9vw;
    }

    .bee, .bee-1 {
        width: 6vw;
        height: 6vw;
    }

    #bee1 {
        left: 60vw;
        top: 10vw;
    }

    #bee2 {
        left: 28vw;
        top: 2vw;
    }

    #bee3 {
        left: 85vw;
        top: 10vw;
    }
    
    #bee4 {
        left: 5vw;
        top: 48vw;
    }

    .light {
        width: 5vw;
        height: 5vw;
    }
    
    #light1 {
        right: 45vw;
        top: 15vw;
    }
    
    #light2 {
        left: 10vw;
        top: 25vw;
    }
    
    #light3 {
        right: 10vw;
        top: 40vw;
    }
    
    #light4 {
        left: 35vw;
        top: 71vw;
    }
    
    #light5 {
        left: 8vw;
        top: 10vw;
    }
    
    #light6 {
        left: 15vw;
        top: 60vw;
    }
    
    #light7 {
        right: 25vw;
        top: 3vw;
    }
    
    #light8 {
        left: 42vw;
        top: 28vw;
    }
    
    #light9 {
        right: 16vw;
        top: 52vw;
    }

    .welcome {
        padding-top: 2%;
        padding-bottom: 20%;
    }

    .welcome-cn {
        width: 40%;
    }
    
    .welcome-en {
        width: 50%;
    }

    .welcome-note {
        margin-top: 2%;
        margin-bottom: 2%;
    }
    
    .welcome-note p {
        padding: 1.5vw 0 1.5vw 0;
    }
    
    .welcome .input-name {
        width: 40vw;
        padding: 1vw;
        border-radius: calc(1vw + 1em);
    }

    .welcome .input-name::placeholder {
        font-size: 1.3vw;
    }

    .welcome-note p, .welcome .input-name {
        font-size: 1.5vw;
    }

    .welcome-submit {
        width: 20%;
    }

    .wrapper-center {
        width: 70vw;
    }

    .description-details {
        display: grid;
        grid-template-columns: repeat(2, 60%);
        justify-content: space-around;
        grid-row-gap: 50px;
        padding-bottom: 10vw;
    }

    .description-details p {
        font-size: 1.5vw;
        padding: 5px;
    }

    .description-title-cn {
        width: 40%;
    }
    
    .description-title-en {
        padding-top: 10px;
        width: 60%;
    }

    .chinese-details {
        padding-top: 0;
        padding-bottom: 0;
    }

    .english-details {
        padding-top: 0;
        padding-bottom: 0;
    }

    .product-page-title img {
        width: 45%;
    }

    .product-desktop-wrapper {
        position: relative;
        display: grid;
        width: 90vw;
        grid-template-columns: repeat(2, 50%);
        justify-content: center;
        align-items: center;
        left: 50%;
        transform: translateX(-50%);
    }

    .slider {
        grid-column-start: 2;
        grid-row-start: 1;
        width: 45vw;
    }

    .box {
        width: 100vw;
    }

    .slide-img {
        padding: 1vw;
    }

    .type {
        font-size: 1vw;
        grid-row-gap: 1vw;
    }

    .wrapper-author {
        grid-column-start: 1;
        grid-row-start: 1;
    }

    .card {
        width: 20vw;
        height: 20vw;
    }

    .back-content span {
        font-size: 1.3vw;
    }

    .sm a {
        width: 5vw;
        height: 5vw;
        font-size: 2.5vw;
    }

    h3 {
        font-size: 1.8vw;
    }

    .author-intro {
        padding-top: 1vw;
        padding-bottom: 1vw;
        font-size: 1.2vw;
    }

    .author-intro {
        width: 80%;
    }

    .never-alone-quote {
        width: 30%;
        padding-bottom: 5vw;
    }

    .footer {
        height: 5vw;
    }

    #ladybug1 {
        display: block;
    }

    .reel {
        height: 50vw;
    }

    .message p {
        font-size: 2vw;
    }

    .message #username {
        font-size: 3vw;
    }
}

@keyframes moveSpriteSheet {
    from {
        transform: translate3d(0px, 0, 0);
    }
    to {
        transform: translate3d(-100%, 0 ,0);
    }
}
@keyframes moveSpriteSheetBg {
    from {
        background-position-x:0px;
    }
    to{
        background-position-x:-120%;
    }
}

@keyframes wiggle {
    0% {
        transform: rotate(0deg) translate(0,0);
    }
    20% {
        transform: rotate(6deg) translate(0.5%, 0.5%);
    }
    40% {
        transform: rotate(-3deg) translate(-0.5%, 0.5%);
    }
    50% {
        transform: rotate(3deg) translate(0px, -0.5%);
    }
    75% {
        transform: rotate(-6deg) translate(-0.5%, -0.5%);
    }
    100% {
        transform: rotate(0deg) translate(0,0);
    }
}

@keyframes float {
    0% {
        transform: translate(0,0);
    }
    50% {
        transform: translate(5%, 0);
    }
    100% {
        transform: translate(0,0);
    }
}