/* Sleep Calculator Container - Center aligned */
.sleep-calculator-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Calculator Styles - Centered content */
.sleep-calculator {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px; /* Maximum width */
    box-sizing: border-box;
    font-family: inherit;
}

/* Rest of your existing CSS remains the same */
.sleep-calculator h2 {
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    text-align: center;
	  font-weight:bold;
}

.toggle-buttons {
    display: flex;
    margin-bottom: 30px;
    border-radius: 5px;
    overflow: hidden;
    background: white;
	  gap:10px;
}

/* ... (keep all other existing styles the same) ... */

.toggle-buttons button.active {
    background: #007bff;
    color: white;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #495057;
    font-size: 0.9rem;
}

.input-group input[type="time"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.calculate-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.3s;
    margin-bottom: 15px;
}

.calculate-btn:hover {
    background: #0069d9;
}

.results {
    text-align: left;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    display: none;
}

.results h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.1rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
	  text-align: center;
	  font-weight: bold;
}

.result-times {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.time-option {
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.time-option .time {
    font-size: 0.9rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.time-option .cycles {
    font-size: 0.9rem;
    color: #6c757d;
}

.info-text {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.5;
}
p {
    margin-bottom: 1.5rem;
    font-size: 15px;
}

/* Sleep text*/

 .sleep-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: #333;
}

.sleep-container h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 15px;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

.sleep-container h2 {
  font-size: 1.5rem;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #34495e;
}

.sleep-container p {
  margin-bottom: 15px;
}

.sleep-container strong {
  color: #2c3e50;
}

.sleep-container em {
  color: #8e44ad;
}

.sleep-container table {
  width: 60%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 0.95rem;
}

.sleep-container table th, 
.sleep-container table td {
  border: 1px solid #ddd;
  padding: 0.5rem 0.75rem
  text-align: left;
}

.sleep-container table th {
  background-color: #f4f6f8;
  color: #2c3e50;
  font-weight: bold;
}

.sleep-container table tr:nth-child(even) {
  background-color: #fafafa;
}

.sleep-container table tr:hover {
  background-color: #f1f1f1;
}
