body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: #444;
    font-size: 2em;
    margin-bottom: 20px;
}

form {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 500px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
}

input[type="file"],
input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

button:hover {
    background-color: #218838;
}

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

.clipboard-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #e9f7ef;
    border: 1px solid #28a745;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.clipboard-container input[type="text"] {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
}

.clipboard-container button {
    background-color: #007bff;
    width: auto;
    white-space: nowrap;
}

.clipboard-container button:hover {
    background-color: #0069d9;
}

#copyMessage.visible {
    display: inline-block;
    margin-left: 10px;
    color: #28a745;
    font-weight: bold;
}

#copyMessage.hidden {
    display: none;
}

#postTips {
    margin-top: 20px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 15px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #856404;
}

#errorPanel {
    margin-top: 20px;
    color: #dc3545;
    font-weight: bold;
}

textarea {
    width: max(min(60ch, 95vw), 10ch);
}

.disabledOption {
    pointer-events: none;
    opacity: 0.6;
}
