body {
  margin: 0;
  font-family: -apple-system, Quicksand, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f5f5f5;
}

main {
  flex-grow: 1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.button,
button,
input,
select {
  font: inherit;
}

.button,
button,
select,
input[type="color"],
input[type="checkbox"] {
  cursor: pointer;
}

.button,
button {
  padding: 10px;
  transition: background-color 0.2s ease-out;
  background-color: #d7d7d7;
  border: none;
  color: inherit;
  text-decoration: inherit;
}

input[type="color"] {
  transition: background-color 0.2s ease-out;
  background-color: #d7d7d7;
  border: none;
  padding: 5px;
  height: 30px;
}

select {
  padding: 9px;
  transition: background-color 0.2s ease-out;
  background-color: #d7d7d7;
  border: none;
}

select > option {
  background-color: #f5f5f5;
}

.button:hover,
button:hover,
select:hover,
input[type="color"]:hover {
  background-color: #c3c3c3;
}

a.white,
a.black {
  transition: color 0.4s;
}

a.white:link {
  color: #f5f5f5;
  text-decoration: none;
}

a.white:visited {
  color: #f5f5f5;
}

a.white:hover {
  color: #cdcdcd;
}

a.white:active {
  color: #9b9b9b;
}

a.black:link {
  color: #000000;
  text-decoration: none;
}

a.black:visited {
  color: #000000;
}

a.black:hover {
  color: #7a7a7a;
}

a.black:active {
  color: #afafaf;
}

input[type="text"],
input[type="number"] {
  border-width: 1px;
  border-style: solid;
  border-color: rgb(205, 205, 205);
  padding: 5px;
  border-radius: 25px;
}

.accordion {
  background-color: #f57600;
  color: white;
  padding: 10px;
  width: 100%;
  text-align: center;
  border: none;
  outline: none;
  transition: background-color 0.4s;
  border-radius: 25px 25px 0px 0px;
  margin: 10px 0px 0px 0px;
  font-weight: bold;
}

.accordion:after {
  content: "\002B";
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.accordion.active:after {
  content: "\2212";
}

.accordion.accordion--open {
  cursor: auto;
}

.accordion.accordion--open:after {
  content: none;
}

.accordion:hover {
  background-color: #ffdec7;
  color: #f57600;
}

.panel {
  padding: 20px;
  background-color: #f0f0f0;
  display: none;
  overflow: hidden;
  grid-template-columns: auto 1fr;
  grid-gap: 15px;
  align-items: center;
  border-radius: 0px 0px 25px 25px;
}

.panel.panel--open {
  display: grid;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container > * {
  width: 100%;
  max-width: 1008px;
}

.row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.row--qr-header {
  align-items: center;
}

.row--body {
  align-items: start;
}

.col {
  padding: 20px;
}

.buttons-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.buttons-container button {
  margin-left: 10px;
}

.buttons-container button:first-of-type {
  margin-left: auto;
}

.space-between-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.buttons-container button {
  margin-left: 10px;
}

.buttons-container button:first-of-type {
  margin-left: auto;
}

#form-image-file {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 150px;
}

.qr-logo {
  flex-grow: 1;
  padding-top: 5px;
  padding-bottom: 5px;
}

.qr-logo__img {
  height: 50px;
}

.qr-description {
  color: #fff;
  min-height: 30vh;
  justify-content: center;
  font-size: 21px;
}

.qr-description__lib-name {
  font-size: 48px;
}

.qr-form {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  max-width: 600px;
}

.qr-header {
  background-color: #4e0979;
  color: #f5f5f5;
}

.qr-footer {
  background-color: #333333;
  color: #f5f5f5;
}

.qr-code canvas {
  max-width: 368px !important;
  width: 100%;
}

.qr-download-group {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.qr-download-group select {
  border-left: 1px solid #000;
}

.qr-code-container {
  max-width: 100%;
  position: sticky;
  top: 5px;
}

.qr-code-canvas {
  background-image: linear-gradient(45deg, #dadada 25%, transparent 25%),
    linear-gradient(-45deg, #dadada 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #dadada 75%),
    linear-gradient(-45deg, transparent 75%, #dadada 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.options-export-group {
  margin-top: 20px;
}

#form-data {
  width: 100%;
}

.hide {
  /*visibility: hidden;*/
  height: 0;
  width: 0;
}

.hidden {
  display: none;
}

canvas {
  width: 368px;
  max-width: 100%;
}

.btn-with-icon {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 5px;
  justify-content: center;
}

.btn-primary {
  moz-transition: all 0.4s ease-in-out;

  background-size: 200% 100%;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 14px 1px #00000029;
  color: #fff;
  font-size: 24px;
  letter-spacing: 0.5px;
  padding: 10px 30px;
  transition: all 0.4s ease-in-out;
}

.btn-primary-gradient {
  background-image: linear-gradient(
    135deg,
    hsl(calc(29 - 16), calc(100%), calc(48% - 6%)) 0,
    hsl(calc(29 + 3), calc(100%), calc(48% + 2%)) 100%
  );
}

.btn {
  font-family: Quicksand, sans-serif;
  font-weight: 600;
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn {
  background-color: initial;
  border: 1px solid #0000;
  border-radius: 2rem;
  /* color: #212529; */
  cursor: pointer;
  display: inline-block;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 0.375rem 0.75rem;
  text-align: center;
  text-decoration: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  -webkit-user-select: none;
  user-select: none;
  vertical-align: middle;
  margin: 2px;
}

a,
a:hover {
  text-decoration: none;
}

a {
  color: hsl(277, 86.2%, calc(25.5%));
  transition: all 0.2s;
}

a {
  color: #0d6efd;
  text-decoration: underline;
}

*,
:after,
:before {
  box-sizing: border-box;
}

user agent stylesheet a:-webkit-any-link {
  color: -webkit-link;
  cursor: pointer;
  text-decoration: underline;
}

/* HIDE RADIO */
[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* IMAGE STYLES */
[type="radio"] + img {
  cursor: pointer;
}

/* CHECKED STYLES */
[type="radio"]:checked + img {
  outline: 3px solid #f57600;
  border-radius: 10px;
}
