@font-face {
	font-family: 'TeX Gyre Adventor';
	src: url('/fonts/texgyreadventor-regular.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'TeX Gyre Adventor';
	src: url('/fonts/texgyreadventor-bold.woff') format('woff');
	font-weight: bold;
	font-style: normal;
}

* {
	box-sizing: border-box;
	font-family: 'TeX Gyre Adventor', Arial !important;
	transition: all ease 1s;
}

a {
	color: var(--accent-color); 
	text-decoration: none;
}
h1 {
	line-height: 42px;
	font-size: 42px;
}
h2 {
	line-height: 24px;
}
.header span.active, nav span.active {
	color: var(--text-color);
	text-decoration: none;
	font-weight: bold;
}
.header a, nav a {
	color: var(--text-color);
	text-decoration: none;
	font-weight: 700;
}
p {
	line-height: 28px;
}

.input-container {
	position: relative;
}

input, select {
	width: 100%;
	box-shadow: none !important;
}

section {
	margin:0 auto 36px;
	width: 100%;
}
input:-internal-autofill-selected {
	background-color: var(--input-background) !important;
	color: var(--accent-color) !important; 
}
input:-webkit-autofill {
	-webkit-box-shadow:0 0 0 100px var(--input-background) inset !important; 
	-webkit-text-fill-color: var(--accent-color) !important; 
}
input:-webkit-autofill-selected {
	-webkit-box-shadow:0 0 0 100px var(--input-background) inset !important; 
	-webkit-text-fill-color: var(--accent-color) !important; 
}


body {
	background-color: var(--background-color);
	color: var(--text-color);
	font-family: var(--font-family), Arial, sans-serif;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body, .header, .sub-header, .checkbox-label, .container, .calculate-btn, .amortization-table, .data-table {
	transition: background-color 0.5s, color 0.5s;
}

.input-group .btn {
	position: absolute;
}

.input-group-text {
	display: none;
}

.input-group>.form-control:focus, .input-group>.form-floating:focus-within, .input-group>.form-select:focus {
	z-index: 0; /* bootstrap override */
}

.input-container.dollar::before {
    content: "$";
    position: absolute;
    left: 24px;
    top: 78%;
    transform: translateY(-80%);
    color: var(--text-color);
    font-size: 16px;
    z-index: 1;
}
.input-container.percent input {
    padding-right: 76px;

}
.input-with-clear.percent::after {
    content: "%";
    position: absolute;
    right: 56px;
    top: 66%;
    transform: translateY(-80%);
    color: var(--text-color);
    font-size: 16px;
}

        #error-message, .error-message {
            width: 100%;
            font-weight: bold;
            font-size: 18px;
            color: red;
        }

        .checkbox-container {
            display: flex;
            align-items: center;
            margin-top: 0;
        }

        .checkbox-container input[type="checkbox"] {
            display: none;
        }

        .checkbox-label {
            font-size: 18px;
            color: var(--text-color);
            margin-bottom: 5px;
            cursor: pointer;
        }

        .checkbox-label span {
            position: relative;
            top:-12px;
        }

        .checkbox-custom {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: 2px solid var(--text-color); /* Change from white to black */
            background-color: var(--background-color);
            margin-right: 10px;
            cursor: pointer;
            display: inline-block;
            position: relative;
        }

        .checkbox-custom::after {
            content: "";
            display: block;
            width: 20px;
            height: 20px;
            border-radius: 4px;
            margin: 6px;
            position: absolute;
            top: 0;
            left: 0;
            transition: background-color 0.3s ease;
        }

        .checkbox-container input[type="checkbox"]:checked + .checkbox-custom::after {
            left: 3px;
    		top: -4px;
            width: 10px;
            height: 20px;
            border: solid var(--accent-color);
            border-width: 0 5px 5px 0;
            -webkit-transform: rotate(45deg);
            -ms-transform: rotate(45deg);
            transform: rotate(45deg);
        }

        label {
            margin-bottom: 0;
            font-family: var(--font-family), Arial, sans-serif;
        }