body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0; /* Remove body padding to allow table to stretch fully */
    background-color: #f4f4f4;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0; /* Add padding only to top and bottom */
    width: 100%; /* Ensure container takes full width */
    box-sizing: border-box;
}

.bio {
    text-align: left;
    margin-bottom: 20px;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
    display: block;
}

h1 {
    color: #333;
}

.bio p {
    color: #555;
    max-width: 800px;
    line-height: 1.6;
}

.bio a {
    color: #4CAF50;
    text-decoration: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box;
}

th:first-child, td:first-child {
    text-align: left;
}

th {
    background-color: #4CAF50;
    color: white;
}

tbody tr:hover {
    background-color: #f5f5f5;
}

.buy-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    white-space: nowrap; /* Prevent text wrapping */
}

.buy-button:hover {
    background-color: #45a049;
}

.app-link {
    color: #333;
    text-decoration: none;
}

.app-link:hover {
    color: #4CAF50;
    text-decoration: underline;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    margin-top: 0;
}

.modal-content p {
    margin: 10px 0;
}

/* Style for the description row */
.description-row {
    background-color: #f9f9f9; /* Light background to distinguish it */
    width: 100%; /* Ensure it takes the full width */
}

/* Style for the description cell */
.description-cell {
    padding: 10px 12px;
    text-align: left;
    font-style: italic;
    color: #666;
    border-bottom: 1px solid #ddd;
    width: 100%; /* Ensure the cell takes the full width */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Style for the contact button */
.contact-button {
    background-color: #1DA1F2; /* Twitter/X blue */
    margin-left: 10px; /* Space between buttons */
    white-space: nowrap; /* Prevent text wrapping */
}

.contact-button:hover {
    background-color: #1a91da; /* Darker shade for hover */
}

/* Ensure buttons fit nicely in the table cell */
td:last-child {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px; /* Space between buttons */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 10px 0; /* Adjust padding for mobile */
        width: 100%;
    }

    .bio p {
        font-size: 14px;
    }

    /* Stack table rows on mobile */
    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%; /* Ensure full width */
    }

    thead tr {
        display: none; /* Hide the header row on mobile */
    }

    tbody tr {
        margin-bottom: 15px;
        border-bottom: 2px solid #ddd;
        padding: 10px 0;
        width: 100%; /* Ensure rows take full width */
        box-sizing: border-box;
    }

    td {
        text-align: left;
        padding: 8px 10px;
        position: relative;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%; /* Ensure cells take full width */
        box-sizing: border-box;
    }

    /* Add labels for each cell */
    td:before {
        content: attr(data-label);
        font-weight: bold;
        color: #333;
        flex: 1;
    }

    td:last-child {
        display: block;
        text-align: center;
        width: 100%; /* Ensure action cell takes full width */
    }

    .buy-button {
        padding: 8px 16px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
        white-space: nowrap; /* Ensure no wrapping on mobile */
    }

    .contact-button {
        margin-left: 0;
        margin-top: 10px; /* Space between stacked buttons */
        width: 100%;
        box-sizing: border-box;
        white-space: nowrap; /* Ensure no wrapping on mobile */
    }

    .modal-content {
        margin: 20% auto;
        width: 90%;
        max-width: 400px;
    }

    /* Ensure description row and cell take full width on mobile */
    .description-row {
        width: 100%;
        box-sizing: border-box;
    }

    .description-cell {
        padding: 8px 10px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .profile-pic {
        width: 80px;
        height: 80px;
    }

    h1 {
        font-size: 24px;
    }

    .bio p {
        font-size: 12px;
    }

    td {
        font-size: 12px;
        padding: 6px 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .buy-button {
        padding: 6px 12px;
        font-size: 12px;
        white-space: nowrap; /* Ensure no wrapping on smaller screens */
    }

    .description-cell {
        font-size: 12px;
        padding: 6px 10px;
        width: 100%;
        box-sizing: border-box;
    }
}