/*colours
#85A653, #1A2601, #B6D96C, #B2BF84,#0D0D0D
/*elements*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@media print {
  body * {
    display: none;
  }

  #printPageButton * {
    display: none;
  }

  #content, #content * {
    display: block;
  }

}

html, body { 
  min-height: 100vh; /* Full height */
  /*overflow-x: hidden; /* Prevents horizontal scrolling */
  overflow-y: auto; /* Allows vertical scrolling */
}

html {
  height: 100vh;
  width: 100%;
  margin: auto;
  background:  url("/img/cannabis-bg.png"),linear-gradient(red, yellow , green);
  background-size: 100%;
  /* padding: clamp(5px,2vw,20px); */
  padding: env(safe-area-inset);
  background-repeat: no-repeat;
  background-attachment: fixed;
  scroll-behavior: smooth;
}

body {
    font-family: "Inconsolata", monospace;
    font-optical-sizing: auto;
    text-align: center;
    background-color: #0D0D0D;
    color: #B6D96C;
    margin: auto;
    margin-top: 2%;
    border-radius: 4%;
    padding: 2%;
    width: 80%;
    font-size: clamp(.8rem, 2vw, 1rem);
}

footer {
  background: linear-gradient(to right, #222, #333); /* Dark gradient */
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 16px;
  border-top: 3px solid #ff6600;
}

footer a {
  color: #ff9900;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease-in-out;
}

footer a:hover {
  color: #ffd700; /* Gold on hover */
}

h1 {
    font-family: "Permanent Marker", serif;
    font-weight: 400;
    font-style: normal;
    /*font-style: "UltraExpanded";*/
    font-variation-settings:
    "wdth" 200;
    font-size: clamp(3rem,3vw,5rem);
    color: #B6D96C;
}

h2, h3 ,h4,h5,h6 {
  color: #85A653;
}

hr {
  height: 4px;
  border: none;
  background: linear-gradient(to right, #1A2601, #B6D96C);
}

img {
  max-width: 100%; /* Ensures images don’t overflow */
  height: auto;
}

p{
  color: #B2BF84;
}

nav{
  background-color: #B6D96C;
  width:20%;
  margin:auto;
}
section {
  text-align: left;
}

table {
  margin: auto;
}

table form {
  display: inline !important;
}

.cat-button {  
    border-radius: 7%;
    height: 50px;
    width: 14rem;
    color: rgb(52, 8, 127);
    font-weight: 700;
    background-color: red; /* For browsers that do not support gradients */
    background-image: linear-gradient(rgba(209, 200, 20, 0.782),green);
}


.prod-button {  
  border-radius: 7%;  
  color: rgb(52, 8, 127);
  font-weight: 700;
  background-color: red; /* For browsers that do not support gradients */
  background-image: linear-gradient(rgba(20, 184, 209, 0.782),rgb(223, 144, 202));
}

.categories, .products {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem;
}
.categories button, .products button {
  padding: 0.5rem;
  font-size: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
}

.calendar {
  max-width: 500px;
  margin: auto;
  background-color: red; /* For browsers that do not support gradients */
  background-image: linear-gradient(rgba(20, 184, 209, 0.782),rgb(223, 144, 202));
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
}

.page-title {
  text-align: center;
  margin: 20px 0;
  font-size: 2rem;
  color: #333;
}

.specials-form {
  max-width: 900px;
  margin: auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.form-section {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  background: #fff;
}

.form-section legend {
  font-weight: bold;
  font-size: 1.2rem;
  padding: 0 10px;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.form-row label {
  margin-bottom: 5px;
  font-weight: 500;
}

.form-row input,
.form-row select {
  padding: 8px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.form-actions {
  text-align: center;
  margin-top: 20px;
}

.form-actions button {
  background: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-actions button:hover {
  background: #0056b3;
}


.month {
  text-align: center;
  margin-bottom: 10px;
}

.month ul {
  padding: 0;
  list-style-type: none;
}

.month li {
  display: inline-block;
  font-size: 20px;
  font-weight: bold;
  margin: 0 15px;
  cursor: pointer;
  user-select: none;
}

.month li#monthYearDisplay {
  cursor: default;
}

.weekdays, .days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  padding: 0;
  list-style-type: none;
}

.weekdays li {
  font-weight: bold;
  background: #ddd;
  padding: 10px 0;
  color: blue;
}

.days li {
  padding: 10px 0;
  background: #fafafa;
  margin: 2px;
  border-radius: 4px;
  color: green;
}

.days li span.active {
  background: #ff5252;
  color: white;
  padding: 8px 12px;
  border-radius: 50%;
  display: inline-block;
}

.message-button {
  position: relative;
  display: inline-block;
  padding: 12px 20px;
  font-size: 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.message-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: red;
  color: white;
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 50%;
}

.product-button {
  background-color: #222;
  color: #eee;
  border: 1px solid limegreen;
  border-radius: 8px;
  padding: 10px;
  width: 150px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}
.product-button:hover {
  background-color: limegreen;
  color: black;
}
.sales-table {
  width: 100%;
  margin-top: 1rem;
}
.sales-table th, .sales-table td {
  padding: 0.5rem;
  border: 1px solid #ccc;
}
.totals {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.pos-cat-button {  
  border-radius: 7%;

  color: rgb(52, 8, 127);
  font-weight: 700;
  background-color: red; /* For browsers that do not support gradients */
  background-image: linear-gradient(rgba(209, 200, 20, 0.782),green);
}

.michroma-regular {
  font-family: "Michroma", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.sales {
  background-color: white;
}

.scrolling-container {
    width: 100%;
    overflow: hidden;
    background: black;
    padding: 10px 0;
    position: relative;
    white-space: nowrap;
}

.scrollable {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 20px;
}
#product-buttons button, #category-buttons button {
  margin: 5px;
}

.scrolling-text {
    display: inline-block;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    padding-left: 10%;
    animation: scroll-left 20s linear infinite;
}

/* Keyframe Animation */
@keyframes scroll-left {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Pause animation on hover */
.scrolling-container:hover .scrolling-text {
    animation-play-state: paused;
}

/*classes*/
.container {
  /*background-color: #8C8C8C;*/
  margin: auto;
  width: 100%; /* Fit width */
  max-width: 100%; /* Prevent overflow */
  padding: 10px; /* Add padding for better readability */
}

.imgLogo {
  height: 500px;
  width: 500px;
  animation-duration: 1s; /* the duration of the animation */
  animation-timing-function: ease; /* how the animation will behave */
  animation-delay: 0s; /* how long to delay the animation from starting */
  animation-iteration-count: 1; /* how many times the animation will play */
  animation-name: spinIn; /* the name of the animation we defined above*/
}

.card {
  border: 1px solid #333;
  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  height: 200px;
  object-fit: cover;
  padding: 2%;
  border-radius:2%;
}

.neonText {
  color: #fff;
  text-shadow:
    0 0 4px #fff,
    0 0 8px #fff,
    0 0 11px #fff,
    0 0 21px #0fa,
    0 0 25px #0fa,
    0 0 29px #0fa,
    0 0 35px #0fa,
    0 0 40px #0fa;
  /* animation: flicker 1.5s infinite alternate; */
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    text-shadow:
      0 0 4px #fff,
      0 0 11px #fff,
      0 0 19px #fff,
      0 0 40px #0fa,
      0 0 80px #0fa,
      0 0 90px #0fa,
      0 0 100px #0fa,
      0 0 150px #0fa;
  }
  20%, 24%, 55% {       
    text-shadow: none;
  }
}



/*Transitions*/
@keyframes spinIn {
  0% {
      transform: rotate(20deg);
  }
  25% {
      transform: rotate(340deg);
  }
  50% {
    transform: rotate(10deg);
  }
  75% {
    transform: rotate(350deg);
  }
  100% {
    transform: rotate(360deg);
  }
};

.pos {
  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f0f0f0;
  }
  .container {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 20px;
      max-width: 1200px;
      margin: 0 auto;
  }
  .products-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 15px;
  }
  .product-card {
      background: white;
      padding: 15px;
      border-radius: 5px;
      cursor: pointer;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  .product-card:hover {
      background-color: #e8f5e9;
  }
  .cart-section {
      background: white;
      padding: 20px;
      border-radius: 5px;
      height: fit-content;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  .cart-item {
      display: flex;
      justify-content: space-between;
      margin: 10px 0;
      padding: 5px;
      border-bottom: 1px solid #eee;
  }
  .checkout-btn {
      background-color: #4CAF50;
      color: white;
      padding: 10px;
      border: none;
      width: 100%;
      border-radius: 5px;
      cursor: pointer;
      margin-top: 20px;
  }
  .checkout-btn:hover {
      background-color: #45a049;
  }  
}