@import url('https://fonts.googleapis.com/css2?family=BBH+Sans+Hegarty&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: "Jost", sans-serif;
    background-color: #474745;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background: #fff;
    padding: 25px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, alpha);
    width: 450px;
}

h1 {
    font-family: "BBH Sans Hegarty", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    color: #333;
    border: #c2c2c2;
}

.input-area, .search-area {
    font-family: "Jost", sans-serif;
    display: flex;
    justify-content: space-between;
    margin: 10px;
}

input[type="text"] {
    width: 100vh;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    outline: none;
}

button {
    font-family: "Jost", sans-serif;
    padding: 10px 15px;
    background-color: #cbcbcb;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #acacac;
}

ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

li {
    background-color: #f0f0f0;
    width:100%;
    padding:10px;
    margin-bottom: 8px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

li.bought {
    text-decoration: none;
    color: grey;
     background-color: #d8ffd8;
}

.delete-btn {
  background-color: crimson;
  border: none;
  color: white;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.delete-btn:hover {
  background-color: darkred;
}

@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    li {
        flex-direction: column;
        align-items: center;
    }

    button.delete {
        margin-top: 5px;
        width: 100%;
        text-align: center;
    }
}