* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    background-color: #111;
    color: #eee;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}
.header {
    background-color: #333;
    color: #0f0;
    padding: 15px;
    text-align: center;
    font-size: 18px;
    border-bottom: 2px solid #0f0;
}
.messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 100px;
    background-color: #222;
}
.message {
    background-color: #333;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    word-wrap: break-word;
}
.message strong {
    color: #0f0;
}
.code {
    background-color: #000;
    color: #0f0;
    padding: 10px;
    border-radius: 10px;
    margin: 10px 0;
    font-family: monospace;
    font-size: 14px;
    word-wrap: break-word; /* Assicurati che il testo venga a capo se necessario */
}
.message.warn-message {
    background: #5f3535;
    border: 1px solid #8b4444;
}
.form {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #111;
    border-top: 2px solid #0f0;
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0, 255, 0, 0.5);
}
.form-container {
    display: flex;
    gap: 10px;
}
textarea {
    flex: 1;
    height: 50px;
    background-color: #333;
    color: #eee;
    border: 1px solid #0f0;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    resize: none;
}
input[type="submit"] {
    background-color: #0f0;
    color: #111;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}
input[type="submit"]:hover {
    background-color: #0a0;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: #222;
    color: #f00;
    padding: 20px;
    border: 2px solid #f00;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 400px;
}
.close-btn {
    background-color: #f00;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    border-radius: 5px;
    cursor: pointer;
}
.close-btn:hover {
    background-color: #c00;
}
li{
    margin-left: 20px;
}

/* Informativa */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
#informativa-frame {
    color: #0f0;
    background-color: #333;
    border-radius: 20px;
    font-size: 20px;
    width: 600px;
    height: 300px;
    max-width: 90%;
    max-height: 80%;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    overflow: auto;
}
#informativa-frame p {
    margin-bottom: 10px;
    flex-grow: 1;
}
#informativa-frame div {
    text-align: left;
}
#informativa-frame div ul {
    text-align: left;
    margin-left: 20px;
}
#informativa-frame label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}
#informativa-frame button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #0f0;
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
#informativa-frame button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
#informativa-frame button:hover {
    background-color: #0f0;
}
