body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden; /* Prevents the body from scrolling */
  }
  
  .container {
    max-width: 600px;
    width: 100%;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-y: auto; /* Allows vertical scrolling */
    max-height: 90vh; /* Ensures the container fits within the viewport */
  }
  
  h2 {
    text-align: center;
  }
  
  form {
    display: grid;
    gap: 10px;
  }
  
  label {
    font-weight: bold;
  }
  
  input[type="text"],
  select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
  }
  
  button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px; /* Space between buttons */
  }
  
  button[type="submit"] {
    background-color: #28a745; /* Green color for submit button */
  }
  
  button[type="submit"]:hover {
    background-color: #218838;
  }
  
  button:hover {
    background-color: #0056b3;
  }
  
  .card {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
  }
  
  .preview-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
  }
  
  .carousel {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
  }
  
  .card-preview {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .card-preview img {
    max-width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
  }
  
  .card-preview h3 {
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 18px;
  }
  
  .card-preview a {
    display: inline-block;
    padding: 8px 0;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    width: 100%;
    text-align: center;
  }
  
  .card-preview a:hover {
    background-color: #0056b3;
  }
  