/* Global Styles */
body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1 {
  text-align: center;
  font-size: 3rem;
  margin-top: 50px;
}

.main-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
  padding: 10px;
}

/* Camera & Video */
.camera-container {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  width: 500px;
}

#video {
  border: 3px solid #fff;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  height: auto;
}

.buttons {
  display: flex;
  justify-content: space-around;
  gap: 20px;
}

button {
  background-color: #4CAF50;
  color: white;
  padding: 15px 35px;
  font-size: 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, transform 0.3s ease;
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

button:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

button:active {
  transform: scale(0.98);
}

/* Status Area */
.status {
  font-size: 1.5rem;
  margin-top: 20px;
  text-align: center;
  font-weight: bold;
  font-family: 'Arial', sans-serif;
  background: rgba(0, 0, 0, 0.4);
  padding: 15px;
  border-radius: 5px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* Pop-up Styles */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: #333;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  color: white;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 100%;
  animation: fadeIn 0.5s ease-out;
}

.popup-content h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffcc00;
}

.popup-btn {
  background-color: #ff5722;
  color: white;
  padding: 12px 25px;
  font-size: 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.popup-btn:hover {
  background-color: #e64a19;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .camera-container {
    width: 100%;
    padding: 20px;
  }

  #video {
    width: 100%;
    height: auto;
  }

  .buttons {
    flex-direction: column;
    gap: 10px;
  }

  button {
    padding: 12px 28px;
    font-size: 1.1rem;
  }

  .popup-content h2 {
    font-size: 1.5rem;
  }

  .status {
    font-size: 1.3rem;
    width: 90%;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }

  button {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .popup-content h2 {
    font-size: 1.3rem;
  }

  .status {
    font-size: 1.2rem;
  }
}
