body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.container {
    width: 95vw;
    max-width: 600px;
    padding: 20px;
    padding-top: 0px;
    padding-bottom: 5px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

/* mobile */
@media (max-width: 650px) {
    .container {
        width: 98vw;
        max-width: 98vw;
        padding: 10px;
    }
}

.button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    margin: 10px 0;
    border-radius: 5px;
}

.button:disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed;
}

.button:hover {
    background-color: #45a049;
}

.input-field input, .input-field textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.character-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    height: 200px; /* fixed height */
    overflow-y: auto; /* vertical scrollbar */
}

.character-list li {
    background-color: #f2f2f2;
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
    cursor: pointer;
}

/* creator.html char list */
.selected {
    background-color: rgba(69, 160, 69, 0.7) !important;
    font-weight: bold;
    border: 10px;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: auto;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 10;
    bottom: 125%; /* tooltip is above the text */
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    font-size: small;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* file input, same as buttons */
.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.file-input-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

.file-input-button:hover {
    background-color: #45a049;
}

.file-name {
    color: #666;
    font-style: italic;
    font-size: 14px;
}