* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Verdana", "ui-sans-serif";
}

li {
    margin-left: 1em;
}

body {
    background-color: #fafafa;
    color: #363636;
    text-align: center;
    margin: 0;
}

#title {
    background-color: rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid whitesmoke;
    padding: .25%;
}

button {
    display: inline-block;
    border: 0.15em solid rgba(0, 0, 0, 0.05);
    margin: 5px 2px 5px 2px;
    border-radius: 8px;
    box-sizing: border-box;
    text-decoration: none;
    font-family: "Verdana", "ui-sans-serif";
    font-weight: 400;
    color: #000000;
    background-color: rgba(0, 0, 0, 0.1);
    text-align: center;
}

#login_button {
    height: 3em;
    width: 10em;
}

button:hover {
    background-color: rgb(107, 107, 107);
}

button:active {
    background-color: rgb(91, 91, 91);
}

a {
    text-decoration: none;
    color: #002eaf;
}

a:hover {
    color: rgb(50, 103, 255);
}

.content_block {
    text-align: left;
}

table, th, td {
    border: 2px solid rgba(0, 0, 0, 0.9);
    border-collapse: collapse;
    padding: 5px;
    text-align: center;
    margin: 1% auto;
}

input, select {
    background-color: rgba(0, 0, 0, 0.02);
    margin: 5px;
    text-align: center;
}

input:focus, select:focus {
    outline: #b6b6b6 1px solid;
}

/* All input fields for workout routine template names */
input[id="id_title"],
select[id="id_workout_routine"],
input[id="id_form-title"] {
    width: 20em;
}

/* All input fields for sets and reps */
.weight-input, .reps-input, .sets-input, .order-input {
    width: 2.5em;
}

.exercise-input {
    width: 14em;
}

@media (min-width: 576px) {
    .exercise-input {
        width: 14em;
    }
}

/* Exercise Manager */

#exercise_manager_div {
    text-align: center;
}

#exercise_manager_div_inner {
    display: inline-block;
    text-align: center;
    width: auto;
}

.exercise_manager_title {
    font-size: 18pt;
}

#create_exercise {
    padding: 1%;
    white-space: nowrap;
}

#exercise_create_button {
    height: 2em;
    width: 6em;
    display: inline-block;
}

#user_exercises_section, #builtin_exercises_section {
    margin-top: 3%;
}

#user_exercises, #builtin_exercises {
    text-align: left;
    margin-top: 2%;
}

#delete_all_exercises {
    margin-top: 2%;
}

/* Update Exercise */
.exercise_update_buttons {
    height: 2em;
    width: 8em;
}

#exercise_manager_buttons_div {
    text-align: center;
}

/* Delete Exercise */

#delete_all_exercise_warning_message {
    margin: 5%;
}

#exercise_delete_all, #exercise_delete {
    text-align: center;
    margin: 2%;
}

.delete_all_exercises_buttons, .delete_exercise_buttons {
    width: 8em;
    height: 3em;
    margin: 0 3em;
}

/* Workout Routine Manager */

.workout_routine_manage_sub_header {
    text-align: center;
    font-size: 25px;
}

.workout_routine_manager_buttons {
    height: 2.5em;
    padding: 0 1%;
}

.workout_routine_template_manager_list_buttons {
    width: 9em;
    height: 2.5em;
}

#title_existing_routines {
    border-top: rgba(206, 206, 206, 0.5) 4px solid;
    margin-bottom: 1em;
}

.workout_routine_manager_div {
    text-align: center;
}

@media (max-width: 576px) {
    .workout_routine_manager_div_inner {
        display: inline-block;
        width: auto;
    }
}

@media (min-width: 577px) {
    .workout_routine_manager_div_inner {
        display: inline-block;
        width: 570px;
    }
}

@media (min-width: 768px) {
    .workout_routine_manager_div_inner {
        display: inline-block;
        width: 760px;
    }
}

@media (min-width: 992px) {
    .workout_routine_manager_div_inner {
        display: inline-block;
        width: 985px;
    }
}

.workout_routine_title {
}

/*
@media (min-width: 600px) {
    #create_workout_routine_form {
        margin: 1%;
        width: 600px;
    }
}

#create_workout_routine_form {
    margin: 1%;
    width: 400px;
}
*/

#create_workout_routine_form {
    margin: 1%;
    width: 100%;
}

.workout_routine_template {
    padding-bottom: 1%;
    padding-top: 1%;
    border-bottom: 1px solid #cecece;
}

.delete_all_routines {
    margin: 1%
}

#delete_all_routines_button {
    width: 12em;
    height: 4em;
}

#workout_routine_template_messages_div {
    margin-top: 1%;
    text-align: center;
}

#workout_create_message {
    list-style: none;
    margin: 1%;
}


.workout_routine_manager_div2 {
    text-align: center;
}

.workout_routine_manager_div_inner2 {
    display: inline-block;
    width: 100%
}

.non_authenticated_home {
    text-align: center;
    padding: 1%;
}


/* Workout Routine Update */

.hidden {
    display: none
}

#workout_routine_update,
#delete_all_routine_template_div {
    text-align: center;
}

#delete_all_routine_template_div_inner {
    display: inline-block;
    width: 100%
}

#delete_all_routine_warning_title {
    padding: 2%;
    width: 100%;
}

#workout_routine_update_form,
#workout_routine_update_form_div {
    text-align: center;
    margin-top: 1%;
}

.workout_routine_template_update_button {
    height: 2.5em;
    padding: 0 1%;
}

#workout_routine_template_update_buttons_div {
    text-align: center;
}

#save-workout {

}

#add-exercise {

}

#remove-exercise {

}

#cancel-update {

}

/* Stats */

.stats {
    text-align: center;
}

.stats_2 {
    display: inline-block;
}

.stats_table_header {
    background-color: rgba(0, 0, 0, 0.25);
}

#stats_table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.1);
}

.one_rm_table_disclaimer {
    text-align: left;
    margin: 1%;
}

#one_rm_graph {
    margin: 0 0 0 0;
}

#one_rm_graph_div {
    display: inline-block;
    border: 1px solid #cecece;
    width: 90%;
    margin-top: 1em;
}

#one_rm_graph_title {
    margin-bottom: .5em;
}

#graph_disclaimer, .one_rm_table_disclaimer {
    font-size: 10pt;
}

.oneRmGraph {
    background-color: rgba(255, 255, 255, 0.01);
    margin: 2% auto 2% auto;
    width: 90%;
}

#one_rm_info_center_div {
    text-align: center;
}


#timeframe_nowrap_span {
    white-space: nowrap;
}

#one_rm_info_div {
    display: inline-block;
    margin: 2% auto 2% auto;
    padding: 1% 3%;
    background-color: rgba(255, 255, 255, 0.15);
    width: 90%;
}

#one_rm_info_div_inner {
    display: inline-block;
    text-align: center;
    width: 100%;
}

#one_rm_info_div_inner li {
    text-align: left;
}

#one_rm_info_title {
    margin: 1%;
}

canvas[id="chart"] {
    width: 100% !important;
    height: 40em !important;
}

@media (max-width: 576px) {
    canvas[id="chart"] {
        width: 100% !important;
        height: 20em !important;
    }
}

#exercise_graph_select {
    margin-top: 0;
}

#one_rm_graph_choices_table td, #one_rm_graph_choices_table {
    border: 0;
}

#one_rm_graph_choices_table select {
    margin: 0;
}

#calculated_one_rm {
    margin: 0 5% 0 5%;
}

#one_rep_max_table_title {
    margin: 2% 0 0 0;
    padding-top: 2%;
    border-top: 1px solid;
}

#stats_table_header {
    font-weight: bolder;
}

#stats_table_subheader {
    font-weight: bold;
}

/* Start a workout */
select[id="id_workout_routine"] {
    width: 25em;
}

#start_workout_btn {

    width: 25em;
    height: 3em;
}

@media (max-width: 576px) {
    #start_workout_btn {
        width: 90%;
        height: 4em;
        margin: 1% 0 0 0;
        padding: 0;
    }

    select[id="id_workout_routine"] {
        width: 90%;
        margin: 3% 0;
    }
}

#create_route {
    margin-top: 2%;
}

#workout_select, #selected_exercise_title {
    text-align: center;
}

#selected_exercise_title {
    font-size: 16pt;
    margin-top: 1%;
    margin-bottom: 1%;
}

#selected_exercise_table {
}

#select_exercise_div {

}

#workout_select {
}

/* Logged Workout Routine Update */

.logged_workout_routine_update_errors {
    color: rgb(255, 26, 26);
    font-size: 13px;
}

.logged_workout_routine_div {
    text-align: center;
    margin-top: 1%;
}

#logged_workout_routine {
    text-align: center;
}

#logged_workout_routine .exercise-name {
    margin: 3% 0 0 0;
}


#logged_workout_update {
    font-size: 18pt;
    padding: 0%;
}

#logged_workout_routine_empty_space {
    padding: 5em;
}

.logged_workout_routine_update_save_div_outer {
    position: relative;
}

.logged_workout_routine_update_save_div {
    position: fixed;
    padding: .25em;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.75);
    width: 100%;
    text-align: center;
}

@media (max-height: 576px) {
  .logged_workout_routine_update_save_div {
    bottom: env(safe-area-inset-bottom);
  }
}

.submit_logged_workout_update_button {
    padding: 1em 3em;
    border: none;
    border-radius: 5px;
    background-color: #dedede;
}

/*
.submit_logged_workout_update_button {
    display: block;
    margin: 3% auto;
    width: 20em;
    height: 4em;
    position: sticky;
    bottom: 1%;
    background-color: #dedede;
}
*/

.logged_workout_update_formset_section {
    text-align: center;
    position: relative;
}

.logged_workout_update_formset_previous_stats {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

.logged_workout_update_formset {
    display: inline-block;
    vertical-align: middle;
}

.exercise-formset {
    font-size: 14pt;
    text-align: center;
    border-bottom: 2px solid rgba(0, 0, 0, 0.25);
    padding: .25em;
}

.workout_routine_manager_div_inner {
    width: auto;
}

.workout_routine_details_field_errors {
    text-align: left;
    width: 50%;
    margin: 0 auto;
}

.workout_routine_template_update_field_errors {
    width: 70%;
    margin: 0 auto;
}

#workout_routine_update_form_div {
    width: auto;
    display: inline-block;
}

.exercise-formset table th,
.exercise-formset table td {
    border: 1px solid black;
}


.exercise-formset input {
    font-size: 14pt;
    text-align: center;
    background-color: transparent;
    border: 0;
    border-bottom: 1px solid #cecece;
}

.logged_workout_routine_update_save_div {
    text-align: center;
}

/* Logged Workout Routine Update Buttons */
.logged_workout_routine_update_button_table {
    text-align: center;
    border: None;
}

.exercise-formset .logged_workout_routine_update_button_table td {
    border: None;
    text-align: left;
    padding: 0;
}

.exercise-formset .logged_workout_routine_update_button_table td button {
    height: 2.5em;
}

.adjust-sets {
    width: 8em;
}

.arrange-exercises {
    width: 8em;
}

.logged_workout_routine_exercise_add {
    width: 8em;
    height: 2.5em;
}

.logged-workout-routine-delete-exercise {
    width: 9em;
}

.log-workout-exercise-name {
    background-color: rgba(255, 255, 255, 0.05);
}

.previous_stats_th {
    background-color: rgba(0, 0, 0, 0.4);
}

.previous_stats {
    background-color: rgba(0, 0, 0, 0.3);
}

.previous_stats_td {
    background-color: rgba(0, 0, 0, 0.2);
}

.current_stats_th {
    background-color: rgba(0, 0, 0, 0.3);
}

.current_stats {
    background-color: rgba(61, 61, 61, 0.2);
}

.current_stats_td {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Logged Workout Routine List */

.logged_workout_routine_list_button {
    width: 8em;
    height: 3em;
    padding: 0;
}

#logged_workout_routine_list_div {
    text-align: center;
    margin: 0 0 0 0;
}

#logged_workout_routine_list_div_inner {
    display: inline-block;
    width: 100%
}

#logged_workout_routine_list_messages {
    padding: 2%;
}

.logged_workout_routine {
    border-bottom: #cecece 1px solid;
    padding: 1%;
}

.logged_workout_routine_delete_exercise_button {
    height: 2.5em;
    width: 8em;
}

#delete_all_workouts {
    padding: 2%;
    text-align: center;
}

#logged_workout_routine_delete_all_button {
    height: 4em;
    width: 12em;
}

.logged_workout_routine_details_title {
    margin-bottom: 0%;
}

#no_logged_workouts, #no_logged_data {
    padding: 3%;
}

/* Delete Logged Workout */

.title_delete_logged_workout_inline_div {
    margin: 1%;
}

.logged_workout_routine_inline_div {
    text-align: center;
}

.logged_workout_routine_details_table_title {
    margin: 1.5%;
}

/* Delete All Logged Workout Routines */
#delete_all_logged_routines_div {
    text-align: center;
}

#delete_all_logged_routines_div_inner {
    display: inline-block;
}

/* Delete Workout Routine */
#delete_workout_title {
    margin: 1%;
}

#workout_routine_template_delete {
    padding: 2%
}

/* Logged Workout Routine Inline HX */
.logged_workout_routine {
    padding: 0%;
}

.title_logged_workout_routine_inline_div {
    padding-top: 1%;
}

.buttons_logged_workout_routine_inline_div {
    padding-bottom: 1%;
}

/* Logged Workout Routine Details Inline HX */

#logged_workout_routine_detail_table {
    margin-top: 1%;
}

.logged_workout_routine_details_div {
    margin: 1%;
}

/* My Account */

.account_manager {
    text-align: center;
}

#account_info_messages_div {
    text-align: center;
}

#password_help_text {
    text-align: left;
    margin-top: 1em;
    margin-left: 4em;
    margin-bottom: 1em;
}

.password_change_errors {
    text-align: left;
}

#change_password_div {
    margin: 1%;
}

.account_manager_inner {
    display: inline-block;
    text-align: left;
    padding: 2%;
}

.account_manager_field_div {
    margin: 0 0 2%;
}

#save_account_button_div {
    text-align: center;
    margin: 2%;
}

#save_account_button {
    width: 16em;
    height: 4em;
    padding: 0;
}

.user_info {
    margin-bottom: 1em;
}

#save_account {
    margin-top: 1%;
}

.submit_button {
    display: block;
    height: 3em;
    width: 10em;
    margin: 0 auto;
}

/* Password Reset */
#password_reset_div {
    margin-top: 2em;
    text-align: center;
}

.password_reset_button {
    width: 8em;
    height: 3em;
}

#password_reset_errors_div {
    width: 15em;
    margin: auto;
}

/* Password Reset Confirm */
#password_reset_confirm_div {
    text-align: center;
    margin-top: 2em;
}

#password_reset_confirm_errors {
    margin: auto;
}

/* Password Reset Complete */
#password_reset_complete_div {
    margin-top: 2em;
    text-align: center;
}

/* Request new email */
#request_new_email_div {
    text-align: center;
    margin-top: 2em;
}

#request_new_email_button {
    width: 12em;
    height: 2em;
}

#request_new_email_message_div {
    width: 30em;
    margin: auto;
    text-align: left;
}

.tier_2_ul {
    margin-left: 2em;
}

.verify_email_div {
    text-align: center;
    margin-top: 2em;
}

/* Log In */
#login_form {
    margin-bottom: 1em;
}

.reset_password_link {
    font-size: 1em;
    margin: 5em;
}

#login_div {
    text-align: center;
}

#login_div_inner {
    display: inline-block;
    padding: 2%;
}

#login_div_inner input {
    text-align: center;
}

/*  Old Sign Up */

::placeholder {
    color: #000000;
    text-align: center;
}

#signup {
    text-align: center;
}

@media (max-width: 576px) {
    .captcha {
        margin-left: 3em;
    }
}

.captcha {
    margin-left: 0em;
}

#sign_up_form_div {
    text-align: center;
    margin-top: 1%;
    border-bottom: 1px solid #cecece;
}

#signup_button_div {
    text-align: center;
}

#signup_button {
    width: 18em;
    height: 4em;
    padding: 0;
}

@media (max-width: 576px) {
    .signup_field_div {
        margin-top: 3%;
        margin-bottom: 1%;
        text-align: center;
    }
}

#signup_table input {
    margin: 0;
}

#signup_table .help_text {
    text-align: left;
}

#signup_table, #signup_table td {
    border: 0;
}

#captcha_div {
    margin-top: 1em;
}

@media (max-width: 576px) {
    #signup_inner {
        display: inline-block;
        text-align: left;
        width: 100%;
        padding: 12px 20px;
        margin: 8px 0;
        box-sizing: border-box;
    }

    #signup_inner input,
    #signup_inner select {
        display: inline-block;
        text-align: center;
        padding: 1%;
        width: 100%;
    }

    #timezone_label, #captcha_div {
        text-align: center;
    }
}

@media (min-width: 577px) {
    #signup_inner {
        display: inline-block;
        text-align: left;
        margin: 0 auto;
        width: 75%;
    }

    #signup_inner input,
    #signup_inner select {
        display: inline-block;
        text-align: center;
        padding: 1%;
        width: 100%;
    }

    .signup_field_info {
    }

    #timezone_label, #captcha_div {
        text-align: center;
    }
}

@media (min-width: 992px) {
    #signup_inner {
        display: inline-block;
        width: auto;
        position: relative;
    }

    .signup_field_section {
        position: relative;
        left: 26%;
    }

    .signup_field_info {
        text-align: left;
    }

    #signup_inner input,
    #signup_inner select {
        padding: 0;
        width: 20em;
    }

    #timezone_label, #captcha_div {
        text-align: left;
        position: relative;
        left: 9%;
    }
}

#signup_inner #signup_id_captcha_1 {
    width: 6em;
    position: relative;
    bottom: .75em;
}

.errorlist {
    color: red;
}


/* test Sign Up
#signup_button {
    width: 18em;
    height: 4em;
    padding: 0;
}

#signup_form_div_outer {
    text-align: center;
}

#signup_form_div {
    display: inline-block;
    text-align: left;
}

.help_text {
    text-align: left;
}

#signup_form_div select, #signup_form_div input {
    width: 20em;
}

#signup_form_div #signup_id_captcha_1 {
    width: 5em;
}

 */

/* Password Change */
#password_change {
    text-align: center;
}

#password_change_inner {
    display: inline-block;
    text-align: left;
    padding: 2%;
}

.password_change_field {
    margin-bottom: 2%;
}

#password_change_button_div {
    text-align: center;
}

#password_change_button {
    width: 18em;
    height: 4em;
    padding: 0;
}


/* Home */
#home_div {
    text-align: center;
}

#home_div_inner {
    display: inline-block;
    text-align: center;
    width: 100%;
    padding: 2%;
}

#home_title {
    margin-top: 3%;
}

.home_instruction_header {
    margin-top: 3%;
}

.demo_img {
    display: block;
    width: 400px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border: 2px solid black;
}

.demo_img_caption{
    margin-top: .5em;
}

.demo_img_figure {
    margin-bottom: 6em;
}

#unauthenticated_slogans {
    margin-bottom: 2em;
}

/* navbar */

.navbar {
    display: block;
    align-items: center;
    justify-content: space-between;
    padding: 0px;
    background-color: #ffffff;
    color: #000000;
    margin: 0 0 0 0;
}

.desktop-logged_in_as {
    font-size: 16px;
}

.desktop-menu li {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.9);
    list-style: none;
    text-align: center;
    display: inline-block;
    border-left: 3px solid rgba(232, 232, 232, 0.8);
    margin: 1% 0;
    padding-left: .2%;
    padding-right: 1%;
}

.nav-links a {
    color: #000000;
}

.nav-item-a-div {
}

.nav-links a:hover {
    color: rgb(255, 255, 255);
}

.desktop-menu a:hover {
    color: rgb(125, 125, 125);
}


/*RESPONSIVE NAVBAR MENU STARTS*/
/* CHECKBOX HACK */
#checkbox_toggle[type=checkbox] {
    display: none;
}

/*HAMBURGER MENU*/
.hamburger {
    display: none;
    font-size: 24px;
    user-select: none;
}

.mobile-menu {
    display: none;
}

.mobile-logo {
    display: none;
    background-color: rgba(255, 0, 0, 0);
}

/* Hide / Un-hide Mobile Menu */
@media (max-width: 576px) {
    .mobile-menu {
        display: none;
        position: absolute;
        background-color: rgb(240, 240, 240);
        right: 0;
        left: 0;
        text-align: center;
        padding: 16px 0;
        list-style: none;
    }

    .mobile-logo {
        display: block;
        background-color: rgba(0, 0, 0, 0.4);
    }

    .nav-links .desktop-menu {
        display: none;
    }

    .mobile-menu li:hover {
    }

    .mobile-menu div + div {
    }

    .mobile-menu div:hover {
        background-color: #afafaf;
    }

    .mobile-menu-item {
        padding: 2% 0;
        transition: 0.75s ease-out;
    }

    .mobile-logged_in_as {
    }

    #checkbox_toggle[type=checkbox]:checked ~ .mobile-menu {
        display: block;
    }

    .hamburger {
        display: block;
        background-color: rgba(0, 0, 0, 0.4);
    }

    .dropdown {
        left: 50%;
        top: 30px;
        transform: translateX(35%);
    }

    .dropdown li:hover {
        background-color: #4c9e9e;
    }
}


