body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f8ff;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s, color 0.3s;
}
h1 {
    color: #72b2dd;
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 0;
}
.wishlist {
    list-style-type: none;
    padding: 0;
    width: 80%;
    max-width: 600px;
}
.wishlist-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transform: translateY(0);
    transition: background-color 0.3s, transform 0.5s ease, opacity 0.5s ease;;
}
.wishlist-item.fade-out {
    animation: fadeOut 0.5s forwards;
}
.wishlist-item.fade-in {
    animation: fadeIn 0.5s forwards;
}
.wishlist-item:hover {
    background-color: #f9f9f9;
    transform: translateY(-5px);
}
.item-img {
    margin-right: 15px;
}
.item-img img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #ddd;
}
.item-details {
    display: flex;
    flex-direction: column;
}
.item-name {
    font-size: 1.4em;
    color: #4CAF50;
}
.item-description {
    margin: 5px 0;
    color: #666;
    overflow-wrap: anywhere;
}
.item-price {
    color: #ff4500;
    font-weight: bold;
}
.description {
    text-align: center;
    margin-bottom: 2rem;
}
.sort {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 3rem;
}

.sort:focus {
    border-color: #72b2dd;
    box-shadow: 0 0 5px rgba(76, 175, 162, 0.5);
    outline: none;
}

.sort:hover {
    border-color: #72b2dd;
}

.top-strip {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #45a049;
    color: #fff;
    text-align: left;
    padding: 10px;
    z-index: 1000;
}

.top-strip a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.top-strip a:hover {
    text-decoration: underline;
}

.dark-mode {
    background-color: #333;
    color: #f0f8ff;
}
.dark-mode .wishlist-item {
    background-color: #444;
    border-color: #555;
}
.dark-mode .wishlist-item:hover {
    background-color: #555;
}
.dark-mode .sort {
    background-color: #444;
    color: #f0f8ff;
    border-color: #555;
}
.dark-mode .sort:hover {
    border-color: #72b2dd;
}
.dark-mode .item-name {
    color: #90ee90;
}
.dark-mode .item-price {
    color: #ff6347;
}
.dark-mode-button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    position: absolute;
    top: 10px;
    right: 20px;
}
.dark-mode-button:hover {
    background-color: #45a049;
}
.dark-mode .top-strip {
    background-color: #5a5a5a;
}

.avatar {
    width: 6rem; 
    display: block;
    border-radius: 30%;
    position: absolute;
    top: 10px;
    left: 20px;
}
.wishlist-container {
    margin-top: 5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Keyframes */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}