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

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

.title {
    font-size: 4.0rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 2.0rem;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.opensource-note {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 10px;
    color: #666;
}

.window {
    border: 2px solid #000;
    padding: 20px;
    border-radius: 5px;
    background-color: white;
    width: 100%;
    box-sizing: border-box;
}

input[type="text"], textarea, input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
    resize: vertical;
}

button {
    padding: 10px 20px;
    background-color: #808080;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

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

.button-container {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.hidden {
    display: none;
}

#uploadedImage {
    max-width: 100%;
    max-height: 500px;
    display: none;
    margin-top: 10px;
    border: 1px solid #000;
}

.dynamic-height {
    min-height: 150px;
    overflow-y: auto;
}

#imageContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

#clearImageButton {
    margin-top: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

#loadingIndicator {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.editable-note {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.status-message {
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

.mask-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.mask-toggle label {
    font-size: 0.9em;
    color: #666;
    cursor: pointer;
}

.mask-toggle input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}