body {
    margin: 0;
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

/* Gradient background matching the game style */
#page {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, #d4933a, #e8756a);
    border: 8px solid #6a0dad;
    box-sizing: border-box;
    padding: 40px 60px;
}

/* Title */
#title {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1a1a2e;
    margin-bottom: 30px;
}

/* Input row */
#input-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

/* Search bar wrapper */
#search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50px;
    padding: 10px 18px;
    width: 380px;
}

#back-arrow {
    font-size: 1.1rem;
    margin-right: 10px;
    color: #333;
    cursor: pointer;
}

#ingredient-input {
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: #333;
    flex: 1;
}

#ingredient-input::placeholder {
    color: #aaa;
}

#arrow-btn {
    font-size: 0.8rem;
    color: #333;
    cursor: pointer;
    margin-left: 8px;
}

/* Dropdown */
#dropdown {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    z-index: 100;
    max-height: 260px;
    overflow-y: auto;
}

#dropdown li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: #222;
    cursor: pointer;
}

#dropdown li:hover {
    background: #f0e6ff;
}

#dropdown li::after {
    content: '▶';
    font-size: 0.7rem;
    color: #888;
}

/* Amount + unit inputs */
.small-input {
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50px;
    padding: 10px 18px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #333;
    outline: none;
    width: 90px;
}

.small-input::placeholder {
    color: #aaa;
}

/* + and - buttons */
.icon-btn {
    background: none;
    border: 2px solid #1a1a2e;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    line-height: 1;
}

.icon-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Added ingredients list */
#ingredient-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

#ingredient-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    color: #1a1a2e;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    width: 500px;
}

#ingredient-list li::after {
    content: '▶';
    font-size: 0.7rem;
    color: #555;
}