/*!*******************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./public/src/styles/style.css ***!
  \*******************************************************************************/
@import url(https://fonts.googleapis.com/css2?family=Averia+Libre:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Kirang+Haerang&display=swap);
/*!***********************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./public/src/styles/style.css (1) ***!
  \***********************************************************************************/
@import url(https://fonts.googleapis.com/css2?family=Averia+Libre:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Kirang+Haerang&family=Neucha&display=swap);
/*!**********************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./public/src/styles/dropdown.css ***!
  \**********************************************************************************/
  #nutrient-dropdown-label {
    font-size: 12px;
  }
  
  #nutrient-dropdown select {
    min-height: 20px;
  }
/*!**************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./public/src/styles/nutrientInfo.css ***!
  \**************************************************************************************/
  #nutrient-info p {
    line-height: 6px;
  }

  /* Hide the default checkbox */
  .nutrient-checkbox {
    opacity: 0;
    cursor: pointer;
  }

  /* Create a custom checkbox */
  .checkmark {
    top: 0;
    left: 0;
    border: 1px solid #ddd;
    margin-right: 6px;
  }

  /* Style for when the checkbox is checked */
  .nutrient-checkbox:checked~.checkmark {
    background-color: #2196F3;
  }

  /* Create the checkmark/indicator (hidden when not checked) */
  .checkmark:after {
    content: "";
    position: absolute;
    display: none;
  }

  /* Show the checkmark when checked */
  .nutrient-checkbox:checked~.checkmark:after {
    display: block;
  }

  /* Style the checkmark/indicator */
  .checkmark:after {
    left: 5px;
    top: 0px;
    width: 8px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }

  @media screen and (min-width: 670px) {
    .checkmark {
      /* Adjustments for larger screens */
      height: 25px;
      width: 25px;
    }

    /* Style the checkmark/indicator */
    .checkmark:after {
      left: 4px;
      top: 0px;
      width: 10px;
      height: 10px;
      border: solid white;
      border-width: 0 2px 2px 0;
      transform: rotate(45deg);
    }
  }

  /* Media query for mobile devices */
  @media screen and (min-width: 670px) {

    .nutrient-checkbox {
      height: 20px;
    }
  }

  .ecoscore-icon {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    margin-left: 5px;
}

.product-item-description--ecoscore {
  display: flex;
}
/*!********************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./public/src/styles/slider.css ***!
  \********************************************************************************/

 input {
   width: 100%;
  }
 
 /* Style for WebKit browsers */
  input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: #ddd; /* Background color */
  }
  
  input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    background: blue; /* Thumb color */
    cursor: pointer;
    margin-top: -2px;
  }
  
  /* Style for Firefox */
  input[type=range]::-moz-range-track {
    width: 100%;
    height: 8px;
    background: #ddd;
  }
  
  input[type=range]::-moz-range-thumb {
    height: 24px;
    width: 24px;
    background: blue;
    cursor: pointer;
    margin-top: -2px;
  }
  
/*!**************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./public/src/styles/dropdown.css (1) ***!
  \**************************************************************************************/
  #nutrient-dropdown-label {
    font-size: 12px;
  }
  
  #nutrient-dropdown select {
    min-height: 20px;
  }
/*!******************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./public/src/styles/nutrientInfo.css (1) ***!
  \******************************************************************************************/
  #nutrient-info p {
    line-height: 6px;
  }

  /* Hide the default checkbox */
  .nutrient-checkbox {
    opacity: 0;
    cursor: pointer;
  }

  /* Create a custom checkbox */
  .checkmark {
    top: 0;
    left: 0;
    border: 1px solid #ddd;
    margin-right: 6px;
  }

  /* Style for when the checkbox is checked */
  .nutrient-checkbox:checked~.checkmark {
    background-color: #2196F3;
  }

  /* Create the checkmark/indicator (hidden when not checked) */
  .checkmark:after {
    content: "";
    position: absolute;
    display: none;
  }

  /* Show the checkmark when checked */
  .nutrient-checkbox:checked~.checkmark:after {
    display: block;
  }

  /* Style the checkmark/indicator */
  .checkmark:after {
    left: 5px;
    top: 0px;
    width: 8px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }

  @media screen and (min-width: 670px) {
    .checkmark {
      /* Adjustments for larger screens */
      height: 25px;
      width: 25px;
    }

    /* Style the checkmark/indicator */
    .checkmark:after {
      left: 4px;
      top: 0px;
      width: 10px;
      height: 10px;
      border: solid white;
      border-width: 0 2px 2px 0;
      transform: rotate(45deg);
    }
  }

  /* Media query for mobile devices */
  @media screen and (min-width: 670px) {

    .nutrient-checkbox {
      height: 20px;
    }
  }

  .ecoscore-icon {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    margin-left: 5px;
}

.product-item-description--ecoscore {
  display: flex;
}
/*!************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./public/src/styles/slider.css (1) ***!
  \************************************************************************************/

 input {
   width: 100%;
  }
 
 /* Style for WebKit browsers */
  input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: #ddd; /* Background color */
  }
  
  input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    background: blue; /* Thumb color */
    cursor: pointer;
    margin-top: -2px;
  }
  
  /* Style for Firefox */
  input[type=range]::-moz-range-track {
    width: 100%;
    height: 8px;
    background: #ddd;
  }
  
  input[type=range]::-moz-range-thumb {
    height: 24px;
    width: 24px;
    background: blue;
    cursor: pointer;
    margin-top: -2px;
  }
  
/*!***************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./public/src/styles/openFoodFacts.css ***!
  \***************************************************************************************/
@tailwind base;
@tailwind components;
@tailwind utilities;

.product-item {
    display: flex;
    justify-content: space-between;
    height: 110px;
    margin-bottom: 10px;
    overflow: hidden;
    padding: 6px;
    background-color: #e1cdc5;
    border-radius: 10px;
}

.product-item:hover {
    background-color: #dbb9ac;
}

/* For the description and image divs inside product-item */
.product-item-description {
    flex: 0 0 50%; /* Takes up 50% of width */
    margin-right: 10px; /* Add some spacing between description and image */
    min-width: 0; /* Prevents flex items from overflowing */
}

.product-item-scores {
    flex: 0 0 20%; /* Each scores div takes up 20% */
    display: flex;
    align-items: center;
}

.product-item-image {
    flex: 0 0 20%; /* Takes up 20% of width */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-item-image {
    flex: 0 0 100px; /* Fixed width for image container: don't grow, don't shrink, stay at 100px */
    display: flex;
    align-items: center;
}

.product-item-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Optional: Style the score images */
.ecoscore-icon,
.nutriscore-icon {
    height: auto;
}

.product-item-description--ecoscore {
    display: flex;
    flex-direction: column;
}

.product-item-description--nutriscore, .product-item-description--ecoscore img {
    width: 100px;
    max-height: 50px;
}

.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
  
  .lazy-image.loaded {
    opacity: 1;
  }
  
  .product-item-image {
    background: #f0f0f0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
/*!********************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./public/src/styles/navbar.css ***!
  \********************************************************************************/
  .dropdown {
      position: relative;
      display: inline-block;
    }

    .user-circle {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background-color: #f3f4f6;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background-color 0.2s;
    }

    .user-circle:hover {
      background-color: #e5e7eb;
    }

    #auth-section {
      position: absolute;
      right: 0;
    }

    #auth-section.show {
      display: block;
    }

    #signin-form, #signup-form {
       width: 200px;
    }

    #auth-forms > div {
        width: 100px;
    }

    .hidden {
        display: none;
    }
/*!*********************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./public/src/styles/overlay.css ***!
  \*********************************************************************************/
.search-limit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .overlay-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 90%;
    text-align: center;
  }
  
  .overlay-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
  }
  
  .overlay-message {
    margin-bottom: 1rem;
  }
  
  .overlay-button {
    background-color: #4F46E5;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
  }
  
  .overlay-button:hover {
    background-color: #4338CA;
  }
/*!***********************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./public/src/styles/style.css (2) ***!
  \***********************************************************************************/
@tailwind base;
@tailwind components;
@tailwind utilities;

html, body {
    margin: 0;
    padding: 0;
    background-color: #f7f2f0;
    width: 100vw;
  }

  canvas {
    display: block;
  }
  
  main canvas {
    width: 60%;
    margin: 0 auto;
  }

#nutrient-radar {
  min-height: 40vh; /* Default minimum height for larger screens */
  max-height: 40vh;
}

/* Media query for mobile devices */
@media screen and (min-width: 670px) {
  main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  #nutrient-radar {
    min-height: 50vh; /* Default minimum height for larger screens */
  }
}

.product-item-description--brand {
  font-size: 10px;
  color: #775353;
  text-transform: uppercase;
}

#mode-dropdown-container {
  display: none;
}

#search-results {
  max-height: 400px;
  overflow: scroll;
}

h1 {
  font-family: "Averia Libre", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.3;
}

h2, p {
  font-family: "Averia Libre", sans-serif;
  font-weight: 400;
  font-size: 18px;
  font-style: normal;
  color: #3d3d3d;
  max-width: 50%;
  margin: auto;
}

#nutrient-heading p {
  font-size: 18px;
  line-height: 20px;
  max-width: 100%;
}

#nutrient-heading h1 {
  font-size: 40px;
}

@media screen and (max-width: 670px) {
  h2, p {
    max-width: 100%;
  }
}

.product-item p {
  max-width: 100%;
  font-size: 14px;
}

.product-item h3 {
  font-weight: 600;
  font-size: 14px;
  line-height: 16px;
}

.product-item-description--additives {
  font-style: italic;
}
