
        .no-margin {
            margin: 0;
        }
        .width100 {
            width: 100%;
            max-width: 100%;
        }

        .content-container {
            padding: 0 24px;
        }


        .header {
            position: fixed;
            top: 0;
            left: 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 20px;
            background-color: var(--background-color); /* Add your background color */
            color: var(--text-color); /* Add your text color */
            border-bottom: 3px solid var(--accent-color); /* Add your accent color */
            z-index: 1001;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            width: 100%;
        }
        .logo a {
            font-size: 22px;
            font-weight: bold;
            font-family: var(--font-family), Arial, sans-serif; /* Add your font family */
        }
        .sub-header-container {
            width: 100%;
            background-color: var(--input-background);
            padding: 20px 16px 6px;
            box-sizing: border-box;
            text-align: center;
            margin-bottom: 64px;
            line-height: 62px;
            margin-top: 54px;
        }

        .sub-header-container-inner {
            max-width: 640px;
            margin: 0 auto;
        }

        .sub-header {
            font-size: 62px;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .sub-header div {
            font-size: 32px; 
        }

        .sub-header p {
            font-size: 18px;
            margin: 0;
        }

        .bottom-container p {
            font-size: 12px;
            font-weight: normal;
        }

        .container {

        }

        .container-loan {
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            flex: 1;
            padding-bottom: 20px;
            box-sizing: border-box;
            margin-right: 48px;
        }

        .input-with-clear {
            position: relative;
        }
        .input-with-clear input {
            padding-right: 30px; 
        }
        .input-with-clear button {
            right: 5px; /* Adjust as needed */
            top: 50%;
            transform: translateY(-50%);
            border: none;
            border-left: 1px solid #ccc !important;
            background: none;
            cursor: pointer;
            width: 36px;
            height: 24px;
            padding-right: 0px;
            color: var(--text-color-shade);
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .input-container label, .container-compound label {
            font-size: 18px;
            color: var(--text-color) !important;
            display: block;
            padding-bottom: 5px;
        }

        .input-container input[type="number"],.input-container input[type="text"],.input-container select {
            height: 48px;
            background-color: var(--input-background) !important;
            color: var(--accent-color) !important;
            border: none;
            border-bottom: 2px solid var(--input-border-color);
            box-sizing: border-box;
            font-size: 20px;
            font-weight: bold;
            text-align: right;
            font-family: var(--font-family), Arial, sans-serif;
            padding-left: 20px;
            padding-right: 50px;
        }

        .calculate-btn {
            /*
            width: 100%;
            height: 72px;
            background-color: var(--accent-color);
            color: var(--background-color);
            border: none;
            cursor: pointer;
            font-size: 18px;
            border-radius: 8px;
            margin-top: 20px;
            font-weight: bold;
            font-family: var(--font-family), Arial, sans-serif;
            outline: none;
            */
            display: flex;
            justify-content: center;
            border: none;
            cursor: pointer;
            margin-top: 40px;
            font-family: var(--font-family), Arial, sans-serif;
            outline: none;
            font-size: 28px;
            font-weight: bold;
            position: relative;
            width: 100%;
            background-color: var(--accent-color);
            color: var(--calc-btn);
            padding: 6px 40px 12px;
            text-transform: none;
            text-shadow:0 0 15px hsl(0deg 0% 72.37%), 0 0px 4px hsla(0, 0%, 0%, 0.4);
            border: none;
            border-radius: 50px;
            cursor: pointer;
            transition: all ease-in-out 0.2s;
            border: none;
            border-radius: 50px;
            box-shadow:
            inset 0 -5px 20px hsla(0, 0%, 30%, 0.3), /* top light */
            inset 0 5px 20px hsla(0, 0%, 30%, 0.1), 3px 3px 11px var(--accent-color); /* bottom shadow */ 
            cursor: pointer;
            transition: all ease-in-out 0.2s;
        }
        /* highlight */
        .calculate-btn:after {
              content: '';
              display: block;
              position: absolute;
              left: 20px;
              right: 20px;
              top: 5px;
              height: 26px;
              border-radius: 15px;
              background: linear-gradient(
                hsla(0, 0%, 100%, 0.6), hsla(0, 0%, 100%, 0) );transition: all ease-in-out 0.02s;
        }
        .calculate-btn:active {
            box-shadow: inset 0 5px 20px hsla(0, 0%, 30%, 0.6), inset 0 5px 20px hsla(0, 0%, 30%, 0.2), 3px 3px 11px var(--accent-color);

        }
        .calculate-btn:active span {
            position: relative;
            top:2px;

        }
        .calculate-btn:active:after {
          content: '';
          display: block;
          position: absolute;
          left: 20px;
          right: 20px;
          top: initial;
          bottom: 5px; /* Position at the bottom */

          background: linear-gradient(
            hsla(0, 0%, 100%, 0), hsla(0, 0%, 100%, 0.4)); /* Reversed gradient */
        }







        .bottom-container {
            max-width: 600px;
            margin: 120px auto 20px;
            padding: 0 16px;
            text-align: center;
            
        }
        .bottom-container p:first-child {
            border-top: 1px solid var(--divider);
            padding-top: 16px;
        }

        .amortization-table-wrapper, .data-table-wrapper {
            width: 100%;
            max-width: 1388px;
            overflow-x: auto;
            margin: 0 auto;
        }

        .amortization-table, .data-table {
            width: 100%;
            margin-top: 20px;
            border-collapse: collapse;
        }

        .amortization-table th, .amortization-table td, .data-table th, .data-table td {
            padding: 8px;
            border: 1px solid var(--border-color); /* Change from white to black */
            width: auto;
        }

        .amortization-table th, .data-table th {
            background-color: var(--accent-color);
            color: var(--background-color);
            text-align: right;
        }

        .amortization-table td, .data-table td {
            color: var(--text-color);
            text-align: right;
        }
        .amortization-table th:first-child, .data-table th:first-child {
            text-align: left;
            width: 100px;
        }

        .amortization-table td:first-child, .data-table td:first-child {
            text-align: left;
            width: 100px;
        }

        .summary-container {
            border-radius: 16px;
            background-color: var(--input-background);
            margin-top: 20px;
            padding: 20px;
            width: 100%;
        }

        .section-title {
            color: var(--text-color);
            font-size: 28px;
            margin-bottom: 16px;
        }

        .summary-label {
            color: var(--text-color);
            font-size: 16px;
            font-weight: bold;
        }
        .summary-group-container {
            display: flex;
            margin: 16px 0 24px;
        }

        .summary-label-group {
            margin-right: 90px; /* Adjust spacing between groups */
        }

        .summary-label-group:last-child {
            margin-right: 0; /* Remove margin for the last group */
        }

        @media (max-width: 600px) {
            .summary-group-container {
                flex-direction: column; /* Stack groups on smaller screens */
                margin: 24px 0 0;
            }

            .summary-label-group {
                margin-right: 0; /* Remove margin on smaller screens */
                margin-bottom: 24px;
            }
            .summary-label-group:last-child {
                margin-bottom: 0;
            }
        }

        .summary-value {
            color: var(--text-color);
            font-size: 16px;
            font-weight: normal;
        }
        .summary-value-fade {
            color: var(--text-color-shade);
            font-size: 16px;
            font-weight: normal;
        }
        .amortizationTableContainer, .dataTableContainer {
            max-width: 1388px;
            margin: 0 auto;
        }
        @media screen and (max-width: 1430px) {
            .container {
                display: block;
            }
            .container-loan {
                margin: 0 auto;
            }
            section {
                margin:36px auto;
            }
        }
        @media screen and (max-width: 760px) {
            .container-loan {
                max-width: 100%; /* Set max-width to 100% for smaller screens */
            }
            .container-loan {
                margin-right: 0; /* Remove right margin for smaller screens */
                margin-bottom: 32px;
            }
            .content-container {
                padding: 0 16px;
            }  
        }
        @media screen and (max-width: 480px) {
            .sub-header-container {
                line-height: 40px; /* Reduce line height for smaller screens */
            }

            .sub-header {
                font-size: 42px; /* Reduce font size for smaller screens */
            }

            .sub-header p {
                font-size: 16px; /* Reduce font size for smaller screens */
            }

            .input-container input[type="number"], .input-container input[type="text"] {
                font-size: 20px; /* Reduce font size for smaller screens */
            }
        }

        input[type=number]::-webkit-inner-spin-button,
        input[type=number]::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        input[type=number] {
            -moz-appearance: textfield; /* Firefox */
        }

        /* Add zebra striping to amortization table */
.amortization-table tbody tr:nth-child(odd), .data-table tbody tr:nth-child(odd)  {
    background-color: var(--input-background); /* Set background color for odd rows */
}

.amortization-table tbody tr:nth-child(even), .data-table tbody tr:nth-child(even) {
    background-color: var(--background-color); /* Set background color for even rows */
}

/* Highlight the current row */
.highlight-row {
    background-color: #ffff75 !important; /* Set the highlight color for the current row */
    font-weight: bold;
    color: #000 !important;
}
.highlight-row td {
    color: #000 !important;
}
/* Hide the checkbox */

.mode-switch-label {
    margin-right: 10px; 
    font-weight: bold; 
    cursor: pointer;
}

.toggle-checkbox {
    display: none;
}

.toggle-container {
    display: flex;
    align-items: center; /* Vertically center items */
}

/* Style for the toggle slider */
.toggle-label {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
}

/* Style for the moon icon */
.toggle-label .toggle-icon, .toggle-label .toggle-icon-light {
    position: absolute;
}

/* Style for the toggle slider */
.toggle-label .toggle-text {
    position: absolute;
    top: 8px;
    left: 25px;
}

/* Slider design */
.toggle-label:before {
    content: "";
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    border: 1px solid white;
    transition: background-color 0.4s;
}

/* Change background color of toggle slider when clicked */
.toggle-checkbox:checked + .toggle-label:before {
    background-color: #000;
}

/* Slider knob design */
.toggle-label:after {
    content: "";
    position: absolute;
    cursor: pointer;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.4s;
}

/* Move slider knob when toggle is checked */
.toggle-checkbox:checked + .toggle-label:after {
    transform: translateX(26px);
}

/* Update toggle label styles */
.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Update moon icon styles */
.toggle-icon {
    font-size: 14px;
    margin-right: 8px;
    top:2px;
    left:2px;
}

.toggle-icon-light {
    font-size: 14px;
    margin-left: 22px;
    top:3px;
    left:8px;
    display: none;
}


/*///////////////////////////////////////////*/
/* Mobile Navigation                  */
/*///////////////////////////////////////////*/

/* Hamburger menu styles */
.hamburger-menu {
   display: none; /* Hide the hamburger menu by default */
   font-size: 24px;
   cursor: pointer;
}

.drawer .toggle-container {}

/* Styles for the sliding drawer */
.drawer {
   position: fixed;
   top: 0;
   right: -90%; /* Initially off-screen */
   width: 90%; /* Adjust as needed */
   height: 100%;
   background-color: var(--background-color);
   box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
   transition: right 0.3s ease; /* Transition effect */
   z-index: 1001; /* Ensure it appears on top */
}
.drawer .top-nav-details {
    margin-top: -35px;
    margin-bottom: 16px;
    color: var(--text-color-shade);
}

.drawer nav {
   padding: 20px;
}

.drawer ul {
   list-style-type: none;
   padding: 0;
}

.drawer ul li:not(:first-child) {
    border-top: 1px solid var(--divider);
    padding-top: 16px;
}



/* Updated media query for screens smaller than 940px */
@media screen and (max-width: 940px) {
   .toggle-container,
   .links {
      display: none; /* Hide the toggle container and links */
   }
   .hamburger-menu {
      display: block; /* Show the hamburger menu */
      position: absolute;
      top: 10px;
      right: 20px;
      z-index: 1000; /* Ensure it appears on top */
      color: var(--text-color);
   }

   /* Show the drawer when it's toggled */
   .drawer.active {
      right: 0;
   }

   /* Show the toggle container in the drawer */
   .drawer .toggle-container {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      padding: 14px;
      border-bottom: 1px solid var(--divider);
   }
   .drawer nav {
        padding: 32px 24px 24px 32px;
   }
   .drawer nav li {
        margin-bottom: 16px;
        font-size: 22px;
   }
   .drawer nav li div.active {
        font-weight: bold;
   }
   .drawer nav li div span {
        position: relative;
        top: -3px;
        left: -5px;
        margin-top: -3px;
        margin-left: -11px;
   }
   .top-nav {
    display: none;
   }
   .drawer-top-container {
        background-color: var(--input-background);
        height: 80px;
        display: flex;
        align-items: center; /* Vertical alignment */
        text-align: left;
    .drawer-top-container-title {
        padding-left:32px;
    }
}
}





/* top navigation */
/* Initial state of the dropdown, hidden */
/* Initial state of the dropdown, transformed up out of view */
.top-nav {
    cursor: pointer;
}
.top-nav:hover {
    color: var(--accent-color);
}
.top-nav-container1 {
    background-color: var(--input-background);
    height: 80px;
    display: flex;
    align-items: center; /* Vertical alignment */
    text-align: left;
    margin-bottom: 24px;
}
.top-nav-title-container {
        max-width: 800px;
        text-align: left;
        width: 800px;
        margin: 0 auto;
}
.top-nav-container2 {
        max-width: 800px;
        margin: 0 auto;
}

.top-nav-container2 div.top-nav-details {
    font-size: 14px;
    color: var(--text-color-shade);
    letter-spacing: 1px;
    line-height: 16px;
    font-weight: normal;
}


.top-dropdown-content {
    display: block;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    background-color: var(--background-color); 
    position: fixed; /* Use fixed to ensure it covers the top area when sliding down */
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1002;
    padding: 0 0 48px;
    font-size: 18px;
}

.top-dropdown-content h2 {
    margin: 0;
}

.top-nav-container2  > * {
    padding: 16px 0;
}



/* State of the dropdown when it is visible, transformed to 0 to slide into view */
.top-dropdown-content.show {
    transform: translateY(0%);
}

.top-dropdown-content a {
    display: block;
    color: var(--text-color); 
}
.top-dropdown-content .top-active {
    font-weight: bold;
    margin-left: 14px;

}
.top-dropdown-content span {
        position: relative;
        top: -3px;
        left: -5px;
        margin-top: -3px;
        margin-left: -11px;
   }



/*///////////////////////////////////////////*/
/* Retirement Drawdown syles                 */
/*///////////////////////////////////////////*/
.container-retirement-fields {
    margin: 0 auto;
    padding-bottom: 20px;
    box-sizing: border-box;
    margin-right: 0;
}

#savings-drawdown .sd-group {
    display: flex;
}


#savings-drawdown .input-container {
    margin-right: 24px;
    width: 100%;
}

#savings-drawdown .input-container:last-child {
    margin-right: 0;
}

#savings-drawdown .content-container .container {
    max-width: 760px;
}

.hide-this {
    display: none !important;
}
#result {
    margin: 80px 0;
    border: 1px solid var(--divider);
    border-radius: 100px;
    padding: 16px;
    display: block;
    width: 100%;
    text-align: center;
}
#result h1, h2 {
    margin-bottom: 12px;
    margin-top: 12px;
}

#principalBalanceChart {
    width: 100%;
    background-color: transparent;
}
@media screen and (max-width: 760px) {
    #result {
        border-radius: 24px;
    }
}

@media screen and (max-width: 600px) {
    #savings-drawdown .sd-group {
        display: block;
    }
}


/* simple calculator */
.simple-calc-container {
    margin-right: 24px;
    position: relative;
    top: 4px;
}
 .simple-calc-svg-icon {
    width: 24px;
    cursor: pointer;
 }
 .simple-calc-svg-icon path {
    stroke: var(--text-color);
 }

 .simple-calculator button {
      cursor: pointer;
    }
    .simple-calculator {
      width: 292px;
      margin: 0 auto;
      border: 1px solid var(--divider);
      border-radius: 16px;
      padding: 36px 10px 10px 10px;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      grid-gap: 5px;
      position: absolute;
        top: 60px;
        right: 0%;
      box-shadow: 0px 0px 13px 10px var(--input-background);
      background: var(--background-color);
      z-index: 1002;
    }
    .simple-calculator  .display-wrapper {
      grid-column: 1 / -1;
      position: relative;
    }
    .simple-calculator textarea {
      width: 100%;
      margin-bottom: 10px;
      padding: 5px 24px;
      font-size: 24px;
      height: 64px;
      resize: none; /* Disable textarea resizing */
      text-align: right; /* Align text to the right */
      vertical-align: bottom;
      padding-top: 16px;
      white-space: nowrap;
      overflow-x: auto; /* Enable horizontal scrollbar */
      overflow-y: hidden; /* Disable vertical scrollbar */
      color: var(--text-color);
      font-weight: bold;
      letter-spacing: -1px;
      border-radius: 100px;
      background-color: var(--input-background);
      /* box-shadow: inset 0 -5px 20px hsla(0, 0%, 30%, 0.3), inset 0 5px 20px hsla(0, 0%, 30%, 0.1), 3px 3px 11px #f70e6b; */
    }
    .simple-calculator .display-wrapper:after {
      content: '';
      display: block;
      position: absolute;
      left: 20px;
      right: 20px;
      top: 5px;
      height: 26px;
      border-radius: 15px;
      background: linear-gradient(var(--glow), hsla(0, 0%, 100%, 0));
      transition: all ease-in-out 0.02s;
    } 
    .simple-calculator button {
      position: relative;
      width: 64px;
      height: 54px;
      font-size: 24px;
      border-radius: 100px;
      display: flex;
      justify-content: center;
      align-items: center;
      border:1px solid #ccc;
      transition: all ease 0.3s;
      color: black;
    }
    .simple-calculator button::before {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      background: rgba(255, 255, 255, 0); /* Initial overlay color, fully transparent */
      transition: background 0.3s;
      border-radius: 100px;
    }
    .simple-calculator button:hover::before {
      background: rgba(0, 0, 0, 0.2); /* Initial overlay color, fully transparent */
    }
    .simple-calculator .clear-btn {
      background-color: var(--secondary-color);
      color: var(--text-color);
      border: 1px solid var(--secondary-color);
    }
    .simple-calculator .equals-btn {
      background-color: var(--accent-color);
      color: var(--calc-btn);
      border: 1px solid var(--accent-color  );
    }
    .simple-calculator .special-btn {
      background-color: #cccccc;
    }
    .simple-calculator .backspace-icon {
      content: url('https://img.icons8.com/ios/50/000000/long-arrow-left.png');
      width: 24px;
      height: 24px;
    }
    .simple-calculator .formula {
      font-size:12px;
      color: var(--text-color);
      position: absolute;
      top:40px;
      right: 16px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      width: 250px;
      text-align: right;
      padding: 0 16px;
      z-index: 2;
      opacity: 0.6;
    }
    .simple-calculator .drag-handle {
      width: 272px;
      height: 20px;
      cursor: move;
      background-color: var(--divider);
      border-radius: 100px;
      color: var(--text-color);
      text-align: center;
      display: flex;
      align-items: center;
      font-size: 12px;
      justify-content: center;
      font-weight: bold;
      position: absolute;
      top: 8px;
      left: 9px;
      padding-bottom: 1px;
    }
    .simple-calculator  textarea::-webkit-scrollbar {
      height: 6px;
      border: 1px solid var(--input-border-color);
      border-radius: 100px;
    }

    .simple-calculator  textarea::-webkit-scrollbar-thumb {
      background-color: var(--input-border-color); /* Color of the scrollbar thumb */
      border-radius: 10px; /* Rounded corners of the scrollbar thumb */
    }
    .backspace {
        width:36px;
        height:36px;
    }
    .backspace path {
        fill: black; 
    }
    .simple-calculator-close-icon {
        position: absolute;
        top: -4px;
        right: 7px;
        font-size: 24px;
        user-select: none;
        width: 24px;
        height: 24px;
        cursor: pointer;
    }

    /* tooltips */
/* Tooltip container */
  .tooltip {
    position: relative;
    display: inline-block;
  }

  /* Tooltip text */
  .tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
  }

  /* Tooltip arrow */
  .tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
  }

  /* Show the tooltip text when hovering */
  .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
  }
