@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: #1a132b;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    transition: background 0.3s, color 0.3s;
}

.dark-mode {
    background: #100820;
    color: #ffffff;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(50, 23, 77, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #c084fc;
}

h1 {
    font-size: 2rem;
    color: #c084fc;
}

#darkModeToggle {
    background: #c084fc;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#darkModeToggle:hover {
    background: #a05adf;
}

#search {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    margin: 20px auto;
    display: block;
    border-radius: 20px;
    border: 2px solid #c084fc;
    background: #2a0f40;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

#cheatSheet {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.category {
    margin-bottom: 40px;
}

.category h2 {
    font-size: 1.8rem;
    color: #c084fc;
    text-transform: uppercase;
    border-bottom: 3px solid #c084fc;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.category-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: rgba(50, 23, 77, 0.6);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, background 0.3s;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: #ffffff;
}

.card p {
    font-size: 1rem;
    color: #c084fc;
    font-weight: 600;
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(75, 32, 140, 0.7);
}

.dark-mode .card {
    background: rgba(42, 15, 64, 0.8);
}

.dark-mode .card:hover {
    background: rgba(93, 46, 153, 0.9);
}
footer {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
    background: rgba(75, 32, 140, 0.8); /* Subtle purple background */
    backdrop-filter: blur(8px);
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    border-top: 2px solid #c084fc;
    border-radius: 10px 10px 0 0; /* Soft rounded top edges */
}

footer p {
    margin: 0;
    padding: 10px;
    transition: 0.3s;
}

footer p:hover {
    color: #ffccff; /* Light pink glow effect */
    text-shadow: 0 0 8px #ff66ff, 0 0 15px #ff33ff;
}
/* Spice Container to align text and icons next to each other */
.spice-container {
    display: flex;
    flex-direction: column; /* Stack icon, spice name, and bread name vertically */
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #fff;
}

.spice-icon {
    width: 50px; /* Adjust the size of the icon */
    height: 50px;
    border-radius: 5px;
    object-fit: cover;
    transition: transform 0.3s;
}

.spice-icon:hover {
    transform: scale(1.1);
}

.spice-name {
    font-size: 1rem;
    font-weight: 600;
    color: #c084fc;
    text-align: center;
}
