@charset "utf-8";
/* CSS Document */


body {
  font-family: sans-serif;
  margin: 0;
  padding: 2em;
  background: #f9f9f9;
}

.thumbs{
width: 100%;
height: auto;
max-width: 100px;
}

select, textarea, button {
  display: block;
  width: 100%;
  margin-bottom: 1em;
  padding: 0.5em;
  font-size: 1em;
}

.image-list img {
  display: block;
  width: 100%;
  margin-bottom: 1em; 
  border: 1px solid #ccc;
}

#charCount {
  font-size: 0.9em;
  color: white;
  margin-top: -0.5em;
  margin-bottom: 1em;
}

form {
  margin-bottom: 2em;
}

canvas {
  width: 100%;
  max-width: 600px;
  border: 1px solid #ccc;
  display: block;
  margin-top: 1em;
}

#instructions{
  width: 100%;
  max-width: 98%;
  padding: 12px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  color: black;
  margin-bottom: 33px;
  background-color: ivory;
  border-radius: 13px;
}

#previewImageContainer {
  text-align: center;
}

#previewImageContainer img {
  display: block;
  margin: 0 auto;
  max-width: 100%;   /* scales to container width */
  height: auto;      /* keeps aspect ratio */
}

#previewImageContainer1 {
  text-align: center;
}

#previewImageContainer1 img {
  display: block;
  margin: 0 auto;
  max-width: 100%;   /* scales to container width */
  height: auto;      /* keeps aspect ratio */
}


#previewCanvas {
  max-width: 100%;
  height: auto;
  outline: 2px solid maroon;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Drop shadow */
  border-radius: 8px; /* Optional: rounded corners */
  background-color: red;
  display: block;
  margin: 20px auto;
}

#previewImage {
  width: 100%;
  height: auto;
  max-width: 300px
}

.imgBorder img {
  width: 50%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 7px;
  outline: 2px solid black;	
}

#previewCanvas.active {
  display: block;
  border-color: #007BFF;
}

canvas#previewCanvas {
  border: 8px solid #007BFF; /* Blue border */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4); /* Drop shadow */
  background-color: white;
  display: block;
  margin: 30px auto;
}

#togglePreview {
  background-color: maroon;
  font-size: 18px;
  color: white;
  border: none;
  padding: 0.5em 1em;
  cursor: pointer;
}

#togglePreview:hover {
  font-weight: 700;
}

.btn {
	margin: 0px;
	padding: 0px;
}

.button-row {
  display: flex;
  gap: 10px; /* space between buttons */
  justify-content: center; /* center horizontally */
  margin-top: 20px;
}

.button-row btn {
  font-size: 10px;
  cursor: pointer;
  font-family: sans-serif;
  font-weight: 300;
  display: inline-block;      /* prevent full-width stretching */
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn.c-download-btn, .btn.c-exit-btn, .btn.c-print-btn, .btn.c-print-btn2 {
  padding: 10px;
  margin: 0px;
  font-size: 18px;
  cursor: pointer;
  border: thin;
  border-style: solid;
  border-color: black;
  font-family: sans-serif;
  font-weight: 300;
  display: inline-block;      /* prevent full-width stretching */
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.c-print-btn {
  background: red;   /* blue */
  color: black;
  width: 300px;
}

.c-print-btn2 {
  background: red;   /* blue */
  color: white;
  width: 300px;
}


.c-download-btn {
  background: maroon;   /* blue */
  color: white;
  width: 150px;
}

.c-exit-btn {
  background: red;   /* red */
  color:white;
  width: 150px;
}

.c-print-btn:hover {
  background-color:white;
  color: black;
}

.c-print-btn2:hover {
  background-color:white;
  color: black;
}

.c-download-btn:hover {
  background-color:lawngreen; 
}

.c-exit-btn:hover {
  background-color:white;
  color: black;
}

/* Center the heading and message blocks themselves */
#centerHeading,
#centerMessage {
  display: flex;
  flex-direction: column;   /* stack label + input vertically */
  align-items: center;      /* horizontal centering of children */
  text-align: center;       /* center text inside labels */
  margin: 0px;
}

/* Make input/textarea centered and responsive */
#centerHeading input[type="text"],
#centerMessage textarea {
  width: 100%;              /* fill available width of the block */
  max-width: 640px;         /* cap width for readability */
  margin: 0 auto;           /* horizontal centering */
  display: block;
}

/* Optional: center helper text and keep spacing tidy */
#charCount,
#charLines {
  text-align: center;
}

/* Certificate container should not block clicks outside itself */
#certificate-container {
  z-index: 1; /* keep it lower than dropdown */
}

#message, #heading {
  font-family: monospace;
}

#message::placeholder, #heading::placeholder {
  color:maroon;       /* or use a hex code like #d3d3d3 */
  opacity: .3;             /* ensure it’s not too faint */
}

.certificate-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.certificate-list li {
  padding: 6px;
  margin-bottom: 6px;
  background: white;
  border-radius: 7px;;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.certificate-list li:hover {
  background-color: red;
  color: white;
}

.certificate-list li.selected {
  border-color: white;
  background-color: red;
  color: white;
}

#loading {
  display: none;              /* hidden by default */
  text-align: center;
  margin: 20px;
  margin-bottom: 20px;
  animation: blink 1s infinite; /* blink every second */
}

@keyframes blink {
  0%   { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 1; }
}

