body {
  font-family: Arial, sans-serif;
  margin: 20px;
  max-width: 100%;
  overflow-x: hidden;
}

.routine {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 25px;
  padding-bottom: 10px;
  transition: color 0.5s ease, font-size 0.5s ease, font-weight 0.5s ease;
}

.routine:hover {
  color: green;
  font-size: 20px;
  font-weight: bold;
}

.routine label {
  margin-right: 10px;
  font-weight: bold;
  flex-shrink: 0;
}

.routine p {
  display: grid;
  text-align: center;
  align-items: center;
  margin: 5px 8px;
  font-size: 15px;
  color: #333;
  white-space: nowrap;
}

.routine p i {
  margin-right: 5px;
  color: #444;
}

.arrow {
  margin: 0 5px;
  font-size: 18px;
  color: #999;
}

button {
  display: block;
  margin: 30px auto;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  color: green;
  background-color: white;
  border-radius: 15px;
  border: 2px solid green;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

button:hover {
  background-color: green;
  color: white;
}

#question, #R1, #R2, #R3, #R4, #R5, #R6 {
  transition: all 0.5s;
}

/* DESKTOP GRID LAYOUT */
.rect-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 20px;
  background-color: #3e6a83;
  border-radius: 10px;
  margin-top: 10px;
}

/* Manual positioning for rectangular flow */
.step1 { grid-column: 1; grid-row: 1; }
.arrow1 { grid-column: 2; grid-row: 1; }
.step2 { grid-column: 3; grid-row: 1; }
.arrow2 { grid-column: 4; grid-row: 1; }
.step3 { grid-column: 5; grid-row: 1; }

.arrow3 { grid-column: 5; grid-row: 2; }

.step4 { grid-column: 5; grid-row: 3; }
.arrow4 { grid-column: 4; grid-row: 3; }
.step5 { grid-column: 3; grid-row: 3; }
.arrow5 { grid-column: 2; grid-row: 3; }
.step6 { grid-column: 1; grid-row: 3; }

.arrow6 { grid-column: 1; grid-row: 2; }

.step {
  background: #fff;
  padding: 8px 10px;
  text-align: center;
  border-radius: 6px;
  border: 1px solid #ccc;
  color: #333;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.arrow {
  background: transparent;
  padding: 0;
  border: none;
  color: black;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.step i {
  margin-right: 5px;
  color: #444;
}

/* MOBILE STACKED FLOW */
.mobile-flow {
  display: none;
}

@media (max-width: 768px) {
  .routine {
    flex-direction: column;
    align-items: flex-start;
  }

  .routine label {
    margin-bottom: 8px;
  }

  .routine p,
  .arrow {
    font-size: 14px;
    margin: 4px 0;
  }

  .rect-grid {
    display: none; /* hide desktop layout */
  }

  .mobile-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background-color: #3e6a83;
    border-radius: 10px;
    margin-top: 10px;
  }

  .mobile-flow .step {
  background: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  color: #333;
  width: 90%;
  text-align: center;
}

.mobile-flow .arrow {
  background: transparent;
  padding: 0;
  border: none;
  font-size: 18px;
  color: black;
  width: auto;
  text-align: center;
}

}

@import url('https://fonts.googleapis.com/css2?family=Albert+Sans&display=swap');

#numberofdays {
  font-family: 'Albert Sans', sans-serif;
  text-align: center;
  font-style: italic;
  background-color: #f4f7fa; /* Soft light blue-gray */
  border-radius: 8px;
  padding: 20px;
  margin: 30px auto;
  max-width: 600px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}


