body {
    font-family: 'Raleway', 'Lato', 'Calibri', Sans-serif;
    background: linear-gradient(180deg, #f5f9ff 50%, #aec0d2 90%) ;
    text-align: center;
    align-items: center;
    margin-top: 5px;
    margin-left: 5px;
    min-height: 100%;
    background-attachment: fixed; /* ensures it stays put while scrolling */
    line-height: 1.4;
}

.avatar {
    width: 50px;       /* adjust to fit your layout */
    height: 50px;
    border-radius: 50%; /* makes it perfectly round */
    object-fit: cover;  /* ensures it fills the circle without distortion */
    border: 2px solid #ccc; /* optional: adds a thin border */
    margin-top: 10px;
}

.header {
  background: transparent;
  display: flex;
  margin-top: 1px; ;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.header img {
    width: clamp(4rem, 8vw, 6rem);
    height: auto;
}



.translogo {
    position: relative;
    margin-top: 1px;
    z-index: 1;
    min-height: 2px;
    padding: 1rem;
}

.phonemeTitle{ 
    width: clamp(20rem, 80vw, 50rem);
   /*border: 1px dashed red;*/
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px; 
    color: black;
}


.passage {
    width: clamp(10rem, 80vw, 45rem);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
    margin-bottom: 5px;
    padding: 5px;
    text-align: center;
    border-radius: 10px;
    border: 3px solid white;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), inset 0 3px 6px rgba(0, 0, 0, 0.1);
}


.transcription {
    width: clamp(20rem, 40vw, 40rem);
    font-size: clamp(1.2rem, 2vw, 2rem);
    margin-left: auto;
    margin-right: auto;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    border-width: 3px;
    transition: box-shadow 0.3s ease-in-out;
}

.transcription:before {
    content: "";
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    inset: 0;
    background-image: url('../images/eltlogo.png');
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.05;  /* adjust transparency */
    z-index: -1;
}

/*Words, pairs, context, sentences */
.unit-Buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    font-size: 18px;
}
.uBtn {
    width: clamp(5rem, 6vw, 8rem);
    font-size: clamp(1.1rem, 2vw, 2rem);
    margin-top: 10px;
    font-size: 16px;
    padding: 9px 12px;
    background-color: #517395;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.uBtn.selected {
  background-color: #aec0d2; /* light grey  background when selected */
  color: white;
}


.button-group {
    margin-top: 50px;
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
    font-size: 18px;
}
.btn {
    width: clamp(6rem, 10vw, 8rem);
    font-size: clamp(1.1rem, 2vw, 2rem);
    margin-top: 10px;
    font-size: 16px;
    padding: 9px 12px;
    background-color: #517395;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;

}
.btn.selected {
  background-color: #aec0d2; /* light grey background when selected */
  color: white;
}

.voice {
    width: clamp(20rem, 40vw, 40rem);
    font-size: clamp(1.2rem, 2vw, 2rem);
    margin-left: auto;
    margin-right: auto;
    margin-top: 5px;
}

/*page navigation button */
.button-bar {
  background: transparent;
  display: flex;
  margin-top: clamp(4rem, 10vh, 8rem); 
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.button-bar button{
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.linkButton {
    padding: 12px 30px;
    background-color: #9b4e00;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    animation: pulse 1.2s infinite;
}


@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

#voiceSelect {
    margin-top: 20px;
    font-size: 16px;
    padding: 5px;
}

#topic {
  text-transform: uppercase;
}


.userSpeech {
  margin-top: 15px;
}


.progress-Bar{
    width: clamp(15rem, 80vw, 40rem);
    height: clamp(2rem, 2vh, 1rem);
    margin-left: auto;
    margin-right: auto;
    color: blue;
    font-size: clamp(1rem, 2vw, 1.5rem); 
    margin-top: 2px;
    z-index: 1;
}

.progressBar{
    width: clamp(15rem, 15vw, 10rem);
    height: 1.2rem;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.8rem, 2vw, 2rem); 
    z-index: 1;
}





.nav-bar {
  display: flex;
  justify-content: center;
  gap: 1rem; /* space between buttons */
  margin-top: 0.5rem;
}
/*
.nav-bar button {
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    width: 200px;
    max-width: 30%;
    border-radius: 8px;
    cursor: pointer;
}

.buttonHolder{
    width: clamp(40rem, 80vw, 50rem); 
    margin-left: 35%;
    margin-right: auto;
}
*/
.next-button{
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    width: 200px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;

}
.next-button:hover{
    background: #8c8cc6;
}






.header2{
    font-size: clamp(1.2rem, 4vw, 2.5rem);  
    font-weight: bold; margin-top: 0.6rem;}

.displayTime{
    font-size: clamp(1.8rem, 4vw, 2rem);  
    margin-top: 0.2rem;
}

.aboutQuiz{
    font-size: clamp(1.5rem, 2vw, 2rem);  
    margin-top: clamp(2rem, 8vh, 3rem); 
    margin-left: clamp(2rem, 60vm, 50rem); 
    width: clamp(20rem, 40vw, 40rem); 
    text-align: center;
}

.highlighted-word {
  background-color: #f8e9c9;
  color: #f8e9c9;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}


@media (max-width: 600px) {
  #quizImage {
    width: 10px !important;            /* shrink the image on small screens */
    bottom: 10px!important;
    right: 10px !important;
  }
}


