/* ia_test_styles.css */

/* Card Component */
.ia-test-card-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ia-test-card {
  height: auto;
  width: auto;
  padding: 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  transform-style: preserve-3d;
  perspective: 1000px;
  transition:
    transform 350ms ease,
    box-shadow 250ms ease;
  will-change: transform;
}

.ia-test-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.ia-test-card__cube-wrapper {
  transform: scale(2.6);
  transform-origin: center;
}

/* Code Snippet */
.ia-test-code {
  background: #f4f4f4;
  padding: 15px;
  border-radius: 5px;
  text-align: left;
}

.ia-test-code .code-red {
  color: #d91e18;
}

.ia-test-code .code-blue-bold {
  color: #0000cd;
  font-weight: bold;
}

.ia-test-code .hidden-char {
  font-size: 0px;
  opacity: 0;
  user-select: text;
}

/* Quiz Component */
.ia-test-quiz__container {
  display: inline-block;
}

.ia-test-quiz__table {
  width: 100%;
  max-width: 400px;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.ia-test-quiz__option {
  border: 1px solid #e5e5e5;
  padding: 10px;
  cursor: pointer;
  transition: background-color 200ms ease;
}

.ia-test-quiz__option--is-a {
  width: 50%;
}

.ia-test-quiz__option--is-b {
  width: 50%;
}

/* Article Section */
.ia-test-article__title {
  color: orange;
}

.ia-test-article__title--danger {
  color: orangered;
}

.ia-test-article__text {
  padding: 8px;
  text-align: left;
}

.ia-test-article__list {
  padding: 8px;
  text-align: left;
}

.ia-test-article__quote {
  padding: 8px;
  text-align: left;
}

.ia-test-article__quote-footer {
  background-color: peru;
}


/* Scroll animation */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Botón flotante de compartir
   ========================================= */
.floating-share-btn {
  position: fixed;
  bottom: 4vh;
  right: 3vw;
  width: 4vw;
  height: 4vw;
  border-radius: 50%;
  background-color: rgb(253, 173, 23);
  color: rgb(236, 78, 38);
  border: none;
  box-shadow: 0 0.5vh 1.5vw rgba(27, 27, 27, 0.2);
  font-size: 1.5vw;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.floating-share-btn:hover {
  transform: scale(1.1);
  background-color: #ff8c00;
}

/* Opcional: Hacerlo un poco más pequeño en móviles */
@media (max-width: 768px) {
  .floating-share-btn {
    bottom: 3vh;
    right: 5vw;
    width: 13vw;
    height: 13vw;
    font-size: 5.5vw;
  }
}