body, html {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #3a3a3a;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.content {
  position: relative;
  text-align: center;
  padding: 30px 60px 0px 60px; /* Adjust padding to make space for the back link */
  background-color: #fef7ff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%; /* Ensure content div takes full width */
  padding-bottom: 30px; /* Increase padding to ensure space for the message */
}

.back-link {
  position: absolute;
  top: -10px; /* Adjust as needed */
  left: 20px; /* Adjust as needed */
  font-size: 14px;
  color: #007bff;
  text-decoration: none;
}

button {
  padding: 10px 20px;
  min-width: 160px;
  background-color: #6750a4;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px; /* Fixed spacing for the button */
}
button:hover {
  background-color: #432f7a;
}

#qr-reader-container, #qr-placeholder {
  width: 275px;
  height: 275px;
  margin: auto;
  position: relative;
}

#scan-message {
  height: 34px;
  min-height: 34px; /* Reserve space for the message */
  font-size: 13px;
  color: darkred;
  margin-top: 20px; /* Ensure fixed spacing for the message */
  max-height: 34px; /* Set a maximum height to control overflow */
  overflow: hidden; /* Hide the overflowed content */
  text-overflow: ellipsis; /* Add ellipsis for overflowed text */
  white-space: nowrap; /* Prevent text wrapping */
}

a {
  display: block; /* Makes the links stack vertically in case I add more later... */
  margin: 30px 0; /* Adds some space between the links */
  text-decoration: none;
  color: #007bff;
  font-size: 12px;
}
a:hover {
  text-decoration: underline;
}

.hide {
  display: none;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content-old {
  background-color: #fefefe;

  
  position: fixed;
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%);

  padding: 20px;
  border: 3px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 400px;
}



.modal-content {

  background-color: #fefefe;
  padding: 20px;
  border: 3px solid #888;
  width: 80%;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 400px;



  /* Centering using fixed position and transform */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


#modalText {
  margin-left: 14px;
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #6750a4;
  text-decoration: none;
  cursor: pointer;
}

/* Style the buttons */
.modal-content button {
  padding: 10px;
  margin: 10px;
  border: none;
  border-radius: 50px;
  width: 100px;
  height: 44px;
}
