/* Reset some basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    background: #f0f0f0;
    color: #333;
  }
  
  /* Header styling */
  header {
    background: #1c1c1c;
    color: #fff;
    padding: 20px;
    text-align: center;
  }
  
  .search-container {
    margin-top: 10px;
  }
  
  header input,
  header button {
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    outline: none;
  }
  
  header input {
    width: 60%;
    max-width: 300px;
    margin-right: 10px;
  }
  
  header button {
    background-color: #ff3d3d;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  header button:hover {
    background-color: #e63636;
  }
  
  /* Movies grid styling */
  #movies-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 20px;
    padding: 20px;
  }
  
  /* Movie card styling */
  .movie {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
  }
  
  .movie:hover {
    transform: scale(1.05);
  }
  
  .movie img {
    width: 100%;
    display: block;
  }
  
  .movie-details {
    padding: 10px;
  }
  
  .movie-details h3 {
    font-size: 18px;
    margin-bottom: 5px;
  }
  
  .movie-details p {
    font-size: 14px;
    color: #666;
  }
  
  /* Modal styling */
  .modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.7); /* Black with opacity */
  }
  
  .modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
  }
  
  .modal-content img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 15px;
  }
  
  .modal-content h2 {
    margin-bottom: 10px;
  }
  
  .modal-content p {
    margin-bottom: 10px;
  }
  
  .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
  }
  
  .close:hover {
    color: #000;
  }
  