body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #121212;
    color: #e0e0e0;
}

.main-container {
    text-align: center;
    padding: 20px;
}

h1 {
    margin: 0 0 20px;
    font-size: 36px;
    color: #ffffff;
}

.container {
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
}

textarea {
    width: 100%;
    height: 300px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #333;
    border-radius: 5px;
    font-size: 16px;
    background-color: #1e1e1e;
    color: #e0e0e0;
    box-sizing: border-box;
}

select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #333;
    border-radius: 5px;
    font-size: 16px;
    background-color: #1e1e1e;
    color: #e0e0e0;
    box-sizing: border-box;
}


.tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #333;
    color: #e0e0e0;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
}

button:hover {
    background-color: #555;
}

button:disabled {
    background-color: #222;
    color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}
.controls {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #e0e0e0;
}

input[type="text"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #1e1e1e;
    color: #e0e0e0;
    margin-bottom: 10px;
}

input[type="range"] {
    width: 100%;
    background-color: #222;
    border: 1px solid #333;
    accent-color: #444;
}

textarea:focus,
input:focus {
    outline: none;
}

.settings-container {
    position: fixed;
    top: 10px;
    right: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #1e1e1e;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #333;
    width: 300px;
    border-radius: 5px;
}

.modal-content h2 {
    color: #e0e0e0;
    margin-top: 0;
}

.modal-content button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
}

.modal-content a {
    color: #4a90e2;
    text-decoration: none;
}

.modal-content a:hover {
    text-decoration: underline;
}

.mode-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.mode-toggle label {
    margin-right: 10px;
    margin-bottom: 0;
}

.mode-toggle input[type="checkbox"] {
    appearance: none;
    width: 40px;
    height: 20px;
    background-color: #333;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}

.mode-toggle input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    top: 1px;
    left: 1px;
    background-color: #e0e0e0;
    transition: 0.3s;
}

.mode-toggle input[type="checkbox"]:checked {
    background-color: #4a90e2;
}

.mode-toggle input[type="checkbox"]:checked::before {
    left: 21px;
}

.loading-indicator {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.loading-indicator::after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 6px solid #e0e0e0;
    border-color: #e0e0e0 transparent #e0e0e0 transparent;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.font-switcher {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.font-switcher label {
    margin-right: 10px;
    color: #e0e0e0;
}

.font-switcher select {
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #1e1e1e;
    color: #e0e0e0;
    font-size: 14px;
}

#textInput {
    font-family: inherit;
}