/* public/styles.css */
body {
  font-family: Arial, sans-serif;
  padding: 0;
  margin: 0;
  background-color: #000; /* Black background */
  color: #fff; /* White text */
  overflow: hidden; /* Prevent body from scrolling */
}

@media (max-width: 800px) {
  #transcription-container {
    font-size: 1.5em;
  }
}

@media (min-width: 801px) {
  #transcription-container {
    font-size: 2em;
  }
}


/* Add media query for mobile responsiveness */
@media (max-width: 600px) {
  #buttons {
    flex-direction: column; /* Stack buttons vertically on smaller screens */
    gap: 10px;
  }

  .control-button {
    padding: 15px 25px; /* Increase padding to make buttons larger */
    font-size: 1.2em; /* Increase font size */
  }

  .control-button i {
    font-size: 1.5em; /* Increase icon size */
  }

  #language-selection {
    flex-direction: column; /* Stack the language selection vertically */
  }

  #language-selection label {
    margin-bottom: 5px;
  }
}

#controls.hidden {
  opacity: 0;
  pointer-events: none; /* Disable interaction with hidden controls */
  transition: opacity 0.5s ease-in-out;
}

#controls.visible {
  opacity: 1;
  pointer-events: auto; /* Re-enable interaction */
  transition: opacity 0.5s ease-in-out;
}
/* Header / Controls */
header#controls {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #1f1f1f;
  padding: 15px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

header#controls h1 {
  margin: 0;
  font-size: 1.8em;
  text-align: center;
}

#buttons {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  gap: 15px;
}

.control-button {
  background-color: #2d2d2d;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  font-size: 1em;
  cursor: pointer;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s;
}

.control-button i {
  font-size: 1.2em;
}

.control-button:disabled {
  background-color: #555555;
  cursor: not-allowed;
}

.control-button:not(:disabled):hover {
  background-color: #3e3e3e;
}

#stream-info {
  margin-top: 20px;
  text-align: center;
}

#stream-id-container p {
  margin: 5px 0;
}

#link-container, #language-selection {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

#stream-link {
  background-color: #2d2d2d;
  color: #ffffff;
  border: none;
  padding: 8px;
  width: 250px;
  border-radius: 5px;
}

#copy-link-button {
  padding: 8px 15px;
}

#copy-link-button i {
  font-size: 1em;
}


/* Transcription Container */
#transcription-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 100vh; /* Allow scrolling when content exceeds screen height */
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Transcription Lines */
.transcription-line {
  font-size: 1.5em; /* Adjust font size as needed */
  line-height: 1.4;
  padding-bottom: 0.3em;
  white-space: pre-wrap;
  word-break: break-word;
  color: #777;
  opacity: 1;
  transition: opacity 0.3s ease-in-out; /* Add transition for opacity */
}

/* Partial Transcription Line */
.partial {
  color: #fff; 
}

.transcription-line:last-child {
  color: #fff;
}

.fade-in {
  opacity: 0; 
}

/* Control Buttons */
#controls {
  position: absolute;
  z-index: 999;
  top: 10px;
  left: 10px;
}

button {
  padding: 10px 20px;
  font-size: 1em;
}

/* Individual words */
.word {
  opacity: 1;
  transition: opacity 0.8s ease-in-out;
}

.fade-in {
  opacity: 0;
}

.new-line {
  color: white; /* Or whatever styling you prefer */
}

.transcription-line {
  transition: color 0.5s ease;
}

