*{
  box-sizing:border-box;
}

html, body{
  height:100%;
  margin:0;
  padding:0;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto;
  background:#f2f2f2;
  color:#111;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* Language selector */
.lang-select{
  text-align:center;
  padding:15px;
  background:#e5e5e5;
  flex-shrink:0; /* prevents shrinking */
}

.lang-select button{
  margin:5px;
  padding:8px 16px;
  border-radius:20px;
  border:1px solid #ccc;
  background:#fff;
  cursor:pointer;
  font-weight:600;
  font-size:18px;
}

/* Header */
.hero{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:20px;
  padding:20px;
  flex-shrink:0; /* prevents shrinking */
}

.side-img{
  width:80px;
  border-radius:12px;
}

.verse{
  font-size:22px;
  text-align:center;
  font-weight:600;
  color:#d4af37;
}

/* Language content - FULL SCREEN */
.lang-content{
  display:none;
  max-width:1400px; /* wider on large screens */
  width:100%;
  margin:0 auto;
  padding:24px;
  background:#fff;
  border-radius:14px;
  flex-grow:1; /* takes all available space */
  overflow-y:auto; /* scrollable if content is too long */
}

.lang-content.active{
  display:flex;
  flex-direction:column;
}

/* Description text */
.desc{
  text-align:center;
  font-size:20px;
  line-height:1.9;
}

/* Links */
.links a{
  display:block;
  margin:12px 0;
  padding:16px;
  background:#dcdcdc;
  border-radius:12px;
  text-decoration:none;
  color:#111;
  font-size:18px;
  transition:background 0.3s ease; /* smooth hover effect */
}

.links a:hover{
  background:#c8c8c8; /* darker on hover */
}

/* Feedback */
.feedback{
  display:block;
  margin-top:auto; /* pushes to bottom */
  text-align:center;
  padding:14px;
  background:#d4af37;
  border-radius:20px;
  color:#111;
  font-weight:700;
  text-decoration:none;
  font-size:18px;
  flex-shrink:0; /* prevents shrinking */
  transition:background 0.3s ease;
}

.feedback:hover{
  background:#c09d2f; /* darker gold on hover */
}

/* RTL */
.rtl{
  direction:rtl;
  text-align:right;
}

/* Language fonts */
.fa{
  font-family:"Vazir", system-ui, sans-serif;
  font-size:1.25em;
}

.ps{
  font-family:"BahijNaskh", system-ui, serif;
  font-size:1.25em;
}

.en{
  font-family:system-ui, -apple-system, Segoe UI, Roboto;
  font-size:1.25em;
}

/* Tablet */
@media(max-width:1024px){
  .lang-content{
    max-width:900px;
  }
}

/* Mobile */
@media(max-width:600px){
  .hero{
    flex-direction:column;
    padding:15px;
  }

  .lang-content{
    padding:16px;
    border-radius:0; /* full width on mobile */
    margin:0;
  }

  .desc{
    font-size:18px;
  }

  .links a{
    font-size:17px;
    padding:14px;
  }

  .feedback{
    font-size:17px;
  }

  .lang-select{
    padding:12px;
  }

  .lang-select button{
    font-size:16px;
    padding:6px 14px;
  }
}