/* Floating container for both buttons in the bottom-right corner */
#vocalnav-buttons
{
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 9999;
  flex-direction: row;
}

/* Help button - default */
#help-button
{
  padding: 8px 15px; /* 150% of original */
  font-size: 20px;
  
  border: none;
  border-radius: 10px;
  background-color: #000000;  
  color: white;             
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Help button - active/open */
#help-button.active
{
  background-color: white;
  color: black;
}

#help-button:hover
{
  opacity: 0.85;
}

/* Instructions box */
#instructions-box {
  position: fixed; /* change from absolute to fixed */
  bottom: 100px;   /* controls distance from bottom of viewport */
  right: 20px;     /* anchor to same right edge as help button */
  padding: 15px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  white-space: pre-line;
  z-index: 9998; /* make sure it's behind buttons if needed */
  display: none;
  width: 400px;
  transform-origin: bottom right;
}

#instructions-box::after
{
  content: "";
  position: absolute;
  bottom: -10px;
  right: 105px; 
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #ffffff; 
}

.instructions-title
{
  text-align: center;
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 10px;
}

/* Mic button */
#mic-button
{
  font-size: 2.55rem;
  width: 70px;
  height: 70px;  

  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#mic-button.recording
{
  background: #ff0000;
  color: #fff;
  animation: pulse 1s infinite;
}

#mic-button:hover
{
  opacity: 0.85;
}


@keyframes pulse
{
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

#vocalnav-buttons {
  transform: scale(1) !important;
  transform-origin: bottom right;
}
