@font-face {
  font-family: 'Montserrat';
  src: url('./fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('./fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('./fonts/Montserrat-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}




/* Intentionally ugly design choices */
body {
  background: linear-gradient(to bottom right, neonpink, lime, yellow);
  font-family: "Comic Sans MS", Arial, sans-serif;
  margin: 0;
  padding: 0;
}

h1 {
  color: #ff00ff;
  text-align: center;
  margin: 20px 20px 0 20px;
  text-shadow: 2px 2px #00ffff;
  font-size: 2em;
}

.intro-steps {
  margin: 0 auto;
  width: 90%;
  background: rgba(255, 255, 255, 0.4);
  border: 5px dashed red;
  padding: 10px 15px;
  font-size: 1em;
}

/* Container with a hideous border */
.container {
  position: relative;
  width: 80%;
  margin: 20px auto;
  padding: 30px;
  border: 10px double #ff0000;
  background: rgba(255, 255, 255, 0.5);
  min-height: 300px;
}

/* The tiny drop zone where we place 1 letter */
.drop-zone {
  position: absolute;
  top: 90px;
  left: 15px;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255, 0.1);
  border: 2px solid #000;
  text-align: center;
  line-height: 50px;
  color: #000;
  z-index: 10;
}

.zone-label {
  font-size: 0.7em;
  pointer-events: none;
  user-select: none;
}

/* Buttons - intentionally inconsistent styling */
button {
  cursor: pointer;
  font-family: "Comic Sans MS", cursive;
  font-size: 1em;
  margin: 5px;
  background: #ffd700;
  border: 3px groove blue;
  color: #000;
  padding: 5px 10px;
}

/* The display showing the current typed word */
.word-display {
  position: absolute;
  top: 40px;
  right: 20px;
  width: 200px;
  height: 50px;
  background: rgba(255,255,255, 0.2);
  border: 2px dashed green;
  text-align: center;
  line-height: 50px;
  color: #000;
  font-weight: bold;
}

/* The letters: absolutely positioned, placed at random by JS */
.letter {
  position: absolute;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-weight: bold;
  border: 2px solid #000;
  background: #ff0;
  cursor: move;
  z-index: 500; /* ← lower than results so they're clickable, but still hide them */
  box-shadow: 5px 5px 0px rgba(0,0,255,0.7);
  user-select: none;
}

/* The search results container */
.results-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px dashed red;
  padding: 10px;
  font-size: 0.9em;
  color: #000;
  text-align: left;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  pointer-events: auto;
}

/* Each search result link */
.result-link {
  display: block;
  margin: 5px 0;
  color: blue;
  text-decoration: underline wavy red;
  position: relative;
  z-index: 1001;
  pointer-events: auto;
}

.result-link:hover {
  color: red;
  background: yellow;
}


















.lab4-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 40px 0;
}

.lab4-header * {
  all: unset;
  display: revert;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}


.lab4-header .section-heading {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 48px !important;
  font-weight: 800 !important;
  line-height: 100%;
  letter-spacing: 0.05em;
  color: #000 !important;
  text-align: center;
  padding-top: 50px;
  padding-bottom: 10px;
  margin: 0;
  z-index: 1;
  position: relative;
  text-decoration: none !important;
}

.lab4-header .cta-button {
  display: flex;
  grid-column-gap: 10px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 250px;
  height: 45px;
  padding: 20px 80px 20px 76px;
  background-image:
    linear-gradient(#0000001a, #0000001a),
    linear-gradient(#2f2f2f, #0c0c0c);
  border: 1px solid #000;
  border-radius: 24px;
  box-shadow:
    0 14px 7px #0000000d,
    0 10px 6px #0000000d,
    0 4px 4px #00000014,
    0 1px 2px #0000001a,
    0 0 #000000d9,
    inset 0 0 #ffffff40,
    inset 0 1px #ffffffbf,
    0 2px 6px #00000052;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #e2e1de !important;
}

.lab4-header .cta-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 10px rgba(0, 0, 0, 0.2),
    0 10px 8px rgba(0, 0, 0, 0.15),
    0 4px 6px rgba(0, 0, 0, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 0 rgba(0, 0, 0, 0.85);
}

.button-text {
  color: #e2e1de;
  text-align: left;
  white-space: nowrap;
  flex: 1;
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 100%;
  text-decoration: none;
}