@charset "UTF-8";
/* CSS Document */
.movies-container {
  display: flex;
  flex-wrap: wrap;
}

.movies-row {
  display: flex;
  flex-basis: 100%;
  justify-content: space-between;
  margin-bottom: 20px;
}

.movie {
  width: 23%;
  background-color: #f2f2f2;
  margin-right: 1%;
  margin-bottom: 1%;
}

.movie img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.movie-details {
  padding: 10px;
  text-align: center;
}

.movie-title {
  display: block;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
}

.movie-date,
.movie-director {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

@media only screen and (max-width: 768px) {
  .movie {
    width: 48%;
    margin-right: 2%;
  }
}

@media only screen and (max-width: 769px) {
  .movies-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .movie {
    width: 100%;
    margin-right: 0;
  }
}


 .pagination-container {
    text-align: center;
    margin-top: 20px;
}

.pagination-links {
    display: flex; /* change from inline-block to flex */
    flex-wrap: wrap; /* allow items to wrap to the next line on small screens */
    justify-content: center; /* align items to center */
    gap: 10px; /* Creates consistent gap between items, replaces margin-right */
}

.pagination-links a,
.pagination-links span {
    padding: 10px 15px; /* Recommended padding for tap targets on desktop devices */
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
}

.pagination-links a:hover {
    background-color: #8d8d8d;
}

.pagination-links .current-page a,
.pagination-links .current-page span {
    color: #fff;
    border: none; /* Remove the border within the current page box */
}

.current-page {
    padding: 10px 15px; /* Recommended padding for tap target on desktop devices */
    background-color: #333;
}

/* Responsive Styles for Mobile Devices */
@media (max-width: 768px) {
    .pagination-container {
        margin-top: 10px;
    }

    .pagination-links a,
    .pagination-links span {
        padding: 12px 16px; /* Recommended padding for tap targets on mobile devices */
        font-size: 14px; /* Increased font size for better readability on mobile devices */
    }

    .pagination-links .current-page a,
    .pagination-links .current-page span {
        font-size: 14px; /* Increased font size for better readability on mobile devices */
    }
}





