:root {
  --primary: #ff1b51;
  --secondary: #1e1e1e;
  --background: #0f0f0f;
  --text: #ffffff;
  --accent: #ff1b51;
}
.logo {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.logo img {
  height: auto;
  width: 120px;
}
.icon-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255, 27, 81, 0.1);
  border: 1px solid var(--primary);
}

.icon-btn:hover {
  background: var(--primary);
}

.icon-btn.end-call {
  background: rgba(255, 68, 68, 0.1);
  border-color: #ff4444;
}

.icon-btn.end-call:hover {
  background: #ff4444;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background);
  color: var(--text);
  min-height: 100vh;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

/* Navigation */
.nav-container {
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

/* Video Container */
.video-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin: 80px 0 20px;
  position: relative;
}

.video-wrapper {
  background-color: var(--secondary);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
  border: 1px solid rgba(255, 27, 81, 0.2);
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Controls */
.room-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

input {
  padding: 12px 20px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: rgba(255, 27, 81, 0.1);
  color: var(--text);
  width: 200px;
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 27, 81, 0.2);
}

button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 27, 81, 0.3);
}

button:active {
  transform: translateY(0);
}

button.end-call {
  background: #ff4444;
}

/* Status */
.status {
  text-align: center;
  margin: 12px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Media Controls */
.controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 20px 0;
  position: relative;
  z-index: 10;
}

/* Invite Button */
.invite-btn {
  background: linear-gradient(45deg, #ff1b51, #ff4081);
}

.copied {
  animation: copyFeedback 0.3s ease-in-out;
}

@keyframes copyFeedback {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .video-container {
    grid-template-columns: 1fr;
  }

  .room-controls {
    flex-direction: column;
    align-items: center;
  }

  input {
    width: 100%;
    max-width: 300px;
  }

  .controls {
    flex-wrap: wrap;
  }
}

/* Wave Background */
.background-wave {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(45deg, rgba(255, 27, 81, 0.1), transparent);
  opacity: 0.5;
}
.icon-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255, 27, 81, 0.1);
  border: 1px solid var(--primary);
  transition: all 0.3s ease;
}

.icon-btn:hover {
  background: var(--primary);
}

.icon-btn.disabled {
  background: rgba(255, 27, 81, 0.05);
  border-color: rgba(255, 27, 81, 0.3);
}

.icon-btn.end-call {
  background: rgba(255, 68, 68, 0.1);
  border-color: #ff4444;
}

.icon-btn.end-call:hover {
  background: #ff4444;
}

.landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 2rem;
}

.welcome-title {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 2rem;
}

.room-info {
    text-align: center;
    margin-bottom: 2rem;
}
video {
  transform: scaleX(-1); /* Flip the video horizontally */
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

.room-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.video-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  width: 100%;
}

.video-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000; /* Optional */
  width: 100%;
  max-width: 720px; /* Adjust based on your design */
  margin: 0 auto; /* Center the container horizontally */
  aspect-ratio: 16 / 9; /* Optional: Force the container to maintain a 16:9 ratio */
}

video {
  width: 100%; /* Ensure it takes the full width of its container */
  height: auto; /* Maintain aspect ratio */
  object-fit: contain; /* Ensure the video fits within the bounds without cropping */
  border-radius: 10px; /* Optional: rounded corners */
  background-color: #000; /* Optional: provide a background to enhance visibility */
}

.controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.icon-btn {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 50%;
  background: #333;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  outline: none;
}

.icon-btn:hover {
  background: #555;
}

.end-call {
  background: #e74c3c;
}

.end-call:hover {
  background: #c0392b;
}
video {
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}
.return-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 14px;
  cursor: pointer;
  display: none;
}

.return-btn:hover {
  background: #555;
}

video {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.return-btn {
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 14px;
  cursor: pointer;
  display: none;
}

.return-btn:hover {
  background: rgba(50, 50, 50, 0.9);
}

/* video:hover {
  transform: scale(1.05);
  outline: 2px solid rgba(255, 255, 255, 0.8);
} */

/* video:hover {
  transform: scale(1.05);
  outline: 2px solid rgba(255, 255, 255, 0.8);
} */

