/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
  }
  
  header {
    background-color: #333;
    color: #fff;
    width: 100%;
    padding: 1rem 0;
    text-align: center;
    font-size: 1.5rem;
  }
  
  main {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
  }
  
  h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
  }
  
  form {
    display: flex;
    flex-direction: column;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  label {
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  input[type="text"],
  select,
  input[type="file"],
  button {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 0.5rem;
  }
  
  button {
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  button:hover {
    background-color: #555;
  }
  
  .meme-image {
    display: block;
    margin: 1rem auto;
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
  }
  
  footer {
    margin-top: auto;
    padding: 1rem;
    background-color: #333;
    color: #fff;
    text-align: center;
    width: 100%;
  }
  
  footer p {
    font-size: 0.9rem;
  }

  .meme-preview {
    display: block;
    max-width: 20%;
    height: auto;
    margin-top: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
  }

  h3 {
    padding-top:20px;
  }

  h3 {
    text-align: center;
    padding-top: 20px;
  }
  
/* Gallery container */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    max-width: 100%; /* Adjust width to keep it slightly narrow if desired */
  }
  
  /* Individual gallery image */
  .gallery a {
    width: calc(33.33% - 1rem); /* Three images per row with space between */
    max-width: 200px; /* Limit the max width to keep images consistent */
    display: block;
  }
  
  .gallery-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }
  
  .gallery-image:hover {
    transform: scale(1.05);
  }