/* General Styles */
body {
  background-color: #fff; /* old color f8f4ec */
/*   font-family: Google Sans, Arial, sans-serif; */
  font-family: Google Sans,Roboto,Noto,sans-serif;
  color: #000000;
  -webkit-text-size-adjust: 100%;
}

.container {
  max-width: 600px;
  padding-top: 20px;
  padding-bottom: 20px;
}

h2 { color: #08442c; }

.description {
  color: #777;
  font-style: italic;
  margin-bottom: 10px;
  text-align: center;
}

/* Getting started button */
#get-user-started {
  display: block;
  margin: 0 auto; /* Center the button */
  padding: 12px 24px; /* Padding for size */
  font-weight: bold; /* Bold font */
  color: white; /* White text */
  text-align: center; /* Center text */
  border-radius: 24px; /* Rounded corners */
  background: linear-gradient(to right, blue, purple); /* Gradient background */
  border: none; /* No border */
  cursor: pointer; /* Hand cursor on hover */
  font-size: 16px; /* Font size */
  transition: all 0.3s ease; /* Transition effect for hover */
}

#get-user-started:hover {
  background: linear-gradient(to right, purple, someColor); /* Reverse gradient on hover for a nice effect */
}


/* List Styles */
.master-list,
.ad-hoc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item {
  font-size: 15px;
/*   font-weight: bold; */
  font-weight: 550;
  font-family: Open Sans, sans-serif;
/*   font-family: Google Sans,Roboto,Noto,sans-serif; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #666362;
  padding: 0px 10px;
  border-radius: 8px;
}

.add-master-item { margin-bottom: 20px; }

#master-item-input { border: 2px solid #b5c2c7; }

.empty-list-message {
  font-size: 15px;
  color: #777;
  border: 1px dashed #aaa;
  padding: 10px;
  text-align: center;
  margin: 20px auto;
  display: inline-block;
}

.empty-list-image {
  text-align: center;
  margin-bottom: 5px; /* Space between the image and the message */
}

@keyframes rainbow {
  0%, 100% { background-color: transparent; }
  12% { background-color: red; }
  25% { background-color: orange; }
  37% { background-color: yellow; }
  50% { background-color: green; }
  62% { background-color: blue; }
  75% { background-color: indigo; }
  87% { background-color: violet; }
}

.empty-list-image img {
  width: 110px;
  height: auto;
  background-color: transparent;
  animation: rainbow 40s linear infinite;
}

/* List Drag and Drop Styles */
.item:active { opacity: 0.5; }
.item:hover { cursor: grab; }

/* Adding to Today's List */
.todays-grocery-item {
  background-color: #d8e4ec; /* green light color D6F6D5 and light blue: f0f4fc */
  transition: background-color 0.3s;
}

/* Button Styles */
button {
  background-color: #9d7463;
  border: none;
  color: white;
  padding: 8px;
  border-radius: 5px;
  cursor: pointer;
}

.primary-button {
  font-size: 18px;
  font-weight: bold;
  font-family: 'Nunito';
  background-color: #4285F4; /* old background 18ac0c*/
  border: none;
  color: white;
/*   padding: 0.4rem; /* Unchanged padding */ 
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  width: 2.5rem; /* Changed min-max to width and height */
  height: 1.6rem;
}

.primary-button:hover { background-color: #000000; }
.primary-button:active { background-color: #D1FFBD; } /* Darker color when button is clicked */

.remove-button {
  font-size: 14px; /* Unchanged font size */
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.copy-button, .sms-button {
  background-color: transparent;
  border: 1px solid #aaa;
  color: #000000;
  padding: 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.copy-button:hover, .sms-button:hover {
  background-color: #f0f0f0;
  color: #455954;
}

.quantity {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Notification Styles */
.notification-hidden { display: none; }

.notification-visible {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.99);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  color: #777;
  transition: all 0.3s;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.notification-warning {
  background-color: #ffcc00;
  color: #333;
}


/* Login Form Styles */
.login-description {
  text-align: center;
  color: #777;
  font-style: italic;
  margin-bottom: 20px;
  font-size: 14px;
}

.login-form {
  background-color: #fff; /* old background f8f4ec*/
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 60px;
}

.login-container {
  max-width: 300px;
  margin: 15px auto;
  padding: 20px;
  background-color: #ffffff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.login-form input {
  width: 100%;
  border: 2px solid #b5c2c7;
  padding: 8px;
  margin: 5px 0;
  border-radius: 5px;
  font-size: 10px;
}

.login-form .button-container { 
  display: flex; 
  justify-content: space-between;
}


.login-button, .register-button {
  border: none;
  color: black;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  width: 45%;
  font-size: 10px;
}

.login-button {
  background-color: #4285F4; /*old color 18ac0c*/
  color: white;
}

.register-button { background-color: #d8e4ec; }


.forgot-password {
  display: block;
  text-align: center;
  margin-top: 10px;
  color: #777;
  font-size: 10px;
}

.login-form a:hover {
  text-decoration: underline;
}

/* logged out */
#logged-out {
  display: none;
}

/* loading */
.loading-hidden {
  display: none;
}

/* Loading Animation */
.loading-visible {
  display: flex;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  align-items: center;
  justify-content: center;
  z-index: 1000; /* Ensure it's above other elements */
}

.spinner {
  border: 5px solid rgba(0,0,0,0.3);
  border-radius: 50%;
  border-top: 5px solid #000;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* logged out value prop section */
.value-prop {
  background: #fff; /* old background f6f9fc*/ 
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 20px auto;
  position: relative;
}

.value-prop h1 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 46px;
  margin-bottom: 20px;
  color: #333;
}

.value-prop .first-part {
  color: black; /* Makes "The thoughtful way" black */
}

.value-prop .second-part {
  background: linear-gradient(to bottom right, #fde047, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.value-prop .join-button {
  font-family: Google Sans,Roboto,Noto,sans-serif;
  font-weight: 400;
  background-color: #4285F4;
  color: #fff;
  padding: 12px 20px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s;
}

.value-prop .join-button:hover {
  background-color: #18ac0c;
}

.value-prop p {
  font-size: 18px;
  color: #555;
  margin-top: 20px;
}

/* Responsive design for mobile devices */
@media only screen and (max-width: 600px) {
  .value-prop .content {
    flex-direction: column;
    align-items: center;
  }
  
  .value-prop h1 {
    font-size: 30px;
  }

  .value-prop .feature h2 {
    font-size: 20px;
  }

  .value-prop .feature p,
  .value-prop p {
    font-size: 16px;
  }
}

/* image on value prop */
.img-carousel {
  max-width: 30%;
  height: auto;
  margin: 20px auto;
  display: block;
}

#carouselExampleIndicators {
  max-width: 100%;
}

/* Responsive design for mobile devices */
@media only screen and (max-width: 600px) {
  .img-carousel {
    max-width: 40%;
  }
}

/* floating bubble for adhoc list */
#floating-bubble {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4285F4;
  color: white;
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 18px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}

.floating-bubble-hidden {
  display: none;
}
