/* Corpo e font */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1e1e3f;
    color: white;
    margin: 0;
    padding: 20px;
    text-align: center;
}

/* Titolo */
h1 {
    font-size: 2.5rem;
    color: #d1d3ff;
    margin-bottom: 20px;
}

/* Barra di ricerca e bottone */
#searchBar {
    padding: 10px;
    width: 250px;
    border: 2px solid #5c5edc;
    border-radius: 20px;
    background-color: #2a2a50;
    color: white;
    font-size: 1rem;
    outline: none;
    margin-right: 10px;
}

#searchBar::placeholder {
    color: #bbb;
}

#btnRicerca {
    padding: 10px 20px;
    background-color: #5c5edc;
    border: none;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

#btnRicerca:hover {
    background-color: #7c7efb;
}

/* Griglia contenitore */
#container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding: 10px;
}

/* Singolo drink */
.drink {
    background-color: #2b2d63;
    border: 1px solid #5c5edc;
    border-radius: 12px;
    padding: 15px;
    color: white;
    box-shadow: 0px 0px 8px #00000044;
    transition: transform 0.2s, box-shadow 0.2s;
}

.drink:hover {
    transform: scale(1.03);
    box-shadow: 0px 0px 15px #7c7efb;
}

.drink h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #d1d3ff;
}

.drink img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #444;
}

#header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to right, #5c5edc, #8a5edc);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

#header a {
    text-decoration: none;
}

#header label {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

#header label:hover {
    color: #e0e0ff;
}
