/* General Styles */
body {
  font-family: 'Lora', sans-serif;
  margin: 0px;
  padding: 0;
  background: url('images/palmtreesbackground.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #dbcd02;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
  /*text-shadow: 1px 1px 3px rgb(250, 255, 222); */
}

/* Heading Styling */
h2 {
  text-align: left;
  color: #dbcd02;  /* Gold color for text */
  font-size: 2rem;  /* Font size for header */
  margin-bottom: 20px;
  position: relative;  /* Ensures the bubble effect stays around the text */
  padding: 15px 20px;  /* Adds padding inside the bubble */
  background-color: rgba(255, 255, 255, 0.2);  /* Light, transparent background for the bubble */
  border-radius: 15px;  /* Rounded corners for the bubble */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);  /* Subtle shadow for depth */
  max-width: fit-content;  /* Makes the bubble wrap tightly around the text */
}


h3 {
  position: relative;
  text-align: left;
}

h3::after {
  content: "<scroll>";
  position: absolute;
  right: 0;  /* Move it to the right side */
  bottom: -30px;  /* Adjust the distance below the header */
  font-size: 12px;  /* Make it small */
  color: rgba(255, 255, 255, 0.3);  /* Very faint white text */
  font-style: italic;  /* Optional: make it italic to distinguish it */
  width: 100%;
  text-align: right;  /* Align the text to the right */
}



/* Dashboard container with centered content */
.dashboard-container {
  width: 100%;
  max-width: 1200px;
  margin: 30px;
  padding: 30px;
  color: #dbcd02;
  background: url('images/palmtreesbackgrounddos.jpg') no-repeat center center fixed;
  text-shadow: 1px 1px 3px rgb(49, 49, 49);
  box-shadow: 0 6px 20px rgba(14, 14, 14, 0.1);
  border-radius: 12px;
  text-align: left;
}

/* Items container - centered horizontally */
.items-container {
  display: flex;
  flex-wrap: nowrap;  /* Allow wrapping so items don't get pushed off the screen */
  gap: 25px;
  justify-content: flex-start;
  margin-top: 30px;
  overflow-x: auto;
  padding-bottom: 10px;
}

/* Item box styling */
.item {
  width: 180px;  
  /* allow height to grow if needed, remove fixed height */
  min-height: 340px;  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  background-color: #f6f8db;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease-in-out;
}

.item:hover {
  transform: scale(1.05);
}

.item img {
  width: 150px;
  height: 230px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.item p {
  font-weight: bold;
  color: #0c0c0ce5;
  margin: 15px 0;
}

.whatsapp-button {
  background-color: #e7e43b;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.whatsapp-button:hover {
  background-color: #c7c405;
}

/* Cart Button Styles */
.cart-button, .clear-cart-button {
  background-color: #c7c405;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 10px;
  display: inline-block;
  transition: background-color 0.3s ease-in-out;
}

.cart-button:hover, .clear-cart-button:hover {
  background-color: #c0b73c;
}

/* Floating Cart and Clear Cart Buttons */
.cart {
  position: fixed;
  bottom: 20px;  /* Ajusta la distancia desde el fondo de la pantalla */
  right: 20px;   /* Ajusta la distancia desde la derecha de la pantalla */
  z-index: 1000; /* Asegura que los botones estén encima de otros elementos */
  display: flex;
  flex-direction: column;
  gap: 10px;     /* Espacio entre los botones */
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
  border-radius: 12px; /* Rounded corners for the whole cart container */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);  /* Subtle shadow for depth */
}

/* Adjust the size of the cart and clear cart buttons */
.cart-button, .clear-cart-button {
  padding: 8px 16px;  /* Reduced padding */
  font-size: 12px;     /* Smaller font size */
}

/* Add styles for the selected button */
.selected {
  background-color: #c7c405;
  color: white;
  border: none;
}

/* Price Selection Buttons */
.price-btn {
  background-color: #f6f8db;
  color: #c7c405;
  border: 1px solid #c7c405;
  padding: 6px 12px;   /* Reduced padding */
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;      /* Smaller font size */
  margin: 4px 0;        /* Space between buttons */
  width: 80%;           /* Make buttons a little narrower */
  box-sizing: border-box; /* Ensure padding doesn't affect width */
}

.price-btn:hover {
  background-color: #c7c405;
  color: white;
}

/* Add styles for selected state for price button */
.price-btn.selected {
  background-color: #c7c405;
  color: white;
  border-color: #c7c405;
}

.clear-cart-button {
  background-color: #fdaf7a;
  color: white;
  border: none;
  padding: 8px 16px;  /* Reduced padding for the 'Vaciar Carrito' button */
  font-size: 12px;     /* Smaller font size for the 'Vaciar Carrito' button */
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 20px;
  display: inline-block;
  transition: background-color 0.3s ease-in-out;
}

.clear-cart-button:hover {
  background-color: #ff5e00;
}

/* Checkout Button Styles */
.checkout-button {
  background-color: #abf764;
  color: rgb(0, 0, 0);
  border: none;
  padding: 14px 25px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  display: block;
  margin: 30px auto 0;
  transition: background-color 0.3s ease-in-out;
}

.checkout-button:hover {
  background-color: #66a300; /* Darker Olive Green */
}

/* Logout Button Styles */
.logout-button {
  background-color: #f44336; /* Red */
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  display: block;
  margin: 30px auto 0;
  transition: background-color 0.3s ease-in-out;
}

.logout-button:hover {
  background-color: #d32f2f; /* Darker Red */
}

/* Center everything */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

/* Align important info list to the left */
.important-info {
  width: 100%;
  padding: 0px;
  text-align: left; /* Align the content to the left */
}

.important-info ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.important-info li {
  margin: 0px 0;
  color: #dbcd02;
  font-size: 12px;
}

/* Align bottom content (list) to the left side */
.list-container {
  position: relative;
  padding-left: 0px;  /* Add some left padding for alignment */
}

.list-container ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

.list-container li {
  color: #c7c405;
  font-size: 12px;
  margin: 8px 0;
}

/* For better layout control */
@media (max-width: 768px) {
  .list-container {
    left: 10px; /* Adjust position for smaller screens */
  }
}
