* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5dc;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    background-color: #f5f5dc;
    padding: 20px;
    z-index: 10;
}

.title {
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    color: #000;
    margin-bottom: 20px;
}

.input-section {
    width: 100%;
}

.input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.todo-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #000;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px;
}

.add-button {
    padding: 10px 20px;
    border: 1px solid #000;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    font-size: 16px;
    white-space: nowrap;
}

.add-button:hover {
    background-color: #f0f0f0;
}

.description-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #000;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.todo-list-container {
    margin-top: 220px;
    overflow-y: auto;
    max-height: calc(100vh - 240px);
    padding: 0 20px;
}

.todo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.todo-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 4px;
    cursor: pointer;
    gap: 10px;
}

.todo-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.todo-item-name {
    font-size: 16px;
    color: #000;
}

.todo-item-description {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.todo-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.delete-button {
    padding: 6px 12px;
    background-color: #ff0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
}

.delete-button:hover {
    background-color: #cc0000;
}
