* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f0f2f5; 
    color: #333;
}

header {
    background-color: #4a90e2;
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: rgba(6, 24, 44, 0.4) 0px 0px 0px 2px, rgba(6, 24, 44, 0.493) 0px 4px 6px -1px, rgba(255, 255, 255, 0.08) 0px 1px 0px inset;
}

header h1 {
    font-size: 2rem;
}

main {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.container {
    max-width: 1200px;
    width: 640px;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    position: relative; 
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.add-task-area {
    display: flex; 
    gap: 10px; 
    margin-bottom: 25px; 
}

.input-new-task {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.input-new-task:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.btn-add-task {
    padding: 12px 20px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s ease-in-out;
}

.btn-add-task:hover {
    background-color: #357abd;
}

.tasks {
    list-style: none;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #fdfdfd;
    border-bottom: 1px solid #c6c6c67b;
    transition: background-color 0.2s ease;
    position: relative; 
    word-break: break-word;
}


.task-item:hover {
    background-color: #ececec;
    border-radius: 5px;
}

.task-item:last-child {
    border-bottom: none;
}

.task-text {
    flex-grow: 1; 
    margin-right: 15px; 
}

.btn-delete {
    padding: 6px 12px;
    background-color: transparent;
    background-color: #ff4d4d;
    color: white;
    border: 1px solid #ffc5c5;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
}

.btn-delete:hover {
    background-color: #e03f3f;
}

.side-image {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 180px;
    height: auto;
    transform: translate(76%, 25%); 

}

@media (max-width: 900px) {
    .side-image {
        display: none;
    }
}