body {
    font-family: sans-serif;
    line-height: 1.6;
    max-width: 800px;
    margin: 20px auto;
    padding: 0 15px;
    background-color: #f4f4f4;
    color: #333;
}

h1 {
    text-align: center;
    color: #2c3e50;
}

.input-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    gap: 20px;
    /* Add gap between inputs */
    flex-wrap: wrap;
    /* Allow wrapping on smaller screens */
}

.player-input {
    flex: 1;
    /* Allow inputs to grow */
    min-width: 250px;
    /* Minimum width before wrapping */
    position: relative;
    /* Needed for absolute positioning of suggestions */
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    /* Include padding in width */
}

button {
    display: block;
    width: 150px;
    margin: 20px auto;
    padding: 12px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}


#result-display {
    margin-top: 30px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 50px;
    text-align: center;
    /* Center text initially */
}

#result-display.loading {
    color: #7f8c8d;
}

#result-display.error {
    color: #e74c3c;
    font-weight: bold;
}

#result-display .chain-link {
    font-size: 1.1em;
    margin: 0 5px;
}

#result-display .arrow {
    color: #3498db;
    font-weight: bold;
}

#loading-indicator {
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    color: #7f8c8d;
}

.hidden {
    display: none;
}

/* --- Suggestions Box --- */
.suggestions {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    border-top: none;
    width: 100%;
    /* Match input width */
    max-height: 150px;
    overflow-y: auto;
    z-index: 1000;
    box-sizing: border-box;
}

.suggestion-item {
    padding: 8px 10px;
    cursor: pointer;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background-color: #ecf0f1;
}

#result-display h3 {
    margin-bottom: 15px;
    text-align: center;
    color: #2c3e50;
}

.path-result {
    margin-bottom: 15px;
    line-height: 1.8;
    /* Increase line height for better readability */
}

.connection-info .club {
    font-style: italic;
    color: #555;
}

.connection-info .season {
    font-size: 0.9em;
    color: #777;
}

/* Add some minor spacing adjustments if needed */
.chain-link,
.connection-info {
    margin-right: 3px;
}

hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* Style for player/club images if added later */
.player-image,
.club-logo {
    width: 20px;
    /* Adjust size as needed */
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
    border-radius: 50%;
    /* Make player images round */
}

.path-result {
    margin: 15px 0;
    line-height: 1.5;
}

.chain-link {
    font-weight: 600;
}

.connection-info {
    color: #666;
}

.connection-info .club {
    font-weight: 500;
}

.connection-info .season {
    color: #888;
    font-size: 0.9em;
}

.arrow {
    margin: 0 5px;
    color: #666;
}

hr {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #eee;
}

.path-list {
    list-style-type: none;
    padding-left: 0;
    margin: 15px 0;
}

.path-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.path-list .player {
    font-weight: 600;
    color: #2c3e50;
}

.path-list .club {
    font-weight: 500;
    color: #2980b9;
}

.path-list .season {
    color: #7f8c8d;
}