/* @font-face {
  font-family: 'Montserrat';
  src: url('./fonts/montserrat/Montserrat-Medium.woff2') format("truetype");
  font-weight: normal;
  font-style: normal;   
  font-display: swap;
}
/* Google font - Montserrat */
* { font-family: 'Montserrat'; 
    height: auto;
  }

body{
  font-family: 'Montserrat';
  height: 100%;
  margin-bottom: auto;
  margin-top: 0;
  overflow-x: hidden;
}
.sidebar{
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 300px;
  background: #11101d;
  z-index: 100;
  transition: all 0.5s ease;
}
.sidebar.close{
  width: 78px;
}

.sidebar .logo-details a{
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.sidebar .logo-details i{
  font-size: 30px;
  color: #FFFFFF;
  height: 50px;
  min-width: 78px;
  text-align: center;
  line-height: 10px;
}
.sidebar .logo-details .logo_name{
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  transition: 0.1s ease;
  transition-delay: 0.1s;
}
.sidebar.close .logo-details .logo_name{
  transition-delay: 0s;
  opacity: 0;
  pointer-events: none;
}
* {
  -webkit-tap-highlight-color: transparent;
}

/* NAV */

.sidebar .nav-links{
  z-index: 1010;
  max-height: 90%;
  padding: 0px 0 150px 0;
  overflow-y: auto;
}
.sidebar.close .nav-links{
  overflow: visible;
}
.sidebar .nav-links::-webkit-scrollbar{
  display: none;
}
.sidebar .nav-links li{
  position: relative;
  list-style: none;
  transition: all 0.4s ease;
}

.sidebar .nav-links li:hover{
  background: #a18400bb;
}
.sidebar .nav-links li .iocn-link{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar.close .nav-links li .iocn-link{
  display: block;
}
.sidebar .nav-links li i{
  height: 50px;
  min-width: 78px;
  text-align: center;
  line-height: 50px;
  color: #FFFFFF;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.sidebar .nav-links li.showMenu i.arrow:after{
  padding: 0px;
}
.sidebar .nav-links .iocn-link i.arrow:active {
  opacity: 0;
}

.sidebar.close .nav-links i.arrow{
  display: none;
}

.sidebar .nav-links li a{
  max-height:50px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.sidebar .nav-links li a .link_name{
  font-size: 20px;
  font-weight: 400;
  color: #FFFFFF;
  transition: all 0.4s ease;
}
.sidebar.close .nav-links li a .link_name{
  opacity: 0;
  pointer-events: none;  
}
.sidebar .nav-links li .sub-menu{
  padding: 6px 6px 14px 80px;
  margin-top: 0px;
  background: #1d1b31;
  display: none;
}
.sidebar .nav-links li.showMenu .sub-menu{
  display: block;
}
.sidebar .nav-links li .sub-menu a{
  color: #FFFFFF;
  font-size: 18px;
  padding: 5px 0;
  opacity: 0.5;
  transition: all 0.3s ease;
  /*white-space: nowrap;*/
}
.sidebar .nav-links li .sub-menu a:hover{
  opacity: 1;
}
.sidebar.close .nav-links li .sub-menu{
  position: absolute;
  left: 100%;
  top: -1px;
  margin-top: 0;
  padding: 20px 20px;
  border-radius: 0 16px 16px 0;
  opacity: 0;
  display: block;
  pointer-events: none;
  transition: 0s;
}
.sidebar.close .nav-links li:hover .normal{
  min-width: 200px;
  top: 0;
  opacity: 1;
  pointer-events: auto;
  transition: all 0.4s ease;
}
.sidebar.close .nav-links li:hover .drinks{
  min-width: 200px;
  bottom: auto;
  top: -12rem;
  opacity: 1;
  pointer-events: auto;
  transition: all 0.4s ease;
}
.sidebar.close .nav-links li:hover .desserts{
  min-width: 200px;
  bottom: auto;
  top: -11rem;
  opacity: 1;
  pointer-events: auto;
  transition: all 0.4s ease;
}

.sidebar.close .nav-links li:hover .unicals{
  min-width: 200px;
  bottom: auto;
  top: -9rem;
  opacity: 1;
  pointer-events: auto;
  transition: all 0.4s ease;
}
.sidebar.close .nav-links li:hover .fruitvegets{
  min-width: 200px;
  bottom: auto;
  top: -5rem;
  opacity: 1;
  pointer-events: auto;
  transition: all 0.4s ease;
}
.sidebar.close .nav-links li:hover .rawmaterials{
  min-width: 200px;
  bottom: auto;
  top: -16rem;
  opacity: 1;
  pointer-events: auto;
  transition: all 0.4s ease;
}
.sidebar .nav-links li .sub-menu .link_name{
  display: none;
}
.sidebar.close .nav-links li .sub-menu .link_name{
  font-size: 20px;
  opacity: 1;
  display: block;
}




/* SECTION */

.home-section{
  position: sticky;
  top: 0;
  z-index: 1000;
  -webkit-box-shadow: 0 5px 25px rgba(0,0,0,0.15);
              box-shadow: 0 5px 25px rgba(0,0,0,0.15);
  background: #d9d9d9;
  height: 100%;
  left: 300px;
  width: calc(100% - 310px);
  transition: all 0.5s ease;
}
.sidebar.close ~ .home-section{
  left: 78px;
  width: calc(100% - 78px);
}
.home-section .home-content{
  height: 60px;
  display: flex;
  align-items: center;
}

.home-section .home-content .bx-menu,
.home-section .home-content .text{
  color: #000000;
}
.home-section .home-content .bx-menu{
  margin: 0 15px;
  cursor: pointer;
}
.home-section .home-content .text{
  font-size: 20px;
  font-weight: 600;
}

@media (max-width: 200px) {
  .sidebar.close .nav-links li .sub-menu{
    display: none;
  }
  
  .sidebar{
    width: 78px;
  }
  .sidebar.close{
    width: 0;
  }
  .home-section{
    left: 78px;
    width: calc(100% - 78px);
    z-index: 100;
  }
  .sidebar.close ~ .home-section{
    width: 100%;
    left: 0;
  }
}




/* POST */
.txt1 {
  max-width: 500px;
  
  white-space: pre;
  overflow-wrap: break-word;
}
.sortarea{
  max-width: 500px;
  border: 1px;
  border-radius: 8px;
  border-style: dotted;
  border-color: #000;
  margin: 2px;
  padding: 0px;
}
.sortinfo{
  margin: 2px;
}

.btnarea{
  margin-bottom: 5px;
  display: flex;
  position: sticky;
  align-items: center;
  justify-content: space-around;
}

.tagbutton1, .tagbutton2, .tagbutton3, .tagbutton4{
  margin: 2px;
  display: inline;
  position: static;
  width: 100px;
  height: 25px;
  border: 1px;
  background: #d1d1d1;
  border-radius: 8px;
  color: black;
  font-size: 12px;
  padding: 0px;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-bottom: 10px;
  margin-right: 5px;
  align-items: center;
  cursor: pointer;
}

.tagbutton1:focus, .tagbutton2:focus, .tagbutton3:focus, .tagbutton4:focus{
  background: #0b042e;
  color: #ffffff;
}
.row{
  padding: 0;
}
.seperator{
  margin-bottom: 14px;
  width:35px;
  height:3px;
  background:#777;
  border:none;
}
.seperators, .recipe-in-ing{
  position: relative;
  line-height: 1.2; 
  text-decoration: none;
  padding-top: 3px;
  padding-left: 3px;
  padding-bottom: 3px;
  padding-right: 3px;
  margin: 0px;
}
.seperators:focus,
.seperators:hover {
  background-color: #000000;
  background: #ddd;
  border-radius: 8px;
  content: "";
  color: black;
  transition: all 0.4s ease-out, color 1s;
}

.seperators1.clicked > *{
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  color: black;
  background-color: #dadadad3;
  border-radius: 8px;
}
.seperators1.clicked{
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  color: black;
  background-color: #dadadad3;
  border-radius: 8px;
}

.shop__add {
	background-color: #e3e3e3;
	text-decoration: none;
	border: none;
	border-radius: 20px;
	box-shadow: 0 5px 2px rgba(50, 50, 100, .8);
	transition: .1s;
  	position: absolute;
  	top: 50%; /* Центрирование по вертикали */
  	right: 10px; /* Вынос за правую границу */
  	transform: translateY(-50%); /* Корректировка центрирования */
	opacity: 0.5;
  	z-index: 99; /* Поверх остальных элементов */
}


.shop__add:hover {
  background: #333333;
  color:#FFFFFF;
  box-shadow: 0 5px 4px rgba(50, 50, 100, .8);
  transform-origin: center;
  transform: translateY(-40%);
}
.shop__add:active {
  background: #333333;
  color:#FFFFFF;
  box-shadow: 0 10px 6px rgba(50, 50, 100, .8);
  transform-origin: center;
  transform: translateY(-50%);
}

.cardshopbox_product_list {
  border-radius: 10px;
  color: #000000;
  text-align: center;
  line-height: auto;
  align-items: center;
  justify-content: center;
}

.recipe-ingredients {
  list-style-type: "-";
}
.recipe-steps{
  list-style-type: decimal;
}
h2, h1, span, h3, div {
  cursor: default;
}
select, .card__add2, .card__rem2, .linkbutton-btn {
  cursor: pointer;
}


.links1:link, .links1:visited {
  display: inherit;
  margin: 5px;
  color: #524f4e;
  padding: 2px;
  text-decoration: none;
}

.links1:active, .links1:hover {
  display: inherit;
  margin: 5px;
  color: #010ebb;
  padding: 2px;
  text-decoration: none;
}

.links2:link, .links2:visited {
  display: inherit;
  margin: 5px;
  color: #001aff;
  padding: 2px;
  text-decoration: none;
}

.links2:active, .links2:hover {
  display: inherit;
  margin: 5px;
  color: #001aff;
  padding: 2px;
  text-decoration: none;
}


.sldrcon {
  width: 240px;
  height: 240px;
  margin-left: 10%;
  border: #000000;
  border-radius: 10px;
  color: #000000;
  text-align: center;
  line-height: auto;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

#clnum {
  font-size: 40px;
  margin-bottom: 5px;
}

#btstart, #btreset {
  padding: 10px 20px;
  font-size: 1em;
  margin: 0 5px;
  cursor: pointer;
  border: none;
  background-color: #1d1b31;
  color: white;
  border-radius: 5px;
}

#btstart:hover, #btreset:hover {
  background-color: #a18400bb;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  width: 240px;
  height: 50px;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-runnable-track {
  background-color: #c7c7c7;
  border-radius: 10px;
  height: 15px;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -5px;
  background-color: #221e5c;
  border-radius: 10px;
  height: 25px;
  width: 20px;
}



.slider::-moz-range-track {
  background-color: #c7c7c7;
  border-radius: 10px;
  height: 10px;
}

.slider::-moz-range-thumb {
  background-color: #221e5c;
  border: none;
  border-radius: 10px;
  height: 25px;
  width: 20px;
}


#textotpt {
  text-align: center;
	border: none;
	vertical-align: center;
	font-size: 16px;
  color: #000000;
}
#textotpt2 {
  margin: 0px;
  text-align: center;
	border: none;
	vertical-align: center;
	font-size: 16px;
  color: #000000;
}

#info {
  color: #7d7d7d;
  text-align: center;
  line-height: auto;
  font-size: 14px;
}

.title{
  text-align: center;
  
  .row{
    padding: 2px;
  }
  
  h1{
    text-transform: uppercase;
    font-family: 'Montserrat';
    font-size: 16px;
  }
  
  .seperator{
    margin: 0 auto 10px;
  }
  .seperators{
    margin: 0 auto 15px;
  }
}

.recipe_images {
  width: 100%;
  height: auto;
  max-height: 496px;

}
.recipe-title {
  font-size: 14px;
  font-weight: bold;
}

.item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  position: relative;
  margin-bottom: 30px;
  margin-right: 10px;
  min-height: 290px;
  max-height: 290px;
  float: left;
  backface-visibility: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  
  .item-in {
    background: #fff;
    box-shadow: 0 0 6px 2px rgba(0, 0, 0, .4);
    padding: 10px;
    position: relative;
    min-width: 240px;
    max-width: 240px;
    
    &:hover:before {
      width: 100%;
    }
   
    &::before {
    content: "";
    position: absolute;
    overflow-wrap: break-word;
    bottom: 0px;
    height: 2px;
    width: 0%;
    background: #333333;
    right: 0px;
    -webkit-transition: width 0.4s;
    transition: width 0.4s;
    }
  }
}

form {
  margin-top: 20px;
  margin-bottom: 40px;
  border: 1px solid #524f4e;
  border-radius: 8px;
  max-width: 500px;
}

.linkbutton {
  text-decoration: none;
  display: inline-block;
  width: 240px;
  height: 45px;
  line-height: 45px;
  border-radius: 8px;
  margin: 10px 20px;
  margin-left: 5px;
  margin-bottom: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  letter-spacing: 3px;
  font-weight: 600;
  color: #524f4e;
  background: #ddd;
  box-shadow: 0 8px 15px rgba(30, 30, 50, .8);
  transition: .3s;
}
.linkbutton:hover {
  background: #333333;
  box-shadow: 0 15px 20px rgba(50, 50, 100, .8);
  color: white;
  transform: translateY(-7px);
}

.submitbutton, .note__add {
  text-decoration: none;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 240px;
  height: 45px;
  line-height: 16px;
  border-radius: 8px;
  margin: 10px 20px;
  margin-left: 5px;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 3px;
  font-weight: 600;
  color: #524f4e;
  background: #ddd;
  box-shadow: 0 2px 5px rgba(30, 30, 50, .8);
  transition: .3s;
}

.submitbutton:hover, .note__add:hover {
  background: #333333;
  box-shadow: 0 5px 10px rgba(50, 50, 100, .8);
  color: white;
  transform: translateY(-7px);
}

.incrcont {
  display: flex;
  justify-content: right;
  align-items: right;
}

#butdecr, #butincr{
  text-decoration: none;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 60px;
  height: 30px;
  line-height: 20px;
  border-radius: 8px;
  margin: 5px 5px;
  margin-left: 5px;
  margin-bottom: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 3px;
  font-weight: 600;
  color: #524f4e;
  background: #ddd;
  box-shadow: 0 2px 5px rgba(30, 30, 50, .8);
  transition: .3s;
}

#butdecr:hover, #butincr:hover{
  background: #333333;
  box-shadow: 0 5px 10px rgba(50, 50, 100, .8);
  color: white;
  transform-origin: center;
  transform: translateY(-10%);
}

div h4 {
  margin-top: 6px;
  margin-bottom: 5px;
  width: 100%;  
  max-width: 500px;
  padding-left: 10px;
}

.divbox {
  margin-top: 10px;
  margin-bottom: 5px;
  width: 100%;  
  max-width: 500px;
  padding-left: 10px;
  padding-right: 10px;
  margin-top: 20px;
  margin-bottom: 40px;
  border: 1px solid #524f4e;
  border-radius: 8px;
  max-width: 500px;
}

h3 {
  margin-top: 5 px;
  margin-block-start: 0rem;
  margin-bottom: 4px;
  text-align: left;
  width: 100%;
  max-width: 500px;
  border-top: 1px solid #666666;
}
table thead h3{
  margin-top: 10 px;
  margin-bottom: 5px;
  text-align: left;
  width: 100%;
  max-width: 500px;
  border-top: 1px solid #666666;
}


.item{
    
  h4{
      font-size: 15px;
      margin-top: 12px;
      margin-bottom: 12px;
      letter-spacing: 1px;
      text-transform: uppercase;
      overflow-wrap: break-word;
    }
    p{
      font-size: 12px;
    }
    a{
      font-family: 'Montserrat', sans-serif;
      font-size: 12px;
      text-transform: uppercase;
      color: #666666;
      margin-top: 10px;

      i {
        opacity: 0;
        padding-left: 0px;
        transition: 0.4s;
        font-size: 24px;
        display: inline-block;
        top: 5px;
        position: relative;
       }
      
      &:hover {
        text-decoration:none;
        i {
          padding-left: 10px;
          opacity: 1;
          font-weight: 300;
          }
        }
      }
    }


/* FLASH */
.flash {padding: 10px;}
.flash.success {
         border: 1px solid #21DB56;
         background: #AEFFC5;
}
.flash.error {
         border: 1px solid #FF4343;
         background: #FF9C9C;
}



.maincon{
  height: auto;
  margin-left: 23%;
  margin-right: 20%;
  padding:1px 3px;
  min-width: 240px;
  max-width: 950px;
}
.content {
  max-width: 950px;
  h1 {
    font-size: 18px;
  }
}

.recipe-page {
  width: 100%;
  max-width: 950px;
  overflow-wrap: anywhere;
}

.recipe-title {
  font-size: 20px;
  margin-bottom: 15px;
}

.img-recipe img{
  margin-top: 5%;
  max-height: auto;
  max-width: 496px;
  border: 1px solid #000000;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
  object-fit: contain;
  margin-bottom: 15px;
}

ol {
  width:105%;
  padding-left:20px;
  padding-right:10px;
  background-color: #f7f7f7da;
  border-radius: 8px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
  padding-top: 12px;
  padding-bottom: 12px;
}


.recipe-ingredients,
.recipe-steps {
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 1.2;
  margin-bottom: 3px;
  position: relative;
}
.recipe-ingredients {
  margin-top: 3px;
  display: list-item;
  width: 100%;
  white-space: nowrap;
}
.recipe-in-ingtext {
  flex-wrap: nowrap;
  font-weight: bold;
  display: inline-block;
}
.recipe-in-ing1 {
  margin-right: 5px;
  font-size: 14px;
  font-weight: bold;
  display: inline-block;
}
.recipe-in-ing2 {
  margin-right: 5px;
  font-size: 14px;
  display: inline;
  white-space: pre-line;
  overflow-wrap: break-word;
}

.recipe-note{
  margin-bottom: 10px;
}

.inger {
  
  flex-flow: row;
  display: flex;
}
.ininger {
  display: inline;
  width: 150px; 
  height: 75px;
  margin: 5px;
}

table {
	width: 100%;
  min-width: 240px;
	border: none;
	margin-bottom: 20px;
  max-width: 500px;
  overflow-wrap: normal;
}

caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 15px;
  font-weight: lighter;
}

table thead th,
table thead td {
	font-weight: bold;
	text-align: left;
	border: none;
	padding: 4px 5px;
	background: #FFFFFF;
	font-size: 14px;
  overflow-wrap: break-word;
}

table thead tr th {
	border-radius: 8px 8px 8px 8px;
  background: #FFFFFF;
}
table tbody td {
	text-align: left;
	border: none;
	padding: 4px 5px;
	font-size: 12px;
	vertical-align: top;
}
table tbody tr:nth-child(even){
	background: #f3f3f3;
}
table tbody tr td:first-child {
	border-radius: 8px 0 0 8px;
}
table tbody tr td:last-child {
	border-radius: 0 8px 8px 0;
}
.td-inform {
  background: #ddd;
  border-radius: 10px;
  
  overflow-wrap: anywhere;
}
.td_add {
  max-width: 20px;
}
.td-name {
  text-align: center;
  background: #FFFFFF;
}
td {
  background: #ddd;
}
.annonce {
  overflow-wrap: anywhere;
}

.arro {
  width: 100%;
  margin-top: 10px;
  padding-bottom: 7px;
  max-width: 500px;
  border-top: 1px solid #666666;
}
.wg, .ag, .hg {
  background-position: 10px 12px;
  background-repeat: no-repeat;
  width: 80%;
  min-width: 178px;
  max-width: 438px;
  font-size: 14px;
  padding: 2px 2px 2px 10px;
  border: 1px solid #ddd;
  margin-bottom: 2px;
  margin-top: 2px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
select {
  overflow: hidden;
}
.gender, .al {
  width: 80%;
  min-width: 178px;
  max-width: 438px;
  font-size: 14px;
  padding: 3px 3px 3px 3px;
  border: 1px solid #ddd;
  margin-bottom: 2px;
  margin-top: 2px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
}

input[type=submit] {
  padding: 5px;
  margin-top: 20px;
  background-color: #1d1b31;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  color: #d9d9d9;
  font-size:14px;
  font-weight: bold;
  line-height: 1.2;
  padding: 4px;
  width: 80%;
}

.divbox {
  display: inline-block;
  text-align: left;
}
  
.card__box {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: default;
  width: 240px;
  height: 45px;
  line-height: 45px;
  border-radius: 8px;
  margin: 10px 20px;
  margin-left: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  text-align: right;
  letter-spacing: 3px;
  font-weight: 600;
  color: #524f4e;
}


#card__box-num {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

#search_line {
  background-image: url('../svg/searchlens.svg');
  background-position: 10px 12px;
  background-repeat: no-repeat;
  width: 80%;
  min-width: 178px;
  max-width: 438px;
  font-size: 14px;
  padding: 12px 20px 12px 40px;
  border: 1px solid #ddd;
  margin-bottom: 12px;
  margin-top: 12px;
  align-items: center;
  justify-content: center;
}

#searching_table {
  width: 100%;
	border: none;
	margin-bottom: 20px;
  min-width: 240px;
  max-width: 500px;
  a {
  overflow-wrap: anywhere;
  }
}
#proteins, #fats, #carbs, #kcals {
  overflow-wrap: normal;
}



#searching_table tr td a {
  border: 1px solid #ddd;
  margin-top: -1px;
  background-color: #f6f6f6;
  padding: 5px;
  text-decoration: none;
  font-size: 14px;
  color: black;
  display: block;
  box-sizing: border-box;
  overflow: hidden;
  white-space: wrap;
  text-overflow: clip;
  background: #ddd;
}
.inform {
  max-width: 500px;
  font-size: 16px;
  margin-bottom: 20px;
  color: #666666;
}
.inform1 {
  color: #524f4e;
  max-width: 500px;
  font-size: 0.85em;
  border-left: 2px solid #ddd;
  padding-left: 12px;
  margin: 10px 0;
  line-height: 1.2;
}
.inform2 {
  color: #524f4e;
  max-width: 500px;
  font-size: 10px;
  margin-top: 2px;
  margin-bottom: 2px;
  padding: 0px 0px 0px 3px;
  border-left: 4px solid #999992;
}

#searching_table tr td a:hover:not(.header) {
  background-color: #eee;
  z-index: 1;
}

.product_add{
  border: 2px solid #eeeded;
  border-radius: 12px;
  margin-bottom: 5px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 500px;
  max-height: 150px;
  height: 80%;
  overflow: visible;  
  align-items: stretch;
  justify-content: space-between;
  overflow-wrap: break-word;
}
.product_add .card_product-wrap1{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin-bottom: 5px;
  margin-left: 15px;
  justify-content: space-between;
  font-size: 14px;
  color: #364364;
}
.product_add .card_product-wrap2{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin-bottom: 5px;
  margin-left: auto;
  margin-right: 10px;
  align-items: center;
  text-align: center;
  font-size: 12px;
  color: #364364;
}
.product_add-title{
  align-items: left;
  padding: 2px;
  margin: 2px;
  margin-right: 5px;
  font-size: 12px;
  font-weight: normal;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.product_add-oneportion{
  align-items: left;
  min-width: 55px;
  max-width: 55px;
  padding: 1px;
  margin-right: 1px;
  border-radius: 8px;
  background: #ddd;
  overflow-wrap: normal;
}

.product_add-proteins{
  align-items: right;
  min-width: 25px;
  max-width: 25px;
  padding: 1px;
  margin-right: 1px;
  border-radius: 8px;
  background: #ddd;
  overflow-wrap: break-word;
}
.product_add-fats{
  align-items: right;
  min-width: 25px;
  max-width: 25px;
  padding: 1px;
  margin-right: 1px;
  border-radius: 8px;
  background: #ddd;
  overflow-wrap: break-word;
}
.product_add-carbs{
  align-items: right;
  min-width: 25px;
  max-width: 25px;
  padding: 1px;
  margin-right: 1px;
  border-radius: 8px;
  background: #ddd;
  overflow-wrap: break-word;
}
.product_add-kcals{
  align-items: right;
  min-width: 25px;
  max-width: 25px;
  padding: 1px;
  margin-right: 10px;
  border-radius: 8px;
  background: #ddd;
  overflow-wrap: break-word;
}
.cardboxitem-delete {
  display:flex;
  position: relative;
  border: 1px;
  background: transparent;
  font-size: 20px;
  padding: 0px;
  margin-right: 10px;
  align-items: center;
  cursor: pointer;
  color: #d62240;
}

.btnbox{
  max-width: 550px;
}
.card__add {
  display:flex;
  border: none;
  width: 1%;
  max-width: 1%;
  transition: 100ms;
  background: transparent;
  font-size: 20px;
  padding: 0px;
  margin-right: 20px;
  align-items: center;
  cursor: pointer;
  color: #068b0d;
  overflow-wrap: normal;
}
.card__add:hover, .card__add:focus {
  transform: scale(1.5); 
}
.card__add2, .card__rem2, .linkbutton-btn {
  text-decoration: none;
  display: inline-block;
  width: 240px;
  height: 45px;
  line-height: 45px;
  border-radius: 8px;
  margin: 10px 20px;
  margin-left: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 3px;
  font-weight: 600;
  color: #524f4e;
  background: #ddd;
  box-shadow: 0 8px 15px rgba(30, 30, 50, .8);
  transition: .3s;
}
.card__add2:hover, .card__rem2:hover, .linkbutton-btn:hover {
  background: #333333;
  box-shadow: 0 15px 20px rgba(50, 50, 100, .8);
  color: white;
  transform: translateY(-7px);
}

.modal {
  display: none;
  position: absolute;
  z-index: 10000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  min-width: 300px;
  overflow: auto;
  height: auto;
  background-size: cover;
  color: #666666;
}

.more-overlay {
  display: grid;
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 15px;
  text-align: center;
  width: 80%;
  max-width: 800px;
  height: auto;
  align-items: center;
  justify-content: center;
  overflow: auto;
  font-size: 12px;
  font-weight: normal;
  overflow-wrap: break-word;
}
.head-popup{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 500px;
  max-height: 150px;
  height: 80%;
  overflow: visible;  
  align-items: start;
  justify-content: center;
  overflow-wrap: break-word;
}


.close-popup {
  float: top;
  font-weight: bold;
  display:flex;
  position: relative;
  border: 1px;
  background: transparent;
  font-size: 20px;
  padding: 0px;
  align-items: center;
  cursor: pointer;
  color: #d62240;
  }
  .popup_head_wrap2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .close-popup:hover,
  .close-popup:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }

@media (max-width: 768px){
  .th-name{
    
    
    transform:rotate(180deg);
    writing-mode: tb-rl;
    white-space: nowrap;
    text-decoration: none;
    font-size: 14px;
    font-weight: normal;
    padding: 2px;
    text-align: left;
    width: 10%;
    height: auto;
    -webkit-transform: rotate(180deg);
 }
 
 .btnarea{
  display: inline;
 }
 .th-name1{
  writing-mode: tb-rl;
  white-space: nowrap;
  transform:rotate(180deg);
  text-decoration: none;
  font-size: 12px;
  font-weight: normal;
  padding: 2px;
  text-align: left;
  width: 10%;
  height: auto;
}
.more-overlay{
  max-width: 300px;
}
}
@media (max-height: 550px){
  .sidebar, .close{
    overflow: auto;
  }
}
.note-label{
  display: block;
  margin-top: 10 px;
  margin-bottom: 5px;
  text-align: left;
  width: 100%;
  max-width: 500px;
  border-top: 1px solid #666666;
  font-size: 1.17em;
  font-weight: bold;
  margin-top: 1em;         
  margin-bottom: 0.5em;
  line-height: 1.2;
  color: inherit;
  cursor: pointer;
}

.note-textarea {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0px;
    width: 250px;
    height: 150px;
    font-family: inherit;
    font-size: 1rem; 
    background-color: #fff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    resize: none;
    outline: none;
    /*field-sizing: content;*/
    overflow-y: auto; 

  }

.hidden-input {
    display: none !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.errorshake {
    border: 2px solid #ff4d4d !important;
    background-color: #ffe6e6 !important;
    animation: shake 0.3s ease-in-out 2;
    transition: all 0.3s ease;
}


.is-hidden {
    display: none !important;
}

#empty-message {
    color: gray;
    text-align: center;
    padding: 20px;
}



.user-add-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    margin-left: 0;
    margin-right: auto;
    box-sizing: border-box;
}

#userprodname, 
#userprodnum, 
#adduserbtn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    outline: none;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

#userprodname, 
#userprodnum {
    background-color: #ffffff;
    color: #333;
}


#userprodnum {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

#userprodnum::-webkit-outer-spin-button,
#userprodnum::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#userprodname:focus, 
#userprodnum:focus {
    border-color: #a0a0a0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

#adduserbtn {
    background-color: #eeeeee;
    color: #555;
    cursor: pointer;
    font-weight: 500;
    border: 1px solid #d1d1d1;
}

#adduserbtn:hover {
    background-color: #e2e2e2;
    border-color: #bcbcbc;
}

#adduserbtn:active {
    background-color: #dcdcdc;
    transform: translateY(1px);
}




