body {
    font-family: Segoe, sans-serif;
    font-size: clamp(1rem, 1.5vw, 2rem); 
    margin: 0;                         /* Reset margin (not just top) */
    padding-top: 5px;                /* Replace margin-top for consistency */
    width: 100%;                      
    color: black;
    min-height: 100vh;
    background-image: linear-gradient(180deg, #f5f9ff 50%, #aec0d2 90%);;

}


.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, 55rem); 
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: clamp(1.4rem, 3vw, 3rem); 
    font-weight: bold; 
    margin-top: clamp(.8rem, 1vh, 0.5rem);
    z-index: 1;
}

.topic{
    width: clamp(19rem, 80vw, 40rem);
    display: grid;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1px; 
    padding: 2px; 
   
}

.button{
    display: grid;
    grid-template-columns: 40px 1fr;
    width: clamp(18rem, 80vw, 30rem);
    height: auto;
    margin-left: auto;
    margin-right: auto;
    line-height: 45px;
}
.button img{
    width: clamp(2rem, 4vw, 2.5rem);
    height: auto;
}


.unit{
    width:  clamp(20rem, 80vw, 40rem); 
    height:  clamp(2rem, 4vh, 2rem); 
    margin-top: auto;
    margin-bottom: auto;
    font-size: clamp(1rem, 2vw, 1.8rem); 
    line-height: 0.8rem; 
    margin-left: 2px;
    padding: 2px;
}
/* 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;
}




