
  p {
    font-size: 16px;
    text-transform: uppercase;
    text-align: center;
  }
  
  @supports (background-clip: text) or (-webkit-background-clip: text) {
    .fancy {
      background-image: url("https://w0.peakpx.com/wallpaper/526/428/HD-wallpaper-american-dollars-money-texture-green-finance-texture-100-dollars-green-money-background-currency-concepts.jpg");
      opacity: 100%;
      background-size: 110% auto;
      background-position: center;
      color: transparent;
      -webkit-background-clip: text;
      background-clip: text;
    }
  }
  
body {
    color: rgba(0, 255, 0, 0.44);
    margin: 0;
    padding: 0;
    background-color: rgba(102,215,129,0.66);
    font-family: Arial, sans-serif;
    opacity: 0.9; /* Adjust opacity as needed */
}


  @keyframes moveBackground {
      from {
          background-position: 0 45%;
      }
      to {
          background-position: 100% 45%;
      }
  }

  /* Media query for mobile devices */

  @media only screen and (max-width: 800px) {
      @keyframes moveBackground {
          from {
              background-position: 0 45%;
          }
          to {
              background-position: 150000% 45%;
          }
      }
  }



  header {
      position: sticky;
      top: 0;
      z-index: 99999;
      text-align: center;
      text-shadow: #333;
      background-size: 20%; /* Make the background image smaller */
      background-repeat: repeat-x; /* Repeat horizontally */
      background-color: #38f567;
      color: #fff;
      background-image: url(https://static.vecteezy.com/system/resources/previews/009/665/394/original/green-money-banknote-cartoon-file-png.png);

      padding: 20px;
      animation: moveBackground 40s linear infinite; /* Increase animation duration for slower movement */
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add a shadow */
  }

  header::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-size: 20%; /* Make the background image smaller */
      opacity: 0.7; /* Adjust the opacity of the background image */
      z-index: -1; /* Place it behind the content */
      animation: moveBackground 40s linear infinite; /* Increase animation duration for slower movement */
      box-shadow: 0 8px 20px rgba(0, 0, 0, 1); /* Add a shadow */
  }



  /* Media query for mobile devices */

  @media only screen and (max-width: 800px) {

      header {
          background-size: 70%; /* Adjust the background size for mobile devices */
          padding: 15px; /* Adjust the padding for mobile devices */
          animation: moveBackground 1500s linear infinite; /* Adjust animation duration for mobile devices */
      }

      header::before {
          background-size: 70%;
          /* increase speed */
            animation: moveBackground 1500s linear infinite;
      }
  }

  @media only screen and (min-width: 801px) {
      header {
          background-size: 50%; /* Adjust the background size for mobile devices */
          padding: 15px; /* Adjust the padding for mobile devices */
          animation: moveBackground 15s linear infinite; /* Adjust animation duration for mobile devices */
      }

      header::before {
          background-size: 40%;
          /* increase speed */
          animation: moveBackground 15s linear infinite;
      }
  }
  @media only screen and (min-width: 1200px) {
      header {
          background-size: 30%; /* Adjust the background size for mobile devices */
          padding: 15px; /* Adjust the padding for mobile devices */
          animation: moveBackground 15s linear infinite; /* Adjust animation duration for mobile devices */
      }

      header::before {
          background-size: 40%;
          /* increase speed */
          animation: moveBackground 15s linear infinite;
      }
  }
  @media only screen and (min-width: 1500px) {
      header {
          background-size: 20%; /* Adjust the background size for mobile devices */
          padding: 15px; /* Adjust the padding for mobile devices */
          animation: moveBackground 45s linear infinite; /* Adjust animation duration for mobile devices */
      }

      header::before {
          background-size: 20%;
          /* increase speed */
          animation: moveBackground 45s linear infinite;
      }
  }

header h1 {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    font-size: 36px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    text-outline: 10px #00cc00 ;
    cursor: pointer;
    transition: color 0.4s ease;
    display: inline;
}
header h1:hover {
    color: #151515;
}

header .amount-container {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.75); /* Customize shadow values */
    color: #52ff00;
    font-family: Arial, Helvetica, sans-serif; 
    
    
}

header #sell-mode-button {
    background-color: #0a53c2;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
  header #change-currency-button {
      background-color: #0a53c2;
      color: #fff;
      border: none;
      padding: 10px 20px;
      border-radius: 5px;
      cursor: pointer;
      font-size: 16px;
      font-weight: bold;
      transition: background-color 0.3s ease;
  }

header #sell-mode-button.active {
    background-color: #d40a0a;
}
.sell-mode-button.active .item{
    background-color: #00cc00;
}
.item.sell-mode {
    transition: background-color 0.5s, color 0.5s; /* Add transition for background color and color */
    background-color: #a06970;
    color: #fff;
    
}
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}


.items-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 0 auto;


    @media ( min-width: 1851px) {
        max-width: 1800px;
    }
    @media(max-width: 1850px){
        max-width: 1500px;
    }
    @media(max-width: 1550px){
        max-width: 1200px;
    }
    @media(max-width: 1250px){
        max-width: 900px;
    }
    @media(max-width: 950px){
        max-width: 700px;
    }
    @media(max-width: 660px){
        max-width: 500px;
    }



}

.item {
    transition: background-color 0.5s, color 0.5s, opacity 0.5s; /* Add transition for background color, color, and opacity */
    box-shadow: #333;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the content horizontally */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease-in-out;
    background-color: #fff;
    transition: transform 0.3s ease-in-out; /* Add a transition for smooth movement */

}

.item:hover {
    transform: translateY(-5px) scale(1.02); /* Pop-up effect on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.item img {
    width: 100%;
    height: 180px; /* Increase the image height */
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

  .item-info {
      padding: 10px;
      text-align: center;
      flex-direction: column; /* Adjust the layout to a column */
  }

  .item-name {
      position: relative;
      font-size: 18px;
      font-weight: bold;
  }

  .cart-item-name{
      position: relative;
        font-size: 16px;
        font-weight: bold;
      margin-top: 10px;
      @media (max-width: 1000px) {
            font-size: 14px;
      }
      @media (min-width: 1001px) {
            font-size: 16px;

      }
  }

  .item-price {
      font-size: 19.2px;
      font-weight: bold;
      color: #00cc00;
      margin-top: 5px;
  }

  .item-qty {
      font-size: 14px;
      font-weight: bold;
      margin-top: -3px;
      color: #333;
      @media (max-width: 1000px) {
          !important; font-size: 1px;
      }
  }
.purchased-items {
    position: relative;
    text-align: center;
    margin-top: 20px;
}

.purchased-items h2 {
    margin-bottom: 10px;
    font-size: 24px;
}

.purchased-items ul {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #f7f7f7; /* Add a background color to the list */
    font-size: 18px; /* Increase font size for better readability */
    list-style: none; /* Remove list-style for cleaner appearance */
    padding-left: 0; /* Remove default padding for the list */
}

.purchased-items li {
    padding: 10px;
    background-color: #f7f7f7;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Center the item count */
    font-size: 16px; /* Adjust font size for the item names */
    border-bottom: 1px solid #ddd;
}

.purchased-items .item-count {
    color: #666;
    font-weight: bold; /* Make the item count bold */
}

.purchased-items button {
    background-color: #ff0000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold; /* Make the button text bold */
    transition: background-color 0.3s ease;
    margin-top: 20px; /* Adjust margin for better spacing */
}

.purchased-items button:hover {
    background-color: #cc0000;
}

/* Improved money animation */
@keyframes moneyEffect {
    0% { transform: scale(1); color: #00cc00; }
    10% { transform: scale(1.0523); color: #00cc00; }
    50% { transform: scale(1.0523); color: #00cc00; }
    100% { transform: scale(1); color: #00cc00; }
}

.sell-mode .amount-container {
    animation: moneyEffectGreen 0.5s;
}

@keyframes moneyEffectGreen {
    0% { transform: scale(1); color: #28a745; }
    10% { transform: scale(1.0523); color: #28a745; }
    50% { transform: scale(1.0523); color: #28a745; }
    100% { transform: scale(1); color: #28a745; }
}

.fade-out {
    animation: fadeOut 1s ease forwards;
    opacity: 1;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        display: none;
    }
}
  .notification {
      position: fixed;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      background-color: #4CAF50;
      color: #fff;
      padding: 10px;
      border-radius: 5px;
      opacity: 0;
      transition: opacity 0.5s ease-in-out;
      z-index: 999;
  }

  .notification.show {
      opacity: 1;
  }
 .notification  .sell-notification {
     !important background-color: #dc3545;
  }

  .modal {
      display: none;
      z-index: 99999;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      margin-bottom: 100px;
  }

  .modal-content {
      background-color: #fff;
      margin: auto; /* Center the modal horizontally */
      margin-top: 15%; /* Adjust the top margin for vertical centering */
      padding: 20px;
      border: 1px solid #888;
      width: 60%;
      max-width: 600px;
      position: relative;
      border-radius: 5px;
  }

  .modal-dialog{
      margin-top: 15%;
  }
  modal-title {
      font-size: 24px;
      font-weight: bold;
      margin-bottom: 20px;
  }

  .close {
      color: #aaa;
      float: right;
      font-size: 28px;
      font-weight: bold;
      cursor: pointer;
      background: none;
      color: inherit;
      border: none;
      padding: 0;
      font: inherit;
      cursor: pointer;
      outline: inherit;
  }


  .close:hover,
  .close:focus {
      color: black;
      text-decoration: none;
      cursor: pointer;
  }

  .profile-icon:hover {
      transform: scale(1.2); /* Increase size on hover */
  }

  .profile-icon {
      cursor: pointer;
      position: fixed;
      transition: transform 0.3s ease-in-out;
      top: 20px;
      z-index: 9999;
      font-size: 25px; !important;
      color:black;
      margin-top: 5px;
      @media ( min-width: 1851px) {
          right: calc(calc((100% - 1800px)/2) + 180px);
      }
      @media(max-width: 1850px){
          right: calc(calc((100% - 1500px)/2) + 220px);
      }
      @media(max-width: 1550px){
          right: calc(calc((100% - 1200px)/2) + 255px);
      }
      @media(max-width: 1250px){
          right: calc(calc((100% - 900px)/2) + 285px);
      }
      @media(max-width: 660px){
          right: calc(calc((100% - 500px)/2) + 255px);
      }
  }

    .register-button:hover {
        transform: scale(1.1); /* Increase size on hover */
    }

    .register-span{
        font-size: 16px;
        font-weight: bold;
        color: #fff;
    /*    center text in the middle*/
        justify-content: center; !important;
        align-items: center; !important;
    }

  .register-button {
      cursor: pointer;
      position: fixed;
      transition: transform 0.3s ease-in-out;
      top: 20px;
      z-index: 9999;
      padding:5px;
      background-color: #000000; !important;
      border: none;
      box-shadow: 0 2px 4px rgba(0, 10, 0, 0.38);
      text-decoration: none; !important;
      border-radius: 5px;
      @media ( min-width: 1851px) {
          right: calc(calc((100% - 1800px)/2) + 170px);
      }
      @media(max-width: 1850px){
          right: calc(calc((100% - 1500px)/2) + 210px);
      }
      @media(max-width: 1550px){
          right: calc(calc((100% - 1200px)/2) + 245px);
      }
      @media(max-width: 1250px){
          right: calc(calc((100% - 900px)/2) + 275px);
      }
      @media(max-width: 660px){
          right: calc(calc((100% - 500px)/2) + 255px);
      }
  }

  .cart-button-container {
      position: fixed;
      top: 20px;
      z-index: 9999;
      @media ( min-width: 1851px) {
          right: calc(calc((100% - 1800px)/2) + 75px);
      }
      @media(max-width: 1850px){
          right: calc(calc((100% - 1500px)/2) + 115px);
      }
      @media(max-width: 1550px){
          right: calc(calc((100% - 1200px)/2) + 150px);
      }
      @media(max-width: 1250px){
          right: calc(calc((100% - 900px)/2) + 180px);
      }
      @media(max-width: 660px){
          right: calc(calc((100% - 500px)/2) + 150px);
      }
  }

  .currency-container {
      position: fixed!important;
      top: 20px;
      z-index: 9999;

      @media (min-width: 1851px) {
          right: calc(calc((100% - 1800px)/2) + 0px);
      }
      @media (max-width: 1850px) {
          right: calc(calc((100% - 1500px)/2) + 40px);
      }
      @media (max-width: 1550px) {
          right: calc(calc((100% - 1200px)/2) + 75px);
      }
      @media (max-width: 1250px) {
          right: calc(calc((100% - 900px)/2) + 100px);
      }
      @media (max-width: 660px) {
          right: calc(calc((100% - 500px)/2) + 75px);
      }
  }


  .cart-icon-container {
      margin-right: 10px;
      position: relative;
      cursor: pointer;
      font-size: 24px;
      transition: transform 0.3s ease-in-out;
  }

  .cart-icon-container:hover {
      transform: scale(1.1); /* Increase size on hover */
  }

  .animate-cart-icon {
      transform: scale(1.1); /* Increase size on hover */
  }

  .cart-icon {
      color: black;
  }

  .cart-count {
      position: relative;
      top: -20px;
      right: 20px;
      background-color: #ff0000; /* Red background for the count */
      color: #fff;
      border-radius: 50%;
      padding: 4px 8px;
      font-size:10px;
      font-weight: bold;
  }
  .delete-icon{
      color: #ea5757;
      font-size: 15px;
      cursor: pointer;
      margin-top: 10px;

  }


  .buy-icon{
        color: #1d9a1d;
        font-size: 15px;
        cursor: pointer;
      margin-top: 10px;
  }

  .sell-icon{
        color: #ea5757;
        font-size: 15px;
        cursor: pointer;
        margin-top: 10px;
  }
  .list-item-container {
      border-bottom: 1px solid #ccc; /* Add a border between each item */
      margin-bottom: 10px;
      margin-top: 10px;
  }
  .list-items{
        display: flex;
        /*justify-content: space-between;*/
        align-items: center;
      font-size: 16px;
      font-weight: bold;
      font-family: Arial, Helvetica, sans-serif;
  }
  .list-item-container:last-child {
      border-bottom: none; /* Remove border from the last item to avoid an extra line */
  }
    .list-items .item-name{
        font-size: 16px;
        font-weight: bold;
        font-family: Arial, Helvetica, sans-serif;
    }
    .list-items .item-count{
        font-size: 16px;
        font-weight: bold;
        color: green;
        margin-left: -190px;
        margin-bottom: -8px;
        font-family: Arial, Helvetica, sans-serif;
    }
  .list-items .item-cost {
      font-size: 14px;
      font-weight: bold;
      color: #333;
      margin-right: 10px;
  }
  .item-qty{
      margin-left: 4px;
      color: #545353;
      !important; font-size: 16px;
  }
   .empty-cart-text{
       font-size: 16px;
       font-weight: bold;

       align-content: center;
       align-items: center;
   }

   .cart-item-qty{
       font-size: 16px;
       font-weight: bold;
       margin-left: 10px;
       color: #c90000;
   }

   .item-cost{
       font-size: 16px;
       font-weight: bold;
       color: #4e8f0e;
   }

   .hide{
       display: none;
   }
   .show{
       display: block;
   }
   .total-cost{
         font-size: 16px;
         font-weight: bold;
         color: #4e8f0e;
   }
  .total-cost-container {
      text-align: center;
  }
  .cart-item-image {
      width: 100%;
      margin-top: 10px;
      border-radius: 50%; /* Make the image circular */
  }
  /* Custom CSS for Bootstrap dropdown */



  .dropdown-menu a {
     !important color: rgba(0, 0, 0, 0.84); /* Set the text color of dropdown items */
  }




  /* Highlight the selected item */
  /*.dropdown-item.selected-currency {*/
  /*    background-color: #2f7ac4; !* Set a different background color for the selected item *!*/
  /*    color: #fff; !* Set the text color for the selected item *!*/
  /*}*/
  .delete-all-button {
      background-color: #ea5757;
      color: #fff;
      border: none;
      padding: 10px 20px;
      border-radius: 5px;
      cursor: pointer;
      font-size: 16px;
      font-weight: bold;
      transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
      margin-top: 20px; /* Adjust margin for better spacing */
      margin-left: 27%;
      display: block; /* Make it a block-level element */
      margin-right: auto; /* Center the button horizontally */
      margin-left: auto;
  }

  .delete-all-button:hover {
      background-color: #cc0000;
      transform: scale(1.04); /* Scale up on hover */
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Add a subtle shadow on hover */
  }

  .sell-mode-switch{
    box-shadow: black;
  }

  .dropdown-toggle{
      width: 80px;
      outline: none;
      border: none;

  }
 .dropdown button{
     box-shadow: black;
     border: none;
     padding: 8px 16px;
     border-radius: 8px;
     cursor: pointer;
     box-shadow: 0 2px 4px rgba(0, 10, 0, 0.38);
 }
  .dropdown-menu {
      display: none;
      position: absolute;
      background-color: #fff;
      z-index: 1;
  }

    .dropdown-menu.show {
        display: block;
    }
  .dropdown-menu a {
      color: #333;
      padding: 8px 16px;
      display: block;
        font-size: 15px;
        font-weight: bold;
        font-family: Arial, Helvetica, sans-serif;
      cursor: pointer;
  }

  .item.usd-bought-item {
      border: 1px solid #05ec58; /* Change the color and style as needed */
  }

    .item.doge-bought-item {
        border: 1px solid #E1B303; /* Change the color and style as needed */
    }

    .item-qty-input{
        outline: none   ;
        width: 50px;
        height: 25px;
        border-radius: 5px;
        border: 1px solid #ccc;
        padding: 0 10px;
        font-size: 16px;
        font-weight: bold;
        margin-left: -22px;
        @media (max-width: 1400px) {
            font-size: 13px;
            margin-right:12px
        }
    }
  .item-qty-input:focus {
      outline: none; /* Remove the default focus outline */
      border-color: #38f567; /* Default color for USD */
  }

  .doge-currency .item-qty-input:focus {
      border-color: #E1B303; /* Doge color when in Doge currency */
  }

  .contact-me{
        position: fixed;
        bottom: 0;
        right: 0;
        margin-right: 20px;
        margin-bottom: 20px;
        z-index: 9999;
        font-size: 14px;
        font-weight: bold;
        color: #fff;
        text-decoration: none;
        padding: 10px 20px;
        border-radius: 5px;
        background-color: #0a53c2;
        transition: background-color 0.3s ease;
          cursor: pointer;
  }
  .contact-me:hover{
      background-color: #3065e1;

  }

  .item.shake {
      animation: shake 0.3s;
      transition: transform 0.3s ease-in-out;
      transition: transform 0.3s ease-in-out;
  }

  @keyframes shake {
      0% { transform: translateX(0) scale(1.02) translateY(-5px)}
      25% { transform: translateX(5px) scale(1.02) translateY(-5px) }
      50% { transform: translateX(-5px) scale(1.02) translateY(-5px) }
      75% { transform: translateX(5px) scale(1.02) translateY(-5px) }
      100% { transform: translateX(0) scale(1.02) translateY(-5px) }

  }

  .footer{
      margin-top: 10px;
      opacity: 90%;
        bottom: 0;
        left: 0;
        text-align: center;
        padding: 10px;
        font-size: 14px;
        font-weight: bold;
        font-family: Arial, Helvetica, sans-serif;
  }
  .about{
      margin-top: -10px !important;
      cursor: pointer;
      display: inline !important;
      font-size: 15px;
  }

  .loader {
      border: 16px solid #4CAF50; /* Green */
      border-top: 16px solid #f3f3f3; /* Light grey */
      border-radius: 50%;
      width: 80px;
      height: 80px;
      animation: spin 1s linear infinite;
      display: none; /* Initially hide the loader */
      position: absolute;
      top: 50%;
      left: 50%;
      margin-top: -40px;
      margin-left: -40px;
  }

  @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
  }

  #loader,
  #loginForm,
  #registerForm,
  #form-container,
  #dashboard {
      display: none;
  }

  /* Add this CSS to make text lowercase */
  .modal-body p {
      text-transform: none;
  }

  .aboutText {
      font-size: 16px;
      line-height: 1.6;
      text-align: justify;
      font-family: Arial, Helvetica, sans-serif;
      padding: 10px;
      color: #333 !important;
      font-size: 14px;
      font-weight: bold;
  }

  body.modal-open {
      overflow: hidden;
  }