/* Navbar */

.navbar {
    box-shadow: 0 3px 18px rgba(0, 0, 0, .11);
}

/* Header */

#header {
    height: 100vh;
    display: flex;
    align-items: center;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
    /* TODO: 加入背景圖片 */
    background-image: url("../img/cafe.jpg");
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

#header>* {
    transition: all .5s ease-out;
}

#header>.container {
    z-index: 2;
    transform: scale(.9);
}

.header-cover {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    opacity: .15;
    z-index: 1;
}

#header:hover>.container {
    transform: scale(1);
}

#header:hover>.header-cover {
    opacity: .5;
}

#header h1 {
    font-size: 42px;
}

/* IntroSection */

.intro-box,
.intro-line,
.intro-box .icon {
    transition: all .3s ease;
}

.intro-box {
    margin-bottom: 15px;
    padding: 15px 15px;
    text-align: center;
    position: relative;
    bottom: 0px;
}

.intro-box:hover {
    background: white;
    box-shadow: 0px 12px 60px rgba(112, 84, 99, 0.25), 0px 0px 0px 3px rgba(112, 84, 99, 0.25);
    bottom: 7px;
}

.intro-line {
    width: 20px;
    height: 6px;
    border-radius: 3px;
    margin: 10px auto;
}

.intro-box:hover .intro-line {
    width: 45px;
}

.intro-box .icon {
    transform: scale(.8);
}

.intro-box:hover .icon {
    transform: scale(1);
}

/* gallerySection */

.gallery-block,
.gallery-text,
.gallery-cover {
    transition: all .25s ease-out;
}

.gallery-block {
    background-size: cover;
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
}

.gallery-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
}

.gallery-text {
    position: relative;
    color: white;
    font-weight: 700;
    text-shadow: 0 8px 10px rgba(0, 0, 0, .5);
    text-align: center;
    opacity: 0;
    transform: scale(.5) rotate(-90deg);
    z-index: 2;
}

.gallery-block:hover {
    filter: grayscale(0%);
}

.gallery-block:hover .gallery-text {
    opacity: 1;
    transform: scale(2.4) rotate(0deg);
}

.gallery-block:hover .gallery-cover {
    opacity: .45;
}

/* 放入背景圖片 */

#galleryImage1 {
    background-image: url('../img/g-1.jpg');
}

#galleryImage2 {
    background-image: url('../img/g-2.jpg');
}

#galleryImage3 {
    background-image: url('../img/g-3.jpg');
}

#galleryImage4 {
    background-image: url('../img/g-4.jpg');
}

#galleryImage5 {
    background-image: url('../img/g-5.jpg');
}

#galleryImage6 {
    background-image: url('../img/g-6.jpg');
}

#galleryImage7 {
    background-image: url('../img/g-7.jpg');
}

#galleryImage8 {
    background-image: url('../img/g-8.jpg');
}

/* Footer */

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-end p {
    font-size: 8px;
    margin: 0;
}

/* side-box */

.side-box {
    width: 300px;
    position: fixed;
    right: -275px;
    bottom: 80px;
    z-index: 100;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    box-shadow: 0px 20px 15px rgba(0, 0, 0, 0.2);
    transition: all .3s ease;
}

.side-box.active {
    right: 0px;
}

.left-part {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #ddd;
}

.ad-toggle-btn {
    width: 25px;
    border: none;
    background-color: transparent;
    color: #333;
    cursor: pointer;
}

.ad-toggle-btn>i {
    transform: rotateZ(90deg);
}

.ad-toggle-btn:hover {
    color: #666;
}

.right-part {
    padding: 10px;
}

.right-part>p {
    margin-bottom: 0;
}