<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>AI Generated Hindu God Picture</title>
  <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
  <style>
    body {
      font-family: 'Roboto', sans-serif;
      margin: 0;
      padding: 0;
      background-color: #f4f4f9;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100vh;
    }
    .container {
      text-align: center;
      background-color: white;
      padding: 30px;
      border-radius: 10px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      width: 80%;
      max-width: 600px;
    }
    h1 {
      font-size: 2rem;
      margin-bottom: 20px;
    }
    label {
      font-size: 1.1rem;
      margin-bottom: 10px;
      display: block;
    }
    select {
      padding: 10px;
      font-size: 1rem;
      margin-bottom: 20px;
      width: 100%;
      max-width: 300px;
      border-radius: 5px;
      border: 1px solid #ccc;
    }
    button {
      background-color: #4caf50;
      color: white;
      border: none;
      padding: 10px 20px;
      font-size: 1.2rem;
      border-radius: 5px;
      cursor: pointer;
      margin-bottom: 20px;
    }
    button:hover {
      background-color: #45a049;
    }
    #generatedImage {
      margin-top: 20px;
      max-width: 100%;
      max-height: 400px;
      border-radius: 5px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
  </style>
</head>
<body>

<div class="container">
  <h1>AI Generated Hindu God Image</h1>
  <label for="god-select">Choose a Hindu God</label>
  <select id="god-select">
    <option value="ganesha">Lord Ganesha</option>
    <option value="shiva">Lord Shiva</option>
    <option value="vishnu">Lord Vishnu</option>
    <option value="durga">Goddess Durga</option>
    <option value="lakshmi">Goddess Lakshmi</option>
    <option value="krishna">Lord Krishna</option>
    <!-- Add more Gods as needed -->
  </select>
  <button onclick="generateImage()">Generate Image</button>
  <img id="generatedImage" src="" alt="Generated Image" style="display:none;">
</div>

<script>
  // Simulate AI-generated image fetching (replace this with actual API integration)
  function generateImage() {
    const godSelect = document.getElementById("god-select");
    const godName = godSelect.value;
    const imageUrl = `https://via.placeholder.com/600x400.png?text=AI+Image+of+${capitalizeFirstLetter(godName)}`; // Placeholder for AI image

    // Display the generated image
    const imageElement = document.getElementById("generatedImage");
    imageElement.src = imageUrl;
    imageElement.style.display = "block";
  }

  // Helper function to capitalize the first letter of a string
  function capitalizeFirstLetter(string) {
    return string.charAt(0).toUpperCase() + string.slice(1);
  }
</script>

</body>
</html>