@import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css);

*{
    font-family: "Noto Sans TC","微軟正黑體", "sans-serif";
    box-sizing: border-box;
/*    transition-duration: 0.5s;*/
}

body, html{
    width: 100%;
    margin: 0px;
    padding: 0px;
}

a{
    text-decoration: none;
    color: black;
}

a img{
    border: 0px;
}

.header{
    height: 35px;
    background-color: #424242;
}

.header-content{
    margin: auto;
    position: relative;
    top: 50%;
    transform: translateY(-40%);
}

.footer{
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #999;
    clear: left;
}

.footer h5{
    margin: 0px;
    letter-spacing: 4px;
    font-weight: 400;
}

img{
    border: 0px;
}

#back-to-top{
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 10;
}

map *:focus{
    outline: none;
}

.top{
    background-color: #931C25;
}

.top .content{
    background-image: url(images/9789570850895a_01.jpg);
    background-position: top center;
    padding: 50px 0;
}

.top img{
    display: block;
    margin: auto;
    max-width: 90%;
}

.intro,
.read,
.art{
    background-color: #C9BC9C;
    padding: 50px 0;
}

.intro .content{
    background-image: url(images/9789570850895a_10.jpg);
    background-position: top center;
}

.intro-left{
    position: relative;
}

.intro-left p{
    text-align: justify;
}

.intro-left img{
    max-width: 100%;
}

.intro-left, .book{
    float: left;
}

.intro .content::after{
    content: "";
    display: block;
    clear: both;
}

.book span{
    padding: 5px 20px;
    margin-left: 12px;
    color: black;
    font-weight: bold;
    transition-duration: 0.5s;
    -moz-transition-duration: 0.5s; /* Firefox 4 */
    -webkit-transition-duration: 0.5s; /* Safari 和 Chrome */
    -o-transition-duration: 0.5s; /* Opera */
    font-weight: 400;
    background-color: black;
    color: white;
}

.book span:hover{
    background-color: #931C25;
}

.author{
    background-color: black;
    color: white;
    padding-top: 50px;
}

.author .content{
    position: relative;
}

.frank{
    display: block;
    position: absolute;
    top: calc(50% - 157px);
}

.author .content p{
    border: solid 6px white;
    border-bottom: 0px;
    padding: 60px 60px 60px 150px;
    margin-left: 120px;
}

.rec{
    background-color: #931C25;
    padding: 50px 0;
}

.rec .content{
    background-image: url(images/9789570850895a_11.jpg);
    background-position: top center;
    color: #C9BC9C;
}

.rt{
    width: 47%;
    display: inline-block;
    vertical-align: top;
    text-align: justify;
}

.r1{
    margin-right: 6%;
}

.rt p{
    margin-bottom: 30px;
}

.rt p:last-child{
    margin-bottom: 0px;
}

.rt span{
    color: #D5DB83;
}

.read .content{
    background-image: url(images/9789570850895a_06.jpg);
    background-position: top center;
}

.read-text{
    background-color: #936C4D;
    box-shadow: 5px 5px #4C3322;
    padding: 30px 60px;
    color: #E2D5C3;
    background-image: url(images/9789570850895a_09.png);
    background-repeat: no-repeat;
    background-position: right bottom;
    position: relative;
    z-index: 1;
    text-align: justify;
}

.read-text h2,
.read-text h4{
    display: inline-block;
    color: #4C3322;
    margin-bottom: 0.5rem;
}

.read-text hr{
    display: block;
    border: 0;
    height: 5px;
    background-color: #4C3322;
    margin-bottom: 1rem;
}

.read-text img:nth-of-type(2){
    position: absolute;
    right: 60px;
    z-index: -1;
    max-width: 60%;
}

.read-text a{
    color: #6D1520;
}

.read-text a:hover{
    color: #931C25;
}


/*-----Desktop-----*/

@media only screen and (min-width: 481px){
    
    html{
        font-size: 18px;
    }
    
     p{
        font-size: 1rem;
        line-height: 2rem;
        margin-top: 0px;
        margin-bottom: 0px;
    }
    
    .header-content{
        padding-left: 30px;
        max-width: 1200px;
    }
    
    .content{
        max-width: 1200px;
        margin: auto;
        padding: 0 80px;
    }
    
    .fb-top{
        margin-left: 30px;
        margin-bottom: 20px;
    }
    
    .intro-left{
        width: 70%;
    }
    
    .intro-left p{
        margin: 20px 80px 0 0;
    }
    
    .line{
        width: calc(100% - 406px);
        height: 6px;
        background-color: black;
        position: absolute;
        right: 0px;
        top: 60px;
    }
    
    .book p{
        text-align: center;
        font-size: 0.9rem;
        margin-top: 15px;
    }
    
    .read-text img:nth-of-type(1){
        margin-right: 20px;
    }
    
    .read1{
        margin-bottom: 50px;
    }
    
    .read2{
        margin-bottom: 20px;
    }
    
    .fb-down{
        margin-top: 10px;
    }
    
    .art p{
        margin-bottom: 1rem;
        text-align: justify;
    }
    
    .art p:first-child{
        font-size: 1.6rem;
        font-weight: 600;
    }
    
    .art span:first-of-type{
        font-size: 1rem;
        margin-left: 0.5rem;
    }
    
}

@media only screen and (max-width: 699px){
    
    .line{
        display: none;
    }
    
    .frank{
        left: calc(50% - 120px);
        top: -160px;
    }
    
    .author .content p{
        border: solid 6px white;
        border-bottom: 0px;
        padding: 180px 40px 40px 40px;
        margin-left: 0px;
        margin-top: 160px;
    }
    
    .rt{
        width: 100%;
    }
    
    .r1 p:last-child{
        margin-bottom: 30px;
    }
    
    .r2 p:last-child{
        margin-bottom: 0px;
    }
    
    .r2 p:first-child{
        margin-top: 0px;
    }
    
    .read-text img:nth-of-type(1){
        display: block;
        margin-right: 0;
    }
    
    .read-text h2,
    .read-text h4{
        margin-top: 10px;
        margin-bottom: 0px;
    }
    
}

/*-----Phone-----*/

@media only screen and (max-width: 480px){
    
    html{
        font-size: 10px;
    }
    
    .header-content{
        padding-left: 10%;
        width: 100%;
    }
    
    .content{
        width: 100%;
        overflow: hidden;
    }
    
    .top .content{
        padding: 40px 0;
    }
    
    .fb-top{
        margin-left: 10%;
        margin-bottom: 20px;
    }
    
    p{
        font-size: 1.6rem;
        line-height: 2.5rem;
    }
        
    .intro .content,
    .author .content,
    .rec .content,
    .read-text,
    .art .content{
        width: 85%;
        margin: 0 auto;
    }
    
    .frank{
        left: calc(50% - 120px);
        top: 0px;
    }
    
    .author .content p{
        border: solid 6px white;
        border-bottom: 0px;
        padding: 180px 40px 40px 40px;
        margin-left: 0px;
        margin-top: 160px;
        margin-bottom: 0px;
    }
    
    .read-text{
        padding: 8% 12%;
    }
    
    .read-text h2{
        font-size: 2.5rem;
    }
    
    .read-text h4{
        font-size: 1.5rem;
    }
    
    .read-text img:nth-of-type(2){
        right: 12%;
    }
    
    .read1{
        margin-bottom: 50px;
    }
    
    .read2{
        margin-bottom: 20px;
    }
    
    .fb-down{
        margin-top: 10px;
        margin-left: 10%;
    }
    
    .art p:first-child{
        font-size: 2.5rem;
        font-weight: 600;
        margin: 0;
    }
    
    .art span:first-of-type{
        font-size: 1.5rem;
        margin-left: 0.5rem;
    }
    
}


@media only screen and (max-width: 995px){
    
    .intro-left{
        width: 100%;
    }
    
    .intro-left p{
        margin: 20px 0 40px 0;
    }
    
    .book{
        width: 100%;
        text-align: center;
    }
}