body {
  background: #0e2a4a !important;
}

.container {
  background-color: #a4bad2;
  color: #43627f;
  border: 10px ridge #43627f;
  border-radius: 10pt;
  font-family: Poppins;
  padding: 20pt;
}

.flex-container {
  display: block;
  justify-content: center; 
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.flex-vcard {
  display: flex; 
  gap: 10px 5px; 
  flex-wrap: wrap;
}

.qr-section {
  display: none;
  width: -webkit-fill-available;
  max-width: 500px;
}

.qr-config {
  border: 5px groove #a4bad2;
  flex: 1;
  text-align: center;
  padding: 20pt;
}

.btn-qrcode {
  border-radius: 10pt;
  border: 1px solid;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0);
  outline: 1px solid;
  outline-color: rgba(220, 227, 237);
  outline-offset: 0px;
  text-shadow: none;
  transition: all 1250ms cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-qrcode:hover {
  border: 1px solid rgb(220, 227, 237);
  box-shadow: inset 0 0 20px rgba(220, 227, 237, 0.9),
    0 0 20px rgba(220, 227, 237, 0.5);
  outline-color: rgba(255, 255, 255, 0);
  outline-offset: 15px;
  text-shadow: 1px 1px 2px rgb(66, 115, 136);
}

.btn-qr {
  background-color: #0e2a4a;
  color: rgb(220, 227, 237);
  cursor: pointer;
  display: block;
  font-size: 16px;
  font-weight: 400;
  line-height: 45px;
  margin: 0 0 0em;
  max-width: 160px;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  width: 100%;

  @media (min-width: 400px) {
    display: inline-block;
    margin-right: 0em;

    &:nth-of-type(even) {
      margin-right: 0;
    }
  }

  @media (min-width: 600px) {
    margin: 0 0em 0em;

    &:nth-of-type(even) {
      margin-right: 0em;
    }

    &:nth-of-type(5) {
      margin-right: 0;
    }
  }

  &:hover {
    text-decoration: none;
  }
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 10px 0;
}

.btn-generate {
  width: 350px;
  min-height: 50px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: large;
  font-weight: 800;
}

.btn-clean-save {
  min-width: 160px;
  width: auto;
  min-height: 50px;
  gap: 20px;
  margin: 10pt 0pt;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bolder;
  font-size: 1rem;
}

.btn-animate {
  border: none;
  outline: none;
  color: #fff;
  background-color: #0e2a4a !important;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
}

.btn-animate:before {
  content: "";
  background: linear-gradient(
    45deg,
    #43627f,
    #fff,
    #0e2a4a,
    #f1f1f1,
    grey,
    #e1e1e1,
    #43627f,
    #fff,
    #0e2a4a
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing 20s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

.btn-animate:active {
  color: #dce3ed;
}

.btn-animate:active:after {
  background: transparent;
}

.btn-animate:hover:before {
  opacity: 1;
  color: #0e2a4a;
}

.btn-animate:after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #0e2a4a;
  left: 0;
  top: 0;
  border-radius: 10px;
}

@keyframes glowing {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.form-control {
  width: 100%;
  max-width: 500px;
  padding: 12px 15px;
  font-size: 17px;
  border: 1px solid #43627f;
  border-radius: 5px;
  background-color: #f8f9fa;
  color: #0e2a4a;
  margin-bottom: 10px;
}

.image-qr {
  text-align: center;
  display: flex;
}

.select-wrapper {
  width: 100%;
  min-width: 300px;
  justify-content: center;
  display: block;
  flex-wrap: wrap; /* Allows wrapping if there are too many select elements */
  gap: 10px; /* Space between select elements */
}

.select-group {
  display: flex;
  flex-direction: column; /* Keep the label and select stacked vertically */
}

#vcard-section {
  width: 100%;
  align-items: center;
  justify-content: center;
}

.flex-vcard > div {
  flex: 1 1 25px;
  min-width: 48%;
}

#generated-qr-code {
  width: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* By default, keep the image in a row with other elements */
  gap: 20px; /* Space between elements */
}

#qr-image {
  max-width: 100%; /* Ensure the image is responsive */
  height: auto;
}

/* Media query for smaller screens (like smartphones) */
@media (max-width: 600px) {
  .container {
    width: 100%;
  }
  #generated-qr-code {
    flex-direction: column; /* Stack the image below other elements on small screens */
    width: 100%; /* Garante que o QR Code ocupe a largura total da div */
  }

  #qr-image {
    width: 100%; /* Make sure the image takes up full width on mobile */
  }

  .flex-container {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .buttons {
    flex-wrap: wrap;
    flex-direction: column; /* Stack buttons vertically */
    align-items: stretch; /* Stretch buttons to fit full width */
  }
  .config-grid {
    width: -webkit-fill-available;
    flex-direction: column;
    align-items: stretch;
  }
  .flex-vcard > div {
    width: 350px;
  }
  .flex-vcard > div .form-control {
    margin-bottom: 4px !important;
  }
}
.botoes-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-qr {
  min-width: 110px;
  font-size: 0.95rem;
  padding: 10px 12px;
  text-align: center;
}

@media (max-width: 768px) {
  .form-control {
    font-size: 16px;
    padding: 10px 12px;
  }

  .config-grid {
    flex-direction: column;
    align-items: stretch;
    width: -webkit-fill-available;
  }

  .flex-vcard {
    flex-direction: column;
    align-items: stretch;
  }

  .flex-vcard > div {
    width: 100% !important;
    min-width: 100%;
  }

  .select-wrapper {
    flex-direction: column;
  }

  .btn-generate {
    font-size: 1.1rem;
    padding: 14px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .btn-qr {
    min-width: 100%;
    font-size: 1rem;
  }
}

input[type="color"] {
  padding: 0;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 5px;
}

.config-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

textarea.form-control {
    height: 200px !important;
}


