body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #222;
  color: white;
}

.hidden {
  display: none;
}

#file-selection-container {
  text-align: center;
}

label {
  margin-right: 10px;
  font-size: 1.2rem;
  border-radius: 5px;
}

#file-input {
  padding: 5px;
  font-size: 1rem;
  border-radius: 5px;
}

#video-container {
  background-color: #000;
  resize: both; /* Make the container resizable */
  overflow: hidden; /* Prevent content overflow */
  aspect-ratio: 16 / 9; /* Maintain 16:9 ratio */
  width: 80%; /* Initial width */
  max-width: 1280px; /* Optional: limit maximum size */
  min-width: 320px; /* Optional: set minimum size */
}

#video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px; /* Add rounded corners */
  overflow: hidden; /* Ensure the video content doesn't overflow the rounded corners */
}

/* Hide the default file input */
.hidden-file-input {
  display: none;
}

/* Style the custom file label */
.custom-file-label {
  display: inline-block;
  padding: 10px 20px;
  background-color: #444;
  color: white;
  border: 2px solid #555;
  border-radius: 12px; /* Add border radius here */
  cursor: pointer;
  font-size: 1.2rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Add hover and active effects for the label */
.custom-file-label:hover {
  background-color: #666;
  transform: scale(1.05);
}

.custom-file-label:active {
  background-color: #888;
  transform: scale(0.95);
}
/* Mute status display */
#mute-status {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.5); /* 50% opacity */
  color: white;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 1.5rem;
  text-align: center;
  display: none; /* Initially hidden */
  z-index: 1000; /* Ensure it's above other content */
  opacity: 0;
  animation: fadeInOut 5s forwards; /* Apply fade-in and fade-out */
}

/* Fade-in and fade-out animation */
@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1; /* Fully visible */
  }
  80% {
    opacity: 1; /* Stay visible */
  }
  100% {
    opacity: 0; /* Fade out */
  }
}

#mute-status {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 16px;
  display: none;
  animation: fadeInOut 2s forwards;
}
