:root {
  --primary: #f3748c;
  --secondary: #360036;
  --pop: #FFDD39;
  --hover: #2B1A2B;
  --static: #879de0;
  --content: #f7f7f7;
  --blend: #e2dce2;
  --wrong: #f73152;
  --correct: #30ca36;
  --angle: 20deg;
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--static);
  color: var(--content);
  height: 100vh;
  perspective: 1500px;
  font-family: 'Nunito Sans', sans-serif;
}
body {
  margin: 0;
}

a {
  text-decoration: none;
}

header {
  text-align: center;
  margin-top: 1vh;
}

header img {
  max-width: 80vw;
  height: 9vh;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

.leaderText > p {
  font-size: 1.5rem;
}

.pop {
  color: var(--pop);
}

a.actionButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;

  background-color: var(--secondary);
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.18);

  margin: 1rem 0em;
  padding: 0.25em 0.75em;
  min-width: 10ch;
  min-height: 44px;

  text-align: center;
  line-height: 1.1;
  font-size: 1.25rem;

  transition: 220ms all ease-in-out;
}

a.actionButton:hover,
a.actionButton:active {
  background-color: var(--hover);
}

a.actionButton:focus {
  outline-style: solid;
  outline-color: transparent;
  box-shadow: 0 0 0 4px var(--hover);
}

.content > div {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-left: 5vw;
  padding-right: 5vw;
}

.landing {
  min-height: fit-content;
  height: 90vh;
}

.landingLeft {
  width: 100%;
}

.landingRight {
  margin: 1rem 0rem;
  max-height: 50vh;
  max-width: 100%;
  aspect-ratio: 0.80;
}

.landingImage {
  width: 100%;
  height: 100%;
}

.leader {
  position: relative;
  background-color: var(--content);
  color: var(--secondary);
  min-height: fit-content;
  height: 40vh;
}

.leaderText {
  text-align: right;
}

.leaderImage {
  margin: 1rem 0rem;
  max-height: 50vh;
  max-width: 100%;
  aspect-ratio: 1.4;
}

.leaderImage > img {
  width: 100%;
  height: 100%;
}

.analyzer {
    width: 100%;
    height: 20%;
    display: flex;
    position: absolute; 
    bottom: 0;
    left: 0; 
    z-index: 1;
    align-items: flex-end;
}
.leaderImage, .leaderText {
    z-index: 2; /* Ensure these are on top of the analyzer */
}

.channel {
    width: 100%;
    height: 50%;
    background-color: var(--blend);
    margin: 0 3px;
    animation: bounce 1.5s infinite alternate;
}

@keyframes bounce {
    0% { height: 20%; }
    20% { height: 50%; }
    40% { height: 80%; }
    60% { height: 110%; }
    80% { height: 140%; }
    100% { height: 170%; }
}

.channel:nth-child(1) {
    animation-duration: 1.3s;
    animation-delay: 0.2s;
}

.channel:nth-child(2) {
    animation-duration: 1.5s;
    animation-delay: 0.4s;
}

.channel:nth-child(3) {
    animation-duration: 1.2s;
}

.channel:nth-child(4) {
    animation-duration: 1.4s;
    animation-delay: 0.3s;
}

.channel:nth-child(5) {
    animation-duration: 1.1s;
    animation-delay: 0.5s;
}

.channel:nth-child(6) {
    animation-duration: 1.6s;
}

.channel:nth-child(7) {
    animation-duration: 1.4s;
    animation-delay: 0.1s;
}

.channel:nth-child(8) {
    animation-duration: 1.2s;
    animation-delay: 0.4s;
}

.channel:nth-child(9) {
    animation-duration: 1.3s;
    animation-delay: 0.3s;
}

.channel:nth-child(10) {
    animation-duration: 1.5s;
    animation-delay: 0.2s;
}

.channel:nth-child(11) {
    animation-duration: 1.4s;
}

.channel:nth-child(12) {
    animation-duration: 1.3s;
    animation-delay: 0.6s;
}

.channel:nth-child(13) {
    animation-duration: 1.6s;
    animation-delay: 0.3s;
}

.channel:nth-child(14) {
    animation-duration: 1.5s;
}

.channel:nth-child(15) {
    animation-duration: 1.2s;
    animation-delay: 0.5s;
}

.channel:nth-child(16) {
    animation-duration: 1.4s;
    animation-delay: 0.2s;
}


.questions {
  min-height: fit-content;
  height: 65vh;
  padding: 0 5vw;
}

.questionsText {
  margin-bottom: 2rem;
}

.questionsImages {
  position: relative;
  left: -40vw;
  top: -5vh;
}

.questionsImage {
  position: absolute;
  width: 30rem;
  max-width: 80vw;
  transition: transform 0.3s ease;
  transform: rotate3d(2, -1, -1, -0.2turn);
}

.questionsImage:nth-child(1) {
  z-index: 1; /* Lower z-index means it's below other images */
  top: 9.9rem;
}

.questionsImage:nth-child(2) {
  z-index: 2; /* Middle z-inkex */
  top: 4.4rem;
}

.questionsImage:nth-child(3) {
  z-index: 3; /* Highest z-index means it's on top */
  top: 0;
}

/* On hover, the images will slightly expand and reduce overlap */
.questionsImage:hover {
  transform: scale(1.05);
  z-index: 4; /* This will ensure the hovered image comes to the top */
}
.questionsImage:not(:hover) {
  animation: cardLeft 0.3s ease-in-out;
}

@keyframes cardLeft {
  0% { left: 0vw; }
  50% { left: -1rem; }
  100% { left: 0vw; }
}

footer {
  text-align: center;
  padding-top: 7vh;
  font-size: 0.9rem;
  display: block;
  background-color: var(--blend);
  color: var(--static);
}
.footerContent {
  max-width: 1312px;
  margin: auto;
}

img {
  user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
}
@media only screen and (min-width: 770px) {
  .content > div {
    justify-content: space-evenly;
    flex-direction: row;
  }

  .landing {
    height: 60vh;
  }
  .landingLeft {
    max-width: 45vw;
  }
  .leaderText {
    max-width: 50vw;
  }
  .questionsText {
    max-width: 20vw;
  }
  .questionsImages {
    left: -25vw;
  }
}

