@import url("../../user_interface_standards/styles/colors/qmd_cores.css");
@import url("../../user_interface_standards/styles/fonts/qmd_fonte.css");

:root {
  --color-primary: #f79c04;
  --text-on-light: #333333;
}

.py-5{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.box-button-container {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: center;
  margin: 1rem 0;
  flex-wrap: wrap;
}
  
.box-button {
  box-sizing: border-box;
  flex-grow: 1;
  padding: 1rem;
  background-color: var(--neutral-gray-50);
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  border-radius: 15px;
  text-decoration: none;
  color: var(--text-on-light);
  transform: scale(1);
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.box-button:hover {
  background-color: var(--neutral-gray-100);
  transform: scale(1.12);
}

.box-button > div {
  background-color: var(--neutral-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.2rem;
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

.box-button__icon {
  color: var(--color-primary);
  font-size: 4rem;
}

.box-button__icon-add {
  color: var(--color-primary);
  font-size: 2.2rem;
}

.box-button--small {
  box-sizing: border-box;
  flex-grow: 1;
  padding: 1rem;
  background-color: var(--neutral-gray-50);
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 1rem;
  text-align: left;
  hyphens: auto;
  border-radius: 15px;
  text-decoration: none;
  color: var(--text-on-light);
  transform: scale(1);
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.box-button--small:hover {
  background-color: var(--neutral-gray-0);
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
  transform: scale(1.12);
}

.box-button--small > div {
  background-color: var(--neutral-gray-0);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 50%;
}

.custom-card .box-button__icon {
  background-color: var(--neutral-gray-0);
  color: var(--color-primary);

  font-size: clamp(2rem, 5vw, 4rem);
  width: clamp(75px, 9vw, 120px);
  height: clamp(75px, 9vw, 120px);

  border-radius: 50%;
  display: flex;

  align-items: center;  
  justify-content: center;  
  text-align: center;
}

.box-button__icon--small {
  color: var(--color-primary);
  font-size: 2.5rem;
}

.box-button--small h2 {
  font-size: 1.2rem;
}

.box-button,
.box-button--small {
  flex: 1 1 30%;
  max-width: 370px;
  max-height: 316px;
}

.custom-card {
  width: clamp(290px, 35vw, 370px);
  height: clamp(220px, 30vw, 300px);

  background-color: var(--neutral-gray-50);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  border-radius: 15px;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
  transform: scale(1);
  color: var(---text-on-light);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1; 
  padding: 10px;
}

.custom-card:hover {
  background-color: var(--neutral-gray-0);
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
  transform: scale(1.12);
  z-index: 10;
}

.custom-card .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.custom-card img {
  background-color: var(--neutral-gray-0);
  border-radius: 50%;
  width: clamp(100px, 9vw, 120px);
  height: clamp(100px, 9vw, 120px);
  object-fit: contain;
}

.icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.custom-card h5 {
  font-size: clamp(1rem, 2.8vw, 1.5rem);
  font-weight: 500;
  margin: 0.5rem 0;
  color: var(--neutral-gray-950)
}

.custom-card p {
  text-align: center;
  color: var(--neutral-gray-950);
  font-weight: 500;
}

.custom-card-limit {
  width: 100%;
  max-width: 370px;
  max-height: 320px;
  margin-left: auto;
  margin-right: auto;
}

.custom-card-wrapper {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1023px) {
  .row-align-two-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .row-align-two-center > .col-lg-4 {
    flex: 0 0 auto;
  }

  .row-align-two-center > .last-two-centered:nth-last-child(2),
  .row-align-two-center > .last-two-centered:last-child {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .row-align-two-center > .last-two-centered:nth-last-child(2) {
    margin-left: auto;
  }

  .row-align-two-center > .last-two-centered:last-child {
    margin-right: auto;
  }
}

@media (max-width: 1023px) {
  .last-two-centered:last-child {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 900px) {
  .custom-card h5 {
    font-size: 1.1rem;
  }

  .custom-card p {
    font-size: 0.90rem;
  }

  .custom-card img {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 767px) {
  .custom-card h5 {
    font-size: 1.1rem;
  }

  .custom-card p {
    font-size: 0.75rem;
  }

  .custom-card img {
    width: 75px;
    height: 75px;
  }

  .custom-card .box-button__icon {
    font-size: 2.8rem;
    width: 75px;
    height: 75px;
  }
}

@media (max-width: 576px) {
  .custom-card {
    width: 100%;
    height: auto;
    padding: 1rem;
  }

  .custom-card img {
    width: 80px;
    height: 80px;
    padding: 0.5rem;
  }

  .custom-card h5 {
    font-size: 1.1rem;
  }

  .custom-card p {
    font-size: 0.9rem;
  }

  .custom-card .box-button__icon {
    font-size: 2rem;
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 900px) {
  .box-button--small h2 {
    font-size: 1rem;
  }

  .box-button--small > div {
    width: 70px;
    height: 70px;
  }

  .box-button__icon--small {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .box-button--small {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .row-align-two-center > div {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .box-button--small > div {
    width: 60px;
    height: 60px;
  }

  .box-button__icon--small {
    font-size: 1.5rem;
  }

  .box-button--small h2 {
    font-size: 1rem;
    text-align: center;
  }

  .custom-card-limit {
    max-width: 100% !important;
    width: 100% !important;
    height: auto;
  } 
}

@media (max-width: 576px) {
  .box-button--small {
    width: 100%;
    padding: 1rem;
  }

  .box-button--small h2 {
    font-size: 0.9rem;
  }

  .box-button--small > div {
    width: 60px;
    height: 60px;
  }

  .box-button__icon--small {
    font-size: 1.6rem;
  }
}