/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/*HTML/BODY*/
* {
  touch-action: manipulation;
}

body.single {
  background-color: var(--green-500);
}

.site-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: calc(100vh - 1em);
}

/*CONTAINERS*/
.main-container {
  width:800px;
  max-width: 90%;
  position: relative;
  padding: .5em 1em;
  margin: 2em auto;
  border-radius: 20px;
  background-color: var(--background-first);
}

.section {
  max-width: 800px;
  margin: auto;
  overflow: hidden;
  position: relative;
}

.section-card {
  max-width: 575px;
  padding: 20px;
  margin: 1rem auto;
  border: 1px solid var(--text-fourth);
  border-radius: 10px;
  background-color: var(--background-second);
}

.section-card:hover {
  background-color: var(--green-200);
}

.main-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 0.5rem;
}

.cd-container-row {
  display: flex;
  flex-direction: row;
  column-gap: 5px;
}

.cd-container-column {
  display: flex;
  flex-direction: column;
  column-gap: 5px;
}

.card-inner {
  display: flex;
  flex-direction: column;
  column-gap: 5px;
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.card-inner.flipped {
    transform: rotateY(180deg);
}

/*RESUME MODAL*/
.resume-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .resume-modal .modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    max-width: 400px;
  }

  .resume-modal .check-btn {
    padding: 0.75rem 1.5rem;
  }

/*CHARACTERS*/

.character-img {
    border-radius: 50%;
    width: 100%;
    object-fit: contain;
    vertical-align: middle;
}

.character-img img {
    border-radius: 50%;
    border: 3px solid var(--green-500);
}

.character-container {
    max-width: 15%;
}

/*CARD NUMBERING*/
.lesson-number {
  color: var(--text-first);
}

.quiz-number {
  color: var(--text-first);
}
#lesson-progress-bar{
  background-color: var(--green-300);
  color:#fff;
  padding: 10px;
}
.progress-bar{
  display: block;
  background:#eee; 
  border-radius:10px; 
  overflow:hidden; 
  height:20px; 
  width:300px;
}
/*FLEX JUSTIFY AND ALIGN*/

.justify-start {
  justify-content: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: end;
}

.align-start {
  align-items: start;
}

.align-center {
  align-items: center;
}

.align-end {
  align-items: end;
}

/*IMAGES*/
.section-img {
  border-radius: 50%;
  width: 100%;
  object-fit: cover;
  vertical-align: middle;
}

.section-img-container {
  width: 25%;
  height:80%;
  
  max-width: 70px;
  margin-right:20px;
}


.thumb-img img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  vertical-align: middle;
  border-radius: 50%;;
}

.hero-img-container {
  width: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  position: relative;
  padding: 20px;
  margin: 1em 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero-img-container::after {
  content: "";
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 30%, rgba(0, 0, 0, 0.69) 100%);
  z-index: 0;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  border-radius: 10px;
}

/*BORDER RADIUS*/
.rounded-10 {
  border-radius: 10px;
}
.rounded-20 {
  border-radius: 20px;
}

.rounded-45 {
  border-radius: 45px;
}

.rounded-circle {
  border-radius: 50%;
}

/*Z-INDEX*/
.z-10{
  z-index: 10;
}
/*CUSTOM CLASSES*/
.box-shadow {
  box-shadow: 0 2px 10px 0 rgb(17 43 80 / 5%);
  border-radius: 10px;
}

.glassy {
  /* From https://css.glass */
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(7.3px);
  -webkit-backdrop-filter: blur(7.3px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.no-txt-wrap {
  text-wrap: nowrap;
}

.white-txt {
  color: var(--background-first);
}

/*TEXT CLASSES*/
.cd-txt-green {
  color: var(--green-500);
}

.cd-txt-white {
  color: var(--background-first);
}
.description-txt{
  max-width: 600px;
  color:var(--text-secondary);
}
.cdl-description{
  font-size:13px;
  color:var(--text-secondary);
}

/*BUTTONS*/
.cd-button {
  display: inline-flex;
  align-items: center;
  padding: 10px;
  border-radius: 50%;
  background-color: var(--green-500);
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}
.cd-button:hover {
    background-color: var(--text-primary);
    color: var(--background-first);
}
.check-btn-wrapper{
    display: flex;
    align-content: center;
    max-width: 100%;
    margin:auto;

}
.check-btn  {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    column-gap: 4px;
    font-size: 18px;
    font-weight: 500;
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: 20px;
    border-bottom: 4px solid var(--green-300);
    background-color: var(--green-500);
    color: #ffffff;
    text-decoration: none;
    line-height: 1em;
}
.check-btn:hover{
    background-color: var(--text-primary);
    color:var(--text-third);
}

/*ICONS*/
.cd-icon {
  line-height: 0;
}
.fa-cards-blank{
  font-size:30px;
}
.flip-icon {
  display: inline-block;
  transition: transform 0.5s ease;
  color: var(--background-first);
}

.flip-icon:hover {
  transform: rotateY(180deg);
}
.flip-icon-green {
  display: inline-block;
  transition: transform 0.5s ease;
  color: var(--green-500);
}

.flip-icon-green:hover {
  transform: rotateY(180deg);
}
/*ANIMATIONS*/
.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in {
  opacity: 100;
  transition: opacity 0.6s ease;
}

.animate-push-up {
  transition: transform 0.5s ease;
}

.animate-push-up:hover {
  transform: translateY(-5px);
  transition: 0.3s ease;
}

.animate-push-right {
  transition: 0.3s;
}

.animate-push-right:hover {
  transform: translate(5px, 0);
}

.animate-expand {
  transition: 0.3s;
}

.animate-expand:hover {
  transform: scale(1.1);
  transition: 0.3s;
}

.animate-zoom {
  transition: 0.8s;
}

.animate-zoom:hover {
  transform: scale(1.02);
  transition: 0.8s;
}

.icon-box {
  border-bottom: 4px solid #fff;
  -webkit-transition: border 500ms ease-out;
  -moz-transition: border 1000ms ease-out;
  -o-transition: border 1000ms ease-out;
  transition:  border 1000ms ease-out;;
}

.icon-box:hover {
  border-bottom: 4px solid var(--fp-orange);
}

.animated-icon .cd-icon {
  transition: 0.2s;
}

.animated-icon:hover .cd-icon {
  transform: translate(0, -5px);
  transition: 0.4s;
}

.animate-down-loop .cd-icon {
  position: relative;
  animation: movedown 2s;
  animation-iteration-count: infinite;
  transition: ease;
}

@keyframes movedown {
  0% {
    bottom: 0px;
  }

  25% {
    bottom: 5px;
  }

  50% {
    bottom: 10px;
  }

  75% {
    bottom: 5px;
  }

  100% {
    bottom: 0px;
  }
}

/*IMAGE CHOICE TASKS*/
.image-choices-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.image-choice {
  width: calc(50% - 1rem);
  /* 2 per row on mobile/tablet */
  cursor: pointer;
  border: 2px solid var(--text-fourth);
  border-bottom: 4px solid var(--text-fourth);
  ;
  border-radius: 8px;
  padding: 5px;
  transition: 0.3s;
  max-width: 150px;
}

.image-choice.selected {
  border-color: #0073e6;
  background: #e0f0ff;
}

/* Wrapper that holds feedback + button */
.feedback-wrapper {
  padding: 1rem;
  border-radius: 0 0 12px 12px;
  background-color: var(--background-first);
  text-align: center;
  overflow: visible;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.check-icon {
  height: 1.1em;
  width: 1.1em;
  vertical-align: middle;
  margin-right: 0.4em;
  fill: var(--green-500);
}

/*CORRECT ANSWER*/
#correct-lottie {
  position: absolute;

  pointer-events: none;
  z-index: 10;
  opacity: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(2);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#correct-lottie.fade-out {
  opacity: 0;
  transform: scale(0.9);
}

#correct-lottie svg {
  width: 150px !important;
  height: 150px !important;
  display: block !important;
}

#completion-lottie {
  max-width: 100%;
  margin: 2rem auto;
}


/* Slide in effect */
.feedback-wrapper.show {
  opacity: 1;
  transform: translateY(0);
}

/* Feedback text */
.feedback {
  display: block;
  font-size: 20px;
  margin-bottom: 0px;
}

.feedback.incorrect {
  color: var(--alert);
}

.feedback.correct {
  color: var(--green-500);
}

/* Check/Continue button styling */
.check-btn {
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.check-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
  background-color: #ccc !important;
  color: #666 !important;
}


/*Media queries*/
@media (max-width: 997px) {
  .inside-header {
    justify-content: center;
  }

  .ti-widget.ti-goog .ti-reviews-container-wrapper {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .no-bg-mobile {
    background-size: contain;
    background-position: top center;
  }

  .no-bg-mobile:after {
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.33) 30%, rgba(0, 0, 0, 0.33) 30%);
  }
}