/* Container for the top-right corner content */
.top-right-container {
  position: fixed; /* Keeps the container in the top-right corner */
  top: 75px;
  right: 15px;
  z-index: 1;
  padding: 10px; /* Optional: Padding for a little space around the content */
  border-radius: 8px; /* Optional: Rounded corners */
  overflow: hidden; /* Prevents overflow of content */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Aligns items at the top */
  gap: 5px; /* Adds spacing between elements */
}

/* Style for the button */
.top-right-container button {
  position: relative;
  padding: 5px;
  font-size: 15px;
  background-color: #66676b;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.5s ease,
    opacity 0.5s ease; /* Smooth animation */
  opacity: 0; /* Initially hidden */
  transform: scale(0.8); /* Initially deflated */
  pointer-events: none; /* Prevent interaction when invisible */
}

/* Button visible state */
.top-right-container button.visible {
  opacity: 1; /* Fully visible */
  transform: scale(1); /* Original size */
  pointer-events: auto; /* Enable interaction */
}

/* Button completely hidden after animation */
.top-right-container button.hidden {
  visibility: hidden; /* Completely hidden after fade-out */
}

.top-right-container button:hover {
  background-color: #51afb3;
}

.top-right-container button::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
}
/* Add also pdf buttons */
.button.pdf-btn {
  padding: 12px 20px;
  font-size: 15px;        /* standard readable size */
  line-height: 1.4;       /* centers text nicely vertically */
}
