html {
    min-height: 100%;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100%;
    background: #061d33;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    margin: 0;
}

.no-js-message {
    color: white;
    position: absolute;
    width: 100%;
    padding: 50px;
    background: #000000e0;
    border-radius: 10px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

p {
    font-weight: 600;
}

ul {
    text-align: left;
    margin-top: 20px;
    padding: 0 20px;
}

li > button {
    font-weight: 800; 
    background: none;
    border: none;
	cursor: pointer;
}

.flex-container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.page-title {
    padding: 50px 0;
    font-weight: bold;
}

.page-title h1 {
    color: #fff;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0;
    font-family: 'Adamina', 'Georgia', serif;
    letter-spacing: 5px;
    font-size: 30px;
}

.input-group {
	margin-bottom: 5px;
}
.social-share-buttons a {
  text-decoration: none;
}

.share-tool-section {
	text-align: center;
}

.share-tool-section .social-share-buttons {
    padding: 10px 20px;
    background: none;
}

.share-tool-section .social-share-buttons a {
    color: #ffffff99;
    padding: 8px;
}

.share-tool-section .social-share-buttons a i {
    border: 1px solid #ffffff21;
    padding: 10px;
    border-radius: 6px;
}


/* App styles */

.grocery-list-app {
    margin-bottom: 40px;
}

.app-container {
    max-width: 500px;
    margin-right: auto;
	margin-left: auto;
    background: white;
    text-align: center;
    overflow: hidden;
    padding: 35px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	position: relative;
}


/* Grocery App Styles */
.grocery-app {
    text-align: left;
}

.grocery-form {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.grocery-form input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    margin-right: 10px;
    transition: border 0.2s ease;
}

.grocery-form input[type="text"]:focus {
    border-color: #061d33;
}

.grocery-form button {
    background: #061d33;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.grocery-form button:hover {
    background: #0c2c4d;
}


.grocery-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.grocery-list li {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #f2f2f2;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.grocery-list li:hover {
    background: #f0f0f0;
}

.grocery-list input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.2);
    cursor: pointer;
}

.grocery-list span {
    flex: 1;
    word-break: break-word;
}

/* Completed items */
.grocery-list li.completed {
    background: #c8ffe1;
}

.grocery-list li.completed span {
    text-decoration: line-through;
    opacity: 0.8;
}

/* Delete button */
.grocery-list button.delete-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.grocery-list button.delete-btn:hover {
    color: #d9534f;
}


.tabs {
    display: flex;
    margin-top: 25px;
}

.tabs .tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    color: #061d33;
	border-bottom: 3px solid #f1f1f1;
    transition: background 0.2s ease, color 0.2s ease;
}

.tabs .tab.active {
    border-color: #061d33;
    color: #061d33;
}

.tabs .tab:hover {
    background: #f9f9f9;
}


.tab-content {
    margin-top: 20px;
}

.tab-content.hidden {
    display: none;
}



.category-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5rem;
}

.category-tab {
  padding: 0.5rem 1rem;
  border: none;
  background: #f2f2f2;
  cursor: pointer;
  border-radius: 6px 6px 0 0; 
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
}

.category-tab.active {
  background: #4CAF50;
  color: white;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
}

.category-tab:hover {
  background: #4CAF50;
  color: white;
  transform: translateY(-2px);
}


.categories .category {
  display: none;
  padding: 1rem 20px;
  background: #fafafac2;
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.03);
}

.categories .category.active {
  display: block;
}

.category ul {
  max-height: 400px; 
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: auto;
  list-style: none;
}

.category li {
  margin: 0;
}



@media (max-width: 600px) {
  .category-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    border-bottom: none;
    padding-bottom: 0;
  }

  .category-tab {
    text-align: left;
    border-radius: 6px;
  }
	
  .tabs .tab {
	font-size: 14px;
  }

}


@media (min-width: 601px) {
  .category-tabs {
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  .category-tabs::-webkit-scrollbar {
    height: 6px;
  }
  .category-tabs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
  }
}


.add-item {
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f5f5f5;
    color: #333;     
    cursor: pointer;
	text-align: left;
    transition: background 0.2s ease, border 0.2s ease;
}

.add-item:hover {
    background: #061d33;
    color: #fff;
    border-color: #061d33;
}




#favorites-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#favorites-list li {
    padding: 8px 10px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 8px;
    font-weight: 600;
	justify-content: space-between;
    display: flex;
}

/* Clear Button */
.clear-btn {
	display: block;
    background: #d9534f;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.clear-btn:hover {
    background: #c9302c;
}

/* Share Button */
#share-btn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

#share-btn:hover {
  background: #43a047;
  transform: translateY(-1px);
}

/* Share Menu (Dropdown) */
.share-menu {
  position: absolute;
  right: 0;
  margin-top: 68px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 20;
  min-width: 180px;
}

/* Hide by default */
.share-menu.hidden {
  display: none;
}

/* Menu buttons */
.share-menu button {
  background: none;
  border: none;
  padding: 8px 12px;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
  color: #333;
}

.share-menu button:hover {
  background: #f5f5f5;
}

.list-actions {
  position: relative;
}

.list-action-buttons {
  display: flex;
  justify-content: space-between; /* pushes first child left, last child right */
  align-items: center;            /* keeps them aligned vertically */
  width: 100%;
  margin: 30px auto 0px;
}


/* Notes */
.note.subtle {
    color: #555555bd;
    font-size: 14px;
    margin-top: 20px;
    font-style: italic;
    text-align: center;
}


/* End App styles */


footer {
    padding: 15px 20px;
    color: #ffffff6e;
    font-family: sans-serif;
    text-align: center;
    font-size: 15px;
    letter-spacing: .2px;
}

footer a {
    color: #ff9901;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}

footer .made-by {
    color: white;
}

footer .footer-copyright {
    font-size: 14px;
    line-height: 1.4;
    font-weight: lighter;
}
