<!DOCTYPE html>
<html lang="en" style="background: var(--background-primary); display: flex;align-items: center;justify-content: center;height: 100%;">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Моя пицца</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            text-align: center;
            background-color: #fffbe6;
        }
        h1 {
            color: #ff6f61;
        }
        #pizza {
            position: relative;
            width: 300px;
            margin: 0 auto;
        }
        img {
            width: 100%;
        }
        .button {
            margin: 5px;
            padding: 10px;
            background-color: #ffcc00;
            border: none;
            cursor: pointer;
        }
        #ingredients{
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: row;
            height: 86px;
            gap: 1em
        }
        #ingredients img{
            height: 86px;
            width: 86px;
            object-fit: contain;
        }
    </style>
</head>
<body>
    <h1>Собери свою волшебную пиццу!</h1>
    <p>Нажимай на кнопки, чтобы добавить ингредиенты на свою пиццу!</p>
    <div id="pizza">
        <img src="/pages/Web/Media/pizza_base.webp" alt="Pizza Base">
    </div>
    <div id="ingredients">
        <img id="cheese" src="/pages/Web/Media/cheese.png" alt="Cheese" style="display: none;">
        <img id="tomatoes" src="/pages/Web/Media/tomato.png" alt="Tomatoes" style="display: none;">
        <img id="mushrooms" src="/pages/Web/Media/mushrooms.png" alt="Mushrooms" style="display: none;">
    </div>
    <button class="button" onclick="addIngredient('cheese')">Добавить сыр 🧀</button>
    <button class="button" onclick="addIngredient('tomatoes')">Добавить помидоры 🍅</button>
    <button class="button" onclick="addIngredient('mushrooms')">Добавить грибы 🍄</button>
    <script>
        function addIngredient(ingredientId) {
            const ingredient = document.getElementById(ingredientId);
            ingredient.style.display = ingredient.style.display === 'none' ? 'block' : 'none';
        }
    </script>
</body>
</html>