body {
    font-family: Segoe, sans-serif;
    margin-top: 5px;
    margin-left: 5px;
    width: 100%;
    color: black;
    min-height: 100vh;
    background: linear-gradient(180deg, #f5f9ff 50%, #aec0d2 90%);
    justify-content: center;
    align-items: center;
}

.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;
    border-radius: 50%;
}




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

.topic{
    width: clamp(18rem, 80vw, 30rem);
    border: 1px;
    display: flex;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2px; 
    padding: 2px; 
}
.topic img{
   width: clamp(0.85rem, 4vw, 3rem);
   height: auto;
}



.phoneme{
    width:  clamp(20rem, 80vw, 40rem); 
    height:  clamp(2rem, 3vh, 1.5rem); 
    margin-top: auto;
    margin-bottom: auto;
    font-size: clamp(1rem, 2vw, 2rem); 
    line-height: 0.6rem; 
    margin-left: 2px;
    padding: 2px;
}

/*button-setting*/  
.phoneme-button{
    width: clamp(2rem, 4vw, 3rem);
    height: auto;
    border: 1px solid green;
}

.button:hover{
    background: #eec28f;
    width: clamp(2rem, 6vw, 4rem);
    height: auto;
}
.phoneme{
    font-size: clamp(1.4rem, 2vw, 1.6rem);
    margin-left: 10px;
}

.button-list {
    width: clamp(20rem, 80vw, 55rem);
    margin-left: auto;
    margin-right: auto;
}

.button-row {
    width: clamp(20rem, 80vw, 55rem);
    display: flex;
    align-items: center; /* vertical alignment of button and text */
    gap: 15px;
    margin: 15px 0;    
}

.button-row button {
  flex-shrink: 0;
  background: transparent;
  padding: 6px 6px;
  border: none;
  border-radius: 50%;
  margin-right: 5px;
  cursor: pointer;
}

.button-row button img {
    width: clamp(60px, 8vw, 90px);
    height: clamp(60px, 8vw, 90px);
    padding: 6px 6px;
    display: block;
}

.button-row button:hover{
    background: #eec28f;
    width: clamp(70px, 8vw, 100px);
    height: auto;
}

/* for moving to different pages */
.button-bar {
  background: transparent;
  display: flex;
  margin-top: 20px;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

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

.button-bar button:hover{
    background: #cbcb98;
    border: 1px solid yellow;
}








