@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter';
}

body {
    background: #f5e5d5;
}

main {
    padding: 20px;
    /* display: flex;
    flex-direction: column; */
}

h1 {
    margin-bottom: 15px;
    text-align: center;
    color: #161b33;
}

p {
    font-size: 0.7rem;
    text-align: right;
    margin-bottom: 20px;
    margin-right: 10px;
}

.todo-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
    background: #bcb1c3;
    box-shadow: 0 0 15px rgba(0,0,0, 0.25);
}

.input-container {
    display: flex;
    justify-content: space-between;
    border-radius: 20px;
    background-color: #bcb1c3;
}

.todo-input {
    border: none;
    padding: 10px;
    border-radius: 20px;
    width: 85%;
}
.todo-input:focus {
    outline: none;
}

#add-task-btn {
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    color: darkblue;
    background-color: #fff;
}

.todo-list {
    margin-top: 10px;
    list-style-type: none;
    padding: 0;
}

.todo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 10px 0; */
    /* background-color: white; */
    /* border-radius: 7px; */
    margin-bottom: 8px;
    color: #161b33;
}

.delete-btn {
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    color: #161b33;
    border-radius: 8px;
    background-color: rgb(218, 215, 215);
}

.todo-item.completed {
    text-decoration: line-through 2px #dd6e42;
    opacity: 0.7;
}

.slj {
    width: 250px;
    height: 250px;
    position: absolute;
    top: 380px;
    left: 585px;
    display: none;
}

.slj img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: shake 3.6s ease;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg);}
  }