/* Prevent text selection and blue overlay */
html,
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Prevent selection on all elements */
* {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-user-drag: none !important;
  -khtml-user-select: none !important;
}

/* Remove focus outlines and blue highlights */
*:focus {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Remove blue highlight on all interactive elements */
button,
div,
span,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
}

/* Allow text selection only for links */
a {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Credits Display Styles */
#credits-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 50%;
  color: rgba(255, 255, 255, 1);
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.4;
  z-index: 1000;
  pointer-events: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.credit-line {
  margin-bottom: 4px;
}

.credit-instructions {
  font-style: italic;
  margin-bottom: 8px;
}

.credit-highlight {
  color: rgba(255, 255, 255, 1);
}

.credit-link {
  margin-top: 8px;
  font-size: 11px;
}

.credit-link a {
  color: inherit;
}

.credit-link a:hover {
  color: inherit;
}

.credit-author {
  color: rgba(255, 255, 255, 0.9);
}

.credit-author:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}
