/* Reset styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%; /* Ensure the body and html occupy full height of the viewport */
  overflow: hidden; /* Prevent scrolling */
}

body {
  background-color: #f1f1f1;
  font-family: Arial, sans-serif;
}

header {
  background-color: #333;
  color: #fff;
  padding: 20px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
}

nav ul li a.active,
nav ul li a:hover {
  color: #eaeaea;
}

main {
  height: 100%; /* Full height for the main section */
  display: flex;
  justify-content: center;
  align-items: center;
}

section#home {
  position: relative;
  width: 100%;
  height: 100%; /* Ensure section takes up full screen */
}

h1 {
  font-size: 36px;
  margin-bottom: 20px;
  z-index: 10;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.container {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Position the button at the bottom */
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Ensure video takes up entire screen */
}

#cameraFeed,
#overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Ensure both video and overlay take up full screen */
  object-fit: cover;
  border-radius: 0;
}

#startButton {
  background-color: #ce8922;
  border: none;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  margin-bottom: 20px; /* Space between button and bottom of the screen */
}

#startButton:hover {
  background-color: #45a049;
}
/* Styles for the dialog */
.dialog {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Make sure the dialog is on top */
}

.dialog-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  width: 300px;
}

button {
  padding: 10px 20px;
  margin: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#startButton {
  background-color: #4CAF50;
  color: white;
}

#closeButton {
  background-color: #f44336;
  color: white;
}

button:hover {
  opacity: 0.8;
}
