/* ========== Base ========== */
:root{
  --bg:#0b1020;
  --card: linear-gradient(180deg, #eefaff, #d9f3ff); transition:width .3s ease; }/*#008040;*/
  --ink:white;
  --muted:#8aa0ff;
  --accent:#6ea8fe;
  --accent2:#8de0a6;
  --border:#2a3764;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
}

*{box-sizing:border-box}

body{
    font-family: Segoe UI, system-ui, -apple-system, Arial, sans-serif;
    font-family: Segoe, sans-serif;
    font-size: clamp(1rem, 3vw, 1.6rem); 
    margin: 0;                         /* Reset margin (not just top) */
    padding-top: 5px;                /* Replace margin-top for consistency */
    width: 100%;                      
    color: #222222;
    min-height: 100vh;
    background: linear-gradient(180deg, #fff8e1 0%, #ffe0b2 100%);
    /*background: linear-gradient(180deg, #f5f9ff 0%, #aec0d2 100%)*/


}



.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;
  font-weight: bold;
  align-items: center;
  padding: 10px;
}

.header img {
    width: clamp(3rem, 6vw, 5rem);
    height: auto;
    border-radius: 50%;
}



.display {
    width: clamp(19rem, 80vw, 50rem);
    font-size: clamp(1.5rem, 3vw, 2rem);
    display: grid;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
    margin-bottom: 5px;
    background: rgba(255,255,255,0.55);
    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);
}
.logoFrame::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('images/eltlogo.png');
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.10;  /* adjust transparency */
    z-index: -1;
}

.options {
    width: clamp(19rem, 80vw, 50rem);
    font-size: clamp(1rem, 2vw, 1.6rem);
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
    margin-bottom: 5px;
    align-items: center;
    background: rgba(255,255,255,0.55);
    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);
}


.container{
  width: clamp(20rem, 80vw, 50rem);
  margin-left: auto;
  margin-right: auto;
  padding:20px;
}


.footer {
    width: 95%;
    margin-left: 40px;
    margin-right: 40px;
    background: transparent;
    display: flex;
    margin-top: 40px; ;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
}

.footer img {
    width: clamp(1.5rem, 4vw, 3rem);
    height: auto;
}

/* Links & Buttons */
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
.back-link{display:inline-flex; gap:8px; align-items:center}

button, select, input[type="range"]{
  border:1px solid var(--border);
  background:transparent;
  color:var(--ink);
  font-size: clamp(0.85rem, 2vw, 1.2rem);
  padding:10px 14px;
  border-radius:14px;
  cursor:pointer;
  transition: transform .05s ease, box-shadow .2s ease;
}
.uBtn {
    width: clamp(6rem, 12vw, 10rem);
    font-size: clamp(1.2rem, 3vw, 2.3rem);
    margin-top: 10px;
    font-size: 16px;
    padding: 9px 12px;
    background-color: #b77109;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.uBtn.selected {
  background-color: #26ff93; /* light grey  background when selected */
  color: white;
}
.uBtn.hover {
  background-color: #aec0d2; /* light grey  background when selected */
  color: white;
}


select{padding:10px 12px; min-width:200px}
input[type="range"]{accent-color:var(--accent)}



.day-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:14px;
  width:100%;
}
@media (min-width:700px){
  .day-grid{grid-template-columns: repeat(5, 1fr)}
}

.day-card{
  display:flex; align-items:center; justify-content:center; gap:10px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px 14px;
  box-shadow:var(--shadow);
  min-height:80px;
}
.day-card:hover{outline:2px solid #2a3f8d}
.day-img{
  width:44px; height:44px; border-radius:12px; background:linear-gradient(135deg, #6ea8fe, #8de0a6); display:inline-block;
}
.day-label{font-weight:600}
.title{
    font-size:clamp(1.6rem, 4vw, 3rem);
    text-align: center;
}
/* Practice */
.practice{
    gap:16px;
}
/* kotak kontrol bawah */
.controls{
  display:flex; color: white;flex-wrap:wrap; gap:12px; align-items:center; 
  justify-content:flex-start;
  background: #008040; padding:12px; border-radius:18px; border:1px solid var(--border);
}
.control-block{ gap:8px; align-items:center; color: black; font-size: ramp(.85rem, 2vw, 1.4rem);}
.label{
    font-size: ramp(.85rem, 2vw, 1.4rem);
}
.boldLabel{
    font-size: ramp(.85rem, 2vw, 1.4rem);
    font-weight: 600;
}
.card{
  background:#efefef; border:1px solid #d8d8d8; border-radius:22px; padding:10px; box-shadow:var(--shadow);
}
.heading-row{display:flex; justify-content:space-between; align-items:center; font-size: clamp(1.1rem, 2vw, 2rem);}
.row{
    width: ramp(19rem, 80vw, 50rem);
    margin-top:5px;
    color: white;
}
.row.two-cols{
    display:grid; 
    grid-template-columns:1fr; 
    color: white;
    gap:16px;
}
@media (min-width:760px){
  .row.two-cols{grid-template-columns:1fr 1fr}
}

.block{
    font-size:clamp(0.95rem, 2vw, 1.8rem);
    font-weight: strong;
    text-align: left;
    margin-left: 2px;
    padding:10px 0;}

.muted{color: #ffee9b; margin:0 0 8px 0; font-weight:500; letter-spacing:.4px}

.sentence{font-size:clamp(18px, 2.6vw, 26px); line-height:1.4; margin:0}
.english{font-size:clamp(18px, 2.2vw, 22px); margin-top: 2px; margin-left: 5px;
    text-align: left;
}

/*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;
}
.auto-status {
  margin-top: 6px;
  font-size: 0.9em;
  font-weight: 400;
  color: #666;
  min-height: 1.2em; /* prevent layout jump */
}

