#hero-selection-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 50px;
    z-index: 1900;
    color: white;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
    transition: opacity 0.5s ease-out;
}

.hero-selection-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
    border-radius: 10px;
    pointer-events: none;
}

#hero-selection-screen h2 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

#hero-options-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-option {
    background-color: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 15px;
    width: 180px;
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-option:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-color: white;
}

.hero-option.selected {
    border-color: gold;
    box-shadow: 0 0 15px 5px gold;
    transform: scale(1.05);
}

.hero-portrait {
    width: 100px;
    height: 100px;
    background-color: #444;
    border: 3px solid #eee;
    border-radius: 50%;
    margin-bottom: 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-option h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.hero-description {
    font-size: 0.8em;
    margin-bottom: 15px;
    max-height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.select-hero-button {
    padding: 8px 20px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid white;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    transition: background-color 0.3s ease;
}

.select-hero-button:hover {
    background-color: #45a049;
}

.select-hero-button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
    border-color: #888;
}
