body {
  background-image: url("../images/bg.svg");  
  background-size: cover;
  background-position: center;
  background-color: #f0f0f0;
  font-family: "Tahoma", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.photobooth-container {
  text-align: center;
  display: flex;
  flex-direction: column; /* Stack elements vertically */
  align-items: center; /* Center the container items */
}

.title-container {
  display: flex;
  align-items: center; /* Align text and image in the middle */
  gap: 10px; /* Space between the text and the logo */
}

.title-container h1 {
  margin: 0; /* Remove default margin to align properly */
  font-size: 2rem; /* Adjust size as needed */
}

.logo {
  width: 90px; /* Adjust logo size */
  height: auto;
}

.camera-container {
  display: flex;
  align-items: center; /* Align video and photo horizontally */
  justify-content: center;
  gap: 20px; /* Add space between the video and taken photos */
}

.camera {
  margin-bottom: 20px;
}

video {
  /* Flip the video horizontally */
  transform: scaleX(-1); 
  width: 500px;
  border: 2px solid #333;
  border-radius: 8px;
}

.countdown {
  font-size: 4rem;
  font-weight: bold;
  text-align: center;
  transform: translate(-50%, -50%);
  color: black;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  opacity: 0;
}

/* Animation effect */
.countdown-effect {
  animation: popEffect 0.9s ease-in-out;
}

@keyframes popEffect {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

button {
  background-color: white;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: bold;
  color: black;
  border: 2px solid black;
  border-radius: 30px; /* More rounded */
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
}

button:hover {
  background: linear-gradient(135deg, #a8ffde, #7decb4); /* Mint gradient */
  color: black;
  transform: scale(1.1);
}


.photo {
  display: flex;
  flex-direction: column; /* Align photos vertically */
  justify-content: center;
  margin-top: 20px;
  gap: 20px; /* Add space between the photos */
  max-height: 600px; /* Optional: Limit the height of the gallery */
  overflow-y: auto; /* Make it scrollable if it exceeds the max height */
}

canvas {
  display: none;
}

img {
  max-width: 100%;
  height: 120px; /* Set a fixed height for the images */
  border-radius: 8px;
}

.controls {
  margin-top: 20px;
}
