@import url('https://fonts.googleapis.com/css2?family=Lilita+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100..700&display=swap');
body {
    font-family: 'Lilita One';
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #f5f5f5;
  }
  .grid-container {
    display: grid;
    grid-template-columns: repeat(8, minmax(200px, 1fr)); /* Set to 8 boxes wide */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    justify-content: center;
  }
  #categories {
    font-family: Lilita One;
  }
  .movie-square {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
  }
  
  .movie-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.2s, transform 0.2s;
  }
  .movie-square:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  .movie-square:hover img {
    filter: brightness(0.7); /* Darken the image */
  }
  
  .movie-details {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.2s;
  }
  .movie-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s, opacity 0.2s, visibility 0.2s;
  }
  .movie-square:hover .movie-details {
    opacity: 1;
  }
  .movie-square:hover .movie-info {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .movie-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
  }
  .movie-rating,
  .movie-genres,
  .movie-description {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 2px;
  }
  .movie-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
  }
  .movie-year {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 5px;
  }
  .top {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#trailerVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#newTrailerVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#categories-title {
  font-family: 'Lilita One';
}
#movie-trailer-movie-name {
  font-family: 'Lilita One';
}
#movie-trailer-description {
  font-family: 'Open Sans', sans-serif;
  font-family: 'Poppins', sans-serif;
}
/* Adjust the styles for movie details and info as needed */
#newTrailerVideo:hover + .movie-details {
  opacity: 1;
}

#newTrailerVideo:hover + .movie-info {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
