body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow: visible; 
}

.tabs {
    display: flex;
    background-color: #333;
}

.tab-button {
    flex: 1;
    padding: 15px;
    border: none;
    background-color: transparent;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tab-button:hover, .tab-button.active {
    background-color: #555;
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

h1, h2 {
    margin-top: 0;
    color: #333;
}

.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.control-item {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.key {
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    margin-right: 10px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
}

.key::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    bottom: 125%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    white-space: nowrap;
    max-width: 200px;
    word-wrap: break-word;
    word-break: break-word;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10;
}

.key:hover::after {
    opacity: 1;
    top: auto;
    bottom: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.stat-item {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.stat-item::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    bottom: 125%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    white-space: nowrap;
    max-width: 200px;
    word-wrap: break-word;
    word-break: break-word;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10;
}

.stat-item:hover::after {
    opacity: 1;
    top: auto;
    bottom: 100%;
}

.key-mapping {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.map-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.map-item input {
    width: 40px;
    height: 35px;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
}

.music-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.track-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
}

.music-button {
    padding: 10px;
    border: none;
    background-color: #777;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.music-button:hover {
    background-color: #555;
}

.save-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #777;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.save-button:hover {
    background-color: #555;
}

.hall-of-heroes .hero-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.hero-image-container {
    text-align: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
}

/* Notification styles */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    background-color: #333;
    color: #fff;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Modal styles */
#modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#modal-container.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    color: #333;
}

.modal p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #666;
}

.modal .prompt-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 16px;
    box-sizing: border-box;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.modal-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
}

.modal-buttons .btn-submit {
    background-color: #4CAF50;
    color: white;
}

.modal-buttons .btn-cancel {
    background-color: #f44336;
    color: white;
}

.modal-buttons button:hover {
    opacity: 0.8;
}

.modal-buttons button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.key::after, .stat-item::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    bottom: 125%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    width: 2500px; /* Adjusted to ensure tooltips fit within the container */
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10;
}

.key:hover::after, .stat-item:hover::after {
    opacity: 1;
}

/* Hall of Heroes Styles */
.hall-of-heroes {
    margin-top: 30px;
    padding: 20px;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.hall-of-heroes h2 {
    font-size: 30px;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
    color: #222;
}

.hall-of-heroes ol {
    list-style-type: none;
    padding: 0;
}

.hall-of-heroes li {
    font-size: 18px;
    margin: 15px 0;
    position: relative;
    cursor: pointer;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fafafa;
    transition: transform 0.3s, background-color 0.3s;
}

.hall-of-heroes li:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

/* Tooltip for humorous praise */
.hall-of-heroes li::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 8px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 14px;
    z-index: 100;
    pointer-events: none;
}

.hall-of-heroes li:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Additional styling for negative scores */
.hall-of-heroes li.negative-score {
    color: #f44336;
}

.hall-of-heroes li.negative-score::after {
    background-color: rgba(255, 0, 0, 0.8);
}
