.body_pile {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
}

.header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    gap: 10px;
    border-bottom: solid 1px #e6e8eb;
    background-color: white;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
}


.content {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    height: 100%;
    width: 100%;
}

.sidebar {
    min-width: 426px;
    width: 426px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 48px 80px 120px;
    background-color: #f7f7fa;
    font-size: 14px;
    height: 100%;
    gap: 12px;
}

.mobile_navigation {
    display: none;
}

.mobile_goal_navigation {
    display: none;
}

.sidebar.light {
    background-color: #ffffff;
}

.sidebar_buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.main_content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 120px 80px 126px;
    gap: 48px;
}

.main_content.dark {
    background-color: #f7f7fa;
}

.completion_phrase {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    border-bottom: solid 1px #d6d8dd;
    background-color: #f7f7fa;
}

.mobile_completion_phrase {
    display: none;
}

.main_content_item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 48px;
    padding: 0;
    width: 100%;
}

.main_content_heading {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
    padding: 0;
}

.cta {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0;
    width: 100%;
}

h1 {
    font-size: 32px;
    color: #1a1a1a;
    font-weight: bold;
}

h2 {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: bold;
}

.logo {
    width: 150px;
    max-width: 50%;
    max-height: 56px;
    flex-grow: 0;
    object-fit: contain;
}

.btn-blue {
    color: white;
    background-color: #3182ce;
    border-radius: 2em;
    font-size: 14px;
    padding: 12px 20px;
}

.emoji {
    font-size: 32px;
}

a {
    color: #3182ce;
}

a.a_style {
    text-decoration: underline;
}

a.button, button.navigation {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #3182ce;
    height: 48px;
    border-radius: 32px;
    border: none;
    color: white;
    font-size: 14px;
}

a.button:hover {
    text-decoration: none;
}

a.button.light {
    background-color: transparent;
    border: 1px solid #3182ce;
    color: #3182ce;
}

a.button.ultra.light {
    border: none;
    padding: 0px;
    height: 2em;
}

form {
    width: 100%;
}

input {
    padding: 6px 12px;
    border-radius: 8px;
    border: solid 2px #ececf3;
    background-color: #f7f7fa;
    color: #3182ce;
    margin: 2px 8px;
}

.prefixed_input {
    display: flex;
}

.prefixed_input *:first-child {
    padding: 6px 12px;
    border-radius: 8px 0px 0px 8px;
    border: solid 2px #ececf3;
    margin: 2px 0px 2px 8px;
    border-right: none;
}

.prefixed_input *:last-child {
    padding: 6px 12px;
    border-radius: 0px 8px 8px 0px;
    border: solid 2px #ececf3;
    margin: 2px 0px 2px 0px;
}

.mock_input {
    padding: 6px 12px;
    border-radius: 8px;
    border: solid 1px #ececf3;
    background-color: #ffffff;
    color: #3182ce;
    margin: 0 8px;
}

.mock_input a {
    color: #3182ce;
}

.mock_input a:hover {
    text-decoration: none;
}

.input_with_feedback {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
}

.invalid_feedback {
    color: red;
    font-size: 12px;
}

.radio_label_button {
    padding: 16px;
    border-radius: 12px;
    border: solid 1px #e4e4ef;
    background-color: white;
    color: #1a1a1a;
    display: flex;
    gap: 8px;
    flex-grow: 0;
    font-size: 14px;
}

.radio_label_button .emoji {
    font-size: 24px;
}

.emoji_box {
    background-color: #f7f7fa;
    border-radius: 5px;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-grow: 0;
}

.emoji_box.red {
    background-color: #fbe1e3;
}

.green {
    color: #12af64;
}

.emoji_box.green {
    background-color: #d4f2e4;
}

input[type=radio]:checked + label {
    background-color: #3182ce;
    border: solid 1px #2870b5;
    color: white;
}

input[type=radio]:checked + label .emoji_box {
    background-color: #5499da;
}

input[type=checkbox]:checked + label {
    background-color: #3182ce;
    border: solid 1px #2870b5;
    color: white;
}

input[type=checkbox]:checked + label .emoji_box {
    background-color: #5499da;
}

input.labelled_radio {
    display: none;
}

input.labelled_radio + label{
    cursor: pointer;
}

input::placeholder {
    color: #9d9d9d;
}

.button_grid {
    max-width: 800px;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
}

.button_grid.wide {
    grid-template-columns: 50% 50%;
}

.button_grid * {
    margin: 0;
}

.cta_card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    padding: 64px 56px;
    border-radius: 15px;
    border: solid 1px #ebebf0;
    background: linear-gradient(251deg, #202738 8%, #1a202c 88%);
    width: 100%;
}

.cta_card .heading {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.25;
    letter-spacing: -0.32px;
    text-align: left;
    color: #ffffff;
    z-index: 2;
}

.pseudo-background-img-container {
    position: relative;
    overflow: hidden;
}

img.pseudo-background-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position:absolute;
    z-index: 1;
}

.result_container {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
}

.main_results_cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    color: #474848;
    width: 100%;
    max-width: 100%;
}

.main_results_cards.one_wide {
    grid-template-columns: repeat(1, 1fr);
    max-width: 800px;
    margin: auto;
}

.main_results_cards.three_wide {
    grid-template-columns: repeat(3, 1fr);
}

.main_results_cards .heading {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    width: 100%;
}

.main_results_cards .heading .subject {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    padding: 0;
}

.card .emoji {
    font-size: 24px;
}

.main_results_cards .card{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    border-radius: 16px;
    border: solid 1px #ebebf0;
    background-color: #ffffff;
    flex-grow: 1;
}

.percent_improvement {
    padding: 4px 12px;
    border-radius: 16px;
    background-color: #dcf3e8;
    color: #12af64;
}

.main_results_cards .measure {
    font-size: 24px;
    color: #1a1a1a;
    font-weight: bold;
}

.result_summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result_plan_detail table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: #6c7381;
    font-size: 14px;
}

.result_plan_detail table th {
    color: #1a1a1a;
    font-weight: bold;
    font-size: 14px;
    background-color: #ffffff;
    padding: 12px 16px;
}

.result_plan_detail table td {
    background-color: #ffffff;
    padding: 12px 16px;
}

.result_plan_detail table tr th {border-top: 1px solid #ebebf0;}
.result_plan_detail table tr:first-child th:first-child {border-top-left-radius: 16px; border-left: 1px solid #ebebf0;}
.result_plan_detail table tr:first-child th:last-child {border-top-right-radius: 16px; border-right: 1px solid #ebebf0;}
.result_plan_detail table tr td {border-top: 1px solid #ebebf0;}
.result_plan_detail table tr td:first-child {border-left: 1px solid #ebebf0;}
.result_plan_detail table tr td:last-child {border-right: 1px solid #ebebf0;}
.result_plan_detail table tr:last-child td {border-bottom: 1px solid #ebebf0;}
.result_plan_detail table tr:last-child td:first-child {border-bottom-left-radius: 16px;}
.result_plan_detail table tr:last-child td:last-child {border-bottom-right-radius: 16px;}

.result_plan_detail .emoji_box {
    background-color: #f7f7fa;
    border-radius: 5px;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-grow: 0;
}

.result_plan_detail .emoji {
    font-size: 16px;
}

.info_box {
    color: #1a1a1a;
    display: flex;
    width: 100%;
    height: inherit;
    font-size: 16px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border: solid 1px #ebebf0;
    border-bottom: 0;
    background-color: #ffffff;
}

.info_box:first-child{
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.info_box:last-child{
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    border-bottom: solid 1px #ebebf0;
}

.info_box .heading {
    display: flex;
    gap: 16px;
    align-items: center;
    text-align: left;
    justify-content: flex-start;
}

.info_box .emoji {
    font-size: 16px;
}

.info_modal {
    right: 0;
    height: 100%;
}

.modal-dialog {
    position: fixed;
    margin: 0;
    top: 0;
    right: 0;
    height: 100%;
    max-width: 600px;
}

.modal-content {
    height: 100%;
    border-radius: 0;
    border: 0;
}

.modal.fade .modal-dialog {
    transition: -webkit-transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
    transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
    -webkit-transform: translate(50px, 0);
    transform: translate(50px, 0);
}

.modal.show .modal-dialog {
    -webkit-transform: none;
    transform: none;
}

.modal-header {
    border: none;
}

.modal-body {
    overflow-y: auto;
    padding: 1rem 2rem;
}

.modal-body h1 {
    font-size: 24px;
    color: #1a1a1a;
    font-weight: bold;
}

.modal-body h2 {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: bold;
    margin-top: 1.5em;
}

.modal-body p {
    font-size: 16px;
    color: #474848;
}

.modal-body em {
    font-weight: bold;
    font-style: normal;
}

.modal-body table {
    border-spacing: 0;
    border-collapse: separate;
    border-radius: 8px;
    width: 100%;
    border: solid 1px #ebebf0;
    font-size: 12px;
    color: #474848;
    overflow: hidden;
    margin-bottom: 1rem;
}

.modal-body table tr:not(:last-child) td, .modal-body table tr:not(:last-child) th {
    border-bottom: solid 1px #ebebf0;
}

.modal-body tr {
    border: solid 1px #ebebf0;
}

.modal-body th {
    background-color: #f7f7fa;
    padding: 8px 16px;
}

.modal-body td {
    padding: 6px 16px;
}

.blue_bean {
    background-color: #d6e6f5;
    color: #3182ce;
    padding: 0 1em;
    border-radius: 1em;
}

.orange_bean {
    background-color: #fff3e6;
    color: #e78a1b;
    padding: 0 1em;
    border-radius: 1em;
}

.green_bean {
    background-color: #dcf3e8;
    color: #12af64;
    padding: 0 1em;
    border-radius: 1em;
}

.dropdown-item {
    font-size: 0.8rem;
    cursor: pointer;
}

.dropdown-menu {
    margin: 0 8px;
}

@media only screen and (max-width: 1300px) {
    .sidebar {
	padding: 40px;
	min-width: 200px;
    }

    .main_content {
	padding: 40px;
    }

    input {
	margin: 2px 0px;
	width: 100%;
    }

    .input_with_feedback {
	width: 100%;
    }

    .button_grid {
	max-width: 800px;
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(1, 1fr);
    }

    .main_results_cards {
	grid-template-columns: repeat(1, 1fr);
    }

}

@media only screen and (max-width: 800px) {
    h1 {
	font-size: 24px;
    }

    .no_mobile {
	display: none;
    }

    .header {
	padding: 2px 10px;
    }

    a.button, button.navigation {
	padding: 8px 20px 10px 20px;
	height: 32px;
    }

    .sidebar {
	display: none;
    }

    .mobile_navigation {
	display: flex;
	background-color: #F7F7FA;
	height: 80px;
	padding: 24px 16px;
	font-size: 12px;
	color: #1a1a1a;
	align-content: center;
	align-items: center;
	justify-content: center;
	gap: 0px;
    }

    .mobile_navigation .stepper {
	flex-grow: 1;
    }

    .mobile_navigation .stepper_items {
	min-height: 9px;
	display: flex;
	width: 100%;
    }

    .mobile_navigation .stepper:first-child .stepper_bar:first-child {
	border-bottom: 0px solid white;
    }

    .mobile_navigation .stepper:last-child .stepper_bar:last-child {
	border-bottom: 0px solid white;
    }

    .mobile_navigation .stepper_bar {
	width: 50%;
    }

    .mobile_navigation .inactive .stepper_bar {
	border-bottom: 2px solid #9FB1BD;
    }

    .mobile_navigation .passed .stepper_bar {
	border-bottom: 2px solid #3182CE;
    }

    .mobile_navigation .active .stepper_bar:first-child {
	border-bottom: 2px solid #3182CE;
    }

    .mobile_navigation .active .stepper_bar:last-child {
	border-bottom: 2px solid #9FB1BD;
    }

    .mobile_navigation .stepper_tick {
	min-width: 9px;
	min-height: 9px;
	border: 2px solid #9FB1BD;
	border-radius: 5px;
	position: relative;
	top:4px;
	background-color: #9FB1BD;
    }

    .mobile_navigation .stepper.active .stepper_tick {
	border: 2px solid #3182ce;
	background-color: #F7F7FA;
    }

    .mobile_navigation .stepper.passed .stepper_tick {
	border: 2px solid #3182ce;
	background-color: #3182ce;
    }

    .mobile_navigation .label {
	padding: 10px 10px;
	text-align: center;
    }

    .mobile_goal_navigation {
	display: flex;
	flex-direction: column;
	background-color: white;
	padding: 24px 16px;
	font-size: 12px;
	color: #1a1a1a;
	gap: 0px;
    }

    .main_content {
	padding: 16px;
	gap: 24px;
	margin-bottom: 67px;
    }

    .main_content_heading {
	gap: 12px;
    }

    .button_grid {
	max-width: 800px;
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(1, 1fr);
    }

    .cta {
	position: fixed;
	bottom: 0px;
	left: 0px;
	border-top: solid 1px #e6e8eb;
	padding: 16px;
	background-color: white;
    }

    .completion_phrase {
	display: none;
    }

    .mobile_completion_phrase {
	display: flex;
	flex-direction: column;
	padding: 14px 16px;
	gap: 8px;
	background-color: #F7F7FA;
    }

    .input_bar {
	display: flex;
    }

    .input_bar div {
	flex-grow: 1;
    }

    .input_bar div:first-child {
	border-radius: 5px 0px 0px 5px;
    }

    .input_bar div:last-child {
	border-radius: 0px 5px 5px 0px;
	border-left: none;
    }

    .mock_input {
	margin: 0;
    }

    .main_results_cards {
	grid-template-columns: repeat(1, 1fr);
	gap: 12px;
    }

    .main_results_cards .card {
	padding: 16px;
	gap: 12px;
    }

    .info_box {
	padding: 12px;
	font-size: 0.8em;
    }

    .result_plan_detail table {
	font-size: 12px;
    }

    .result_plan_detail table th {
	padding: 6px;
    }

    .result_plan_detail table td {
	padding: 6px;
    }

    .cta_card {
	gap: 24px;
	padding: 24px 24px;
    }

    .cta_card .heading {
	font-size: 22px;
    }
}
