/* General Body Styling */
body {
  background-color: #f8f9fa;
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Background Image and Overlay */
.background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 33%; /* Top one-third of the screen */
  background: url('/static/images/smiling-lady.jpg') repeat-x center center;
  background-size: contain; /* Ensure full image width is used */
  z-index: -1; /* Ensure the image is behind other elements */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.overlay-text h1 {
  font-size: 2.5rem;
  margin: 0;
  font-weight: bold;
}

.overlay-text p {
  font-size: 1.25rem;
  margin-top: 10px;
}

/* Ensure the page container takes full screen */
.page-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Ensure the meeting page takes full screen */
#meeting-page {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

/* Common Styles for Pages */
.page {
  display: none;
  width: 100%;
  max-width: 400px;
  margin: auto; /* Center the form */
}
.page.active {
  display: block;
}

/* Card Styles */
.card {
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease; /* Smooth transform effect */
  position: relative;
  z-index: 2; /* Ensure the card is above the background image and overlay */
}
.card:hover {
  transform: translateY(-10px); /* Elevate card on hover */
}

h3.card-title {
  font-size: 1.8rem;
  font-weight: bold;
}

/* Button Styling */
.btn {
  border-radius: 30px;
  margin-bottom: 10px; /* Add some margin to space out the buttons */
  padding: 12px 20px;  /* Increase padding to make the buttons larger */
  display: block;
  width: 100%;
  background: #007bff; /* Button background */
  color: white;
  border: none;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #0056b3; /* Darken button on hover */
}

/* Video Container Styling */
#video-container,
#remote-video-container {
  flex: 1; /* Allow them to grow and fill available space */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden; /* Ensure videos don't overflow */
}

/* Video Elements */
.local-video-container,
.remote-video-container {
  margin: 10px;
  text-align: center;
  flex-grow: 1;
  position: relative;
}
.local-video-container video,
.remote-video-container video,
.local-video-container img,
.remote-video-container img {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  max-height: 100%;
  object-fit: cover; /* Ensure videos cover the entire container */
}

/* Control Buttons Styling */
.controls {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.controls .btn {
  margin: 0 10px;
  border-radius: 50px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #17a2b8;
}

.controls .btn:hover {
  background: #138496;
}

/* Pagination Container */
.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.pagination-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50px;
  cursor: pointer;
  margin: 0 5px;
  transition: background-color 0.3s ease;
}

.pagination-button:hover {
  background-color: #0056b3;
}

#currentPage {
  margin: 0 10px;
  font-weight: bold;
}

/* Footer Styling */
.footer {
  background-color: #343a40;
  color: white;
  text-align: center;
  padding: 10px 0;
  position: absolute;
  bottom: 0;
  width: 100%;
}
