html, body {
    background-color: #5d466d;
}
header {
    padding: 20px;
    text-align: center; /* Center header content */
    /* Optional: Add a subtle background or border */
    /* background: linear-gradient(to bottom, #6a537d, #5d466d); */
    /* border-bottom: 1px solid #4a375a; */
}

h2 {
    color: white;
    text-align: center;
    font-family: 'Lato', sans-serif; /* Use Lato font */
    font-weight: 700; /* Optional: Use a bolder weight */
}
h3 {
    color: red;
}
h4 {
    color: white;
}
h5 {
    color: white;
}
li {
    color: white;
}
p {
    color: white;
}
#logo {
    max-height: 200px;
    display: block;
    margin: 0 auto;
}
#results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-content: center;
    align-items: center;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px); /* Optional: slight upward movement */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#results > div {
    display: flex;
    flex-direction: column;
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px black;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added box-shadow transition */
    animation: fadeIn 0.5s ease-out forwards; /* Apply fade-in animation */
}
#results > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
#results img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}
#favsResults {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}
#favsResults > div {
    background-color: #4a375a;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    animation: fadeIn 0.5s ease-out forwards;
}
#favsResults img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}
button {
    background-color: #8aa735;
    color: white;
    border-radius: 5px;
}
button:disabled {
    background-color: #2e2c29;
}