@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
/* app components */
@import "./default.css";
@import "./button.css";
@import "./noah-quest.css";
@import "./article.css";
@import "./jigsaw-puzzles.css";
@import "./quiz.css";
@import "./avatar.css";
@import url('https://fonts.googleapis.com/css?family=PT+Serif');

.link-text {
  @apply text-lg; 
  @apply cursor-pointer;
  @apply text-blue-600; 
}

h1 { 
  @apply text-4xl text-gray-900 font-bold leading-8 !important;
  @apply my-2;
  @apply text-left;
}

.article-heading { 
  font-family: "Luckiest Guy";
  text-align: left  !important;
  letter-spacing: 0.05em !important;
}

.plan-link { 
  @apply text-blue-300;
  @apply cursor-pointer;
}

.plan-link:hover { 
  @apply text-red-500;
}

.article-link { 
  @apply text-blue-600;
  @apply cursor-pointer;
}

.article-link:hover { 
  @apply text-red-600;
}

.flex-article-div {
  display: flex;
  flex-direction: row;
}

p { 
  @apply text-lg; 
}

@media (max-width: 800px) {
  .flex-article-div {
    flex-direction: column;
  }
  p { 
    @apply text-base;
  }
}
.avatar-tabs {
  align-items: center;
  @apply rounded-lg;
  @apply bg-primary-dark;
  position: relative;
  cursor: pointer;
}

.inactive-avatar-tabs:hover {
  @apply opacity-75;
}

.avatar-tabs:not(:last-child) {
  border-right: 1px solid rgba(0, 0, 0, 0.3);
}

.active-avatar-tabs {
  @apply bg-yellow-main;
  cursor: default !important;
}

.avatar-content {
  display: none;
}

.active-avatar-content {
  display: block;
}

.coin-link { 
  @apply text-blue-300;
  @apply cursor-pointer;
  @apply underline;
}

.coin-link:hover { 
  @apply text-red-500;
}
/* ========================================
   Global sizing protection
======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
}

.brickhunt-homepage {
  position: relative;
  width: 100%;
  font-family: "PT Serif", serif;
  background: #fbf1e4;
}

/* Do not use the old 960px container for the hero/header */
.brickhunt-header .container,
.brickhunt-hero .container {
  width: min(100%, 1540px);
  max-width: none;
  margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 80px);
}

/* ========================================
   Header
======================================== */

.brickhunt-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  width: 100%;
}

.brickhunt-header__inner {
  min-height: clamp(76px, 8vw, 118px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  padding-top: clamp(16px, 2.2vw, 30px);
  padding-bottom: 16px;
}

.brickhunt-logo-link {
  display: inline-flex;
  min-width: 0;
}

.brickhunt-logo {
  display: block;
  width: auto;
  height: clamp(45px, 5vw, 82px);
}

.brickhunt-nav {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(18px, 2.3vw, 36px);
  white-space: nowrap;
}

.brickhunt-nav__link,
.btn-answer-guide {
  color: #fff;
  font-family: "PT Serif", serif;
  font-size: clamp(15px, 1.05vw, 19px);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
}

.brickhunt-nav__link:hover,
.btn-answer-guide:hover {
  color: #f6d78a;
}

.btn-answer-guide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: clamp(10px, 1vw, 15px) clamp(14px, 1.6vw, 24px);
  margin: 0;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.btn-answer-guide:hover {
  background: rgba(255, 255, 255, 0.24);
}

.btn-answer-guide__icon {
  font-size: 0.9em;
}

/* Desktop/mobile answer labels */
.bh-show-mobile {
  display: none;
}

.bh-hide-mobile {
  display: inline;
}

/* ========================================
   Hero
======================================== */

.brickhunt-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #9b5a37;
}

/* Works whether this is a div or picture */
.brickhunt-hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #9b5a37;
}

.brickhunt-hero__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% center;
}

/* Darken only the text side */
.brickhunt-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(17, 11, 7, 0.63) 0%,
      rgba(17, 11, 7, 0.43) 31%,
      rgba(17, 11, 7, 0.14) 58%,
      rgba(17, 11, 7, 0) 78%
    );
}

.brickhunt-hero__inner {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: clamp(120px, 13vh, 180px);
  padding-bottom: clamp(44px, 8vh, 100px);
}

.brickhunt-hero__content {
  width: min(39vw, 620px);
  min-width: 0;
  color: #fff;
}

.brickhunt-hero__title {
  margin: 0 0 clamp(12px, 1.4vw, 22px);
  max-width: 9ch;
  color: #ffefc9 !important;
  font-size: clamp(52px, 5.8vw, 104px) !important;
  font-weight: 700 !important;
  line-height: 0.96 !important;
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.58);
}

.brickhunt-hero__tagline {
  margin: 0 0 clamp(18px, 2vw, 30px);
  color: #ffd370;
  font-size: clamp(34px, 3.25vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  text-shadow: 0 2px 11px rgba(0, 0, 0, 0.55);
}

.brickhunt-hero__intro {
  max-width: 480px;
  margin: 0 0 clamp(24px, 3vw, 42px);
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(16px, 1.22vw, 21px);
  line-height: 1.5;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.6);
}

.brickhunt-hero__actions .btn-primary {
  margin: 0;
  padding: clamp(13px, 1.2vw, 18px) clamp(24px, 2vw, 36px);
  border-radius: 9px;
  background: #d98e18;
  color: #fff;
  font-size: clamp(16px, 1.1vw, 20px);
  font-weight: 700;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.3);
}

.brickhunt-hero__actions .btn-primary:hover {
  background: #eba327;
}

/* ========================================
   Standard tablets: compact header
======================================== */

@media (max-width: 1100px) {
  .brickhunt-header__inner {
    grid-template-columns: auto 1fr;
  }

  .brickhunt-nav {
    justify-content: flex-end;
  }

  /* Turn the outlined button into a normal Answers tab */
  .btn-answer-guide {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
  }

  .btn-answer-guide:hover {
    background: none;
  }

  .btn-answer-guide__icon,
  .bh-hide-mobile {
    display: none;
  }

  /* Show the short Answers label on tablets */
  span.bh-show-mobile {
    display: inline;
  }

  /* Do not force phone paragraph breaks on tablets */
  br.bh-show-mobile {
    display: none;
  }

  .brickhunt-hero__content {
    width: min(52vw, 600px);
  }

  .brickhunt-hero__title {
    font-size: clamp(50px, 7vw, 78px) !important;
  }

  .brickhunt-hero__tagline {
    font-size: clamp(33px, 4.5vw, 48px);
  }
}

/* ========================================
   Portrait tablets: iPad, Surface portrait
======================================== */

@media (min-width: 601px) and (max-width: 1100px) {
  .brickhunt-hero__inner {
    align-items: center;
    padding-top: 130px;
    padding-bottom: 60px;
  }

  .brickhunt-hero__content {
    width: min(46vw, 430px);
    max-width: 430px;
  }

  .brickhunt-hero__title {
    max-width: 8.5ch;
    font-size: clamp(54px, 7vw, 72px) !important;
  }

  .brickhunt-hero__tagline {
    font-size: clamp(36px, 4.6vw, 46px);
  }

  .brickhunt-hero__intro {
    max-width: 390px;
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.48;
  }

  .brickhunt-hero__image {
    object-position: 62% center;
  }
}

/* ========================================
   Phones and narrow folded screens
======================================== */

@media (max-width: 600px) {
  .brickhunt-header .container,
  .brickhunt-hero .container {
    padding-inline: clamp(18px, 5vw, 28px);
  }

  .brickhunt-header__inner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 12px;
    padding-top: 22px;
  }

  .brickhunt-logo {
    height: clamp(40px, 12vw, 48px);
  }

  .brickhunt-nav {
    width: 100%;
    justify-content: flex-start;
    gap: clamp(22px, 8vw, 34px);
  }

  .brickhunt-nav__link,
  .btn-answer-guide {
    font-size: clamp(16px, 4.6vw, 18px);
  }

  .brickhunt-hero {
    min-height: 100svh;
  }

  .brickhunt-hero__inner {
    min-height: 100svh;
    align-items: flex-start;
    padding-top: clamp(245px, 33vh, 310px);
    padding-bottom: 30px;
  }

  .brickhunt-hero__content {
    width: 100%;
    max-width: 360px;
  }

  .brickhunt-hero__title {
    max-width: 8.5ch;
    font-size: clamp(49px, 15.5vw, 64px) !important;
    line-height: 0.98 !important;
  }

  .brickhunt-hero__tagline {
    font-size: clamp(33px, 10vw, 42px);
  }

  .brickhunt-hero__intro {
    max-width: 300px;
    font-size: clamp(16px, 4.5vw, 18px);
  }

  .brickhunt-hero__image {
    object-position: 66% center;
  }

  .brickhunt-hero::after {
    background:
      linear-gradient(
        90deg,
        rgba(17, 11, 7, 0.56) 0%,
        rgba(17, 11, 7, 0.31) 57%,
        rgba(17, 11, 7, 0.08) 100%
      );
  }

  br.bh-show-mobile {
    display: initial;
  }
}

@media (max-width: 600px) and (min-height: 850px) {
  .brickhunt-hero__inner {
    padding-top: clamp(275px, 32vh, 315px);
  }
}

/* Very narrow phones such as Galaxy Fold */
@media (max-width: 360px) {
  .brickhunt-nav {
    justify-content: space-between;
    gap: 10px;
  }

  .brickhunt-nav__link,
  .btn-answer-guide {
    font-size: 15px;
  }

  .brickhunt-hero__title {
    font-size: 48px !important;
  }

  .brickhunt-hero__tagline {
    font-size: 32px;
  }

  .brickhunt-hero__intro {
    font-size: 15px;
    max-width: 270px;
  }

  .brickhunt-hero__actions .btn-primary {
    padding: 13px 23px;
    font-size: 16px;
  }
}

/* ========================================
   Wide but short screens: Nest Hub, landscape tablets
======================================== */

@media (min-width: 700px) and (max-height: 720px) {
  .brickhunt-header__inner {
    min-height: 76px;
    padding-top: 14px;
  }

  .brickhunt-logo {
    height: clamp(45px, 5.5vh, 58px);
  }

  .brickhunt-hero {
    min-height: max(600px, 100svh);
  }

  .brickhunt-hero__inner {
    min-height: max(600px, 100svh);
    align-items: center;
    padding-top: 90px;
    padding-bottom: 34px;
  }

  .brickhunt-hero__content {
    width: min(48vw, 540px);
  }

  .brickhunt-hero__title {
    font-size: clamp(52px, 8vh, 72px) !important;
  }

  .brickhunt-hero__tagline {
    font-size: clamp(32px, 5.8vh, 44px);
    margin-bottom: 16px;
  }

  .brickhunt-hero__intro {
    margin-bottom: 22px;
    font-size: clamp(15px, 2.3vh, 18px);
  }

  .brickhunt-hero__image {
    object-position: 53% center;
  }
}

/* Surface Duo and other wide-but-short phones */
@media (min-width: 500px) and (max-width: 600px) and (max-height: 760px) {
  .brickhunt-hero__inner {
    padding-top: 190px;
    padding-bottom: 24px;
  }

}

/* ========================================
   Very large screens
======================================== */

@media (min-width: 1600px) {
  .brickhunt-header .container,
  .brickhunt-hero .container {
    width: min(100%, 1720px);
    padding-inline: clamp(70px, 5vw, 110px);
  }

  .brickhunt-logo {
    height: clamp(68px, 4.3vw, 92px);
  }

  .brickhunt-nav__link,
  .btn-answer-guide {
    font-size: clamp(18px, 1vw, 21px);
  }

  .brickhunt-hero__content {
    width: min(36vw, 700px);
  }
}
/* ========================================
   Desktop hero refinements
======================================== */

@media (min-width: 1200px) {
  /* 1. Make the logo about 8–10% larger */
  .brickhunt-logo {
    height: clamp(50px, 5.4vw, 88px);
  }

  /* 2. Make desktop nav text slightly larger */
  .brickhunt-nav__link,
  .btn-answer-guide {
    font-size: clamp(16px, 1.15vw, 20px);
  }

  /* 3. Move the main text block lower by about 25px */
  .brickhunt-hero__content {
    transform: translate(-25px, 25px);
  }

  /* 4. Increase paragraph size slightly */
  .brickhunt-hero__intro {
    font-size: clamp(18px, 1.32vw, 22px);
  }

  /* 5. Make the CTA wider */
  .brickhunt-hero__actions .btn-primary {
    padding-left: clamp(32px, 2.4vw, 44px);
    padding-right: clamp(32px, 2.4vw, 44px);
  }

  /* 6. Move navigation to the left */ 
  .brickhunt-nav {
    margin-right: 60px;
  }
}

/* ========================================
   Features strip
======================================== */

.brickhunt-features {
  background: #f8f3e8;
}

.brickhunt-features .container {
  width: min(100%, 1380px);
  max-width: none;
  margin-inline: auto;
  padding: clamp(34px, 4vw, 64px) clamp(20px, 4vw, 64px);
}

.brickhunt-features__card {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;

  background: #ddd4bf;
  border: 1px solid #ddd4bf;
  border-radius: 18px;
  box-shadow: 0 5px 24px rgba(76, 51, 29, 0.1);
  overflow: hidden;
}

/*
  The 1px gap reveals the card background,
  creating clean dividers without nth-child border problems.
*/
.brickhunt-features__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: #ddd4bf;
}

.brickhunt-feature {
  min-width: 0;
  /* top and bottom clamp(minimum, preferred, maximum) */
  padding: clamp(30px, 2.8vw, 42px) clamp(20px, 2vw, 30px);
  text-align: center;
  background: #fdf7ee;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brickhunt-feature__icon {
  width: clamp(58px, 4.5vw, 72px);
  height: clamp(58px, 4.5vw, 72px);
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 16px;
  border-radius: 50%;
}

.brickhunt-feature__icon img {
  width: 150%;
  height: 150%;
  object-fit: contain;
}

.brickhunt-feature__icon--yellow {
  background: #f6ce3b;
}

.brickhunt-feature__icon--green {
  background: #5bab6f;
}

.brickhunt-feature__icon--coral {
  background: #e86b56;
}

.brickhunt-feature__icon--blue {
  background: #4a9dc0;
}

.brickhunt-feature h3 {
  margin: 0 0 9px;
  color: #3a2a1c;
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 700;
  line-height: 1.25;
}

.brickhunt-feature p {
  max-width: 220px;
  margin: 0;
  color: #7a5c3e;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.48;
}


/* ========================================
   Tablet: three items above, two balanced below
======================================== */

@media (min-width: 601px) and (max-width: 1100px) {
  .brickhunt-features .container {
    padding-inline: clamp(24px, 5vw, 52px);
  }

  .brickhunt-features__card {
    max-width: 900px;
  }

  /*
    Six underlying columns:
    first 3 cards use 2 each;
    final 2 cards use 3 each.
  */
  .brickhunt-features__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .brickhunt-feature {
    grid-column: span 2;
    min-height: 205px;
    justify-content: flex-start;
  }

  .brickhunt-feature:nth-child(4),
  .brickhunt-feature:nth-child(5) {
    grid-column: span 3;
  }

  .brickhunt-feature p {
    max-width: 260px;
  }
}


/* ========================================
   Phone: two columns, last card full width
======================================== */

@media (max-width: 600px) {
  .brickhunt-features .container {
    padding: 28px 16px;
  }

  .brickhunt-features__card {
    max-width: 440px;
    border-radius: 16px;
  }

  .brickhunt-features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brickhunt-feature {
    padding: 24px 14px;
    min-height: 205px;
    justify-content: flex-start;
  }

  .brickhunt-feature:last-child {
    grid-column: 1 / -1;
    min-height: auto;
    padding-block: 24px 28px;
  }

  .brickhunt-feature:last-child p {
    max-width: 270px;
  }

  .brickhunt-feature__icon {
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
  }

  .brickhunt-feature h3 {
    font-size: 16px;
  }

  .brickhunt-feature p {
    max-width: 165px;
    font-size: 14px;
  }
}

/* ========================================
   Section heading (shared)
======================================== */

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  color: #3a2a1c;
  margin: 0;
}

.section-heading__brick {
  display: inline-block;
  width: 28px;
  height: 14px;
  background: #C9982E;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ========================================
   Our Books
======================================== */

.brickhunt-books {
  background: #F8F3E8;
}

.brickhunt-books .container {
  width: min(100%, 1380px);
  max-width: none;
  margin-inline: auto;
  padding:
    clamp(48px, 5vw, 72px)
    clamp(20px, 4vw, 64px)
    clamp(56px, 6vw, 84px);
}

.brickhunt-books__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

.brickhunt-book-card {
  text-align: center;
}

.brickhunt-book-card__image-link {
  display: inline-block;
}

.brickhunt-book-card__cover {
  width: auto;
  max-width: 200px;
  max-height: 260px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brickhunt-book-card__image-link:hover .brickhunt-book-card__cover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.brickhunt-book-card h3 {
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 700;
  color: #3a2a1c;
  margin: 18px 0 8px;
}

.brickhunt-book-card h3 a {
  color: inherit;
  text-decoration: none;
}

.brickhunt-book-card h3 a:hover {
  color: #A94F3D;
}

.brickhunt-book-card p {
  font-size: clamp(13px, 1vw, 15px);
  color: #7A5C3E;
  line-height: 1.5;
  margin: 0 0 14px;
}

.brickhunt-book-card__link {
  display: inline-block;
  color: #A94F3D;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.brickhunt-book-card__link:hover {
  text-decoration: underline;
}

/* Coming Soon card */
.brickhunt-book-card__cover-wrap {
  position: relative;
  display: inline-block;
}

.brickhunt-book-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #A94F3D;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Future / placeholder card */
.brickhunt-book-card--future .brickhunt-book-card__placeholder {
  width: 200px;
  height: 260px;
  margin: 0 auto;
  border: 2px dashed #C9982E;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #7A5C3E;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  padding: 20px;
}

.brickhunt-book-card--future p {
  margin-top: 18px;
}

/* Books responsive */
@media (max-width: 768px) {
  .brickhunt-books__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .brickhunt-book-card--future {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .brickhunt-books__grid {
    grid-template-columns: 1fr;
  }

  .brickhunt-book-card--future {
    grid-column: auto;
  }
}

/* ========================================
   How Kids Play
======================================== */

.brickhunt-play {
  background: #EFE4C8;
}

.brickhunt-play .container {
  width: min(100%, 1380px);
  max-width: none;
  margin-inline: auto;
  padding:
    clamp(48px, 5vw, 72px)
    clamp(20px, 4vw, 64px)
    clamp(56px, 6vw, 84px);
}

.brickhunt-play__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

.brickhunt-play-step {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.brickhunt-play__arrow {
  flex-shrink: 0;
  font-size: 24px;
  color: #C9982E;
  padding-top: 64px;
  line-height: 1;
}

.brickhunt-play-step__image-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}

.brickhunt-play-step__image {
  width: clamp(100px, 14vw, 170px);
  height: clamp(100px, 14vw, 170px);
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.brickhunt-play-step__number {
  position: absolute;
  left: -8px;
  bottom: -8px;

  width: 42px;
  height: 42px;

  border: 2px solid #efe4c8;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
  font-weight: 700;
  color: #fff;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  z-index: 2;
}

.brickhunt-play-step__number--yellow { background: #e8a61e; }
.brickhunt-play-step__number--green  { background: #6f8b33; }
.brickhunt-play-step__number--coral  { background: #ca592a; }
.brickhunt-play-step__number--blue   { background: #3983ab; }

.brickhunt-play-step h3 {
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 700;
  color: #3a2a1c;
  margin: 0 0 6px;
}

.brickhunt-play-step p {
  font-size: clamp(13px, 0.95vw, 15px);
  color: #7A5C3E;
  line-height: 1.45;
  margin: 0;
}

/* How Kids Play responsive */
@media (max-width: 768px) {
  .brickhunt-play__steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .brickhunt-play__arrow {
    display: none;
  }
}

@media (max-width: 600px) {
  .brickhunt-play-step__number {
    width: 36px;
    height: 36px;
    border-width: 3px;
    font-size: 17px;
    left: -6px;
    bottom: -6px;
  }
}

@media (max-width: 480px) {
  .brickhunt-play__steps {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Hidden Dove CTA
======================================== */

.brickhunt-dove {
  background: #fbf1e4;
  padding:
    clamp(42px, 5vw, 72px)
    clamp(20px, 4vw, 64px);
}

.brickhunt-dove__inner {
  width: min(100%, 1200px);
  max-width: none;
  margin-inline: auto;
  padding:
    clamp(28px, 3vw, 44px)
    clamp(28px, 4vw, 56px);

  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);

  background:
    linear-gradient(
      135deg,
      rgba(220, 238, 248, 0.95),
      rgba(239, 228, 200, 0.95)
    );

  border: 1px solid rgba(122, 92, 62, 0.15);
  border-radius: 22px;
  box-shadow: 0 8px 28px rgba(76, 51, 29, 0.1);
}

.brickhunt-dove__image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brickhunt-dove__image {
  display: block;
  width: clamp(150px, 16vw, 230px);
  height: auto;
}

.brickhunt-dove__copy {
  min-width: 0;
}

.brickhunt-dove__copy h2 {
  margin: 0 0 10px;
  color: #3a2a1c;
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 700;
  line-height: 1.15;
}

.brickhunt-dove__copy p {
  margin: 0;
  color: #a94f3d;
  font-size: clamp(17px, 1.3vw, 20px);
  font-weight: 700;
  line-height: 1.4;
}

.brickhunt-newsletter {
  padding-left: clamp(24px, 3vw, 42px);
  border-left: 1px solid rgba(122, 92, 62, 0.22);
}

.brickhunt-newsletter h3 {
  margin: 0 0 8px;
  color: #3a2a1c;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.25;
}

.brickhunt-newsletter p {
  margin: 0 0 18px;
  color: #7a5c3e;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.5;
}

.btn-newsletter {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 12px 22px;

  background: #a94f3d;
  border: 0;
  border-radius: 8px;

  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;

  box-shadow: 0 4px 12px rgba(76, 51, 29, 0.18);
}

.btn-newsletter:hover {
  background: #8a3f30;
  color: #fff;
  transform: translateY(-1px);
}


/* ========================================
   Footer
======================================== */

.brickhunt-footer {
  background: #3a2417;
  color: rgba(255, 255, 255, 0.86);
  text-align: left;
  padding: 0;
}

.brickhunt-footer .container {
  width: min(100%, 1380px);
  max-width: none;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 64px);
}

.brickhunt-footer__inner {
  min-height: 96px;
  padding-top: 26px;
  padding-bottom: 22px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brickhunt-footer__copyright {
  margin: 0;
  justify-self: start;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.brickhunt-footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.brickhunt-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 40px;
  height: 40px;
  padding-inline: 13px;

  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;

  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.brickhunt-footer__social a:hover {
  background: #c9982e;
  border-color: #c9982e;
  transform: translateY(-2px);
}

.brickhunt-footer__domain {
  justify-self: end;
  color: #f6d78a;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.brickhunt-footer__domain:hover {
  color: #fff;
}

.brickhunt-footer > .container:last-child {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.brickhunt-footer__disclaimer {
  margin: 0;
  padding-top: 16px;
  padding-bottom: 18px;

  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}


/* ========================================
   Dove + footer responsive
======================================== */

@media (max-width: 900px) {
  .brickhunt-dove__inner {
    grid-template-columns: 170px 1fr;
  }

  .brickhunt-dove__image {
    width: clamp(140px, 21vw, 190px);
  }

  .brickhunt-newsletter {
    grid-column: 1 / -1;
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(122, 92, 62, 0.22);

    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px 24px;
  }

  .brickhunt-newsletter h3,
  .brickhunt-newsletter p {
    grid-column: 1;
  }

  .brickhunt-newsletter p {
    margin-bottom: 0;
  }

  .btn-newsletter {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .brickhunt-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .brickhunt-footer__social {
    grid-column: 1 / -1;
    grid-row: 1;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    flex-wrap: wrap;
  }

  .brickhunt-footer__social-label {
    width: 100%;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .brickhunt-footer__copyright {
    grid-column: 1;
    grid-row: 2;
  }

  .brickhunt-footer__domain {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 600px) {
  .brickhunt-dove {
    padding: 30px 16px;
  }

  .brickhunt-dove__inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 22px;
    text-align: center;
  }

  .brickhunt-dove__image {
    width: 160px;
  }

  .brickhunt-dove__copy h2 {
    font-size: 25px;
  }

  .brickhunt-newsletter {
    grid-column: auto;
    display: block;
    padding-top: 22px;
  }

  .brickhunt-newsletter p {
    margin-bottom: 18px;
  }

  .btn-newsletter {
    width: 100%;
  }

  .brickhunt-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 28px;
    padding-bottom: 24px;
    text-align: center;
  }

  .brickhunt-footer__copyright,
  .brickhunt-footer__domain {
    justify-self: auto;
  }

  .brickhunt-footer__social {
    flex-wrap: wrap;
    gap: 9px;
  }

  .brickhunt-footer__social a {
    height: 38px;
    padding-inline: 12px;
  }

  .brickhunt-footer__disclaimer {
    padding: 15px 8px 18px;
  }
}
@import url('https://fonts.googleapis.com/css?family=Carter+One');

.no-outline-button { 
  @apply outline-none;
}

.no-outline-button:focus { 
  @apply outline-none;
}

.fancy-button::before {
  content: '';
  height: 10%;
  position: absolute;
  width: 30%;
  background: #fff;
  right: 30%;
  top: -3%;
  border-radius: 99px;
}
.fancy-button::after {
  content: '';
  height: 10%;
  position: absolute;
  width: 5%;
  background: #fff;
  right: 20%;
  top: -3%;
  border-radius: 99px;
}
.fancy-round-button {
  border-radius: 45px;
  position: relative;
  cursor: pointer;
  text-decoration: none !important;
  outline: none !important;
  font-family: 'Carter One', sans-serif;
  text-shadow: 2px 2px 1px #0066a2, -2px 2px 1px #0066a2, 2px -2px 1px #0066a2, -2px -2px 1px #0066a2, 0px 2px 1px #0066a2, 0px -2px 1px #0066a2, 0px 4px 1px #004a87, 2px 4px 1px #004a87, -2px 4px 1px  #004a87;
  border: none;
  background: repeating-linear-gradient( 45deg, #3ebbf7, #3ebbf7 5px, #45b1f4 5px, #45b1f4 10px);
  border-bottom: 1px solid rgba(16, 91, 146, 0.5);
  border-top: 1px solid rgba(255,255,255,.3);
  color: #fff !important;
}

.fancy-button { 
  border-radius: 45px;
  position: relative;
  cursor: pointer;
  text-decoration: none !important;
  outline: none !important;
  font-family: 'Carter One', sans-serif;
  border: none;
  color: #fff !important;
  background: repeating-linear-gradient( 45deg, #3ebbf7, #3ebbf7 5px, #45b1f4 5px, #45b1f4 10px);
  box-shadow: 0 3px 0 #1a6b9a, 0 2px 1px 1px rgba(0,0,0,.3);
  text-shadow: 1px 1px 1px #0066a2, -1px 1px 1px #0066a2, 1px -1px 1px #0066a2, -1px -1px 1px #0066a2, 0px 1px 1px #0066a2, 0px -1px 1px #0066a2, 0px 2px 1px #004a87, 1px 2px 1px #004a87, -1px 2px 1px  #004a87;
  border-bottom: 2px solid rgba(16, 91, 146, 0.5);
  border-top: 2px solid rgba(255,255,255,.3);
  padding: 6px 10px 8px; 
  margin: 6px 6px 6px;
}

.fancy-button-active, .small-fancy-button-active { 
   box-shadow: 0 2px 0 #b76113, 0 2px 1px 1px rgba(0,0,0,.3) !important;
 }

.fancy-button:hover, .fancy-round-button:hover, .small-fancy-button:hover {
  background: repeating-linear-gradient( 45deg, #1eaaf7, #1e9bf7 5px, #259df4 5px, #259df4 10px);
}

.fancy-button:active, .fancy-round-button:active, .small-fancy-button:active {
  box-shadow: 0 2px 0 #12517d, 0 2px 1px 1px rgba(0,0,0,.3);
}

.fancy-round-button.small.orange {
  box-shadow: 0 3px 0 #b76113, 0 3px 1px 1px rgba(0,0,0,.3);
}

.fancy-button.small.orange {
  box-shadow: 0 3px 0 #b76113, 0 3px 1px 1px rgba(0,0,0,.3);
  padding: 6px 10px 8px; 
}

.fancy-button.small.orange:active {
  box-shadow: 0 1px 0 #12517d, 0 1px 1px 1px rgba(0,0,0,.3); 
}

.fancy-button.orange, .fancy-round-button.orange {
  background: repeating-linear-gradient( 45deg, #ffc800, #ffc800 5px, #fec000 5px, #fec000 10px);
  box-shadow: 0 3px 0 #b76113, 0 5px 1px 1px rgba(0,0,0,.3);
  text-shadow: 2px 2px 1px #e78700, -2px 2px 1px #e78700, 2px -2px 1px #e78700, -2px -2px 1px #e78700, 0px 2px 1px #e78700, 0px -2px 1px #e78700, 0px 4px 1px #c96100, 2px 4px 1px #c96100, -2px 4px 1px  #c96100;
}
.fancy-button.orange:active, .fancy-round-button.orange:active {
  box-shadow: 0 1px 0 #b76113, 0 2px 1px 1px rgba(0,0,0,.3);
}
.fancy-button.orange:hover, .fancy-round-button.orange:hover {
  background: repeating-linear-gradient( 45deg, #ffa800, #ffa800 5px, #fe9e00 5px, #fe9e00 10px);
}

.fancy-button.red, .fancy-round-button.red {
  background: repeating-linear-gradient( 45deg, #ff4f4c, #ff4f4c 5px, #ff4643 5px, #ff4643 10px);
  box-shadow: 0 3px 0 #ae2725, 0 5px 1px 1px rgba(0,0,0,.3);
  text-shadow: 2px 2px 1px #d72d21, -2px 2px 1px #d72d21, 2px -2px 1px #d72d21, -2px -2px 1px #d72d21, 0px 2px 1px #d72d21, 0px -2px 1px #d72d21, 0px 4px 1px #930704, 2px 4px 1px #930704, -2px 4px 1px  #930704;
}
.fancy-button.red:active, .fancy-round-button.red:active {
  box-shadow: 0 1px 0 #ae2725, 0 2px 1px 1px rgba(0,0,0,.3);
}
.fancy-button.red:hover, .fancy-round-button.red:hover {
  background: repeating-linear-gradient( 45deg, #ee2f4c, #ee2f4c 5px, #ed2725 5px, #ed2725 10px);
}

.fancy-button.green, .fancy-round-button.green {
  background: repeating-linear-gradient( 45deg, #54d440, #54d440 5px, #52cc3f 5px, #52cc3f 10px);
  box-shadow: 0 3px 0 #348628, 0 5px 1px 1px rgba(0,0,0,.3);
  text-shadow: 2px 2px 1px #348628, -2px 2px 1px #348628, 2px -2px 1px #348628, -2px -2px 1px #348628, 0px 2px 1px #348628, 0px -2px 1px #348628, 0px 4px 1px #1d4c16, 2px 4px 1px #1d4c16, -2px 4px 1px #1d4c16;
}
.fancy-button.green:hover, .fancy-round-button.green:hover {
  background: repeating-linear-gradient( 45deg, #34b440, #34b440 5px, #42ac3f 5px, #42ac3f 10px );
}
.fancy-button.green:active, .fancy-round-button.green:active {
  box-shadow: 0 1px 0 #348628, 0 2px 1px 1px rgba(0,0,0,.3);
}

@media only screen and (min-width: 768px) {
  .fancy-button { 
    box-shadow: 0 6px 0 #1a6b9a, 0 5px 1px 1px rgba(0,0,0,.3);
  }
  .fancy-button:active { 
    box-shadow: 0 3px 0 #1a6b9a, 0 2px 1px 1px rgba(0,0,0,.3);
  }
  .fancy-button.orange, .fancy-round-button.orange {
    box-shadow: 0 6px 0 #b76113, 0 5px 1px 1px rgba(0,0,0,.3);
  }
  .fancy-button.orange:active, .fancy-round-button.orange:active {
    box-shadow: 0 3px 0 #b76113, 0 2px 1px 1px rgba(0,0,0,.3);
  }
  .fancy-button.red, .fancy-round-button.red {
    box-shadow: 0 6px 0 #ae2725, 0 5px 1px 1px rgba(0,0,0,.3);
  }
  .fancy-button.red:active, .fancy-round-button.red:active {
    box-shadow: 0 3px 0 #ae2725, 0 2px 1px 1px rgba(0,0,0,.3);
  }
  .fancy-button.green, .fancy-round-button.green {
    box-shadow: 0 6px 0 #348628, 0 5px 1px 1px rgba(0,0,0,.3);
  }
  .fancy-button.green:active, .fancy-round-button.green:active {
    box-shadow: 0 3px 0 #348628, 0 2px 1px 1px rgba(0,0,0,.3);
  }
}
.puzzles-active {
	will-change: filter;
  -webkit-filter: drop-shadow(5px 5px 5px #222);
  filter: drop-shadow(5px 5px 5px #222);
}

.invisible { 
  visibility: hidden;
}

.pointer-none { 
	pointer-events:none;
}

.done-img { 
	transition: opacity 1.4s;
	opacity: 0;
}

.done-img-init { 
	opacity: 1;
}

.hint-img { 
	opacity: 0.5;
}
/* colors */
/* tab setting */
/* breakpoints */
/* selectors relative to radio inputs */
/* line 51, app/assets/stylesheets/login.scss */
html {
  width: 100%;
  height: 100%;
}

/* line 56, app/assets/stylesheets/login.scss */
body {
  font-family: "Bitter";
  height: 100%;
  margin: 0px;
}

/* line 60, app/assets/stylesheets/login.scss */
body h1 {
  font-weight: 300;
  padding: 40px 0 20px 0;
  margin: 0;
}

/* line 68, app/assets/stylesheets/login.scss */
.tabs {
  left: 50%;
  transform: translateX(-50%);
  position: relative;
  padding-bottom: 1em;
  width: 100%;
  min-width: 120px;
}

/* line 75, app/assets/stylesheets/login.scss */
.tabs input[name="tab-control"] {
  display: none;
}

/* line 79, app/assets/stylesheets/login.scss */
.tabs .content section h2,
.tabs ul li label {
  font-family: "Montserrat";
  font-weight: bold;
  color: #428BFF;
}

/* line 86, app/assets/stylesheets/login.scss */
.tabs ul {
  list-style-type: none;
  padding-left: 0;
  display: flex;
  flex-direction: row;
  margin-bottom: 10px;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* line 96, app/assets/stylesheets/login.scss */
.tabs ul li {
  box-sizing: border-box;
  flex: 1;
  width: 50%;
  padding: 0 10px;
  text-align: center;
}

/* line 103, app/assets/stylesheets/login.scss */
.tabs ul li label {
  transition: all 0.3s ease-in-out;
  color: #929daf;
  padding: 5px auto;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
  -webkit-touch-callout: none;
}

/* line 115, app/assets/stylesheets/login.scss */
.tabs ul li label br {
  display: none;
}

/* line 119, app/assets/stylesheets/login.scss */
.tabs ul li label svg {
  fill: #929daf;
  height: 1.2em;
  vertical-align: bottom;
  margin-right: 0.2em;
  transition: all 0.2s ease-in-out;
}

/* line 127, app/assets/stylesheets/login.scss */
.tabs ul li label:hover, .tabs ul li label:focus, .tabs ul li label:active {
  outline: 0;
  color: #bec5cf;
}

/* line 132, app/assets/stylesheets/login.scss */
.tabs ul li label:hover svg, .tabs ul li label:focus svg, .tabs ul li label:active svg {
  fill: #bec5cf;
}

/* line 140, app/assets/stylesheets/login.scss */
.tabs .slider {
  position: relative;
  width: 50%;
  transition: all 0.33s cubic-bezier(0.38, 0.8, 0.32, 1.07);
}

/* line 144, app/assets/stylesheets/login.scss */
.tabs .slider .indicator {
  position: relative;
  width: 100px;
  max-width: 100%;
  margin: 0 auto;
  height: 4px;
  background: #428BFF;
  border-radius: 1px;
}

/* line 156, app/assets/stylesheets/login.scss */
.tabs .content {
  margin-top: 30px;
}

/* line 159, app/assets/stylesheets/login.scss */
.tabs .content section {
  display: none;
  animation-name: content;
  animation-direction: normal;
  animation-duration: 0.3s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 1;
  line-height: 1.4;
}

/* line 170, app/assets/stylesheets/login.scss */
.tabs .content section h2 {
  color: #428BFF;
  display: none;
}

/* line 173, app/assets/stylesheets/login.scss */
.tabs .content section h2::after {
  content: "";
  position: relative;
  display: block;
  width: 30px;
  height: 3px;
  background: #428BFF;
  margin-top: 5px;
  left: 1px;
}

/* line 189, app/assets/stylesheets/login.scss */
.tabs input[name="tab-control"]:nth-of-type(1):checked ~ ul > li:nth-child(1) > label {
  cursor: default;
  color: #428BFF;
}

/* line 193, app/assets/stylesheets/login.scss */
.tabs input[name="tab-control"]:nth-of-type(1):checked ~ ul > li:nth-child(1) > label svg {
  fill: #428BFF;
}

@media (max-width: 300px) {
  /* line 189, app/assets/stylesheets/login.scss */
  .tabs input[name="tab-control"]:nth-of-type(1):checked ~ ul > li:nth-child(1) > label {
    background: rgba(0, 0, 0, 0.08);
  }
}

/* line 40, app/assets/stylesheets/login.scss */
.tabs input[name="tab-control"]:nth-of-type(1):checked ~ .slider {
  transform: translateX(0%);
}

/* line 44, app/assets/stylesheets/login.scss */
.tabs input[name="tab-control"]:nth-of-type(1):checked ~ .content > section:nth-child(1) {
  display: block;
}

/* line 189, app/assets/stylesheets/login.scss */
.tabs input[name="tab-control"]:nth-of-type(2):checked ~ ul > li:nth-child(2) > label {
  cursor: default;
  color: #428BFF;
}

/* line 193, app/assets/stylesheets/login.scss */
.tabs input[name="tab-control"]:nth-of-type(2):checked ~ ul > li:nth-child(2) > label svg {
  fill: #428BFF;
}

@media (max-width: 300px) {
  /* line 189, app/assets/stylesheets/login.scss */
  .tabs input[name="tab-control"]:nth-of-type(2):checked ~ ul > li:nth-child(2) > label {
    background: rgba(0, 0, 0, 0.08);
  }
}

/* line 40, app/assets/stylesheets/login.scss */
.tabs input[name="tab-control"]:nth-of-type(2):checked ~ .slider {
  transform: translateX(100%);
}

/* line 44, app/assets/stylesheets/login.scss */
.tabs input[name="tab-control"]:nth-of-type(2):checked ~ .content > section:nth-child(2) {
  display: block;
}

@keyframes content {
  from {
    opacity: 0;
    transform: translateY(5%);
  }
  to {
    opacity: 1;
    transform: translateY(0%);
  }
}

@media (max-width: 500px) {
  /* line 216, app/assets/stylesheets/login.scss */
  .tabs ul li label {
    white-space: initial;
  }
  /* line 219, app/assets/stylesheets/login.scss */
  .tabs ul li label br {
    display: initial;
  }
  /* line 223, app/assets/stylesheets/login.scss */
  .tabs ul li label svg {
    height: 1.5em;
  }
}

@media (max-width: 300px) {
  /* line 230, app/assets/stylesheets/login.scss */
  .tabs ul li label {
    padding: 5px;
    border-radius: 5px;
  }
  /* line 234, app/assets/stylesheets/login.scss */
  .tabs ul li label span {
    display: none;
  }
  /* line 239, app/assets/stylesheets/login.scss */
  .tabs .slider {
    display: none;
  }
  /* line 243, app/assets/stylesheets/login.scss */
  .tabs .content {
    margin-top: 20px;
  }
  /* line 245, app/assets/stylesheets/login.scss */
  .tabs .content section h2 {
    display: block;
  }
}
.noah-quest-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0px;
  margin: 0px;
}

.card {
  position: relative;
  width: 16vmin;
  height: 20vmin;
  transition: transform 0.5s ease-in-out;
  transform-style: preserve-3d;
  cursor: pointer;
  margin: .5em;
}

@media screen and (max-width: 800px) {
  .card {
    position: relative;
    width: 20vmin;
    height:25vmin;
    transition: transform 0.5s ease-in-out;
    transform-style: preserve-3d;
    cursor: pointer;
    margin: .3em;
  }
}

.double-sided-card { 
  position: relative;
  transition: transform 0.5s ease-in-out;
  transform-style: preserve-3d;
  cursor: pointer;
}

.front {
  position: absolute;
  display: flex; 
  flex-direction: column;
  justify-content: center;
  -webkit-backface-visibility: hidden; 
  backface-visibility: hidden;
  border: 1px solid gray;
  

}

.back {
  position: absolute;
  display: flex; 
  flex-direction: column;
  justify-content: center;

  border: 1px solid gray;
  transform: rotateY(180deg);
  -webkit-backface-visibility: hidden; 
  backface-visibility: hidden;
}

.flipped {
  transform: rotateY(-180deg);
}

.front:hover {
  box-shadow: 0px 0px 2px 0px #000;
}


.back:hover {
  box-shadow: 0px 0px 2px 1px #000;
}


.invisible { 
  visibility: hidden;
}

input[type="radio"] + label span {
  transition: background .2s,
    transform .2s;
}

input[type="radio"] + label span:hover,
input[type="radio"] + label:hover span{
  transform: scale(1.2);
} 

input[type="radio"]:checked + label span {
  @apply bg-primary-color;
  box-shadow: 0px 0px 0px 2px white inset;
}

input[type="radio"]:checked + label{
  @apply text-white;
}


/* Idle motion stays the same */
.bfc-sticker-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform-origin: 50% 90%;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.28));
  animation: bfc-sticker-idle 3.6s ease-in-out infinite;
  transition: transform 140ms ease-out, filter 140ms ease-out; /* for the hover pose */
  will-change: transform;
}

@keyframes bfc-sticker-idle {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-5px) rotate(1.2deg); }
}

/* Sticker itself just handles the instant pop */
.bfc-sticker {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  transform: translateY(0) scale(1);
  transition: transform 120ms ease-out;
  will-change: transform;
}

/* === Hover/focus: PAUSE the idle animation and set a static, lifted pose === */
/* Only apply this on devices that actually support hover */
@media (hover: hover) and (pointer: fine) {
  .group:hover .bfc-sticker-wrap,
  .group:focus-within .bfc-sticker-wrap {
    animation-play-state: paused;            /* <- the key line */
    transform: translateY(-4px) rotate(0deg);
    filter: drop-shadow(0 10px 14px rgba(0,0,0,.35));
  }
  .group:hover .bfc-sticker,
  .group:focus-within .bfc-sticker {
    transform: translateY(-2px) scale(1.2);
  }
}

/* Touch: give a quick pressed state */
@media (hover: none) {
  .group:active .bfc-sticker-wrap {
    animation-play-state: paused;
    transform: translateY(-3px) rotate(0deg);
  }
  .group:active .bfc-sticker {
    transform: translateY(-1px) scale(1.2);
  }
}

/* Optional shine sweep (keeps running; remove if you want it to pause too) */
.bfc-sticker-wrap::after {
  content: "";
  position: absolute; inset: -6%;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 45%, rgba(255,255,255,.85) 50%, transparent 55%);
  mix-blend-mode: screen;
  transform: skewX(-15deg) translateX(-120%);
  animation: bfc-sticker-shine 6.5s ease-in-out infinite;
  border-radius: 12px; opacity: .55;
}
@keyframes bfc-sticker-shine {
  0%, 70% { transform: skewX(-15deg) translateX(-120%); opacity: 0; }
  80%     { opacity: .55; }
  100%    { transform: skewX(-15deg) translateX(120%); opacity: 0; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .bfc-sticker-wrap { animation: none !important; }
  .bfc-sticker-wrap::after { animation: none !important; }
  .bfc-sticker,
  .bfc-sticker-wrap { transition: none !important; }
}
.resizeable-text {
  width: fit-content;
  height: 100%;
  text-align: center;
  font-size: 18px;
  font-weight: 300;
  line-height:  1.2;
  overflow: auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.answer-container { 
  flex-direction: column;
  height: 60%;
}

.question-container { 
  height: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.question-container img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.answer-button {
  color: white;
  padding: 6px 3px 6px 3px; 
  border: none;
  border-radius: 0.6em;
  cursor: pointer;
  box-shadow: 0 6px #bb751a;
  margin:  auto;
  letter-spacing: 0.1em;
  font-size: 1em;
}

.answer-button.correct {
  background-color: #60b709;
  box-shadow: none;
  border: 0.2em solid #fff;
  @apply rounded-lg;
  cursor: default;
}

.answer-button.wrong {
  background-color: #d73056;
  box-shadow: none;
  border: 0.2em solid #fff;
  @apply rounded-lg;
  cursor: default;
  animation: bfc-shake 180ms ease-in-out;
}

.answer-button.one {
  background-color: #e2ac49;
  box-shadow: 0 4px #bb751a;
}

.answer-button.one:active {
  box-shadow: 0 3px #bb751a;
  transform: translateY(4px);
}

.answer-button.two {
  background-color: #FF7A5A;
  box-shadow: 0 4px #bf482b;
}

.answer-button.two:active {
  box-shadow: 0 3px #bf482b;
  transform: translateY(4px);
}

.answer-button.three {
  background-color: #00AAA0;
  box-shadow: 0 4px #027a73;
}

.answer-button.three:active {
  box-shadow: 0 3px #027a73;
  transform: translateY(4px);
}

.answer-button.four {
  background-color: #3e71c2;
  box-shadow: 0 4px #2f548f;
}

.answer-button.four:active {
  box-shadow: 0 3px #2f548f;
  transform: translateY(4px);
}

.answer-button.five {
  background-color: #5e2d5e;
  box-shadow: 0 4px #3e1d3e;
}

.answer-button.five:active {
  box-shadow: 0 3px #3e1d3e;
  transform: translateY(4px);
}

@keyframes bfc-shake {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-2px); }
  40%  { transform: translateX(2px); }
  60%  { transform: translateX(-2px); }
  80%  { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

@media only screen and (min-width: 640px) {
  .qpic-img-container {
    max-width: 330px;
    margin: 0 auto;
  }
  .resizeable-text {
    font-size: 24px;
    font-weight: 400;
    overflow: auto;
  }
}

@media only screen and (min-width: 768px) {
  .qpic-img-container {
    max-width: 480px;
    margin: 0 auto;
  }
  .answer-button {
    padding: 40px 12px 25px 12px; 
  }
  .answer-button.one {
    box-shadow: 0 6px #bb751a;
  }

  .answer-button.two {
    box-shadow: 0 6px #bf482b;
  }

  .answer-button.three {
    box-shadow: 0 6px #027a73;
  }

  .answer-button.four {
    box-shadow: 0 6px #2f548f;
  }

  .answer-button.five {
    box-shadow: 0 6px #3e1d3e;
  } 
}


@media only screen and (min-width: 1200px) { 
  .qpic-img-container {
    max-width: 470px;
    margin: 0 auto;
  }
  .answer-container { 
    flex-direction: row;
    height: 55%;
  }
  .question-container { 
    height: 45%;
  }
  .answer-button {
    padding: 24px 8px 12px 8px;    
  }
  .answer-button.one {
    background-color: #e2ac49;
    box-shadow: 0 4px #bb751a;
  }

  .answer-button.two {
    background-color: #FF7A5A;
    box-shadow: 0 4px #bf482b;
  }

  .answer-button.three {
    background-color: #00AAA0;
    box-shadow: 0 4px #027a73;
  }

  .answer-button.four {
    background-color: #3e71c2;
    box-shadow: 0 4px #2f548f;
  }

  .answer-button.five {
    background-color: #5e2d5e;
    box-shadow: 0 4px #3e1d3e;
  }
  .resizeable-text {
    font-size: 32px;
    font-weight: 500;
    overflow: auto;
  }
}

@media only screen and (min-width: 1600px) { 
  .qpic-img-container {
    max-width: 580px;
    margin: 0 auto;
  }
}

/* Question with picture (question_pic type) */
.qpic-img-container {
  position: relative;
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
}

.qpic-img-container img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.qpic-label {
  position: absolute;
  bottom: 10px;
  left: 5%;
  right: 5%;
  background: rgba(44, 62, 80, 0.85);
  color: #fff;
  padding: 0.4em 0.8em;
  border-radius: 0.5em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-weight: 600;
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  text-align: center;
  line-height: 1.3;
  z-index: 2;
}


@media (hover:  hover){ 
  .answer-button:hover {
    opacity: 0.75;
  }
  .answer-button.correct:hover, .answer-button.wrong:hover {
    opacity:  1;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

@tailwind base;
@tailwind components;
@tailwind utilities;

@theme {
  --color-primary-color: #32e1d4;
}

a {
  text-decoration: none;
}

p { 
  font-family: "Bitter";
}

.generic-text {
  font-family: "Bitter";
}

.homepage-heading { 
  text-align: center;
  @apply font-bold;
  letter-spacing: 0.04em !important;
  @apply text-lg;
  @apply sm:text-xl; 
  @apply md:text-2xl;
  @apply py-4;
  @apply md:py-6;
}

.page-heading {
  font-family: 'Luckiest Guy', cursive;
  letter-spacing: 0.04em !important;
  /* Font rendering optimization */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Prevent text distortion at different zoom levels */
  transform: translateZ(0);
}

.flex-container {
  margin-top:  10px;
  width: 80%;
  display: flex;
  margin-left: auto;
  margin-right: auto;
}

.flex-container > div {
  margin: 10px;
  padding: 10px;
}

.table-container {
  margin-top:  20px;
  width: 80%;
  border-collapse: collapse;
  margin-left: auto;
  margin-right: auto;
}

.sharing-text {
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  box-sizing: border-box;
  outline: none;
  font-family: "Bitter";
}

input[type=text], input[type=password], input[type=email], input[type=username] ,select {
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 0.5em;
  box-sizing: border-box;
  font-family: "Bitter";
}

input[type=submit] {
  font-family: "Luckiest Guy";
  width: 80%;
  background-color: #d91c37;
  color: white;
  padding: 40px 12px 25px 12px;
  border: none;
  border-radius: 0.6em;
  cursor: pointer;
  box-shadow: 0 9px #a01c37;
  margin:  auto;
  letter-spacing: 0.1em;
  font-size: 1em;
}

input[type=submit]:hover:enabled {
  background-color: #d23c6a;
}

input[type=submit]:disabled {
  cursor: not-allowed;
}

input[type=submit]:active {
  background-color: #f181c0;
  box-shadow: 0 5px #9d0765;
  transform: translateY(4px);
}

.nifty_form {
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
}

.admin_button {
  background-color: #4997d0 ; 
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 10px 10px 10px 10px;
}

.craft-container { 
  background-color: #5ad6cd ; 
  display: flex;
  flex-direction: row;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.craft_tutorial_button {
  background-color: #C70A80 ; 
  cursor: pointer;
  border: none;
  color: white;
  border-radius: 12px;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 10px 10px 10px 10px;
}

.craft_tutorial_button:hover { 
   background-color: #2b5169;
 }

#admin_table {
  width: 80%;
  border-collapse: collapse;
  margin-left: auto;
  margin-right: auto;
}

#admin_table td, #admin_table th {
  border: 1px solid #ddd;
  padding: 4px;
}

#admin_table tr:nth-child(even){background-color: #f2f2f2;}

#admin_table tr:hover {background-color: #ddd;}

#admin_table th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #4997d0;
  color: white;
}

.admin_icon { 
  width: 200px;
}

.admin_url { 
  color: royalblue;
}

.admin_url:hover { 
  color: darkblue;
}

.logo-container {
  display: flex;
  flex-direction: row;
  margin-left: auto;
  margin-right: auto;
  width: 80%;
  justify-content: center;
  align-items: center;
}

.form-container { 
  display: flex;
  flex-direction: column;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.admin-form-container { 
  display: flex;
  flex-direction: row;
  padding:  .5em;
}

.omniauth-container { 
  display: flex;
  flex-direction: row;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  justify-content: center;
  align-items: center;

}

.card-div { 
  padding-top: 2em;
  padding-bottom: 1em;
  background-color: #CDF0EA;
  width: 650px;
  border-radius: 15px;
}

.form-field { 
  width: 85%;
}

.form-box { 
  display: inline-block;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  box-sizing: border-box !important;
  border-radius: 0.5em;
}

.form-margin {
  margin-bottom:  1em;
}

.logo-icon { 
  display: block;
  max-width:15%;
  min-width:200px;
  width: 50vmin;
  padding: 0px;
  text-align: center; 
}

.flex-center {
    align-items: center;
    text-align: center;
    margin: auto;
    width:  95%;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: auto;
    width:  100%;
}
.separator::before, .separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #000;
}
.separator::before {
    margin-right: .25em;
}
.separator::after {
    margin-left: .25em;
}

.form-field { 
  width: 520px;
}

input[type=submit] {
  min-width: 100px;
  width: 48%;
}

.flex-container {
  margin-top:  20px;
}

.flex-container > div {
  margin: 20px;
  padding: 20px;
}

.login-container { 
  background-color: #5ad6cd;
  min-height: 100vh;
  padding-top: 4em;
}
.card-title-div {
  padding-top: 1em;
  padding-bottom: 2em;
}

.social-media-btn {
  width: 250px;
  height: 44px;
  border-radius: 0.2em;
}
.facebook-btn { 
  background-color: #4C69BA;

}
.google-btn { 
  background-color: #4285f4;
}
.social-media-wrapper {
  position: absolute;
  margin-top: 2px;
  margin-left: 1px;
  width: 40px;
  height: 40px;
  border-radius: 2px;
}
.google-wrapper {
  background-color: #fff;

}

.facebook-wrapper {
  background-color: #4C69BA;
  border-right-width:  1px;
  border-color: #fff;
}

.social-media-icon {
  position: absolute;
  margin-top: 10px;
  margin-left: 10px;
  width: 18px;
  height: 18px;
}
.btn-text {
  margin-left: 55px;
  color:#fff;
  font-size: 20px;
  letter-spacing: 0.2px;
  font-family: "Roboto";
  line-height: 40px;
}

.social-media-btn:hover {
  box-shadow: 0 0 6px #4C69BA;
}

.heading1-text { 
  font-family: "Luckiest Guy";
  font-size: 4em;
  letter-spacing: 0.05em;
}
.heading2-text { 
  font-family: "Luckiest Guy";
  font-size: 3em;
}

.heading3-text { 
  font-family: "Luckiest Guy";
  font-size: 2.5em;
}

.action_button {
  width: 200px;
  background-color: #C70A80;
  color: white;
  padding: 24px 8px 12px 8px;
  border: none;
  border-radius: 0.6em;
  cursor: pointer;
  box-shadow: 0 9px #ac076e;
  margin:  auto;
  letter-spacing: 0.1em;
  font-size: 1em;
  text-decoration:none; 
}

.action_button:hover:enabled {
  background-color: #cc3694;
}

.action_button:disabled {
  cursor: not-allowed;
}

.action_button:active {
  background-color: #f181c0;
  box-shadow: 0 5px #9d0765;
  transform: translateY(4px);
}

/* tablet */ 
@media only screen and (min-width:601px) and (max-width: 1000px) {
  .heading1-text { 
    font-family: "Luckiest Guy";
    font-size: 3em;
    letter-spacing: 0.03em;
  }
  .heading2-text { 
    font-family: "Luckiest Guy";
    font-size:2.5em;
  }

  .heading3-text { 
    font-family: "Luckiest Guy";
    font-size: 2em;
  }
  .login-container { 
    padding-top: 2em;
  }
  .card-div { 
    width: 90%;
  }
}
/* mobile */
@media only screen and (max-width: 600px) {
  .card-title-div {
    padding-top: 1em;
    padding-bottom: 1.5em
  }
  .social-media-btn {
    width: 250px;
    height: 40px;
    border-radius: 0.2em;
  }
  .social-media-wrapper {
    position: absolute;
    margin-top: 0.5px;
    width: 40px;
    height: 38px;
    border-radius: 2px;
  }

  .form-field { 
    width: 90%;
  }
  .form-margin {
    margin-bottom:  0em;
  }
  .card-div { 
    width: 95%;
    padding-top: 1em;
    padding-bottom: 1em;
  }

  .omniauth-container{ 
    flex-direction: column;
  }
  .login-container { 
    padding-top: 0em;
  }

  .btn-text {
    margin-left: 55px;
    color:#fff;
    font-size: 18px;
    letter-spacing: 0.2px;
    font-family: "Roboto";
    line-height: 36px;
  }

  input[type=text], input[type=password], input[type=email], input[type=username] ,select {
    padding: 8px 5px;
    margin: 4px 0;
    display: inline-block;
    line-height: 1;

  }
  input[type=submit] {
    width: 90%;
    padding: 24px 8px 12px 8px;
  }
  .heading1-text { 
    font-family: "Luckiest Guy";
    font-size: 2.5em;
    letter-spacing: 0.02em;
  }

  .heading2-text { 
    font-family: "Luckiest Guy";
    font-size: 1.8em;
  }

  .heading3-text { 
    font-family: "Luckiest Guy";
    font-size: 1.5em;
  }
  .action_button {
    width: 75%;
  }
}


