html {
    scrollbar-width: none;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    animation: flashEffect 0.2s linear;
    overflow-y: scroll;
}

body::-webkit-scrollbar,
.col-md .card.expanded::-webkit-scrollbar {
    width: 0.1px;
}

@keyframes flashEffect {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.container {
    display: flex;
    flex-direction: column;
}

.navbar,
body,
.card {
    background: #f2eddd;
}

.col-md .card:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    color: rgb(0, 0, 0);
    font-size: 27px;
    text-align: center;
    margin: auto;
    transition: transform 0.3s ease-in-out;
}

.navbar-brand:hover {
    color: rgb(0, 0, 0);
    transform: scale(1.1);
}

.col-md .card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    font-size: 0.6rem;
    margin: 5px auto;
    height: 12rem;
    /* 确保卡片保持正方形 */
    width: 12rem;
}

@media (min-width:1200px) {

    .col-md .card-body {
        font-size: small;
    }

    .col-md .card {
        height: 13rem;
        width: 13rem;
    }

    .col-md .card.expanded .card-body {
        font-size: 18px;
        margin: auto 10px;
    }
}

@media (min-width:679px) and (max-width:1200px) {

    .col-md .card-body {
        font-size: small;
    }

    .col-md .card.expanded .card-body {
        font-size: medium;
    }
}

@media (max-width:678px) {
    .col-md .card-body {
        font-size: x-small;
    }

    .col-md .card.expanded{
        width: 75vw !important;
        max-height: 50vh !important;
    }

    .col-md .card.expanded .card-body {
        line-height: 1rem !important;
        font-size: 12px;
        padding: 10px  !important;
    }

    .col-md .card {
        height: 9rem;
        width: 9rem;
    }

    .col-auto .card{
        width: 7rem !important;
        height: auto !important;
    }
}

.col-md .card-body {
    text-align-last: left;
    padding: 5px;
}

.col-md .card.expanded {
    position: fixed;
    width: 50vw;
    height: auto;
    max-height: 70vh;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 1050;
    overflow-y: scroll;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.col-md .card.expanded .card-body {
    line-height: 2rem;
    text-indent: 2em;
    text-align-last: left;
    padding: 20px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.overlay.visible {
    display: block;
}

.border-light {
    border: #f2eddd;
}

p {
    margin: initial;
}