body {
    font-family: Arial, sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
  }
  
  .container {
    width: 100%;
    display: flex;
  }
  
  .left-panel {
    width: 40%; /* Left panel occupies 40% */
    display: flex;
    flex-direction: column;
  }
  
  .header {
    background-color: white; /* Ensure background color for fixed header */
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add some shadow for better separation */
    z-index: 10;
    flex-shrink: 0; /* Ensure header doesn't shrink */
  }
  
  .header h1 {
    margin: 0;
    font-size: 24px;
  }
  
  .header input,
  .header button {
    margin-top: 10px;
  }
  
  .header input {
    width: calc(100% - 20px); /* Increase input width */
    padding: 8px;
    box-sizing: border-box;
  }
  
  #gallery {
    flex: 1;
    overflow-y: auto; /* Scrollable gallery */
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .card {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    max-width: 220px;
    position: relative;
    font-size: small; /* Smaller font size */
  }
  
  .card p {
    margin: 5px 0; /* Closer together lines */
  }
  
  .card img {
    max-width: 200px;
    height: auto;
    transition: transform 0.2s;
    cursor: pointer;
  }
  
  .card img:hover {
    transform: scale(1.05);
  }
  
  .delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: lightgrey;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    opacity: 0; /* Make the button initially transparent */
    transition: background 0.3s, opacity 0.3s; /* Add transition for hover effects */
  }
  
  .card:hover .delete-btn {
    opacity: 1; /* Show the delete button when card is hovered */
  }
  
  .delete-btn:hover {
    background: grey;
  }
  
  #viewer {
    flex-shrink: 0;
    width: 60%; /* Right panel occupies 60% */
    height: 100vh; /* Occupy full height of the window */
    margin-left: 0; /* Remove left margin */
  }
  
  body {
    overflow: hidden; /* Prevent body scrolling */
  }