body {
  margin: 0;
  height: 100vh;
  background: linear-gradient(135deg, 
      #1a1a72, /* Deep Blue */
      #4b0082, /* Indigo */
      #8a2be2, /* Blue Violet */
      #ff4500,/* Orange Red */ /* Dodger Blue */
      #ff8c00/* Dark Orange */
  );
  background-size: 300% 300%;
  animation: gradientAnimation 10s ease infinite;
  color: white;
  font-family: Arial, sans-serif;
}
@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#join-btn {
  position: relative;
  z-index: 100; /* Make sure join button stays on top */
}

.container{
  margin: 15px;
  padding: 10px;
}

.main-head{
text-align: center;
font-size: 40px;
color: white;
margin-bottom: 0px;
}



#stream-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  width: 90%;
  max-width: 1400px;
  position: relative; /* For proper positioning of buttons */
}

#video-streams {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Larger square size */
gap: 10px;
height: 50vh; /* Maintains height */
flex: 1;
}

.video-container {
/*border: 2px solid black; */
display: flex;
justify-content: center;
align-items: center;
position: relative;
width: 100%; /* Full width of grid cell */
height: 100%;
aspect-ratio: 1 / 1; /* Ensures a square aspect ratio */
overflow: hidden; /* Prevents overflow */
}

.video-player {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 70%;
object-fit: cover; /* Ensures the video covers the square container */
}





button {
  border: none;
  background-color: cadetblue;
  color: #fff;
  padding: 10px 20px;
  font-size: 16px;
  margin: 2px;
  cursor: pointer;
}

#stream-controls {
  display: flex;
  justify-content: center;
  margin-top: 0.5em;
  position: absolute;
  bottom: 20px; /* Align buttons at the bottom */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

#pomodoro-timer {
width: 350px;
padding: 10px; /* Reduced padding to decrease the depth */
padding-top: 25px;
background-color: #f9f9f9;
border: 2px solid #ccc;
border-radius: 10px;
text-align: center;
margin-bottom: 20px;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
height: 200px; /* Reduced height */
}

#pomodoro-timer h3 {
margin: 0;
font-size: 1.5rem;
color: #333;
}

#timer {
  font-size: 2rem;
  margin: 15px 0;
  color: #333;
}

#pomodoro-timer button {
  background-color: #28a745;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
  font-size: 1rem;
}

#pomodoro-timer button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#pomodoro-timer button:hover {
  background-color: #218838;
}

#pomodoro-timer p {
  margin-top: 10px;
  font-size: 1rem;
  color: #555;
}

@media screen and (max-width: 1400px) {
  #video-streams {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    width: 100%;
  }

  #stream-wrapper {
    flex-direction: column;
    align-items: center;
  }
}

.video-container {
  display: flex;
  height: 100vh;
}

#video-area {
  flex-grow: 1;
  background-color: #000;
}

.goals-sidebar {
  width: 300px;
  background-color: white;
  border-left: 1px solid #e0e0e0;
  padding: 15px;
  overflow-y: auto;
}

.goal-input-section {
  display: flex;
  margin-bottom: 15px;
}

#goalInput {
  flex-grow: 1;
  margin-right: 10px;
}


