body {
  margin: 0;
  font-family: sans-serif;
  background-color: #0C134F;
  color: white;
}

.main-container {
  display: flex;
  flex-direction: column; /* Apila verticalmente */
  align-items: center;     /* Centra horizontalmente */
  justify-content: flex-start;
  height: calc(100vh - 60px); /* Ajustado por la barra */
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.students-panel {
  display: flex;
  width: 100%;
  height: 25%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px;
  box-sizing: border-box; 
}

.students-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  height: 100%;
  
}

.students-grid video {
  width: clamp(80px, 10vw, 160px); /* Escala entre 80px y 160px según el viewport */
  float: none; /* Elimina el float para respetar el flexbox */
}

.main-video-container {
  width: 100%;
  height: 75%; /* Ajustable */
  display: flex;
  justify-content: center;
  align-items: center;
}
.main-video-container video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: scaleX(-1);
}

.toolbar {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 60px;
  background-color: #0C134F;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
}
.toolbar-buttons{
  position: fixed;
  bottom: 0;
  width: 55%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.toolbar button {
  background-color: #007bff;
  border: none;
  color: white;
  padding: 10px 20px;
  margin: 0 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.toolbar button:hover {
  background-color: #0056b3;
}

.toolbar button:active {
  background-color: #004085;
}

.toolbar .leave-btn {
  background-color: #dc3545;
  margin-left: 20px;
}

.toolbar .leave-btn:hover {
  background-color: #c82333;
}

.toolbar .leave-btn:active {
  background-color: #bd2130;
}
