.modal {
    display: none; 
    position: fixed;
    z-index: 101;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    animation: fade-in 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    text-align: left;
    position: relative;
    max-height: 70vh; /* Add max-height for scrollability */
    overflow-y: auto; /* Enable vertical scrolling */
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#endings-list {
    list-style-type: none;
    padding: 0;
}

#endings-list li {
    margin-bottom: 10px;
    font-size: 1.2em;
}

#endings-list li.unlocked .ending-name {
    color: #28a745;
    font-weight: bold;
}

/* Specific styling for the guide list for better readability */
#guide-list {
    list-style-type: disc; /* Use bullets */
    padding-left: 20px; /* Indent the list */
}

#guide-list li {
    margin-bottom: 10px;
    font-size: 1.1em; /* Slightly smaller than ending list */
    line-height: 1.4;
}

#guide-list li.unlocked {
    color: #28a745; /* Green for unlocked hints */
    font-weight: bold;
}

#guide-list li.unlocked span.guide-ending-name {
    text-decoration: underline;
}