*, html, body {
   padding: 0; 
   margin: 0;
   font-family: 'Inter', sans-serif;
}

html {
    overflow: hidden;
    overscroll-behavior: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
 
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100dvh;
    background: linear-gradient(to bottom, #d8d8dc 50%, #F5F6F8 50%);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#scroller {
    width: 100%;
    height: calc(100dvh - 75px);
    overflow-y: scroll;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* HEADER */

header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    width: 100%;
    padding: 20px 0 30px 0;
    box-sizing: border-box;
    background-color: #F5F6F8;
}

header>h1 {
    font-size: 18px;
    font-weight: 600;
}

header>i {
    position: relative;
    font-size: 20px;
    padding: 20px;
}

header>i>a {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    -webkit-touch-callout: none;
}

/* TITLE */
#title-wrapper {
    width: 100%;
    padding: 31px 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #EEEEEF;
    background-color: #FEFFFE;
}

#title {
    display: flex;
    flex-direction: column;
    gap: 6px
}

#top {
    display: flex;
    flex-direction: row;
    align-items: start;
    gap: 8px;
}

#top>#verified {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    margin-top: 1px;
}

#top>#verified>i {
    position: absolute;
}

#top>#verified>#check-background {
    color: #16D374;
    font-size: 21px;
}

#top>#verified>#check {
    color: #FFF;
    font-size: 11px;
    margin-top: 1px;
}

#top>h1 {
    font-weight: 700;
    font-size: 22px;
    word-break: break-all;
    max-width: 100%;
    line-height: 1.1;
    box-sizing: border-box;
}

#title>h1 {
    font-weight: 400;
    font-size: 14px;
    color: #777777;
}

/* SERVINGS SECTION */

#calcWrapper {
    width: 100%;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    gap: 20px;
    background-color: #FEFFFE;
}

#calcWrapper>label>span {
    position: absolute;
    top: 12px;
    right: 8px;
}

#calcWrapper>label {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    box-sizing: border-box;

    font-size: 16px;
    font-weight: 400;
}

#calcWrapper>label>span,
#calcWrapper>label>select,
#calcWrapper>label>input {
    font-size: 16px;
    font-weight: 500;
    color: #006eff;
}

#calcWrapper>label>select,
#calcWrapper>label>input {
    height: 43px;
    box-sizing: border-box;
    text-align-last: right;

    border-radius: 5px;
    border: 1px solid rgb(158, 158, 158);
    background-color: transparent;
}

#calcWrapper>label>select {
    padding-top: 4px;
}

#calcWrapper>label>select:focus,
#calcWrapper>label>input:focus {
    outline: none;
    border: 1px solid #006eff;
}

#calcWrapper>label>#servingSizeInput{
    padding-right: 17px;
    width: 79px;
}

#calcWrapper>label>#numberServingsInput{
    width: 90px;
    padding-right: 8px;
}

#calcWrapper>label>#mealInput{
    width: 120px;
    padding-bottom: 4px;
    padding-right: 8px;
}

/* DATA */

#stats {
    width: 100%;
    padding: 0 20px 30px 20px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    border-bottom: 1px solid #EEEEEF;
    background-color: #FEFFFE;
}

#dataWrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dataWrapper>ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 85px;
    height: 85px;
    gap: 8px;
}

.circular-chart {
    position: absolute;
}

.circular-chart {
    margin-top: -2px;
    margin-left: -3px;
}

#dataWrapper>ul {
    margin-top: 8px;
    margin-left: -2px;
}

#dataWrapper>ul>#calories {
    line-height: 0;
    font-weight: 700;
    font-size: 20px;
}

#dataWrapper>ul>li>span {
    line-height: 0;
    font-weight: 400;
    font-size: 14px;
}

.circle {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
}

@keyframes progress {
    0% {
        stroke-dasharray: 0 100;
    }
}

#cfp {
    position: relative;
    box-sizing: border-box;
    margin-left: -3px;
    width: calc(100% + 3px);
    z-index: 999;
    display: flex;
    flex-direction: row;
    justify-content: end;
}

#cfp>div {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#cfp>div>#perc {
    font-size: 14px;
    font-weight: 400;
}

#cfp>div>#g {
    font-size: 17px;
    font-weight: 500;
}

#cfp>div>h2 {
    font-size: 14px;
    font-weight: 400;
}

/* NUTRITION FACTS */

#nutrientsWrapper {
    width: 100%;
    box-sizing: border-box;
    background-color: #FEFFFE;
}

#nutrientsWrapper>#dropdown {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px;
}

#nutrientsWrapper>#dropdown>div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #006eff;
}
#nutrientsWrapper>#dropdown>div>h1 {
    font-size: 14px;
    font-weight: 600;
}

#nutrientsWrapper>#dropdown>h1 {
    font-size: 16px;
    font-weight: 500;
}

#nutrientsWrapper>#dropdown>div>#show {
    transform: scaleY(1);
    transition: 0.1s linear;
}


#nutrientsWrapper>#dropdown>div>#hide {
    transform: scaleY(-1);
    transition: 0.1s linear;
}

.nutrients {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.nutrients.hide {
    height: 0;
    overflow-y: hidden;
}

.nutrients.show {
    border-top: 1px solid #EEEEEF;
    height: auto;
}

.nutrients>.n {
    padding-right: 20px;
    padding-left: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    
}

.nutrients>.n:first-child {
    padding-top: 20px;
}
.nutrients>.n:last-child {
    padding-bottom: 30px;
}

.nutrients>.n>h1 {
    font-size: 16px;
    font-weight: 400;
}

.nutrients>.n>.sub {
    color:#777777;
}

.nutrients>.n>.nTitle.sub {
    margin-left: 20px;
}


/* debugging */
#debuggingWrapper {
    width: 100%;
    background-color: #F5F6F8;
    padding: 60px 20px 20px 20px;
    box-sizing: border-box;
    margin-top: auto;
    display: flex;
    justify-content: center;
}

#debugging {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#sourceWrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
#sourceWrapper>p,
#sourceWrapper>a {
    font-size: 14px;
    white-space: nowrap;
}

#sourceWrapper>p {
    color: #777777;
    font-weight: 400;
}

#sourceWrapper>a {
    color: #006eff;
    font-weight: 500;
    text-decoration: none;
}

#debugging>p {
    word-break: break-all;
    text-align: justify;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    opacity: 0.075;
    line-height: 1.2;
}

/* @media screen and (orientation: landscape) {
    body {
        display: none;
    }
} */