/* === COMPLETE CSS - WHITE DOTS CLEARLY VISIBLE === */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');

body {
    margin: 0;
    padding: 0;
    background: #ffffff;

    font-family: Arial, sans-serif;
}


.container {
    background: none;
    box-shadow: none;
    padding: 0;
    width: auto;
}

header h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
}

.abacus-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 100px;
    
}

.frame {
    background: #f7e2c0;
    border: 12px solid #814715;
    border-radius: 20px;
    padding: 69px 36px;
    position: relative;
    z-index: 1;
}

.rods {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    height: 100%;
}

.rod {
    width: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

.value {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 32px;   /* slightly bigger for clarity */
  color: #5b3515;
  position: absolute;
  top: -125px;        /* adjust as needed */
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}



.bead {
    width: 50px;
    height: 34px;
    border-radius: 22px;
    background: #fdf8ed;
    border: 3px solid #3b1f12;
    cursor: pointer;
    position: relative;
    top: 0;
    left: 0;
    transition: top 0.2s ease;
    z-index: 15;
    display: block;
}

.upper {
    margin: 0;
    margin-top: -34.6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.lower {
margin: 0;
margin-bottom: -69px; /* pehle -65 tha, thoda overlap taaki gap na dikhe */
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
gap: 0px;
}

.upper .bead:last-child {
    margin-bottom: 100px;
}

.lower .bead:first-child {
    margin-top: 0;
}

/* === HORIZONTAL RAIL - LOWEST LAYER === */
.center-rail {
position: absolute;
/* percentage + translateY ki jagah fixed pixels /
top: 210px; / agar line upar/neeche lage to is number ko 205 ya 215 try kar sakti ho */
top: 29.2%; 
left: 0;
right: 0;
height: 10px;
background: #4a2813;
z-index: 2;
}

/* === VERTICAL ROD - MIDDLE LAYER === */
.rod-line {
    width: 5px;
    background: #4a2813;
    position: absolute;
    top: -69px;
    bottom: -69px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.lower .bead:first-child.active {
    top: -45px !important;
    background: #9b5733;
}

.lower .bead:not(:first-child).active {
    top: -45px !important;
    background: #9b5733;
}

.upper .bead:last-child.active {
    top: 45px !important;
    background: #9b5733;
}

.upper .bead:not(:last-child).active {
    top: 50px !important;
    background: #9b5733;
}


.controls {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.controls input,
.controls button {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #814715;
    font-size: 14px;
}

.controls button {
    background: #814715;
    color: white;
    cursor: pointer;
}



/* Align the entire controls row */
.controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* “Rods:” text style */
.rod-label {
  font-size: 16px;
  font-weight: bold;
  color: #4a2813;
}

/* Smaller buttons + number box */
.custom-number {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fdf8ed;
  padding: 6px 14px;
  border-radius: 6px;
  border: 2px solid #814715;
}

.rod-text {
  font-size: 16px;
  font-weight: bold;
  color: #4a2813;
  margin-right: 6px;
}

/* Smaller + / − buttons */
.custom-number button {
  background: #814715;
  color: white;
  border: none;
  padding: 4px 8px;
  font-size: 16px;
  font-weight: bold;

  cursor: pointer;
  border-radius: 6px;
}



.custom-number button:active {
  transform: scale(0.9);
}

/* Display number (11,13,15,17,19,21) */
#rodDisplay {
  font-size: 16px;
  font-weight: bold;
  color: #4a2813;
  min-width: 22px;
  text-align: center;
}


.rod-dot {
width: 6px;
height: 6px;
background: white;
border-radius: 50%;
position: absolute;
top: 83.8px; /* yahi value .center-rail wali ke barabar rakho /
left: 50%;
transform: translateX(-50%); / sirf X, Y translate hata diya */
left: 51.5%;
transform: translate(-50%, -50%);
z-index: 3;
}




.soroban-title span {
  font-size: 28px;             /* smaller Soroban text */
  font-weight: 400;
  color: #7a4c26;              /* lighter brown */
  margin-left: 4px;
}


#resetBtn {
  padding: 10px 20px;         /* bigger button */
  font-size: 16px;            /* slightly bigger text */
  font-weight: bold;

  background-color: #f7e2c0;  /* same theme color */
  border: 2px solid #7a4c26;
  border-radius: 6px;
  cursor: pointer;
  color: #4a2813;
}

#resetBtn:hover {
  background-color: #fdf8ed;  /* soft hover effect */
}


/* Disable state for + and - buttons (no blocked sign) */
.custom-number button.disabled {
  background-color: #bfa58a !important;
  cursor: default;       /* ← changed from not-allowed */
  opacity: 0.6;
}



.website-btn {
  position: static;

  padding: 10px 20px;
  background-color: #f7e2c0;
  color: #4a2813;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #7a4c26;
}



.website-btn:hover {
  background-color: #fdf8ed;
  border-color: #7a4c26;
}





/* ================= CONTENT SECTION ================= */
.abacus-content {
  background: #ffffff;
  padding: 80px 20px;
  margin-top: 60px;
}

.content-container {
  max-width: 1000px;
  margin: 0 auto;
}

.content-box {
  background: #fdf8ed;
  padding: 30px;
  border-radius: 14px;
  margin-bottom: 35px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  border: 2px solid #814715;
}

.content-box h2 {
  color: #814715;
  margin-bottom: 12px;
}

.content-box ul {
  line-height: 1.8;
}

.content-box:first-child {
  background: #ffffff;
  border: 2px solid #814715;
}

/* ================= FAQ ================= */

.faq-item h3 {
  color: #4a2813;   /* change to any color you like */
}

.faq-section {
  padding: 0px 20px;
  margin-bottom: 130px;
  background: #ffffff;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #814715;
}

.faq-item {
  margin-bottom: 25px;
}


/* Top Header Section */
.tool-header {
  background: #ffffff;   /* white background */
  text-align: center;
  padding: 68px 20px;
  margin-top: 42px;
}

.header-container {
  max-width: 900px;
  margin: 0 auto;
}

.tool-header h1 {
  margin-bottom: 15px;
  color: #4a2813;
}

.tool-header p {
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.8;
  color: #555;
  font-size: 18px;
}


/* Poppins for text sections only */
.tool-header,
.abacus-content,
.faq-section {
  font-family: 'Poppins', sans-serif;
}


/* Make all paragraph and list text 18px */
p,
li {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
}


/* ===== Desktop Layout Width ===== */

.main-wrapper {
  width: 1300px;
  margin: 0 auto;
}

/* ===== Auto Scale For Small Screens (Mobile & Desktop Mode) ===== */

@media (max-width: 1300px) {
  .main-wrapper {
    transform: scale(calc(100vw / 1300));
    transform-origin: top center;
  }
}



.main-footer {
  background: #ffffff;
  padding: 0px 10px;
  margin-bottom: 13px;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-left a {
  margin-right: 9px;
  text-decoration: none;
  color: #555;
  font-size: 16px;
}

.footer-left a:hover {
  color: #9D0801;
}

.footer-right {
  font-size: 16px;
  color: #555;
}