@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Raleway:wght@400;700&display=swap');
body {
    font-family: 'Raleway', 'Lato', 'Calibri', Sans-serif;
    background-image:  linear-gradient(180deg, #f5f9ff 50%, #aec0d2 90%);
    text-align: center;
    min-height: 100vh;
}

.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;
}


.mainButton {
    margin-top: 15px;
    font-size: 16px;
    padding: 10px 30px;
    /*background-color: #8888c4;  --> agak ungu */
    background-color: #89a4be;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    /*animation: pulse 1.2s infinite;*/
}
.mainButton:hover{
    background-color: #c7d3e0;  /*#dbdbff; hoverinb */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), inset 0 3px 6px rgba(0, 0, 0, 0.1);
    color: black;
}




.row { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin: 12px 0; }

.logo {
    margin-top: 1px;
    margin-left: 1px;
}

.logo img {
    width: clamp(2rem, 5vw, 8rem);
    height: auto;
    display: block;
}

.button-bar {
  background: transparent;
  display: flex;
  margin-top: clamp(10rem, 30vh, 30rem); ;
  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;
}

.title{
    width: clamp(20rem, 80vw, 55rem);
    font-size: clamp(1.6rem, 4vw, 3rem);  
    margin-left: auto;
    margin-right: auto;
    font-weight: bold; 
    margin-top: clamp(.8rem, 1vh, 0.5rem);
    z-index: 1;
}

#topic {
  text-transform: uppercase;
}


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

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

.discussion {
    font-family: 'Calibri', Sans-serif;
    font-size: clamp(0.8rem, 2rem, 1.6rem);
    line-height:1.55; color:#222; 
    
    width: clamp(20rem, 80vw, 55rem); 
    margin-top: 0.5rem;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
    text-align: left; 
    line-height: 1.1; 
    word-break: keep-all;
    white-space: normal; 
}

.discussion:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), inset 0 3px 6px rgba(0, 0, 0, 0.1);
}


.voiceSelect {
    font-family: 'Raleway', 'Lato', 'Calibri', Sans-serif;
    font-size: clamp(0.5rem, 2rem, 1.9rem);
    width: clamp(19rem, 80vw, 55rem); 
    margin-left: auto;
    margin-right: auto;
    
}
.voiceSelect {
    border: 1px solid red;
}

.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: 150px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;

}
.next-button:hover{
    background: #eec28f;
}


.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;
  }
}


