/*:root{--fg:#e5e7eb;--muted:#94a3b8;--accent:#22d3ee;--ring:rgba(34,211,238,.2)}*/
body{
    font-family: Segoe, sans-serif;
    margin-top: 5px;
    margin-left: 5px;
    width: 95%;
    color: black;
    min-height: 100%;
    background: linear-gradient(180deg, #f5f9ff 50%, #aec0d2 90%);
    background-attachment: fixed; /* ensures it stays put while scrolling */
    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-left: 8px;
  padding-right: 8px;
}

.header img {
    width: clamp(4rem, 8vw, 6rem);
    height: auto;
}


.title{ 
    width: clamp(20rem, 80vw, 50rem);
   /*border: 1px dashed red;*/
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px; 
    color: black;
}

.display{
    width: clamp(18rem, 80vw, 55rem);
    font-size: clamp(0.85rem, 1.4rem, 1.4rem);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2px; 
    padding: 2px; 
    align-items: center;
}


.phoneme{
    font-size: clamp(0.85rem, 1.4rem, 1.8rem);
    font-weight: bold;
    color: black;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}





.wrap{
    width: clamp(18rem, 80vw, 50rem);
    margin-left: auto;
    margin-right: auto;
    background: #f2f5f9;
    margin-top: 15px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:18px; 
    padding:20px;
    box-shadow:0 15px 45px rgba(0,0,0,.45)}
    
.wrap img{
    width: clamp(5rem, 8vw, 6rem);
    height: auto;
    border: 2px solid #b6b6b6;
    box-shadow:0 8px 10px grey;
}


.controls{
    display:flex;
    width: clamp(20rem, 80vw, 40rem);
    margin-right: auto;
    margin-left: auto;
    margin-top: 30px;
    gap:5px;
    flex-wrap:wrap;
}


.controls select, button {
    font-size: clamp(0.85rem, 1.4rem, 1.2rem);
    margin-left: 10px;
    background: #517395;
    border:1px solid rgba(255,255,255,.12);
    color: #ffffff; padding:10px 12px;
    border-radius:10px;
    border: 1px solid #ffffff;
    cursor:pointer;
    width: clamp(5rem, 8vw, 6rem);
    height: 45px;
   
}
.control button, select: hover
    {background: #ffffff;
    border-color: #517395;box-shadow:0 8px 24px var(--ring)}
 
  
/*page navigation button */
.button-bar {
  background: transparent;
  display: flex;
  margin-top: clamp(4rem, 8vh, 6rem); 
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.button-bar button{
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
