﻿html {
    font-size: 14px;
}

html {
    position: relative;
    min-height: 100%;
    background-image: url('../images/background-image.jpg');
    background-size: cover; /* 填滿整個畫面 */
    background-blur: blur(10px);
}

body {
    margin-bottom: 60px;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.7); /* 透明的背景顏色 */
}


header {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

header {
    position: relative;
    background-color: rgba(51, 51, 51, 0.7);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-bottom: 1rem;
    z-index: 1; /* 提升標題的 Z 軸層級，使其處於底圖上方 */
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/Header.png');
    background-size: cover;
    background-blur: blur(10px);
    opacity: 0.7;
    z-index: -1;
}


.info-section {
    display: flex;
    justify-content: center;
    margin-top: 1rem; /* 添加上方間距 */
}

.large-bubble {
    text-align: center;
    padding: 12px;
    border: 2px solid #ccc;
    background-color: #f0f0f0;
    border-radius: 10px;
    max-width: 95vw;
    font-size: 1.2rem;
}

.large-bubble h2 {
    margin-top: 0; /* 清除標題的頂部間距 */
    font-size: 1.5rem; /* 標題字體大小 */
}


.vehicle-section {
    display: flex;
    justify-content: center; /* 將兩個氣泡框水平置中 */
    align-items: center; /* 垂直置中 */
    flex-direction: column;
    padding: 0;
    margin-top: 16px;
    row-gap: 4px;
}

.vehicle {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.content {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* 將圖示和信息置中對齊 */
    width: 100%;
    column-gap: 4px;
    row-gap: 4px;
}

.bubble {
    text-align: center;
    padding: 20px; /* 增加氣泡框的內間距 */
    border: 2px solid #ccc; /* 將氣泡框的邊框改為淺灰 */
    background-color: #f0f0f0; /* 將氣泡框的底色改為淺灰 */
    background-color: rgba(240, 240, 240, 0.6); /* 半透明的背景顏色 */
    border-radius: 10px; /* 圓角邊框 */
    width: 100%;
}

.content > .bubble {
    width: 49%;
}

.vehicle img {
    width: 120px; /* 放大圖示 */
    height: 120px; /* 放大圖示 */
    margin-bottom: 0.5rem;
    vertical-align: middle;
}

.remaining-section {
    display: flex;
    flex-direction: row;
    row-gap: 4px;
    justify-content: center;
}

.remaining {
    margin: 0;
    font-size: 1.5rem; /* 放大剩餘車位數字 */
    font-weight: bold; /* 使用粗體 */
}

.extra-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.extra-bubble {
    text-align: center;
    padding: 20px;
    background-color: rgba(240, 240, 240, 0.6);
    border-radius: 10px;
    max-width: 100%; 
}

.extra-bubble img {
    max-width: 100%; 
    height: auto; 
}

.availability-section {
    background-color: #f4f4f4;
    text-align: center;
    padding: 2rem;
}

.availability h2 {
    color: #333;
}

.availability .spaces {
    font-size: 1.2rem;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

footer p {
    margin: 0;
}


/* sm 40rem (640px) */
@media (width >= 40rem) {
}

/* md 48rem (768px) */
@media (width >= 48rem) {
    html {
        font-size: 16px;
    }
    
}

/* lg 64rem (1024px) */
@media (width >= 64rem) {
    .vehicle-section {
        row-gap: 8px;
    }
    .vehicle {
        max-width: 1100px;
    }
    .content {
        width: 100%;
        flex-wrap: nowrap;
    }

    .vehicle img {
        width: 120px; /* 放大圖示 */
        height: 120px; /* 放大圖示 */
        margin-bottom: 0.5rem;
    }

    .remaining-section {
        flex-direction: column;
    }

    .remaining {
        font-size: 2rem; /* 放大剩餘車位數字 */
    }

    .content > .bubble {
        width: calc(25% - 6px);
    }

    .bubble {
        min-width: 200px;
        padding: 0 10px;
    }

    .content .bubble {
        width: 
    }

    .info-section {
        margin-top: 2rem; /* 添加上方間距 */
    }

    .large-bubble {
        padding: 20px;
        max-width: 1100px; /* 限制最大寬度 */
        font-size: 1.8rem;
    }

    .large-bubble h2 {
        font-size: 1.8rem; /* 標題字體大小 */
    }
}

/* xl 80rem (1280px) */
@media (width >= 80rem) {
}

/* 2xl 96rem (1536px) */
@media (width >= 96rem) {
    .vehicle-section {
        flex-direction: row;
        column-gap: 8px;
        padding: 0 8px;
    }
    .vehicle {
        align-items: start;
    }
    .bubble {
        min-width: 260px;
    }
    .remaining {
        font-size: 2.8rem; /* 放大剩餘車位數字 */
    }
}
