@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

:root {
  --background-color: #11111b;
  --background-accent-color: #181825;
  --text-color: #cdd6f4;

  --surface: #313244;
  --accent-color: #7ad4e4;
  --deviate-accent-color: #b4befe;
  --error-color: #f38ba8;

  --leek-green: #a6e3a1;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'JetBrains Mono', monospace;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 1em;
}

a {
  color: var(--accent-color);
  text-decoration: underline;
}

div.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
}
div.center-container {
  width: 100vw;
  max-width: 500px;
  text-align: center;

  margin: auto;

  padding: 20px;
}

div.paragraph-container {
  padding: 1em;
  padding-top: 0.25em;
  padding-bottom: 0em;
  margin-bottom: 1em;
  border: 1px solid var(--accent-color);
}

p.footnote {
  margin-bottom: 0.5em;
  opacity: 0.5;
}

div.paragraph-container p {
  text-wrap: pretty;
  word-wrap: break-word;
}

div.flex-list {
  margin-top: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
  justify-content: center;
}

div.flex-list img.big {
  width: 100%;
  height: auto;
  max-width: 340px;
}

span.nobreak {
  display: inline-block;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-weight: bold;
  text-align: left;
}

input[type='text'],
input[type='password'],
input[type='file'] {
  padding: 0.5rem;
  background: var(--background-accent-color);
  color: var(--text-color);
  border: none;
  font-family: inherit;
}

input[type='file'] {
  border: none;
}

label#fileLabel {
  cursor: pointer;
  padding: 0.5rem;
  border: none;
  background: var(--background-accent-color);
  color: var(--accent-color);
}

div.optionContainer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  margin-top: -0.5rem;
  border: none;
  background: #181825;
}

input[type='checkbox'] {
  accent-color: var(--accent-color); /* modern browsers */
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Chrome/Edge/Opera autofill */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--background-accent-color) inset !important;
  -webkit-text-fill-color: var(--text-color) !important;
  caret-color: var(--text-color) !important;
}

/* Firefox autofill */
input:-moz-autofill {
  box-shadow: 0 0 0 1000px var(--background-accent-color) inset !important;
  -moz-text-fill-color: var(--text-color) !important;
  caret-color: var(--text-color) !important;
}

/* Dropdown */
select {
  background-color: var(--surface);
  color: var(--text-color);
  border: 1px solid var(--background-accent-color);
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;

  font-family: inherit;
}

#copyBtn,
#output {
  transition: opacity 0.5s ease-in-out;
}

#copyBtn:hover {
  opacity: 0.5;
}

#qrcodeHolder {
  color: var(--text-color);
  background: transparent;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  max-height: 300px;
}

#qrcodeHolder > img {
  margin: auto;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  max-width: 300px;
  max-height: 300px;
  display: block;
}

#qrcodeHolder.hide {
  display: none;
}

.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  user-select: none;
}

.hide {
  opacity: 0;
}

select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  user-select: none;
}

button {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem;
  background: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  cursor: pointer;
  transition: opacity 0.2s ease-in-out;
}

button:hover {
  opacity: 50%;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

img.emoji,
svg.emoji {
  height: 1.65em;
  width: 1.65em;
  margin-left: 0.2em;
  vertical-align: -0.45em;
}

div.text-result {
  gap: 0em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -0.25em;
  padding: 0px;
}

.error {
  color: var(--error-color);
}

.deviate {
  color: var(--deviate-accent-color);
}

.blue {
  color: var(--accent-color);
}

.green {
  color: var(--leek-green);
}

.underline {
  text-decoration: underline;
}
