/* Center everything on the screen nicely */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: #fcf6f5; /* Soft, warm pastel background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* One clean container card */
.picker-box {
    background: white;
    padding: 35px 30px;
    border-radius: 20px; /* Softer, rounder corners */
    box-shadow: 0 8px 24px rgba(255, 182, 193, 0.2); /* Soft pinkish tint shadow */
    width: 360px;
    text-align: center;
    border: 2px solid #ffe4e1; /* Pastel accent border */
}

/* --- Cute Heading Styling --- */
.header-container {
    margin-bottom: 25px;
    position: relative;
}

h1 {
    display: inline-block;
    font-size: 36px;
    color: #ff6b81; /* Sweet strawberry pink */
    font-weight: 800;
    text-shadow: 2px 2px 0px #ffe4e1; /* Playful 3D sticker look */
    letter-spacing: -1px;
}

.sparkle-icon {
    font-size: 20px;
    vertical-align: super;
    display: inline-block;
    animation: float 2s infinite ease-in-out;
}

/* Make the second sparkle offset in its animation */
.header-container span:last-of-type {
    animation-delay: 1s;
}

.cute-subtitle {
    margin-top: 6px;
    color: #a4b0be;
    font-size: 14px;
    font-style: italic;
    font-weight: 500;
}

/* Little floating effect for sparkles */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
/* ---------------------------- */

/* Horizontal input area */
.input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

input {
    flex: 1;
    padding: 12px;
    border: 2px solid #f1f2f6;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

input:focus {
    border-color: #ff6b81;
    background-color: #fffafb;
}

#addBtn {
    padding: 10px 18px;
    background-color: #ff6b81;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

#addBtn:hover {
    background-color: #ff4757;
}

/* Food list styling */
ul {
    list-style: none;
    margin-bottom: 24px;
    max-height: 160px;
    overflow-y: auto;
    text-align: left;
}

li {
    background: #fff0f2; /* Light blush tone */
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #57606f;
    font-weight: 500;
}

.delete-btn {
    background: none;
    border: none;
    color: #ff6b81;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.2s;
}

.delete-btn:hover {
    color: #ff4757;
}

/* Bright friendly action button */
#pickBtn {
    width: 100%;
    padding: 14px;
    background-color: #2ed573; /* Fresh green */
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(46, 213, 115, 0.2);
    transition: all 0.1s;
}

#pickBtn:hover {
    background-color: #26af5f;
}

#pickBtn:active {
    transform: scale(0.98);
}

/* Large display for the chosen food */
#resultDisplay {
    margin-top: 22px;
    color: #ff6b81;
    font-size: 26px;
    min-height: 32px;
}

.recipe-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: min(320px, calc(100% - 24px));
    background: #fff7e6;
    border: 2px solid #f7b731;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    padding: 16px 18px;
    z-index: 1000;
    animation: slideUp 0.4s ease-out;
}

.recipe-popup h3 {
    color: #b85c38;
    font-size: 18px;
    margin-bottom: 8px;
}

.recipe-popup p {
    color: #7a4b2a;
    font-weight: 600;
    margin-bottom: 8px;
}

.recipe-popup ol {
    padding-left: 18px;
    color: #5f3d24;
    line-height: 1.5;
}

@keyframes slideUp {
    from {
        transform: translateY(12px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}