*{
    font-family: Arial, Helvetica, sans-serif;
}

html,body{
    margin: 0;
    padding: 0;
}

#main-content{
    margin-left: 10vw;
    margin-right: 10vw;
}

/* BASE NAV */

#top-nav{
    margin: 5vh 1vw;
    display: flex;
    flex-direction: row;
    gap: 5vw;
    justify-content: flex-start;
    align-items: center;
    font-size: x-large;
}

#top-nav div{
    display: flex;
    gap: 50px;
}

#top-nav-links a{
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
}

#top-nav-links a:visited{
    color: black;
}

/* tracking subjects in top nav  */

#logout-nav{
    font-size: large;
    align-self: flex-end;
}

/* main navigation buttons */
.nav-button{
    background-color: #90d5f5;
    color: #9B5DE5;
    font-size: large;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 5px;
    max-width: 7rem;
    border: 0px;
    text-align: center;
}

#main-content{
    min-height: 60vh;
}

footer{
    /* position: absolute;
    bottom: 0; */
    background-color: #90d5f5;
    max-height: 15vh ;
    min-height: 15vh;
    min-width: 100%;
    margin-top: 50px;
    
    display: flex;
    flex-direction: row;
    /* gap: 3vw; */
    justify-content: space-evenly;
    align-items: center;

    min-width: 100%;
}
footer div{
    display: flex;
    flex-direction: row;
    gap: 15px;
}

/* viewing meals  */
/* for the aggregated meals dropdown */
.dropdown-content{
    display: none;
}

.show{
    display: block;
}

.entry-wrapper{
    display: flex;
    flex-direction: column;
}

#entry-name{
    font-weight: bold;
    font-size: larger;
}

.entry-data{
padding-bottom: 3px;
}

.entry-data-wrapper{
    display: flex;
    flex-direction: column;
}

/* meal entry  */
/* meal name */

#meal-main-wrapper{
    display: flex;
    justify-content: space-evenly;
    max-width: 50vw;
}
#name-input-wrapper h3,
#name-input-wrapper h2
{
    margin: 0 5px 0 0 ;
}

#datetime-wrapper h2{
    margin: 0 5px 0 0;
}

#name-input-wrapper input[type=text]{
    font-size: larger;
}
#name-input-wrapper{
    display: flex;
    flex-direction: row;
}

/* calories input */
#calories-input-wrapper{
    display: flex;
    flex-direction: row;
    margin: 15px 0;
}
#calories-input-wrapper input[type=number]{
    font-size: large;
    max-width: 6rem;
}
#calories-input-wrapper h3{
    margin: 0 5px 0 0;
}

/* macroinput */
#macro-input-wrapper input[type=number]{
    max-width: 5rem;
}
#macro-input-wrapper{
    display: flex;
    flex-direction: column;
    max-width: 200px;
    min-width: 10vw;
    align-items: flex-end;
    gap: 10px;
    font-size: large;
}

/* macro calculator */
#calcResult{
    max-width: 50%;
    font-size: medium;
    align-self: center;
}

#calcButtons{
    margin: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.calc-button-row{
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.calc-button-row input[type=button]{
    min-width: 20%;
}
.calc-button-row button{
    min-width: 20%;
}

.calc-button-row button{
    min-height: 20%;
}

/* meal entry help wrapper  */
#help-wrapper{
    display: flex;
    flex-direction: column;
}

.help-step{
    font-weight: bold;
}

/* nav cards  */
.nav-card-wrapper{
    margin: 2vh 5vw;
    display: flex;
    flex-direction: column;

    /* border: 4px solid #00BBF9 ; */
    /* border-radius: 20px; */

}

.calc-button{
    font-size: larger;
    background-color: #90d5f5;
    color: #9B5DE5;
    border: none;
    padding: 0.3rem;
}

.operand-button{
    margin-left: 5px;
    font-size: 1.6rem;
    padding: 0px;
}

.nav-card-wrapper >:is(h2,h3) {
    align-self: center;
    margin:  10px 0;
}

.card-links{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin: 10px 0;
}

.card-link{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-subject-link{
    font-size: larger;
    text-decoration: none;
}
.card-subject-link:visited{
    color: black;
}



/* ADD workout */


/* PROFILE */
#user-nav{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* PROFILE : dashboard */
#dashboard-wrapper{
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
}

#dash-category-wrapper{
    display: flex;
    flex-direction: row;
    gap: 50px;
    width: 75vw;
    /* height: 35vh; */
    justify-content: space-evenly;
}

.dashboard-category{
    display: flex;
    flex-direction: column;
    font-size: x-large;
    justify-content: space-evenly;
}

.dashboard-category .nav-button{
    white-space: normal;
    max-width: 7rem;
    /* min-width: 60%; */
    /* align-self: center; */
    margin-top: 30px;
}

.dash-fulldate{
    font-size: 1rem;
}
#user-nav h4{
    margin: 0;
}
#user-nav h5{
    margin: 0;
}

#add-workouts-nav{
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
}

/* VIEW WORKOUTS */
.workout-day{
    font-size: larger;
    font-weight: bold;
}

.workout-name{
    font-size: larger;
    font-weight: bold;
}

/* ADD WORKOUT  */

#workout-form{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    font-size: larger;
    /* background-color: #90d5f5; */
}

#weight-format{
    max-width: 100px;
   
}


.form-section{
    display: flex;
    flex-direction: column;
    width: 70%;
    /* padding-left: 10%; */
    /* background-color: #90d5f5; */
    gap: 5px;
    font-size: large;
}
.form-section h3{
    margin: 0 0 5px 0;
    text-decoration: underline;
}
.form-section button{
    font-size: large;
}

.form-section input[type=datetime-local]{
    max-width: 15rem;
    font-size: larger;
}
.form-section input[type=text]{
    font-size: larger;
}
.form-section input[type=number]{
    font-size: larger;
}
.form-section select{
 font-size: larger;
} 

.readonly-input{
    font-weight: bold;
    font-size: large;
    border: none;
}

/* reps and sets  */
.movement-wrapper{
    display: flex;
    flex-direction: column;
}
#sets-wrapper{
    display: flex;
    flex-direction: column;
    /* margin-left: 20px; */
    background-color: #CAE2F9;
    /* padding-top: 20px; */
}
#set-wrapper{
    display: flex;
    flex-direction: row;
    margin-left: 20px;
    /* margin-right: 20px; */
    height: 30px;
}

.movement-controls{
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid black;
}
.movement-controls input{
    max-width: 50%;
}
.exercise-sets-title{
    font-weight: bold;
}


/* view workouts  */

.workout-date{
    font-weight: normal;
    /* font-size: small; */
}
.movement-name{
    text-decoration: underline;
    font-size: large;
}


.sets-wrapper{
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 5px;
}

.set{
    /* background-color: #9B5DE5; */
    max-width: 50vw;
    margin: 5px 0 0 10px;
}

.workout{
    display: flex;
    flex-direction: column;
}

/* LOGIN PAGE  */
#login-form{
    max-width: 25vw;
    padding: 0 10vw 0 10vw ;
    display: flex;
    flex-direction: column;
    margin-bottom: 5vh;
}

#login-form input{
    font-size: large;
}
#login-form > #submit{
    padding: 0.3rem;
    border-radius: 5px;
    width: 50%;
    align-self: center;
}

/* SIGNUP FORM  */

#signup-form{
    max-width: 25vw;
    padding: 0 10vw 0 10vw ;
    display: flex;
    flex-direction: column;
    margin-bottom: 5vh;
}

#signup-form input{
    font-size: large;
}
#signup-form > #submit{
    padding: 0.3rem;
    border-radius: 5px;
    width: 50%;
    align-self: center;
}

#pastworkouts{
    display: none;
}
#rest-timer{
    display: none;
}

/* water entry form */
#water-entry-form{
    max-width: 25vw;
    padding: 0 10vw 0 10vw ;
    display: flex;
    flex-direction: column;
    margin-bottom: 5vh;
}

@media screen and (max-width:900px) {
    .set{
        max-width: fit-content;
    }
}

@media screen and (max-width:500px) {

    .nav-card-wrapper{
        height: 60vh;
    }

    .card-links{
        flex-direction: column;
        /* height: 100%; */
        gap: 20px;
    }
    /* setting icon size on mobile */
    .card-link img{
        width: 100px;
    }

    #login-form{
        max-width: 100%;
        padding: 0 10vw 0 10vw ;
        display: flex;
        flex-direction: column;
        margin-bottom: 5vh;
    }

    #signup-form{
        max-width: 100%;
        padding: 0 10vw 0 10vw ;
        display: flex;
        flex-direction: column;
        margin-bottom: 5vh;
    }

    #top-nav{
        /* display:none; */
        margin: 2vh 1vw;
        font-size: large;
        flex-direction: column;
    }
    #top-nav div{
        display: flex;

        gap: 15px;
    }

    /* MEAL ENTRY SECTION */

    #name-input-wrapper{
        display: flex;
        flex-direction: column;
        font-size: medium;
    }

    #calories-input-wrapper{
        font-size: medium;
    }

    #meal-entry-form{
        max-width: 50vw;

    }

    /* MEAL CALCULATOR  */
    #useCalcButton{
        max-width: 100%;
        align-self: center;
        font-size: large;
        display: flex;
        align-items: center;
    }

    #meal-main-wrapper{
        display: flex;
    }
    #calculator-modal{
        min-width: 48vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-self: flex-end;
        /* padding-left: 15px; */
    }
    #sum-button{
        min-width: 50%;
        /* align-self: flex-end; */
        align-self: center;
    }
    #use-button{
        min-width: 50%;
        align-self: center;
    }
    .button-disabled{
        background-color: #aac2cd;
    }

    .clearMacroButton{
        background-color: #90d5f5;
        color: #9B5DE5;
        font-size: large;
        border: 0px;
    }
    /* meal coponents  */
    #component-list-controls{
        margin-top: 20px;
    }

    #meal-components-wrapper{
        display: flex;
        flex-direction: column;
        padding-left: 50px;
    }

    .component{
        margin-top: 5px;
        display: flex;
        flex-direction: column;
        max-width: 50%;
    }

    .editComponentDiv{
        display: flex;
        flex-direction: column;
    }

    #dashboard-wrapper{
        align-items: center;
    }
    #dash-category-wrapper{
        flex-direction: column;
        /* align-items: center; */
        gap: 0px;
    }

    .dashboard-category{
        display: flex;
        flex-direction: column;
    }

    /* WORKOUT INPUT FORM  */
    #workout-form{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* margin-left: 10%; */
    }
    .form-section{
        min-width: 70%;
        width: 85%;
    }

    /* Past workouts */

    #pastworkouts{
        display: none;
    }
    /* rest timer */
    #rest-timer-wrapper{
        width: 50px;
        /* height: 150px; */
        background-color: #9B5DE5;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        gap: 5px;

        padding: 5px;
        border-radius: 10px 0 0 10px;

        position: fixed;
        /* margin-left: auto; */
        right: 0px;
        z-index: 1000;
        bottom: 80px;
    }

    #rest-timer{
        display: none;
    }

    #rest-timer-wrapper img{

        align-self: center;
    }

    #rest-timer-wrapper span{
        align-self: center;
    }

    #timer-display{
        font-size: xx-large
    }

    #sets-wrapper{
        padding: 5px;
        border-radius: 5px;
        gap: 5px;
    }

    #set-wrapper{
        display: flex;
        margin-left: 0px;
        height: 30px;
        /* gap: 5px; */
        justify-content: space-between;
    }
    .setinput{
        max-width: 3rem;
    }


    #main-content{
        margin-left: 5px;
        margin-right: 4vw;
    }

}