body, div, input, label, select, button, span {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  .calculator-container {
    background-color: #adcfdc;
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 15px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    background: linear-gradient(to right, #f8f9fa, #e0eafc);
    padding: 20px;
    text-align: center;
  }

  .calculator-container .form-control {
    max-width: 300px;
    margin: 5px auto;
    border: 1px solid #817f7f;
}

/* Button container to align buttons side by side */
.button-container {
  display: flex;
  justify-content: center;
  gap: 10px; /* Adds spacing between buttons */
  margin-top: 20px;
}

/* Style Calculate & Reset buttons */
.calc-reset-buttons {
  flex: 1; /* Allows buttons to share available space */
  max-width: 150px; /* Adjust width as needed */
  padding: 12px;
  font-size: 16px;
  border: 1px solid #333;
  border-radius: 5px;
  color: #fff;
  background: #084288;
  cursor: pointer;
  text-align: center;
}

.calc-reset-buttons:hover {
  background-color: #434c6d;
}


/* Style only Copy Widget and Copy Link buttons */
.copy-buttons {
  width: 80%;
  max-width: 200px;
  padding: 8px;
  font-size: 14px;
  margin: 5px auto;
  border: 1px solid #333;
  border-radius: 5px;
  background-color: #28a745;
  color: white;
  text-align: center;
  cursor: pointer;
}

.copy-buttons:hover {
  background-color: #218838;
}
  
  .input-container, .result-field {
    display: flex;
    align-items: center;  /* This centers children vertically */
    margin-bottom: 10px;
  }
  
  .input-container label, .result-field label {
    width: 35%; 
    text-align: right;
    margin-right: 5%;
    font-size: 14px; 
    font-weight: bold;
    margin-left: 25px;
  }
  
  .input-container input, .result-field input {
    width: 40%; 
    padding: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    border: 1px solid #cfd1d8;
    border-radius: 3px;
    outline: none;
  }
  
  .input-container select, .result-field select {
    width: 38%; 
    padding: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    border: 1px solid #cfd1d8;
    border-radius: 3px;
    outline: none;
  
      margin-left: 5px;
    }
  
    .calculator-title {
      font-size: 22px;
      color: #ffffff; /* keep color to white */
      text-align: center;
      font-weight: 600;
      padding: 10px;
      margin-top: 0;
      margin-bottom: 30px;
      /* Updated the gradient to transition from lighter blue to lighter green */
      background: linear-gradient(to right, #053b7d, #066ba5); 
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
      border: .5px solid #084288;
      font-family: Arial, sans-serif;
    }
  
  #button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
  
  #button-container button {
    padding: 10px;
    border: 0;
    color: #fff;
    font-size: 16px;
    background: #084288;
    border-radius: 3px;
    margin: 0 10px;
  }
  
  #button-container button:hover {
    background-color: #434c6d;
  }
  
  #result {
    padding: 10px; /* Reduce padding inside the box */
    margin-top: 15px; /* Reduce space above the results */
    font-size: 14px; /* Reduce font size slightly */
    line-height: 1.2; /* Reduce line spacing */
}

.sample-output {
  color: #888 !important; /* Always gray */
  font-weight: normal !important; /* Remove bold styling */
  font-size: 14px; /* Keep it readable */
  margin: 3px 0; /* Reduce vertical space */
}

.example-text {
    font-size: 13px; /* Slightly smaller than main text */
    margin-bottom: 5px; /* Reduce spacing before the results */
}

#example-label {
    font-weight: bold;
    color: #666; /* Keep it distinguishable */
    margin-bottom: 8px; /* Reduce spacing */
}
  
  
  
  .help-icon {
    display: inline-block;
    position: relative;
    cursor: help;
  }
  
  .help-icon:before {
    content: '?';
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    background: #084288;
    color: #fff;
    border-radius: 50%;
    line-height: 20px;
    font-weight: bold;
  }
  
  .help-icon:hover .disclaimer {
    display: block;
  }
  
  .disclaimer {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 15px;
    width: 300px;
    z-index: 1;
    white-space: normal;
    max-width: 40vw;
    left: 50%;
  }
  
  @media screen and (max-width: 480px) {
    .calculator-container {
      padding: 10px;
      border-radius: 10px;
      max-width: 750px !important;
    }
  }
  
  .smaller-button {
  padding: 3px 6px;
  font-size: 10px;
  }
  
  .copywidget-text {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
  }
  .disclaimer-text {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    padding: 8px;
    text-align: left;
  }
  
  .result-field {
    width: 100%; /* Adjust this as per your needs */
    font-size: 14px; /* Adjust this as per your needs */
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  
  
  .result-field input {
    width: 100%;
    padding: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    border: 1px solid #cfd1d8;
    border-radius: 3px;
    outline: none;
    text-align: center; /* Add this line */
  }
  
  .result-field label {
  width: 100%;
  text-align: right;
  padding-right: 20px;
  margin-bottom: 5px;
  }
  
  table {
  border-collapse: collapse;
  width: 45%;
  margin: auto;
  }
  
  table th, table td {
    font-size: 12px; /* Change this to adjust the size */
  }
  
  th, td {
  border: 1px solid #ddd;
  padding: 5px;
  text-align: center;
  }
  
  th {
  padding-top: 5px;
  padding-bottom: 5px;
  text-align: center;
  background-color: #3c638a;
  color: white;
  }
  #breakdown-table {
    font-size: 0.8em; /* change this value to adjust the size */
  }
  
  ::placeholder {
    font-size: 11px;
  }
  
  
  .result-field button {
    margin-left: 10px;
  }
  
  .disclaimer-text {
    font-size: 12px;
    color: #515050;
    margin-bottom: 8px;
  }
  
  .scrollable-results {
    max-height: 200px;
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding: 5px;
    margin-top: 10px;
  }  
  #result .result-field label {
    text-align: center;
    font-size: 1.5em; /* Adjust this value to increase or decrease the size of the text */
  }

  .responsive-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.responsive-buttons button {
    flex: 1 1 30%;
    max-width: 150px;
    padding: 10px;
    font-size: 14px;
}

/* Responsive design for small screens */
@media (max-width: 600px) {
    .responsive-buttons {
        flex-direction: column;
        align-items: center;
    }

    .responsive-buttons button {
        width: 100%;
        max-width: none;
    }
}



.smaller-button {
  width: 35%;
  padding: 5px;
  font-size: 12px;
  margin: 0 2.5% !important
}
.btn {
  padding: 10px;
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  display: block;
  width: 100%;
  margin-top: 10px
}

.btn-primary {
  background-color: #007bff
}

.btn-secondary {
  background-color: #6c757d
}

.btn-success {
  background-color: #28a745
}

.btn-info {
  background-color: #17a2b8
}

.btn:hover {
  opacity: .85
}

/* Adjust first row: Measurement is wider, others are smaller */
.input-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* Measurement unit select box is wider */
.input-row .wider {
  width: 40%;
}

/* Gender and Age fields are slightly smaller */
.input-row .smaller {
  width: 28%;
}

/* For second and third row: Two equal-width inputs */
.input-row:nth-child(2) .input-group,
.input-row:nth-child(3) .input-group {
  width: 48%;
}

/* General Form Styling */
.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #817f7f;
  border-radius: 5px;
  background-color: #f8f9fa;
}

/* Label Styling */
.input-group label {
  font-weight: bold;
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
}

/* Input Field Styling */
.input-group .form-control {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  background-color: #fff;
}

/* Make Calculate and Reset buttons slightly larger */
.larger-button {
  width: 48%;
  padding: 12px;
  font-size: 16px;
  margin: 5px;
}

/* Responsive Tweaks for Smaller Screens */
@media screen and (max-width: 600px) {
  .input-row {
      flex-direction: column;
  }

  .input-row .input-group {
      width: 100%;
  }

  .larger-button {
      width: 100%;
  }
}




.result-container {
  border: 1px solid #ccc;
  padding: 15px;
  margin-top: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}


/* Social Share & Follow Section */
.social-share-container {
  text-align: center;
  margin-top: 20px;
}

.social-text {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

/* Divider Between Sections */
.thin-divider {
  width: 50%;
  border: 0.5px solid #ccc;
  margin: 10px auto;
}

/* Follow Us Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-icons a img {
  width: 30px; /* Adjust icon size */
  height: 30px;
  transition: opacity 0.3s ease-in-out;
}

.social-icons a img:hover {
  opacity: 0.7;
}



/* Style only Copy Widget and Copy Link buttons */
/* Adjust container for Copy buttons */
#new-buttons {
  text-align: center; /* Centers buttons */
  margin-top: 10px;
}

/* Inline-block for closer spacing */
.copy-buttons {
  display: inline-block; /* Ensures buttons stay inline */
  max-width: 150px; /* Reduce max width for better fit */
  padding: 8px;
  font-size: 14px;
  border: 1px solid #333;
  border-radius: 5px;
  background-color: #28a745;
  color: white;
  text-align: center;
  cursor: pointer;
  margin: 0 3px; /* Reduce spacing between buttons */
}

.copy-buttons:hover {
  background-color: #218838;
}

#errorMessage {
  margin-top: 10px; /* Adds space between buttons and error message */
  padding: 10px; /* Ensures proper spacing inside the error box */
  border-radius: 5px; /* Keeps styling consistent */
}

#calculate {
  background-color: #007bff !important; /* Sets blue color */
  color: white;
  border: none;
}

#reset {
  background-color: #6c757d !important; /* Sets gray color */
  color: white;
  border: none;
}

#calculate:hover {
  background-color: #0056b3 !important; /* Darker blue on hover */
}

#reset:hover {
  background-color: #5a6268 !important; /* Darker gray on hover */
}
