Astro Rx Spiritual Prescription

body { font-family: 'Playfair Display', serif; background-color: #0c0a2e; /* Dark mystic blue background */ color: #e0d5f9; /* Soft lavender for text */ text-align: center; padding: 20px; } h1 { color: #a169e3; /* Deep purple for headers */ font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: 1.5px; } .input-form { margin: 20px auto; width: 80%; max-width: 400px; background-color: #1f1636; /* Deep purple background for form */ padding: 20px; border-radius: 10px; box-shadow: 0 0 15px rgba(161, 105, 227, 0.6); /* Purple glow */ } label { display: block; margin-top: 15px; color: #e0d5f9; /* Soft lavender text */ } input, select, button { margin-top: 10px; padding: 10px; width: 100%; border-radius: 5px; border: 1px solid #a169e3; /* Deep purple border */ font-family: 'Montserrat', sans-serif; } button { background-color: #a169e3; /* Deep purple */ color: white; font-size: 1rem; font-weight: bold; cursor: pointer; } button:hover { background-color: #c392ff; /* Lighter purple on hover */ } #prescription-output { margin-top: 30px; background-color: #1f1636; padding: 20px; border-radius: 10px; color: #e0d5f9; box-shadow: 0 0 20px rgba(161, 105, 227, 0.7); display: none; }
top of page
bottom of page
document.getElementById('generate-prescription').addEventListener('click', function () { const date = document.getElementById('date').value; const zodiacSign = document.getElementById('zodiac-sign').value; const lunarPhase = document.getElementById('lunar-phase').value; if (!date || !zodiacSign || !lunarPhase) { alert("Please fill in all fields."); return; } // Generate the prescription const prescription = generateSpiritualPrescription(zodiacSign, lunarPhase); // Display the prescription const output = document.getElementById('prescription-output'); output.innerHTML = `

Spiritual Prescription for ${zodiacSign}

Today's Date: ${date}

Zodiac Sign: ${zodiacSign}

Lunar Phase: ${lunarPhase}

Chakra Affected:

${prescription.chakra}

Emotions:

${prescription.emotions}

Actions:

${prescription.actions}

Herbal Remedies:

${prescription.herbs.join(', ')}

Crystals:

${prescription.crystals.join(', ')}

Ritual Suggestion:

${prescription.ritual}

`; output.style.display = 'block'; }); function generateSpiritualPrescription(zodiacSign, lunarPhase) { const zodiacChakraMap = { aries: "Root Chakra", taurus: "Sacral Chakra", gemini: "Solar Plexus Chakra", cancer: "Heart Chakra", leo: "Throat Chakra", virgo: "Third Eye Chakra", libra: "Crown Chakra", scorpio: "Root Chakra", sagittarius: "Solar Plexus Chakra", capricorn: "Sacral Chakra", aquarius: "Throat Chakra", pisces: "Third Eye Chakra" }; const lunarEmotionsMap = { "new-moon": "Renewal, Intentions, Inner Child Reflection", "waxing-crescent": "Hope, Forward Movement, Anxiety Over Progress", "first-quarter": "Challenges, Decisions, Fear of Change", "waxing-gibbous": "Perfectionism, Impatience, Frustration", "full-moon": "Emotional Release, Clarity, Intense Dreams", "waning-gibbous": "Gratitude, Closure, Acceptance", "third-quarter": "Letting Go, Resilience, Strength", "waning-crescent": "Rest, Healing, Reflection" }; const lunarActionsMap = { "new-moon": "Set new intentions, meditate on your inner child.", "waxing-crescent": "Work on a small goal, reflect on progress.", "first-quarter": "Make a tough decision, embrace the change.", "waxing-gibbous": "Practice patience, reframe your perspective.", "full-moon": "Release emotional baggage, perform a cleansing ritual.", "waning-gibbous": "Reflect on recent accomplishments, express gratitude.", "third-quarter": "Let go of what no longer serves you.", "waning-crescent": "Rest, recharge, and prepare for new beginnings." }; const zodiacHerbsCrystalsMap = { aries: { herbs: ["Ginger", "Cinnamon", "Peppermint"], crystals: ["Carnelian", "Red Jasper", "Garnet"] }, taurus: { herbs: ["Rose", "Vanilla", "Sage"], crystals: ["Emerald", "Rose Quartz", "Jade"] }, gemini: { herbs: ["Lavender", "Lemon Balm", "Thyme"], crystals: ["Citrine", "Tiger’s Eye", "Aquamarine"] }, cancer cancer: { herbs: ["Chamomile", "Jasmine", "Aloe Vera"], crystals: ["Moonstone", "Selenite", "Rose Quartz"] }, leo: { herbs: ["Sunflower", "Orange Peel", "Bay Leaf"], crystals: ["Sunstone", "Citrine", "Amber"] }, virgo: { herbs: ["Eucalyptus", "Mint", "Basil"], crystals: ["Amethyst", "Blue Sapphire", "Peridot"] }, libra: { herbs: ["Ylang Ylang", "Jasmine", "Elderflower"], crystals: ["Opal", "Lapis Lazuli", "Rose Quartz"] }, scorpio: { herbs: ["Sage", "Ginger", "Mugwort"], crystals: ["Black Obsidian", "Malachite", "Garnet"] }, sagittarius: { herbs: ["Clove", "Mint", "Cedar"], crystals: ["Amethyst", "Turquoise", "Blue Topaz"] }, capricorn: { herbs: ["Cypress", "Pine", "Comfrey"], crystals: ["Black Onyx", "Garnet", "Jet"] }, aquarius: { herbs: ["Peppermint", "Thyme", "Frankincense"], crystals: ["Aquamarine", "Amethyst", "Fluorite"] }, pisces: { herbs: ["Lotus", "Lavender", "Sandalwood"], crystals: ["Amethyst", "Aquamarine", "Selenite"] } }; return { chakra: zodiacChakraMap[zodiacSign], emotions: lunarEmotionsMap[lunarPhase], actions: lunarActionsMap[lunarPhase], herbs: zodiacHerbsCrystalsMap[zodiacSign].herbs, crystals: zodiacHerbsCrystalsMap[zodiacSign].crystals, ritual: "Perform a simple candle ritual: Light a candle, meditate on your chosen intention, and visualize the chakra spinning freely, releasing any blockages." }; }