#addfood {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
    text-align: center;
    line-height: 50px;
}

#addfood:hover {
    background-color: #45a049;
    box-shadow: 0 4px 8px #4CAF50;
}

#addfood:active {
    background-color: #3e8e41;
    /* Help was granted by my tutor Robert Hollander as I was having trouble with the keyframe animation */
    animation: pressAnimation 0.2s ease-in-out;
}

@keyframes pressAnimation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

/* Citation ends here */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #353535;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    box-sizing: border-box;
    background-color: grey;
}

.hidden {
    display: none;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 24px;
    /* Added by tutor Robert Hollender to make button look more professional */
    cursor: pointer;
    /* Citation ends here */
}

#intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 35px;
    text-align: center;
    background-color: #353535;
    padding: 20px;
    border-radius: 25px;
}


#caloriesCard {
    background-color: #353535;
    border-radius: 25px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.macros-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
}

.macro-item {
    background-color: #353535;
    border-radius: 25px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* align-items: center; */
}

#proteinProgressBar {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

#proteinProgress {
    height: 20px;
    background-color: #353535;
    width: 50%;
}

#carbsProgressBar {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

#carbsProgress {
    height: 20px;
    background-color: #353535;
    width: 50%;
}


#fatProgressBar {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
    border-color: black;
}

#fatProgress {
    height: 20px;
    background-color: #353535;
    width: 50%;
    border-color: black;
}

.bar {
    border-color: black
}

#totalmeals {
    margin-top: 20px;
    background-color: #353535;
    border-radius: 25px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.meal-card {
    background-color: #353535;
    border-radius: 25px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    font-size: 14px;
    width: 40%;
    max-width: 300px;

}

#mealslist {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
