/* buttons.css */
button {
  color: white;
  background: transparent;
  outline: 1px solid white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
  justify-content: center;
  align-items: center;
}

button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

button:active {
  background-color: rgba(255, 255, 255, 0.4);
}

.reset-camera-btn {
  position: fixed;
  bottom: 30px;
  right: 30px; /* Keep bottom-right position */
  background-color: rgba(
    0,
    0,
    0,
    0.8
  ); /* Semi-transparent black, matching card background */
  color: #f5bd02; /* Golden color to match the card text */
  border: 1px solid #d4af37; /* Golden border similar to the card */
  padding: 5px 10px; /* Smaller padding */
  border-radius: 10px; /* Rounded edges to match the card */
  font-size: clamp(5px, 1vw, 10px); /* Dynamic font size, smaller */
  font-family: "Arial", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7); /* Stronger shadow to match card's look */
  transition: all 0.3s ease-in-out;
  backdrop-filter: blur(5px); /* Slight glassy effect */
  z-index: 9999; /* Ensure it stays on top */
}

.reset-camera-btn:hover {
  background-color: rgba(0, 0, 0, 0.9); /* Slightly darker black on hover */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.9); /* More prominent shadow on hover */
  border: 1px solid #f5bd02; /* Lighter golden border on hover */
  color: #fff; /* Change text to white on hover for contrast */
  color: #f5bd02; /* Golden color to match the card text */
  transform: scale(1.05); /* Slightly enlarges on hover */
}

.reset-camera-btn:active {
  transform: scale(0.98); /* Slightly shrinks when clicked */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* Reduce shadow on click */
}

/* Adding a smooth transition for the hover effect */
.reset-camera-btn:hover .reset-camera-text {
  transition: color 0.3s ease-in-out;
}

.shuffle-card-btn {
  display: none;
  position: sticky;
  align-self: center;
  outline: none;
  height: 50px;
  bottom: 30px;
  right: 30px; /* Keep bottom-right position */
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black */
  color: #f5bd02; /* Golden color */
  border: 1px solid #d4af37; /* Golden border */
  padding: 5px 10px; /* Default padding */
  font-size: clamp(10px, 1vw, 15px); /* Dynamic font size */
  font-family: "Arial", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7); /* Shadow effect */
  transition: all 0.3s ease-in-out;
  backdrop-filter: blur(5px); /* Glassy effect */
  z-index: 9999; /* On top */
}

.shuffle-card-btn:hover {
  background-color: rgba(0, 0, 0, 0.9); /* Darker on hover */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.9); /* Stronger shadow on hover */
  border: 1px solid #f5bd02; /* Brighter border on hover */
  color: #f5bd02; /* Golden color to match the card text */
  transform: scale(1.05); /* Enlarge slightly on hover */
}

.shuffle-card-btn:active {
  transform: scale(0.98); /* Shrinks when clicked */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* Softer shadow on click */
}

.shuffle-card-btn:hover .shuffle-card-text {
  transition: color 0.3s ease-in-out;
}

/* Tablet adjustments */
@media (max-width: 768px) {
  .shuffle-card-btn {
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: clamp(9px, 1.2vw, 13px); /* Slightly smaller font */
    padding: 4px 8px; /* Less padding */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6); /* Softer shadow */
  }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .shuffle-card-btn {
    height: 40px;
    bottom: 15px;
    right: 15px;
    font-size: clamp(8px, 2vw, 12px); /* Smaller font */
    padding: 3px 6px; /* Smaller padding */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* Even softer shadow */
    border: 1px solid #f5bd02; /* Brighter border on mobile */
  }
}

/* Extra Small Mobile adjustments */
@media (max-width: 320px) {
  .shuffle-card-btn {
    height: 35px;
    bottom: 10px;
    right: 10px;
    font-size: clamp(7px, 2.5vw, 11px); /* Smaller font for tiny screens */
    padding: 2px 5px;
  }
}
