html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
    .carousel-item img {
        height: auto; /* 在小螢幕上圖片高度自動調整 */
            object-fit: contain; /* 讓圖片完整顯示 */

    }

    .card {
        margin-bottom: 15px;
        
    }
    .card:hover {
        transform: translateY(-4px);
    }

    .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;
}

