:root {
  --marron: #772e03;
  --lightmarron: #ac4c45;
  --blue: #1a5fa8;
  --text: #1a1a1a;
  --muted: #aaaaaa;

  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.2);
}


body{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--green);
    line-height: 2;
    background: #F5F5F7;
    min-width: 320px;

}

.nav{
    position: sticky;
    top: 13px;
    background: rgba(209, 192, 184,0.5);
    border-bottom: 1px solid var(--border);
    border-radius: 20px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    z-index: 10;
    backdrop-filter: blur(40px);

}

.logo{
    font-size:1rem;
    font-weight: 600;
    color: var(--marron);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.links{
    color: var(--lightmarron);
    text-decoration: none;
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.links a{
    margin-left: 10px;
    color: var(--lightmarron);
    text-decoration: none;
}

.links a:hover{
    color: var(--marron);
}

.main{
    background: linear-gradient(140deg, #ff0000 0%, #f58b00 100%);
    padding: 80px 25px ;
    text-align: center;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    margin: 20px;
    box-shadow: var(--shadow);
}
.card .cardes {
    text-align: center;
    font-style: var(--muted);
    font-weight: 1;
    font-size: 15px;
    margin-bottom: 35px;
}

.main h1{
    font-size: 30px;
    color: rgb(247, 247, 247);
    margin-bottom: 20px;
}

.main p {
    color: rgb(248, 199, 199);
    font-size: 1rem;
    margin-bottom: 30px;
}

.content a {
    position: relative;
    top:0;
    background: rgb(207, 171, 51);
    border-bottom: 1px solid var(--border);
    border-radius: 20px;
    padding: 10px 20px;
    align-items: center;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.container{
    max-width: 760px;
    margin: 0 auto;
}

.card{
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 80px 25px;
    margin: 20px;
    box-shadow: var(--shadow);
    align-items: center;
}

.btn2{
    display: inline-block;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.5s ease;
    margin-top: 16px;
    width: 100%;
    background: #ac4c45;
}
.btn2:hover{
    background: #772e03;
    transform: translateY(-1px);
}

.btn2:disabled{
    opacity: 0.5;
    cursor: not-allowed;
}

label{
    display: block;
    font-weight: 600;
    margin: 16px 60px 16px;
    font-size: 1.5rem;
    text-align: center;
    color: maroon;
    background-color: #f58b00;
    border-radius: 20px;
    padding: 1px 0 0px ;
}

input[type="text"], textarea,input[type="range"] {
    width: 100%;
}
input[type="text"], textarea{
    padding: 10px 2px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    resize: none;
}
input:focus, textarea:focus{
    outline: none;
    border-color: var(--marron);
}

textarea{
    min-height: 90px;
}
.btngrp{
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
.photo{
    display: inline-block;
    align-self: center;
    padding: 12px 12px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.5s ease;
    margin-top: 4px;
    margin-bottom: 20px;
    width: 40%;
    background: #000000;
    color: white;
}
.photo:hover{
    background: #772e03;
    transform: translateY(-1px);
}
.barcode{
    display: inline-block;
    margin-left: 20px;
    padding: 12px 12px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.5s ease;
    margin-top: 4px;
    margin-bottom: 20px;
    width: 40%;
    background: #000000;
    color: white;
}
.barcode:hover{
    background: #772e03;
    transform: translateY(-1px);
}

.goal { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;}
.pill {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: rgb(0, 0, 0);
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.15s;
  color: white;
}
.pill.active { background: var(--marron); color: white; border-color: var(--marron); transition: all 0.5s; }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 24px auto;
}
.hidden {
    display: none !important;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none; }
.errmsg { color: #c0392b; font-size: 0.85rem; min-height: 18px; }
@media (max-width: 600px) {
  .card { padding: 20px; }
  h1 { font-size: 1.8rem; }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}


.overlay.active {
  opacity: 1;
  pointer-events: all;
}

.content2 {
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.overlay.active .content2 {
  transform: translateY(0);
}

#reader {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 2px solid var(--border);
}

.btnclose {
  background: var(--text);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}

.btnclose:hover {
  background: #000;
}


.titlemeal{
    text-align: center;
    margin-bottom: 20px;
    font-size: 30px;
    background: linear-gradient(80deg, #ff1e00, 20%, #000000 50%, #ff3300 100%);
    font-size: 40px;
    background-size: 200% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    animation: textshine 4s linear infinite ;
    font-weight: bold;
}
@keyframes textshine {
    to {
        background-position: 200% center;
    }
}

