@charset "UTF-8";
:root {
  --background-solid: #121212;
  --background-gradient: linear-gradient(#ba7141, #d6c060);
  --gray-gradient: linear-gradient(#2b2b2b, #181818);
  --nav-btn: #323232;
  --nav-btn-shadow: #282828;
  --primary: #FFFFFF;
  --secondary: #b3b3b3;
  /*old gradients:
  orange: linear-gradient(#fc686f, #ff934c)
  grey: linear-gradient(#404040, #282828)
  purple: linear-gradient(#b9565f, #41376b)
  blue: linear-gradient(#71bfbc, #216383)
  grey-blue: linear-gradient(#a6c8b8, #5f475b)
  yellow-orange: linear-gradient(#cdb85b, #9d5a2e)
  orange-yellow: linear-gradient(#ba7141, #d6c060)
  purple-blue: linear-gradient(#55367d, #3a79b3)
  */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lexend", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-image: var(--background-gradient);
  background-size: cover;
  background-repeat: no-repeat;
}

.container {
  display: none;
  position: fixed;
}

.container.active {
  display: block;
}

.flashing {
  color: rgb(175, 71, 71);
}

.drawingBuffer {
  display: none;
}

#scanner-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh; /* reserv för äldre webbläsare utan stöd för dvh */
  width: 100dvw;
  height: 100dvh; /* rätt mått när adressfältet visas/döljs (t.ex. iOS Safari) – 100vh kan då bli
                     STÖRRE än det som faktiskt syns, vilket gör att videon skalas för att täcka en
                     yta som är större än skärmen och upplevs som inzoomad. */
  overflow: hidden;
  z-index: 0;
}

#scanner-container video,
#scanner-container canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
}

.spb.active {
  top: 0;
  display: flex;
}

.spb {
  position: fixed;
  top: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 100px;
  padding-top: 20px;
  padding-bottom: 110%;
  background-image: var(--gray-gradient);
  color: white;
  z-index: 995;
  border-radius: 10px;
  transition: 0.5s ease-in-out;
}
.spb input {
  width: 175px;
  font-size: 40px;
  text-align: center;
  background-color: #323232;
  color: white;
}
.spb p {
  font-size: 40px;
}

.spb-name {
  transition: color 0.5s ease;
}

.spb-bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-bottom: 20px;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 60px);
  grid-gap: 10px;
  margin-top: 20px;
}

.key {
  width: 50px;
  height: 50px;
  font-size: 24px;
  color: #ffffff;
  text-align: center;
  line-height: 50px;
  background-color: #323232;
  border: 2px solid #ffffff;
  cursor: pointer;
  border-radius: 8px;
  touch-action: manipulation;
}

#key-backspace {
  line-height: 45px;
  font-size: 40px;
}

.input-price {
  font-size: 24px;
  padding: 10px;
  margin-bottom: 10px;
  width: 200px;
  text-align: center;
  border: 2px solid #ffffff;
  border-radius: 8px;
}

.input-price-unit {
  font-size: 24px;
}

.spb-bottom-nav {
  display: flex;
  width: 90%;
  flex-direction: column;
  align-items: center;
  place-content: end;
  margin-top: 50px;
  padding-bottom: 20px;
}

.spb-button {
  text-decoration: none;
  font-size: 17px;
  color: white;
  border-radius: 10px;
  width: 100%;
  margin-left: 10px;
  text-align: center;
  display: flex;
  padding: 10px;
  align-items: center;
  place-content: center;
  height: 50px;
}

.spb-button.confirm {
  background-color: rgb(91, 209, 91);
  margin-top: 10px;
  margin-bottom: -20px;
}

.spb-button.confirm.inactive {
  background-color: #3b4f3c;
  color: #9d9d9d;
}

.spb-button.confirm.redan-tillagd-inactive {
  background-color: #3b4f3c;
  color: #9d9d9d;
}

.spb-button.ignore {
  background-color: rgb(175, 71, 71);
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 999;
}

.title {
  font-size: 1.5em;
  font-weight: 700;
  text-align: center;
  flex-grow: 1;
  color: white;
}

.scan-icon-container {
  position: fixed;
  top: 3%;
  left: 5%;
  width: 90%;
  height: 90%;
  display: flex;
  align-items: center;
  place-content: center;
  padding-bottom: 75px;
  z-index: 989;
}

.scan-icon {
  position: fixed;
  width: 70%;
  height: auto;
  display: flex;
  align-items: center;
  z-index: 990;
  transition: 0.1s;
}

.scan-icon.active {
  width: 64%;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 75px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  height: 100%;
  border: none;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary);
  background-color: var(--nav-btn-shadow);
  padding: 5px 0;
  cursor: pointer;
  transition: 0.5s ease-out;
}

.nav-btn img {
  display: block;
  max-height: 65%;
  width: auto;
}

.nav-btn.active {
  height: 115%;
  background-color: var(--nav-btn);
}

.container {
  overflow: visible !important;
}

.welcomeMessage {
  color: white;
  font-size: 20px;
  font-weight: bold;
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  z-index: 5;
}

.welcomeMessage.invisible {
  display: none;
}

.scanMessage {
  color: white;
  position: fixed;
  top: 75%; /*33%;*/
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
}

.scanMessage.invisible {
  display: none;
}

.permanentMessage {
  color: white;
  position: fixed;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.permanentMessage.invisible {
  display: none;
}

.comparisonMessage {
  color: white;
  position: fixed;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.comparisonMessage.invisible {
  display: none;
}

.scroll-container {
  width: 100vw; /* Anpassa bredden */
  height: 65vh;
  margin-top: 7vh;
  overflow-x: scroll; /* Gör så att man kan scrolla horisontellt */
  white-space: nowrap; /* Hindrar elementen från att brytas till ny rad */
}

.scroll-content {
  display: flex; /* Lägger elementen i rad */
}

.product-card {
  height: 65vh;
  min-width: 48vw;
  max-width: 48vw;
  margin-right: 4vw;
  background: var(--gray-gradient);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.product-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 30px;
  white-space: initial;
  color: white;
  min-height: 5em;
  text-align: center;
}

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
}

.nutrition-table td {
  padding: 5px;
  padding-bottom: 10px;
  text-align: left;
  color: white;
}

.nutrition-table td:nth-child(1) {
  font-weight: bold;
  color: white;
}

.nutrition-table td:nth-child(2) {
  text-align: right;
  color: white;
}

.nutrition-table td:nth-child(2).best {
  font-weight: bold;
  color: rgb(108, 244, 108);
}

.nutrition-table td:nth-child(2).worst {
  font-weight: bold;
  color: rgb(255, 93, 93);
}

.remove-btn {
  margin-top: auto;
  width: 65%;
  height: 30px;
  background-color: rgb(175, 71, 71);
  text-decoration: none;
  font-size: 14px;
  color: white;
  padding: 10px;
  display: flex;
  align-items: center;
  place-content: center;
  border-radius: 8px;
  text-align: center;
  touch-action: manipulation;
}

.saved-slider {
  width: 100vw; /* Anpassa bredden */
  height: calc(100svh - 129px);
  margin-top: 7vh;
  overflow-x: scroll; /* Gör så att man kan scrolla horisontellt */
  white-space: nowrap; /* Hindrar elementen från att brytas till ny rad */
}

.saved-card {
  background: var(--gray-gradient);
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 10px;
}

.saved-name {
  color: white;
  font-size: 25px;
  text-align: center;
  padding-bottom: 10px;
  font-weight: bold;
}

.saved-gtin {
  color: white;
  font-size: 10px;
  margin-top: -10px;
}

.saved-price {
  color: white;
  padding-bottom: 20px;
  padding-top: 30px;
  font-size: 25px;
}

.saved-add-button {
  text-decoration: none;
  padding: 8px;
  font-size: 22px;
  border-radius: 10px;
  color: white;
  background-color: rgb(91, 209, 91);
}

.saved-add-button.inactive {
  background-color: #3b4f3c;
  color: #9d9d9d;
}

.saved-remove-button {
  text-decoration: none;
  padding: 8px;
  margin-left: 20px;
  font-size: 22px;
  border-radius: 10px;
  color: white;
  background-color: rgb(175, 71, 71);
}

.blockage {
  color: white;
  font-size: 20px;
  font-weight: bold;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  text-align: center;
  z-index: 10000;
  background: var(--background-gradient);
}

@media (max-width: 600px) {
  .blockage {
    display: none;
  }
}/*# sourceMappingURL=style.css.map */