@import url(./reset.css);
@import url(./nav.css);


* {
    margin: 0;
}

a {
    text-decoration: none;
}

.main.products {
    margin: 0 0 4rem;
}

.main.contact {
    margin: 4rem 0;
}

.main.about {
    padding: 3rem 0;
    background-image: url(../img/about-bg.png);
    background-repeat: no-repeat;
    background-position: top right;
    background-size: 50%;
}

.pageTitle {
    padding-top: 3rem;
    padding-bottom: 3rem;
    background-color: var(--siteHeavy);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

}

.pageTitle h2 {
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pageTitle h2:after {
    content: '';
    display: block;
    height: 2px;
    background-color: var(--siteHeavyGray);
    width: 10rem;
    margin: 1rem auto;
}

.pageTitle p {
    color: var(--siteHeavyGray);
    margin-bottom: 0;
}

.eachProudcts {
    display: flex;
    justify-content: center;
}

.products-img {
    max-width: 200px;
    padding: 0 20px;
}

.products-detail {
    padding-top: 20px;
}

.circle-number {
    --space: 1rem;
    width: var(--space);
    /* 設定寬度 */
    height: var(--space);
    /* 設定高度 */
    border-radius: 50%;
    /* 使其變成圓形 */
    border: 1px solid #1E5D78;
    /* 設定圓框顏色 */
    padding: var(--space);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: calc(var(--space) * 1.5);
    font-weight: bold;
    color: #1E5D78;
    font-family: Arial, sans-serif;
}

footer {
    text-align: center;
    background-color: var(--siteHeavy);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

footer hr {
    height: 2px;
    background-color: #C4CBF0;
    width: min(70vw, 400px);
    margin: 10px auto;
}

#sidebar {
    position: fixed;
    bottom: 0.5rem;
    right: 0.5rem;
    /* width:clamp(4rem, 10vw ,5rem); */
    width: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.detail-content img{
    max-width: 100%;
    display: block;
    height: auto;
}
@media (max-width:768px) {
    .main.about {
        background-size: 100%;
    }

    .pageTitle {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .eachProudcts {
        flex-direction: column;
    }

    .products-img {
        padding: 0;
        margin: 0 auto;

    }

    .products-img img {
        height: 15rem;
        width: auto;
    }

    .products-img.noH img {
        height: auto;
    }

    .products-detail {
        padding-top: 1rem;
    }
}