.famous-tabs {
    display: flex;
    border-bottom: 2px solid #6b4a27; /* Match the medieval-styled border */
    gap: 0; /* Remove extra spacing between tabs */
}

.famous-tabs a {
    display: block;
    padding: 10px 20px;
    text-decoration: none; /* Remove underline */
    background-color: #f4e3c2; /* Light parchment color for inactive tabs */
    color: #6b4a27; /* Medieval brown text color */
    border: 2px solid #6b4a27; /* Border for inactive tabs */
    border-bottom: none; /* Remove bottom border for tab-like effect */
    border-radius: 8px 8px 0 0; /* Rounded top corners */
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-right: 5px; /* Space between tabs */
    cursor: pointer; /* Pointer for clickable tabs */
}

.famous-tabs a:hover {
    background-color: #d6c2a6; /* Slightly darker parchment */
    color: #6b4a27; /* Maintain text color */
}

.famous-tabs .tab.active {
    background-color: #6b4a27; /* Rich medieval brown for active tab */
    color: white; /* White text for active tab */
    font-weight: bold;
    border: 2px solid #6b4a27;
    border-bottom: none; /* Remove bottom border for active tab */
    border-radius: 8px 8px 0 0; /* Rounded top corners */
    z-index: 1; /* Ensure active tab is on top */
    margin-right: 5px; /* Space between tabs */
}

.famous-tabs a.active {
    background-color: #6b4a27; /* Rich medieval brown for active tab */
    color: white; /* White text for active tab */
    font-weight: bold;
    border: 2px solid #6b4a27; /* Border for active tab */
    border-bottom: none; /* Remove bottom border for active tab */
    border-radius: 8px 8px 0 0; /* Rounded top corners */
    z-index: 1; /* Ensure active tab is on top */
    pointer-events: auto; /* Prevent clicking the active tab */
}

.btn-calculate {
    background-color: #6b4a27; /* Button background color */
    color: #fff; /* Button text color */
    border: 3px solid #6b4a27; /* Border color */
    padding: 10px 20px; /* Spacing inside the button */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    font-size: 16px; /* Text size */
    font-weight: bold; /* Bold text */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover effect */
}

.btn-calculate:hover {
    background-color: #f4e3c2; /* Lighter background color on hover */
    color: #6b4a27; /* Darker text color on hover */
}

table.keyboard {
    border-collapse: collapse; /* Ensures borders collapse into single lines */
    width: 100%; /* Optional: Set table width */
}

table.keyboard th,
table.keyboard td {
    border: 3px solid #6b4a27; /* Adds 1px black border to all cells */
    padding: 8px; /* Optional: Add some spacing inside the cells */
    text-align: center; /* Optional: Align text in cells */
}

.no-right-border {
    border-right: none !important; /* Ensure the right border is removed */
}

.no-right-border + td {
    border-left: none !important; /* Remove overlapping left border of adjacent cell */
}

.no-bottom-border {
    border-bottom: none !important; /* Ensure the bottom border is removed */
}

.no-bottom-border ~ td {
    border-top: none !important; /* Ensure no overlapping top border for cells in the same row */
}

.no-left-border {
    border-left: none !important; /* Ensure the left border is removed */
}

td + .no-left-border {
    border-right: none !important; /* Remove overlapping right border of adjacent cell */
}
