html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
    .carousel-item img {
        height: auto; /* 在小螢幕上圖片高度自動調整 */
            object-fit: contain; /* 讓圖片完整顯示 */

    }

    .card {
        margin-bottom: 15px;
    }

    .embed-responsive {
        height: auto;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}


body {
    margin-bottom: 60px;

    /*background-image: url('/images/background/background.png') !important;*/
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    background-position: center !important;
}

.text-marquee {
    background-color: rgba(255, 255, 255, 0.5); /* 半透明白色背景，0.8 為透明度 */
    color: #333; /* 文字顏色 */
    overflow: hidden;
    white-space: nowrap;
}

    .text-marquee p {
        display: inline-block;
        padding-right: 0%;
        animation: scrollText 20s linear infinite; /* 控制滾動速度：數值越小速度越快 */
    }

@keyframes scrollText {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.carousel-item img {
    height: auto;
    max-height: 400px; /* 可以視需要調整 */
    object-fit: contain; /* 讓圖片完整顯示 */
}
/*XXX
.card-img-top {
    width: 100%;
    height: auto;
    object-fit: cover; // 視情況使用 cover, contain 或其他屬性 
}
*/
.card-title {
    font-size: 1.75rem;
    font-weight: bold;
}

.card-text {
    color: #555;
    text-align: left;
    font-size: 1.25rem;
}

/* 基本佈局調整 */
.about-section {
    padding: 2rem 0;
}

.static-image img,
.dynamic-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 文字介紹區塊 */
.about-text h2 {
    color: #34375a;
    margin-top: 1.5rem;
    font-weight: bold;
}
.about-text h3 {
    color: #34375a;
    margin-top: 1rem;
}

.about-text p {
    color: #555;
    line-height: 1.6;
}

/* 動態圖片特效（可選） */
.dynamic-image img {
    animation: pulse 3s infinite;
}

/* Pulse 動畫 */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 服務頁面樣式 */
.services-page {
    padding: 20px;
}


.service-category {
    margin-bottom: 40px;
    padding: 0 20px;
}

.service-item {
    text-align: center; /* 內容置中 */
    margin-bottom: 20px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.service-img {
    max-width: 100%; /* 圖片自適應寬度 */
    height: auto;
    margin-top: 10px;
    margin-bottom: 10px;
}




/* 選擇性：用於限制最大寬度和保持頁面居中 */
.container {
    max-width: 1200px;
    margin: 0 auto;
}


.flashing-text {
    font-size: 24px;
    font-weight: bold;
    animation: flashColors 2s infinite alternate;
}

@keyframes flashColors {
    0% {
        color: #ffffff; /* 藍色 */
    }

    100% {
        color: #ff0000; /* 紅色 */
    }
}



.hh2-text {
    color: #34375a;
    text-align: left;
    font-size: 2.5rem;
    font-weight:bold;
}






/* ===== Christmas Tree ===== */

#christmas-tree {
    position: fixed;
    right: 20px;
    bottom: 40px;
    width: 120px;
    height: 200px;
    z-index: 999;
    pointer-events: none;
    animation: sway 5s ease-in-out infinite;
}

@keyframes sway {
    0%, 100% {
        transform: rotate(-2deg);
    }

    50% {
        transform: rotate(2deg);
    }
}

.star {
    text-align: center;
    font-size: 26px;
    color: gold;
    animation: twinkle 1.5s infinite alternate;
}

@keyframes twinkle {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

.tree {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
}

.layer-1 {
    top: 30px;
    border-bottom: 40px solid #1f7a3a;
}

.layer-2 {
    top: 55px;
    border-bottom: 55px solid #228b45;
}

.layer-3 {
    top: 90px;
    border-bottom: 70px solid #2e9b55;
}

.trunk {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 20px;
    height: 30px;
    background: #8b5a2b;
    transform: translateX(-50%);
    border-radius: 0 0 4px 4px;
}

.lights span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: blink 2s infinite alternate;
}

@keyframes blink {
    from {
        opacity: .3;
    }

    to {
        opacity: 1;
    }
}

.merry-text {
    text-align: center;
    margin-top: 6px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #c62828;
    text-shadow: 0 0 6px rgba(255, 80, 80, 0.8);
    animation: glow 2s ease-in-out infinite alternate;
    user-select: none;
}

@keyframes glow {
    from {
        opacity: 0.6;
        text-shadow: 0 0 4px rgba(255, 80, 80, 0.6);
    }

    to {
        opacity: 1;
        text-shadow: 0 0 10px rgba(255, 120, 120, 1);
    }
}

/* 手機字小一點 */
@media (max-width: 768px) {
    .merry-text {
        font-size: 12px;
    }
}
