body {
    font-family: Arial, sans-serif;
    padding: 20px;
    background-color: #f4f4f9;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #4CAF50;
}

.input-section, .dialogue-section, .output-section {
    margin-bottom: 20px;
}

.dialogue-list {
    list-style-type: none;
    padding: 0;
}

.dialogue-list li {
    margin-bottom: 10px;
}

.output {
    border: 1px solid #ddd;
    padding: 10px;
    height: 200px;
    overflow-y: scroll;
    background-color: #f9f9f9;
    font-family: 'Courier New', monospace;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

/* Stili per i pulsanti di modifica ed eliminazione */
.edit-button, .delete-button {
    margin-left: 10px;
    padding: 5px 10px;
    font-size: 0.8em;
}

.delete-button {
    background-color: #dc3545;
}

.delete-button:hover {
    background-color: #c82333;
}

.dialogue-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dialogue-list li span {
    flex: 1;
}

/* Stili per i personaggi e l'output */
.character1-text {
    color: #2196F3;
    font-weight: bold;
    font-size: 1.2em;
}

.character2-text {
    color: #E91E63;
    font-weight: bold;
    font-size: 1.2em;
}

.output p {
    margin: 0;
    padding: 5px 0;
    display: inline-block;
    margin-right: 10px;
}

.speed-control {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.speed-control label {
    min-width: 150px;
}

.speed-control input {
    flex: 1;
}

.speed-value {
    min-width: 50px;
    text-align: right;
}


/* Stili generali */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #333;
}

/* Stili per la pagina index */
.index-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 15px;
    max-width: 800px;
    margin: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
}

.feature {
    flex-basis: 30%;
    min-width: 200px;
    margin: 10px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

p {
    font-size: 1.1em;
    line-height: 1.4;
    margin-bottom: 20px;
}

h1 {
    font-size: 2em;
    margin-bottom: 15px;
}

p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.start-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.3em;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.start-button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
}

.feature {
    flex-basis: 30%;
    min-width: 200px;
    margin: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}


/* Stili per la pagina di configurazione */
.settings-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.button-group {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.save-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.back-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #666;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #555;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.subscription-info {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #ddd;
}


.settings-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #007bff url('images/gear-icon.svg') no-repeat center;
    background-size: 24px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.settings-button:hover {
    transform: rotate(45deg);
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.simulation-controls {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}