h1 {
    color: white;
    text-align: center;
    font-family: sans-serif;
    
}
h1:first-of-type{
    margin-top: 30%;  /*★ h1 向下移動至中間 */ 
}

h2, h6{
    color:lightgray;
}

span {
    color: white;
}
dt, p {
    color:rgb(55, 53, 53);
}
dt {
    font-weight: normal;
}

/* Main page layout */
/*****************************************************************/
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

div.box {
    position: relative;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

#background {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

div.content {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap:15px;
}

/* buttongrid */
.buttongrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    /* margin-top: 5%;   ★ 保持與 h1 原來的間距 */  
    margin-bottom: 5%;
}

.buttongrid>.button {
    flex: 1 1 200px;
    max-width: 250px;
    min-width: 120px;
    aspect-ratio: 1 / 1;
    background-color: transparent;
    border: 1px hidden white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background-color 0.25s ease;
}

.buttongrid img {
    width: 20%;
    height: 20%;
    object-fit: contain;
}

.buttongrid>.button:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* 小螢幕（手機） */
@media screen and (max-width: 600px) {
    .buttongrid {
        flex-direction: column;
        gap: 1px;
        margin-top: 1%; /* ★ 手機螢幕上也保持間距 */
    }
    .buttongrid>.button {
        width: 50%;
        max-width: none;
    }
}

/* 小螢幕（iPhone SE 等） */
@media screen and (max-width: 400px) {
    .buttongrid img {
        width: 30%;
        height: auto;
    }
    .buttongrid>.button {
        width: 80px;
        height: 80px;
    }
}
/*****************************************************************/
