html, body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #0f0700 !important;
  background-image: url("/static/images/black-paper.png");
}

body .navbar {
  position: fixed !important; 
  top: 5% !important;           /* Stick to the top of the page */
  width: 95% !important;      /* Full width */
  padding: min(1em,1%) !important;
  border-radius: 70px !important;
  background-color: rgba(13, 13, 13, 0.8) !important;
  display: flex !important;
  justify-content: space-between !important; /* Logo on left, buttons on right */
  align-items: center !important; /* Vertically center items */
  z-index: 1 !important; /* Ensure it appears above other elements */
}

.logo_nav {
  max-height: 50px!important; /* Adjust size */
  height: auto!important;
  width: auto!important;
}

/* Ensure navbar links are inline */
.navbar-nav {
  display: flex!important;
  justify-content: flex-end!important; /* Align the buttons to the right */
}

.nav-item {
  margin-left: 20px!important; /* Optional: Adds spacing between buttons */
}

.nav-link {
  display: inline-block!important; /* Ensure they stay in one line */
}

/* Button styles for primary, danger, and success */
.nav-item .btn-primary {
  font-size: clamp(1rem, 2vw, 1.5rem) !important;
  white-space: nowrap !important; /* Prevent text from wrapping */
  font-family: 'Poppins', sans-serif !important; /* Ensure font applies */
  font-weight: bold!important;
  color: #fff !important;
}

.nav-item .btn-danger {
  font-size: clamp(1rem, 2vw, 1.5rem) !important;
  white-space: nowrap !important; /* Prevent text from wrapping */
  font-family: 'Poppins', sans-serif !important; /* Ensure font applies */
  font-weight: bold!important;
  color: #fff !important;
}

.nav-item .btn-success {
  font-size: clamp(1rem, 2vw, 1.5rem) !important;
  white-space: nowrap !important; /* Prevent text from wrapping */
  font-family: 'Poppins', sans-serif !important; /* Ensure font applies */
  font-weight: bold!important;
  color: #ffd700 !important;
}

/* Hover effect */
.nav-link.btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3) !important;
  background-color: rgb(94, 92, 92) !important; /* Add light grey background on hover */
}

/* Logo */
.logo_nav {
  max-height: 50px!important; /* Adjust size */
  height: auto!important;
  width: auto!important;
}

.bg-image {
  padding-top: 3%;
}

.transparent-card {
    background-color: transparent !important;
    border: none !important; /* если не хочешь рамку */
}

.transparent-card .card-body {
    background-color: transparent !important;
    border: none !important; /* если не хочешь рамку */
}

.transparent-card .card-text {
    background-color: transparent !important;
}

@font-face {
  font-family: 'CabinSketch-Regular';
  src: url('/static/fonts/CabinSketch-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.context {
  font-family: 'CabinSketch-Regular', sans-serif!important;
  color: floralwhite!important;
  font-size: clamp(0.5rem, 1vw, 1.5rem) !important;
  background-color: transparent !important;
  letter-spacing: 0.1em!important; 
}

.card-text {
  transition: text-shadow 0.3s ease;
}

.card-text-head:hover {
  text-shadow: 0 0 8px #fff6d8, 0 0 15px #ffe !important;
  cursor: pointer !important;
}

.card-text-head {
  font-family: 'CabinSketch-Regular', sans-serif!important;
  color: floralwhite!important;
  font-size: clamp(1.5rem, 2vw, 2.5rem) !important;
  text-align: center!important;
  background-color: transparent !important;
  font-weight: bold!important;
  letter-spacing: 0.3em!important; 
}

@keyframes chalk-shake {
  0% { transform: translate(0, 0) rotate(0); }
  20% { transform: translate(-1px, 1px) rotate(-1deg); }
  40% { transform: translate(-1px, -1px) rotate(1deg); }
  60% { transform: translate(1px, 1px) rotate(0); }
  80% { transform: translate(1px, -1px) rotate(1deg); }
  100% { transform: translate(0, 0) rotate(0); }
}

.card-text-head:hover {
  animation: chalk-shake 0.4s linear;
}

/* Dashboard styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* черный фон */
}


/* Mobile devices (up to 480px) */
@media (max-width: 480px) {
  .navigation_bar {
    top: 2%; /* Adjust for smaller screens */
    height: auto;
    padding: 10px;
    flex-direction: column;
    align-items: center;
  }

  .button-container {
    flex-direction: column;
    gap: 10px;
  }

  .button-container a {
    padding: 10px;
    font-size: 24px;
  }

  .logo_nav {
    width: 30px;
    height: auto;
  }

  .background_products_overview {
    background-size: cover;
    background-position: center;
  }

  .main-content {
    padding: 10px;
    max-width: 100%;
  }

  .product-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .button-container_products .product-btn {
    width: 60px;
    height: 60px;
  }
}