.centered-container {
    width: 100%;
    margin: 0px auto;
}

#nutrient-keyword {
  width: 100%;
  border-radius: 50px;
}

#food-search-container > #look-up-nutrients-heading {
    text-align: center;
    margin: 25px 0px !important;
    color: var(--base) !important;
    font-weight: bold !important;
}

#look-up-nutrients,
#get-nutrients {
    padding-top: 8px;
    margin-top: -3px;
    width: 100%;
}

#food-search-results-container {
max-width: 1150px;
margin: 0 auto;
}

.food-tile {
    width: 100%;
    margin: 20px auto;
}

.food-tile-header:hover {
        background: var(--base-2);
}

.food-tile-header {
padding: 15px;
    color: var(--contrast-2);
    font-weight: 500;
    font-size: 22px;
    cursor: pointer;
    margin-bottom: 0px!important;
    border-bottom: .1px solid var(--contrast-2);
}

.food-tile-ingredients {
    display: none!important;
    color: var(--contrast-2);
    padding: 10px 25px 12px 25px;
    font-size: 15px;
    background: var(--base-2);
    margin-bottom: 0;
}

.serp-nutrient-name {
    color: var(--contrast-2);
}

/* Toggle switch element */

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--base);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--base);
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 28px;
}

.slider.round:before {
    border-radius: 50%;
}

/* **************** */

.show-commercial-foods-toggle {
    margin: 0;
}

.show-commercial-foods-toggle > span:first-child {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
}

/* ANALYZER */

#analyzer-container {
    visibility: hidden;
}

#analyzer-container hr {
    margin: 15px 0;
}

#food-analyzer-serving-size-selector {
    font-size: 16px;
    font-weight: 700;
    margin-top: 5px;
}

div#analyzer-container > div.columns h1#food-analyzer-title {
    color: #4f4f4f!important;
    font-weight: bold!important;
    font-size: 23px!important;
}

#food-analyzer-serving-heading {
    margin: 20px 0px 0px 0px!important;
    border: 0!important;
    padding-bottom: 0!important;
    font-size: 18px!important;
    color: #333333;
    font-weight: bold;
}

#nutrition-facts {
    position: relative;
    width: 100%;
    min-width: 300px;
    /* max-width: 400px; */
    margin: 0px auto; 
    border: 2px solid #4f4f4f;
    border-radius: 6px;
    padding: 8px 8px 40px 8px;
    background-color: #fff;
    overflow: hidden;
}

#nutrition-facts > h2:first-of-type {
    color: #4f4f4f;
    font-size: 22px;
    text-transform: capitalize;
    font-weight: bold;
}

.view-more-nutrients-container {
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    white-space: nowrap;
}

.view-more-nutrients-container > div {
    background-color: var(--base);
    color: #fff;
    display: inline-block;
    vertical-align: bottom;
}

.view-more-nutrients-container > div:first-child {
    width: 50%;
    height: 18px;
    border-bottom-left-radius: 3px;
    margin-right: -6px;
}

.view-more-nutrients-container > div:nth-child(2) {
    width: 51%;
    height: 36px;    
    padding-top: 7px;
    border-bottom-right-radius: 3px;
    border-top-left-radius: 6px;
}

.view-more-nutrients-container > div:nth-child(2) > p {
    text-align: center;
    font-size: 16px;
    cursor: pointer;
}

.view-more-nutrients-container > div:nth-child(2) > p::before {
    content: url('../icons/expand-arrow.png');
    width: 18px;
    margin: 2px 8px 0px 0px;
}

.view-more-nutrients-container > div:nth-child(2) > p.expanded::before {
    content: url('../icons/retract-arrow.png');
    width: 18px;
    margin: 2px 8px 0px 0px;
}

.nutrient-line-hidden {
    display: none;
}

.nutrition-separator {
    width: 100%;
    background-color: #4f4f4f;
}

.nutrition-separator-sm {
    height: 1px;
}

.nutrition-separator-md {
    height: 4px;
}

.nutrition-separator-lg {
    height: 10px;
}

.serving-size-container > span {
    font-size: 14px;
    color: #4f4f4f;
}

.serving-size-container > span:first-child {
    text-transform: capitalize;
}

.serving-size-container > span:nth-child(2) {
    float: right;
    position: relative;
    top: 9px;
    font-weight: bold;
}

.nutrition-label {
    font-size: 12px;
    color: #4f4f4f;
    font-weight: bold;
}

.calories-container > span {
    font-size: 19px;
    color: #4f4f4f;
    font-weight: bold;
}

.calories-container > span:first-child {
    text-transform: capitalize;
}

.calories-container > span:nth-child(2) {
    float: right;
    position: relative;
    top: 4px;
}

.nutrient-container > span {
    font-size: 15px;
    color: #4f4f4f;
}

.nutrient-container > span:first-child {
    text-transform: capitalize;
    font-weight: bold;
}

.nutrient-container > span:nth-child(2) {
    float: right;
    position: relative;
    top: 8px;
}

canvas#nutrient-chart {
    width: 100%!important;
    height: 400px;
    margin: 80px auto;
    display: none;
}

.food-ingredients {
    width: 100%;
    color: #4f4f4f;
    font-size: 15px;
    text-transform: uppercase;
    margin: 30px
}

#related-recipes-container {
    width: 80%;
    margin: 30px auto;
}

div#related-recipes-container > a.related-recipe {
    padding-top: 7px;
    margin: 3px 3px 0 0;
    font-size: 14px;
}

#nutrient-amounts-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    text-align: left;
}

.nutrient-amount-tile {
    display: inline-block;
    width: 30%;
    margin: 0 20px 20px 0px;
}

@media (max-width: 768px) {
    .nutrient-amount-tile {
    display: inline-block;
    width: 100%;
    margin: 0 20px 20px 0px;
}
}

.nutrient-amount-tile > p:first-child {
    background-color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    padding: 5px 0;
    margin: 0;
}

.nutrient-amount-tile > p:nth-child(2) {
    background-color: var(--base);
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    width: 100%;
    padding: 15px 0;
    margin-bottom: 0!important;
}

#food-analyzer-disclaimer {
    font-size: 13px;
}

/* SPINNER */
.cuke-loader {
    margin: 100px auto;
    width: 40px;
    height: 40px;
    position: absolute;
    left: 50%;
    text-align: center;    
    -webkit-animation: sk-rotate 2.0s infinite linear;
    animation: sk-rotate 2.0s infinite linear;
    display: none;
  }
  
  .dot1, .dot2 {
    width: 60%;
    height: 60%;
    display: inline-block;
    position: absolute;
    top: 0;
    background-color: var(--base);
    border-radius: 100%;    
    -webkit-animation: sk-bounce 2.0s infinite ease-in-out;
    animation: sk-bounce 2.0s infinite ease-in-out;
  }
  
  .dot2 {
    top: auto;
    bottom: 0;
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
  }
  
  @-webkit-keyframes sk-rotate { 100% { -webkit-transform: rotate(360deg) }}
  @keyframes sk-rotate { 100% { transform: rotate(360deg); -webkit-transform: rotate(360deg) }}
  
  @-webkit-keyframes sk-bounce {
    0%, 100% { -webkit-transform: scale(0.0) }
    50% { -webkit-transform: scale(1.0) }
  }
  
  @keyframes sk-bounce {
    0%, 100% { 
      transform: scale(0.0);
      -webkit-transform: scale(0.0);
    } 50% { 
      transform: scale(1.0);
      -webkit-transform: scale(1.0);
    }
  }