body {
    font-family: Arial, sans-serif;
    background-color: #1e1e1e;
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 0;
}

.container {
    margin: 50px auto;
    padding: 20px;
    background-color: #2b2b2b;
    border-radius: 10px;
    width: 50%;
}

h1 {
    color: #ffcc00;
    margin-bottom: 20px;
}

.parent-section {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.parent {
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
}

select {
    width: 100%;
    margin-bottom: 15px;
    padding: 5px;
    border-radius: 5px;
    border: none;
    background-color: #444;
    color: #fff;
}

button.calculate-btn {
    background-color: #ffcc00;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button.calculate-btn:hover {
    background-color: #ffdb4d;
}

#results p {
    font-size: 18px;
    font-weight: bold;
    color: #ffcc00;
    margin: 10px 0;
}

#results table {
    margin: 20px auto;
    width: 100%; /* Use the full width of the container */
    border-collapse: collapse;
    background-color: #2b2b2b;
    table-layout: auto; /* Allow dynamic column width adjustment */
}

#results th, #results td {
    padding: 10px;
    border: 1px solid #444;
}

#results th {
    background-color: #333;
    color: #ffcc00;
}

/* Style for hover image */
.hover-image-global {
    display: none;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -1px); /* Center horizontally and move above the table row */
    max-height: 150px;
    background-color: #2b2b2b; /* Match the site's background */
    border: 1px solid #444;
    border-radius: 5px;
    padding: 5px;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Highlight the row on hover */
#results table tbody tr:hover {
    background-color: #444; /* Adjust the highlight color to fit your theme */
    color: #fff; /* Ensure text remains readable */
}

/* Center the parent images */
.parent img {
    display: block;
    margin: 0 auto 10px; /* Center and add spacing below the image */
    max-width: 150px; /* Adjust size as necessary */
    height: auto;
}

/* Ensure both parent dropdowns are the same width */
.parent {
    width: 30%; /* Set uniform width for both parent sections */
    text-align: center; /* Center the contents */
}

.parent-section {
    display: flex;
    justify-content: center; /* Center the two parent sections */
    gap: 5%; /* Add spacing between the two sections */
}

.parent select {
    width: 80%; /* Set a consistent width for the dropdowns */
    margin: 0 auto 15px; /* Center dropdown and add spacing below */
    display: block;
}

/* Left-align labels for Head, Chest, and Body */
.parent label {
    text-align: left;
    display: block; /* Ensure labels remain block elements for proper alignment */
    margin-left: 10%; /* Optional: Adjust for slight indentation, tweak as necessary */
}

.genotype-text {
    font-size: 14px;
    color: #ffcc00;
    margin-top: 10px;
    text-align: center;
}

.error-message {
    color: #ffcc00; /* Matches your theme color */
    background-color: #2b2b2b; /* Matches the site's background */
    padding: 10px;
    margin: 10px auto;
    text-align: center;
    display: none; /* Initially hidden */
    width: 80%; /* Adjust as needed */
    font-size: 16px;
}

