/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-image: url('gokuand\ vegita\ 1.png'); /* Add your background image here */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
  }
  
  /* Overlay to improve readability */
  body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay for better contrast */
    z-index: -1;
  }
  
  .container {
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 20px;
    background-color: rgba(44, 44, 44, 0.8); /* Semi-transparent background for container */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 60px; /* Add padding to avoid overlap with the fixed footer */
  }
  
  h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ff6f61;
  }
  
  .search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }
  
  #search-input {
    width: 70%;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #ff6f61;
    border-radius: 5px 0 0 5px;
    outline: none;
  }
  
  #search-button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #ff6f61;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  #search-button:hover {
    background-color: #e65a50;
  }
  
  .error-message {
    color: #ff6f61;
    margin-bottom: 20px;
  }
  
  .results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }
  
  .movie-card {
    background-color: #2c2c2c;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
  }
  
  .movie-card:hover {
    transform: scale(1.05);
  }
  
  .movie-card img {
    width: 100%;
    height: auto;
  }
  
  .movie-info {
    padding: 15px;
    text-align: left;
  }
  
  .movie-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #ff6f61;
  }
  
  .movie-info p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #ccc;
  }
  
  .load-more {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #ff6f61;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: none;
  }
  
  .load-more:hover {
    background-color: #e65a50;
  }
  
  .loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6f61;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Modal Styles */
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    overflow: auto;
  }
  
  .modal-content {
    background-color: #2c2c2c;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    position: relative;
    animation: fadeIn 0.3s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
  }
  
  .close:hover {
    color: #ff6f61;
  }
  
  #modal-body {
    color: #fff;
  }
  
  #modal-body img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }
  
  #modal-body h2 {
    margin-top: 10px;
    color: #ff6f61;
  }
  
  #modal-body p {
    margin: 5px 0;
    font-size: 1rem;
    color: #ccc;
  }
  
  .favorite-button {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #ff6f61;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .favorite-button:hover {
    background-color: #e65a50;
  }
  
  /* Copyright Section Styles */
  .copyright {
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    color: #ccc;
    font-size: 0.9rem;
    position: fixed; /* Fix the footer at the bottom */
    bottom: 0; /* Stick to the bottom */
    left: 0; /* Align to the left */
    width: 100%; /* Full width */
    z-index: 1000; /* Ensure it's above other content */
  }
  
  /* Responsive Design */
  @media (max-width: 600px) {
    h1 {
      font-size: 2rem;
    }
  
    .search-container {
      flex-direction: column;
    }
  
    #search-input {
      width: 100%;
      border-radius: 5px;
      margin-bottom: 10px;
    }
  
    #search-button {
      border-radius: 5px;
    }
  }