body{
    background-color: #2D1010;
    background-image: url(./drawing/background/酒心背景.png);
}

*{font-family: 'Noto Sans TC', sans-serif;
    box-sizing: border-box;
}

/*header*/
/*盈盈要改的header*/

#header{
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 2%;
    margin-bottom: 80px;
}

.logo-box{
    display: flex;
    align-items: center;
    margin: auto 0 auto 5%;
}

.logo-name{
    background-image: url(./drawing/logo/name.png);
    background-size: contain;
    background-repeat:no-repeat;
    width: 100px;
    height: 50px;
}

#logo{
    height: 100px;
    width: 100px;
    background-image: url(./drawing/logo/酒心獨角.png);
    background-size: contain;
    background-repeat:no-repeat;
}

.tool-box{
    margin:auto 5% auto 0;
}

.toollogo{
    height: 20px;
    margin: 0 10px;
}

/*下拉選單*/
/*盈盈要改的header*/

li{
    list-style: none;
}

.change-color{
    display: inline-block;
}

.choice{
    width: 100px;
    height: auto;
    opacity: 50%;
}

.colorlist{
    display: none;
    position: absolute;
    z-index: 50;
    padding: 0;
    right: 5%;
}


.colorlist li{
    padding:25px 35px;
    background-color: #CAA5A5;
}

.colorlist li:first-child{
    padding:15px;
    background-color:transparent;
}

.change-color:hover .colorlist {
    display:block;
}

.choice:hover {
    opacity: 100%;
    transition-duration:0.3s;
}

/* 下面是有關帥哥的 */

.floatman{
    position: absolute;
    height: 120%;
    width: 100%;
    top: -10%;
}

.man{
    position: absolute;
    z-index: 10;
    left: -97px;
    height: 100%;
    margin:0 auto;

}

.talk{
    position: absolute;
    left: 97px;
    z-index: 11;
    color: #CAA5A5;
    padding: 2%;
    background-color: #9A4444;
    border: 2px solid #CAA5A5;
    border-radius: 50px;
    font-size: 15px;
    margin: 0;
}

/* 下面是有關幻燈片的 */

#carouselExampleDark{
    width: 700px;
    height: 300px;
    margin: 0 auto 130px auto;
}


/*圖*/

.popo-carousel-item{
    height: 332.5px;
}

.popo-carousel-item img{
    width: 700;
    height: 300px;
    object-fit: cover;
}


/* overwrite Bootstrap default .carousel-caption */

.popo-carousel-caption {
    width: 100%;
    text-align: right;
    left: 0;
    bottom: 0; 
}

.popo-carousel-caption h5{ 
    display: inline;
    background-color: #CAA5A5;
    border: 3px solid #CAA5A5;
    padding: 5px 20px;
    color:#2D1010;
    margin: 0 30px 0 auto;
    font-family: 'Noto Serif TC', serif;
    line-height: 50px;
}

/*點點*/

.popo-carousel-indicators{
    display: flex;
    justify-content: flex-end;
    position: absolute;
    /*width: 120px;*/
    width: 100%;
    top:-35px;
    margin: 0;
}

.popo-carousel-indicators li{
    width: 10px;
    height: 10px;
    border-radius: 100%;
    margin:0 10px;
}
.carousel-dark .carousel-indicators li{
    background-color: #CAA5A5;
}

.middle-decor{
    width: 100%;
}

/* 下面是有關可愛人仔的 */
/*盈盈要改的人仔*/

#cute {
    text-align: right;
    position: sticky;
    top: 50px;
    padding-right: 5%;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}
#cuteimg {
    display: inline-block;
    height: 200px;
    object-fit: cover;
}

#cutep{
    background-image: url(./drawing/decor/點點圈.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    color:  #CAA5A5;
    padding: 40px 0;
    opacity: 0;
}

#cuteimg:hover~#cutep{
    opacity: 1;
    transition-duration:0.3s;
  }


/* 下面是有關推薦新聞的 */

.news-recommend{
    margin: -200px 5% 0 5%;
}

#allnewsbox{
    display: inline-block;
    width: 70%;
}

.decor{
    display: inline-block;
    width: 50px;
}

.title{
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    vertical-align:top;
    margin-right: 50px;
}

.title p{
    writing-mode:vertical-rl;
    margin: 20px 0;
    font-size: 24px;
    color: #CAA5A5;
    font-family: 'Noto Serif TC', serif;
    letter-spacing: 5px;
}

/* 下面是有關推薦新聞的動畫 */

.newsbox {
    position: relative;
    padding: 0;
    margin-top:100px;
    background-size: cover;
    background-position: center;
  }

  .newsbox:nth-child(1){
    display: inline-block;
    background-image: url(./photo/newsbox-1.jpg);
    width: 300px;
    height: 210px;
    margin-top: 0px;
  }

  .newsbox:nth-child(2){
    background-image: url(./photo/newsbox-2.jpg);
    width: 400px;
    height: 280px;
    left: 30%;
  }

  .newsbox:nth-child(3){
    background-image: url(./photo/newsbox-3.jpg);
    width: 340px;
    height: 238px;
    left: 10%;
  }

  .newsbox:nth-child(4){
    background-image: url(./photo/newsbox-4.jpg);
    width: 360px;
    height: 252px;
    left: 30%;
  }

  
  .overlay {
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color: #9A4444;
  }
  
  .newsbox:hover .overlay {
    opacity: 1;
  }
  
  .text {
    color: white;
    font-size: 22px;
    position: absolute;
    width: 80%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
  }

/* 下面是有關作者介紹的 */
/*盈盈要改的footer*/

#intro{
    display: flex;
    justify-content: space-around;
    background-color: #CAA5A5;
    margin-top: 200px;
    color: #2D1010;
    line-height: 50px;
    padding: 70px;
}

h3+p{
    margin: 0;
}

#intro h3{
    font-family: 'Noto Serif TC', serif;
}

#intro div{
    display: inline-block;
}

.intro-decor{
    height: 300px;
}

/* RWD RWD RWD RWD RWD */

@media (min-width: 1440px) {
    #carouselExampleDark{
        width: 900px;
    }  

}

@media (min-width: 1024px) and (max-width: 1443px) {
   /* #carouselExampleDark{
        width: 700px;
    }    

    #cuteimg {
        height: 200px;
    }

    .news-recommend{
        margin: -140px 5% 0 5%;
    }
    
    #cutep{
        padding: 50px 0;
    }

    .newsbox:nth-child(1){
        width: 300px;
        height: 210px;
    }

    .newsbox:nth-child(2){
        width: 400px;
        height: 280px;
    }

    .newsbox:nth-child(3){
        width: 340px;
        height: 238px;
    }

    .newsbox:nth-child(4){
        width: 360px;
        height: 252px;
    }*/

}

@media (min-width: 767px) and (max-width: 1023px){
    #carouselExampleDark{
        width: 550px;
    }

    /*盈盈要改的人仔*/
    #cuteimg {
        height: 140px;
    }

    #cutep{
        padding: 30px 0;
        font-size:0.8rem;
    }

    /**/

    .news-recommend{
        margin: -140px 5% 0 5%;
    }

    .newsbox:nth-child(1){
        width: 255px;
        height: 178.5px;
    }

    .newsbox:nth-child(2){
        width: 340px;
        height: 238px;
    }

    .newsbox:nth-child(3){
        width: 289px;
        height: 202.3px;
    }

    .newsbox:nth-child(4){
        width: 306px;
        height: 214.2px;
    }

}

/* 圖片模式更改*/

@media (min-width: 320px) and (max-width: 766px){
    #header{
        margin-bottom: 8%;
    }

    #carouselExampleDark{
        width: 100%;
        margin-bottom: 500px;
    }    

    /*盈盈要改的人仔*/
    #cute {
        display: none;
    }
    /**/

    .popo-carousel-caption{
        display: inline-block !important;
    }

    .floatman{
        display: flex;
        justify-content: space-around;
        align-items: center;
        top:120%
    }

    .man{
        position: static;
        margin-left: auto;
    }
    
    .talk{
        position: static;
        margin-right: auto;
    }


    .popo-carousel-caption h5{ 
        padding: 5px;
        margin: 0;
        font-size: 18px;
    }

    .news-recommend{
        margin: 0 5%;
    }

    .newsbox {
        margin-top:70px;
    }

    .newsbox:nth-child(1){
        width: 100%;
        height: 200px;
        left: 5%;
    }

    .newsbox:nth-child(2){
        width: 100%;
        height: 200px;
        left: 5%;
    }

    .newsbox:nth-child(3){
        width: 100%;
        height: 200px;
        left: 5%;
    }

    .newsbox:nth-child(4){
        width: 100%;
        height: 200px;
        left: 5%;
    }

    /*盈盈要改的footer*/

    #intro h3{
        font-size: 22px;
        font-family: 'Noto Serif TC', serif;
    }

    #intro{
        font-size: 14px;
        line-height: 35px;
        padding: 70px 30px;
    }

    .intro-decor{
        height: 180px;
    }
    /**/

    #allnewsbox{
        width: 80%;
    }
    
    .decor{
        width: 30px;
    }
    
    .title{
        margin-right: 10px;
    }
    
    .title p{
        margin: 15px 0;
        font-size: 18px;
        letter-spacing: 3px;
    }
}

/* footer 更改*/
@media (max-width: 469px){

    
    .floatman{
        display: flex;
        flex-direction: column-reverse;
        top:120%
    }

    .man{
        height: 80%;
    }

    .talk{
        margin: auto;
    }

    .logo-name{
        display: none;
    }

    /*盈盈要改的footer*/

    #intro h3{
        font-size: 22px;
        font-family: 'Noto Serif TC', serif;
    }

    #intro{
        font-size: 14px;
        text-align: center;
        line-height: 35px;
        padding: 70px 30px;
        flex-direction: column;
        align-items: center;
    }

    .intro-decor{
        margin-bottom: 30px;
    }
    /**/
}