/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  @font-face{
    font-family: 'Cleanow';
    src: url('fonts/Cleanow.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  @font-face {
    font-family: 'Sunny Spells';
    src: url('fonts/Sunny\ Spells.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  } 
  
  @font-face {
    font-family: 'Backso';
    src: url('fonts/Backso.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
  }

  @font-face {
    font-family: 'Sparky Stones';
    src: url('fonts/SparkyStones.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  } 

  /* at the top of styles.css */
html, body { height: 100%; }  

  .background-overlay {
    position: fixed;      /* pin to the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;        /* cover exactly one screenful */
    background: rgba(255,255,255,0.78);
    z-index: 2;           /* sit ABOVE the background but BELOW your text */
    pointer-events: none; /* don’t block clicks on your content */
  }

  /* Body Background */
  body {
    background: url('images/classroom.png') no-repeat center center/cover;
    background-attachment: fixed;
    font-family: 'Comic Neue', cursive;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden; /* instead of overflow: hidden */
    overflow-y: auto; /* allow vertical scrolling */
    position: relative;
    animation: backgroundMove 30s ease-in-out infinite;
      display: flex;            
  flex-direction: column;   
  }
  
  /* Floating Magic Items (Stars + Textbooks) */
.floating-items {
  position: fixed;   /* pin to the viewport */
  inset: 0;          /* top/right/bottom/left: 0 */
  pointer-events: none;
  z-index: 2;
  overflow: hidden;  /* prevent any ink from extending the page */
}
  
  .floating-item {
    position: absolute;
    width: 80px; /* doubled from 40px */
    animation: floatItem 25s infinite ease-in-out;
  }

  .textbook {
    width: 200px; /* Slightly bigger than floating-item */
    height: auto;
  }
  
  /* Magic Items floating animation */
  @keyframes floatItem {
    0% {
      transform: translateY(0) rotate(0deg);
      opacity: 0.8;
    }
    50% {
      transform: translateY(-30px) rotate(180deg);
      opacity: 1;
    }
    100% {
      transform: translateY(0) rotate(360deg);
      opacity: 0.8;
    }
  }
  
  /* Main Content */
  .content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    text-align: center;
    padding: 30px 20px 20px 20px;
    flex: 1 0 auto;
  }
  
  .content,
.difference-section {
  position: relative;  /* so z-index takes effect */
  z-index: 3;          /* above the fixed overlay */
}
  
  /* Headline */
  h1 {
    text-align: center;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 1); /* black shadow */
    text-align: center;
  }

  .first-line {
    color: #0b7cc9; /* bright white for the first line */
    font-family: 'Sunny Spells', cursive; /* custom font */
    font-size: 8rem; /* larger size for the first line */ 
  }
  
  .second-line, .difference-section h2, .beta-signup-section h2 {
    color: #3cc47c; /* crisp green to contrast the blue */
    font-family: 'Backso', cursive; /* custom font */
    font-size: 2.5rem; /* smaller size for the second line */
    font-weight: 400; /* normal weight for the second line */
    margin-top: 36px; /* slight overlap with the first line */
    margin-bottom: 20px; /* space between lines */
    text-align: center;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 1); /* black shadow */
  }

  /* Paragraph */
  p {
    font-family: 'Sparky Stones','Courier New', Courier, monospace;
    font-size: 1.5rem;
    margin-bottom: 0;
  }
  
  /* CTA Button */
  .cta-button {
    background-color: #5cade2;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 30px;
  }
  
  .cta-button:hover {
    background-color: #4aa0d1;
    transform: scale(1.05);
  }
  
  /* Footer */
  .footer {
    font-size: 1rem;
    color: #aaa;
  }
  
  /* Floating Bear Animation */
  @keyframes float {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-15px);
    }
  }
  
  /* Gently Moving Background Animation */
  @keyframes backgroundMove {
    0% {
      background-position: center center;
    }
    50% {
      background-position: center 45%;
    }
    100% {
      background-position: center center;
    }
  }

  .video-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;         /* true 16:9 */
    margin: 20px auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 4;
  }
  
  .video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }

  .difference-section {
    position: relative;   /* now positioned so z-index works */
    z-index: 10;          /* well above the overlay */
    width: 90%;
    max-width: 1200px;
    margin: 60px auto;
    text-align: center;
  }
  
  .difference-content {
    margin-top: -60px;
    display: grid;
    grid-template-columns: minmax(300px,1fr) auto;
    grid-auto-rows: auto;
    gap: 40px;
  }
  
  .difference-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
  }
  
  .difference-text p {
    font-family: 'Comic Neue', cursive;
    font-size: 1.6rem;
    color: #555;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.8);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  .difference-video {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    width: 100%;
    overflow: visible;
  }

/* First video stays square */
.square-video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Second video is 16:9 */
.wide-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Smooth rounded corners + soft shadow on each video */
.square-video,
.wide-video {
  border-radius: 12px;              /* rounds the corners */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* soft drop shadow */
  overflow: hidden;                 /* ensure the video content clips to the rounded corner */
}

  /* style the intro paragraph as its own card */
.intro-box {
    width: 90%;
    max-width: 1000px;
    margin: 30px auto 0 auto;
  }
  
  .intro-box p, .difference-text p {
    font-family: 'Sparky Stones', 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #0b7cc9;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    text-align: left; 
  }

  strong {
    color: #3cc47c; /* crisp green for strong text */
    font-family: 'Cleanow', cursive; /* custom font */
    font-size: 1.8rem; /* larger size for strong text */
    font-weight: 700; /* bold weight for strong text */
  }

  /* Bring footer above the overlay */
.footer {
  position: relative;   /* create a stacking context */
  z-index: 3;           /* same level as your .content */
  text-align: center;   /* center the text */
  padding: 20px 0;      /* some breathing room */        /* your existing color */
  font-family: 'Sparky Stones','Courier New', Courier, monospace;
  font-size: 1.5rem;
  margin-bottom: 0;
  color: #0b7cc9;
    margin-top: auto;           /* push footer to the bottom */
  width: 100%;
}

/* Beta Signup Section */
.beta-signup-section {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95); /* bump up opacity slightly */
  margin: 8px auto;
  padding: 40px 20px;
  width: 90%;
  max-width: 600px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-align: center;
  align-self: center;
}

.beta-signup-section h2 {
  font-family: 'Backso', cursive;
  color: #3cc47c;
  margin-bottom: 20px;
  margin-top: 5px;
}

.beta-signup-section p {
  color: #0b7cc9;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.beta-signup-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.beta-signup-form input,
.beta-signup-form select {
  padding: 15px;
  border-radius: 12px;
  border: 2px solid #0b7cc9; /* blue border */
  font-size: 1.25rem;
  font-family: 'Sparky Stones', 'Courier New', Courier, monospace;
  color: rgb(60, 196, 124);      /* text your users type */
}

.beta-signup-form input::placeholder {
  color: rgb(60, 196, 124);      /* make placeholder same green */
  opacity: 1;                    /* ensure full opacity */
}

.beta-signup-form button {
  background-color: #5cade2;
  color: white;
  padding: 25px;
  border: none;
  border-radius: 10px;
  font-size: 1.5rem;
  margin: 8px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 1); /* black shadow */;
  font-family: 'Backso', 'Courier New', Courier, monospace;
}

.beta-signup-form button:hover {
  background-color: #4aa0d1;
}

.beta-signup-form button:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.7;
}

.form-message {
  font-family: 'Sparky Stones', 'Courier New', Courier, monospace;
  opacity: 0;            /* start invisible */
  transition: opacity 0.5s ease;
  font-size: 1.25rem;
  margin-top: 10px;
  font-size: 1.2rem;
  color: #d9534f;          /* bootstrap‐red, for errors */
  min-height: 1.2em;       /* reserve space */
  padding: 20px;
}

/* when we add “visible”, it fades in */
.form-message.visible {
  opacity: 1;
}

input[type="text"],
input[type="email"],
select {
  font-family: 'Sparky Stones', 'Courier New', Courier, monospace;
  font-size: 1.25rem;
  color: rgb(60, 196, 124);
  margin: 8px 0;
}

/*───────────────────────────────────────────*/
/* Responsive tweaks for tablets & phones   */
/*───────────────────────────────────────────*/

/* Medium screens (up to 1024px) */
@media (max-width: 1024px) {
  .first-line {
    font-size: 6rem;
  }
  .second-line {
    font-size: 2rem;
  }
  .intro-box p {
    font-size: 1.4rem;
  }
  .difference-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .beta-signup-section {
    width: 95%;
    padding: 30px 15px;
    margin: 40px auto;
  }
  .beta-signup-form input,
  .beta-signup-form select,
  .beta-signup-form button {
    font-size: 1.2rem;
    padding: 12px 20px;
  }
}

/* Small screens (up to 768px) */
@media (max-width: 768px) {
  .first-line {
    font-size: 4.5rem;
  }
  .second-line {
    font-size: 1.8rem;
  }
  .video-container {
    max-width: 100%;
    border-radius: 12px;
    margin: 15px 0;
  }
  .difference-text p {
    font-size: 1.3rem;
    padding: 12px 16px;
  }
  .beta-signup-section {
    padding: 25px 10px;
  }
  .beta-signup-form input,
  .beta-signup-form select,
  .beta-signup-form button {
    font-size: 1rem;
    padding: 10px;
  }
  .form-message {
    font-size: 1rem;
    padding: 10px;
  }
  /* Shrink or hide heavy floating graphics on mobile */
  .floating-item {
    display: none;
  }
    strong {
        font-size: 1rem;
  }
}

/* Extra small screens (up to 480px) */
@media (max-width: 480px) {
  body {
    padding-top: 20px;
  }
  h1 .first-line {
    font-size: 3.5rem;
  }
  h1 .second-line {
    font-size: 1.5rem;
  }
  .intro-box,
  .difference-section,
  .beta-signup-section {
    width: 100%;
    margin: 20px 0;
  }
  .intro-box p,
  .difference-text p {
    font-size: 1.2rem;
    padding: 10px;
  }
  .beta-signup-form input,
  .beta-signup-form select,
  .beta-signup-form button {
    font-size: 0.95rem;
    padding: 8px;
  }
  .cta-button {
    padding: 12px 20px;
    font-size: 1rem;
  }
}

/* confetti canvas always full-screen, on top */
canvas.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99999;
}

/* Tablets / small laptops */
@media (max-width: 1024px) {
  .content { padding: 56px 24px 24px; }
  .first-line { font-size: 6rem; line-height: 1.05; }
  .second-line, .difference-section h2, .beta-signup-section h2 {
    font-size: 2.125rem; margin-top: 20px; margin-bottom: 16px;
  }
  .intro-box p { font-size: 1.25rem; }
  .video-container { max-width: 100%; border-radius: 16px; margin: 20px auto; }
  .difference-content { grid-template-columns: 1fr 1fr; gap: 28px; }
  .beta-signup-section { padding: 24px 20px; }
  .square-video, .wide-video { border-radius: 16px; }
  .footer { font-size: 0.95rem; padding: 20px 0; }
}

/* Large phones / phablets */
@media (max-width: 768px) {
  body { padding-top: 12px; }
  .content { padding: 48px 20px 20px; width: 92%; }
  .first-line { font-size: 4rem; line-height: 1.06; }
  .second-line, .difference-section h2, .beta-signup-section h2 {
    font-size: 1.75rem; margin-top: 14px; margin-bottom: 12px;
  }
  .intro-box p, .beta-signup-section p, .difference-text-card p {
    font-size: 1.05rem; line-height: 1.55;
  }
  .video-container { margin: 16px auto; border-radius: 12px; }
  .difference-section { padding: 0 16px; margin-top: 28px; }
  .difference-content { grid-template-columns: 1fr; gap: 20px; }
  .beta-signup-section { max-width: 560px; margin: 0 auto 20px; padding: 20px 16px; align-self: center; }
  .beta-signup-form button { width: 100%; padding: 12px 16px; font-size: 1rem; }
  .square-video, .wide-video { border-radius: 14px; }
  .footer { font-size: 0.9rem; }
  .floating-items { opacity: .6; }
}

/* Small phones */
@media (max-width: 480px) {
  html, body { font-size: 16px; }
  body { padding-top: 10px; }
  .content { padding: 5px 16px 16px; width: 96%; }
  .first-line { font-size: 3rem; line-height: 1.08; }
  .second-line, .difference-section h2, .beta-signup-section h2 {
    font-size: 1.35rem; margin-top: 25px; margin-bottom: 8px;
  }
  .intro-box p, .beta-signup-section p, .difference-text-card p {
    font-size: .9rem; line-height: 1.55; text-align: center;
  }
  .video-container { margin: 12px auto; border-radius: 10px; }
  .difference-section { padding: 0 12px; margin-top: 24px; }
  .difference-content { grid-template-columns: 1fr; gap: 16px; }
  .beta-signup-section { max-width: 520px; margin: 25px auto 18px; padding: 16px 14px; }
  .beta-signup-form button { width: 100%; padding: 12px 14px; font-size: 0.95rem; }
  .square-video, .wide-video { border-radius: 12px; }
  .footer { font-size: 0.85rem; padding: 16px 0 20px; }
  .floating-items { opacity: .45; }
   .beta-signup-form {
    display: flex;
    justify-content: center;   /* center children horizontally */
  }
  .beta-signup-form button {
    width: clamp(220px, 90%, 420px); /* responsive width */
    margin: 0 auto;                  /* center the block */
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  strong {
        font-size: 1rem;
  }
}

/* Center the content on tablets/phones (<= 768px) */
@media (max-width: 768px) {
  .content {
    margin: 0 auto;
  }
  .difference-section {
    margin-top: 44px; /* was ~28px — tweak as needed */
  }
    .beta-signup-form {           /* the form that wraps the button */
    align-items: center;        /* horizontal centering for column flex */
  }
  .beta-signup-form .cta-button {
    display: block;             /* let auto margins work */
    margin-left: auto;
    margin-right: auto;         /* centers the button */
  }
  .difference-video {
    margin: 0 auto;        /* centers the container (has max-width) */
    align-items: center;    /* centers children in the flex column */
  }

  .difference-video .square-video,
  .difference-video .wide-video {
    display: block;
    margin-left: auto;      /* belt-and-suspenders centering */
    margin-right: auto;
  }
}

/* === Footer overrides: blue + Sparky Stones with Arial fallback === */
footer,
.footer {
  color: #0b7cc9;     /* shade of blue */
  font-family: "Sparky Stones", Arial, Helvetica, sans-serif;
}

footer a,
.footer a { color: inherit; }    /* make links match footer text color */

/* Parent signup (role-form) — lock input/select text size */
.role-form input.role-input,
.role-form select.role-select,
.role-form .role-select option {
  font-size: .9rem;       /* match the page variable */
  line-height: 1.3;
  font-family: Arial, "Times New Roman", Times, serif;
}