body {
    font-family: sans-serif;
    background-color: #f9f9f9;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 700px;
    margin: auto;
    background: #ffffff;
    padding: 20px;
    padding-bottom: 80px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

button {
    padding: 8px 12px;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    background-color: #007acc;
    color: white;
    margin-top: 10px;
}

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

.accordion-item {
    margin-top: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f4f4f4;
}

.accordion-header {
    padding: 10px;
    font-weight: bold;
    background-color: #e0e0e0;
    cursor: pointer;
}

.accordion-content {
    padding: 10px;
    display: none;
}

.option-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    margin: 8px 0;
}

.option-wrapper img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #aaa;
    flex-shrink: 0;
}

.option-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.option-wrapper button {
    align-self: flex-start;
    padding: 6px 12px;
    background-color: #007acc;
    color: white;
    border: none;
    border-radius: 4px;
    margin-top: 8px;
}

.option-wrapper button[disabled] {
    background-color: #cccccc;
    color: #666;
    border: 1px solid #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.option-requirements {
    font-size: 13px;
    color: #555;
    white-space: pre-wrap;
    margin-top: 4px;
}

.option-description {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    margin-top: 4px;
}

.points-tracker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f0f0f0;
    border-top: 1px solid #ccc;
    padding: 10px 20px;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

#modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
}

#modalTextarea {
    width: 100%;
    height: 150px;
    margin-top: 10px;
    padding: 10px;
    font-family: monospace;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #ccc;
    resize: vertical;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

#modalClose {
    background-color: #ccc;
}

.conflict {
    background-color: #e57373 !important;
}

.prereq {
    background-color: #fbc02d !important;
}

.header-image-container {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.header-image-container img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
}

.story-block {
    white-space: pre-wrap;
    background: #f9f9f9;
    border-left: 4px solid #ccc;
    padding: 1em;
    margin-bottom: 1em;
    font-family: serif;
    font-size: 15px;
    color: #333;
}

.story-input-wrapper {
    margin-bottom: 1em;
}

.story-input-wrapper label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.3em;
}

.story-input-wrapper input {
    padding: 0.5em;
    width: 100%;
    max-width: 400px;
    font-size: 14px;
}

.subcategory-header {
    margin-top: 1rem;
    font-size: 1.1em;
    font-weight: bold;
}

.subcategory-content {
    padding-left: 1rem;


}

.option-requirements,
.story-block,
.option-description,
.dynamic-choice-wrapper label,
label,
div {
    word-break: normal;
    /* Don’t break mid-word */
    overflow-wrap: break-word;
    /* Break between words if needed */
    white-space: normal;
    /* Allow normal wrapping */
}

.option-requirements {
    word-break: keep-all;
    overflow-wrap: break-word;
}

#pointsDisplay {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

#pointsDisplay span {
    white-space: nowrap;
}

#pointsDisplay {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    line-height: 1.6;
}

#pointsDisplay span {
    white-space: nowrap;
    font-size: 14px;
}