.card-gpt {
    /* background-color: #f4f4f8; */
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 15px;
    max-width: 1000px;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-gpt:hover {
    transform: translateY(-5px);
}

.card-gpt-header {
    background-color: #0078D7;
    color: white;
    padding: 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #005fa3;
}

.gpt-bot-name {
    font-size: 16px;
}

.card-gpt-body {
    padding: 15px;
    /*
    background-color: white;
    color: #333;
    */
    font-size: 14px;
    line-height: 1.6;
}

.card-gpt-response {
    padding: 10px;
    /*background-color: #eef2f7; */
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    white-space: pre-wrap;
    word-wrap: break-word;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) and (pointer: coarse) and (hover: none) {
    /* Set base font size for consistency (optional, only if not already set) */
    html {
        font-size: 16px; /* Adjust to 14px for smaller scaling if needed */
    }

    .gpt-bot-name {
        font-size: 1.25rem; /* ~20px, reduced from 32px */
        padding: 0.625rem; /* ~10px, unchanged but in rem */
    }

    .card-gpt-response > p {
        font-size: 1rem; /* ~16px, reduced from 28px */
        padding: 0.75rem; /* ~12px, reduced from 20px */
    }
}