body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Evita lo scorrimento */
}

.logo-container {
    margin-bottom: 0px;
}

#logo {
    max-width: 100%;
    height: auto;
    max-height: 50px; /* Riduce l'altezza massima del logo */
}

.container {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 280px; /* Ridotto per adattarsi meglio allo schermo */
    max-height: calc(100vh - 100px); /* Adatta l'altezza del contenitore per evitare overflow */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

h1 {
    text-align: center;
    color: #333;
    margin: 0;
    padding-bottom: 10px;
}

#task-input {
    width: calc(100% - 20px);
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-bottom: 10px;
}

#add-task-btn {
    width: 100%;
    padding: 8px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

#add-task-btn:hover {
    background-color: #218838;
}

#task-list {
    list-style-type: none;
    padding: 0;
    margin-top: 10px;
    overflow-y: auto;
    max-height: 40vh; /* Limita l'altezza della lista per evitare overflow */
}

#task-list li {
    padding: 8px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    word-break: break-word;
}

.task-done {
    text-decoration: line-through;
    color: #999;
}

.remove-task-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.remove-task-btn:hover {
    background-color: #c82333;
}

#clear-tasks-btn {
    width: 100%;
    padding: 8px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 10px;
}

#clear-tasks-btn:hover {
    background-color: #c82333;
}