body {
  /* overflow: hidden; */
}
html {
  height: 100%;
  margin: 0;
}

#main-container {
  display: flex;
  flex-direction: column;
  height: calc(
    100% - 50px
  ); /* Adjust 50px according to your pagination container height */
  overflow-y: auto; /* Enable vertical scrollbar */
  padding-bottom: 20px; /* Space for pagination container */
}

#grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 10px;
}
#grid-container {
  overflow-y: auto;
}

.grid-row {
  overflow-x: auto;
}

.grid-item {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 100%;
  /* padding-bottom: 56.25%; Maintain 16:9 aspect ratio 56.25% , 4:3 75% */
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stream-id {
  position: absolute;
  top: 5px;
  right: 10px;
  background-color: rgba(62, 61, 61, 0.52);
  padding: 3px;
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
}

.video-js {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

#pagination-container {
  height: 50px; /* Adjust the height as needed */
  text-align: center;
  background-color: #f8f8f8; /* Optional: Different background color */
  padding: 10px 0;
  position: sticky;
  bottom: 0;
  width: 100%;
}

.pagination-button {
  display: inline-block;
  margin: 0 5px;
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

.pagination-button.disabled {
  background-color: #ddd;
  cursor: not-allowed;
}
