.listItems {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: space-around;
  justify-content: space-around;
  justify-content: space-evenly;
  font-size: 1.2em;
  text-align: center;
  margin: 20px;
}

.listItems a {
  backface-visibility: hidden;
  position: relative;
  cursor: pointer;
  display: inline-block;
  white-space: nowrap;
  border-radius: 100px;
  border: 1px solid #999;
  border-width: 1px 1px 1px 1px;
  padding: 5px 20px 7px 20px;
  box-shadow: 0px 2px 2px rgba(0,0,0,0.5), 0px 0px 5px rgba(0,0,0,0.25);
  
  font-family: Helvetica Neue;
  font-weight: 900;
  font-style: normal;
  text-shadow: 0px 1px 1px rgba(0,0,0,0.3);
  gap: 0.5em;
  margin-top: 11px;
  font-size: 1.1em;
  min-width: 100px;
  
  background: linear-gradient(35deg, #dadada, #eeeeee);

}
.listItems a:hover
{
  box-shadow: inset 5px 5px 4px #0000005e, inset -5px -5px 4px #ffffff75;
}
.listItems a > div {
  color: #999;
  font-size: 10px;
  font-family: Helvetica Neue;
  font-weight: normal;
  font-style: normal;
  text-align: center;
  margin: 0px 0px 0px 0px
}
.listItems a > i {
  font-size: 1em;
  border-radius: 0px;
  border: 0px solid transparent;
  border-width: 0px 0px 0px 0px;
  padding: 0px 0px 0px 0px;
  margin: 0px 0px 0px 0px;
  position: static
}

.button {
  border-radius: 20%;
  border: 1px black solid;
  background: radial-gradient(#04AA6D, #068757);
  border-radius: 20%;
  padding: 10px 5px;
  border: 1px black solid;
  text-shadow: 1px 1px 3px black;
  color: white;
}
.listItems a.added {
  background: transparent !important;
  color: black !important;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  width: 100%;
  cursor: no-drop;
  text-shadow: 1px 1px 3px #ff7f00;
}

.listItems a.added:before {
  content: "On List: " !important;
  background: transparent !important;
  position: relative !important;
  box-shadow: none !important; 
  color: black !important;
  top: 0 !important;
  left: 0 !important;
  border-radius: 0 !important;
  transform: none!important;
  font-size: 1em !important;
  font-weight: normal!important;
  text-decoration: underline !important;
}

#addItemsList.hideAdded:before {
  content: "Top 30 items, search for more.";
  width:100%;

}
/*hide new item button until you've searched*/
#addItemsList.hideAdded + #createItem {
  display: none;
}

.hideAdded a.added {
  display: none;
}
.hideAdded a:nth-child(n+31) {
  display: none;
}

/* Dropdown Button */

.dropbtn span:before {
  content: "Add Items to Shopping List";
}
.pulsebox .dropbtn span:before {
  content: "Adding to List";
}

/* The search field */
#mySearch {
  box-sizing: border-box;
  background-image: url('../icon/searchicon.png');
  background-position: 14px 12px;
  background-repeat: no-repeat;
  font-size: 16px;
  padding: 14px 20px 12px 45px;
  border: none;
  border-bottom: 1px solid #ddd;
  width: 100%;
  text-align: center;
}

/* The search field when it gets focus/clicked on */
#mySearch:focus {
  outline: 3px solid #ddd;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  position: absolute;
  /*top: 52px;*/
  background-color: #f6f6f6;
  min-width: 230px;
  border: 1px solid #ddd;
  z-index: 1;
  width: 100%;
  min-height: 66vh;
  margin-top: 3px;
  max-width: 1200px;
  left: 50%;
  transform: translate(-50%, 0);
}

.dropdown_topbar{
  display: flex;
  position: sticky;
  top: 0;
  z-index: 7;
  background: #000000a8;
  height: 60px;
}

.search{
  width: -webkit-fill-available;
  margin: auto 10px;
}

/* Links inside the dropdown */
.dropdown-content a {
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #f1f1f1
}

