body {
    font-family: Arial, sans-serif;
    background-color: #f0f8ff;
    color: #333;
    text-align: center;
    padding: 0px;
    margin: 0;
    padding: 0
	min-height: 100vh
	box-sizing: border-box;


}





/* .header {
    width: 100%;
    text-align: center;
    margin: 0 0;
    font-size: 2em;
    font-weight: bold;
} */

header {
    background-color: #98D8EF;
    padding: 15px 0px;
    color: #000000;
    text-align: center;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  
.alphabet-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 10px;
    margin: 20px auto;
    width: 100%;
}

.alphabet-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 10px;
    margin: 10px auto;
    width: 100%;
	padding: 10px;
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.alphabet-container > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
}




.alphabet-container:nth-of-type(4n+1) .box {
    background-color: #ffcccb;
}

.alphabet-container:nth-of-type(4n+2) .box {
    background-color: #ccffcc;
}

.alphabet-container:nth-of-type(4n+3) .box {
    background-color: #ccccff;
}

.alphabet-container:nth-of-type(4n+4) .box {
    background-color: #ffffcc;
}



.box {
    flex: 0 0 auto;
    width: 100px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #000;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1.5em;
    font-weight: bold;
}

/* 📱 Adjust for smaller screens */
@media (max-width: 768px) {
    .box {
        width: 100px;
        height: 80px;
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .box {
        width: 45px;
        height: 35px;
        font-size: 1em;
    }
}




.box:hover {
    background-color: #999;
}

.letter {
    font-size: 2em;
    font-weight: bold;
}



/* Center the alphabet boxes within their row */
.alphabet-container {
  display: flex;
  flex-wrap: nowrap;    /* never wrap */
  justify-content: center;  /* <-- center the row */
  gap: 8px;
  padding: 8px 10px;
  box-sizing: border-box;
  overflow-x: auto;     /* scroll horizontally if viewport is narrow */
  -webkit-overflow-scrolling: touch;
}

/* Center the options strip above the questions */
.options {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;   /* <-- center options */
  gap: 6px;
  margin: 6px 0 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.options::-webkit-scrollbar { height: 6px; }
.options::-webkit-scrollbar-thumb { background: #c9c9c9; border-radius: 3px; }

/* Center the sequence row contents within each family panel */
.sequence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;   /* <-- center sequence */
  margin-bottom: 6px;
  font-size: var(--seq-font);
}

/* Center the activity title for a cleaner look */
.quad-activity h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #333;
  text-align: center;        /* <-- center title text */
}


/* Stronger, end-of-file override for alphabet teaching rows */
.teach-wrap .alphabet-container {
  justify-content: center !important; /* ensure center wins over earlier rules */
}

