/* ham.css */
body{
    font-family: "Noto Serif TC", serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.collapse-overlay {
    position: fixed;
    top: 50px; /* Adjust to the height of your nav */
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    overflow: hidden;
    max-height: 0;
    transition: max-height 1s ease-out;
}

.collapse-overlay.show {
    max-height: 100vh; /* Make sure it's tall enough to cover the entire viewport */
}

.card {
    border: 1px solid rgba(0, 0, 0, 0.125);
    background-color: black;
    border-radius: 0.25rem;
    padding: 10px;
    color: #fff;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 70px; /* Adjust as needed */
}

.collapse-overlay.show .card {
    opacity: 1;
    transform: translateY(0);
}

.card-body {
    padding: 10px;
}
.card a{
    color: #fff;
    text-decoration: none;
}
@media (min-width: 768px){
    .collapse-overlay{
        top: 70px;
    }
    .card{
        font-size: 20px;
        height: 100px;
    }
}
