.code-container {
    position: relative;
    background-color: #f7f7f7;
    /* Light background for the code blocks */
    border: 1px solid #e1e1e1;
    /* Border to distinguish the code block */
    padding: 10px;
    margin-bottom: 20px;
    /* Space between code blocks and other content */
    overflow-x: auto;
    /* Ensures code blocks are scrollable horizontally if needed */
}

.copy-btn {
    position: absolute;
    right: 15px;
    bottom: 5px;
    /* Position at the bottom right */
    cursor: pointer;
    background-color: #e7e7e7;
    /* Light grey background */
    border: none;
    /* No border for a cleaner button */
    padding: 4px 8px;
    /* Smaller padding for a smaller button */
    font-size: 0.75rem;
    /* Smaller font size for the button text */
    border-radius: 5px;
    /* Rounded corners for the button */
    width: 80px;
    /* Fixed width to keep the button size consistent */
    color: #333;
    /* Darker text color for better contrast */
}

.copy-btn:hover {
    background-color: #d6d6d6;
    /* Slightly darker shade on hover */
}

pre {
    margin-bottom: 0;
    /* Removes the default margin to allow the button to align neatly at the bottom */
}

.toggle-code {
    background-color: #007bff;
    /* Blue background color */
    color: #fff;
    /* White text color */
    border: none;
    /* No border for a cleaner button */
    /* Larger padding for a larger button */
    font-size: 1rem;
    /* Larger font size for the button text */
    border-radius: 5px;
    /* Rounded corners for the button */
    cursor: pointer;
    /* Change the cursor to a pointer on hover */
    width: 100px;
    height: 50px;
    /* Fixed width to keep the button size consistent */
}

/* Responsive Design */
@media screen and (min-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .toggle-code {
        width: auto;
        padding: 10px 20px;
    }
}

@media screen and (min-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
