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: 90%;
    max-width: 600px;
    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;
    border-radius: 10px
}
  
  .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: 2%;
    font-size: 13.3px; 
    font-weight: bold;
    margin-left: 5px;
  }
  
  .input-container input, .result-field input {
    width: 45%; 
    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: 30%; 
    padding: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    border: 1px solid #cfd1d8;
    border-radius: 3px;
    outline: none;
  
      margin-left: 5px;
    }
  
  
  
  #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 {
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 20px;
  }
  
  
  
  .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: 350px !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: 75%; /* 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;
    margin-left: 5%;
    margin-right: 5%;
  }
  
  .scrollable-results {
    max-height: 300px;
    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 */
  }
  pre {
    font-size: 15px;
    white-space:normal;
    overflow-x: auto;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
    max-width: 100%;
}
#unit-c {
  width: 150px;  /* Adjust this value as needed */
}
#myChart {
  width: 100%;
  height: 50%;
}

/* If the screen is 600px or smaller, hide the chart */
@media (max-width: 600px) {
  #myChart {
    display: none !important;
  }
}
.loader {
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid blue;
  border-right: 16px solid green;
  border-bottom: 16px solid red;
  border-left: 16px solid pink;
  width: 120px;
  height: 120px;
  -webkit-animation: spin 2s linear infinite; /* Safari */
  animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
