html, body {
	margin: 0;
	width: 100%;
	scroll-behavior: smooth;
	font-family: "Google Sans", roboto, arial, helvetica;
}

body {
	display: flex;
	min-height: 100vh;
	flex-direction: column;
}

.wrapper {
	max-width: 1200px;
	margin: 0 auto;
}
@media only screen and (min-width: 600px) {
.content{
	display: flex;
	gap: 1em;
	justify-content: space-evenly;
	flex-direction: row-reverse;
	/*align-items: center;*/
}
.adddiv{
	width: 50%;
	min-width: 400px;
}
.dropbtn, #doneAdding{
	display: none;
}
#myDropdown{
	display: block;
	position: initial;
	background: transparent;
	overflow: hidden;
}
.dropdown-content{
	left:0;
	top:11px;
	position: relative;
	transform: none;
	z-index: unset;
}
#myDropdown .closebutton {
	display: none;
}
	
}

body:has(.pulsebox) {
	overflow-y: hidden;
}
header {
	height: 56px;
	z-index: 5;
	position: sticky;
	top: 0;
	box-shadow: 0 5px 5px #00000085;
	
	cursor:pointer;
	
	text-align: center;
	text-shadow: black 2px 2px 4px;
	font-size: 1.3em;
	
	background: white;
}
header span {
	line-height: 56px;
	font-size: 1.3em;
}


h1.title,
.footer-copyright a {}

main {
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
}
.content {
	margin: 0 1.2em;
	min-width: 350px;
}
.adddiv {
	/*margin-bottom: 1.2em;*/
	position: relative;
}
.listdiv {
	transition: all 1s;
}
#groceryList:empty:before {
	content: "The list is empty!";
	display: table;
	font-size: 2.3em;
	border: 5px solid transparent;
	border-image: linear-gradient(to bottom right, #b827fc 0%, #2c90fc 25%, #b8fd33 50%, #fec837 75%, #fd1892 100%);
	border-image-slice: 1;
	margin: 20px auto;
	color: #512da8;
	font-weight: bold;
	text-shadow: 1px 1px 1px white, 1px 1px 3px black;
}


.aisle {
	margin-top: 25px;
	border-radius: 2px;
  padding: 1px 1em 13px;
  transition: max-height .5s .125s, padding .5s, max-width: .75s, transform: 1s;
}
div.aisle:empty{
	max-height: 0;
	padding: 0;
	outline:unset;
	transform: scale(.5,.5);
}

.aisle::before
{
	content: attr(data-aisle-title);
	position: relative;
	text-align: center;
	padding: 5px;
	min-width: 200px;
	font-weight: bold;
	top: -7px;
	left: -12px;
	outline: 1px #6a6a6a solid;
	border-radius: 10px;
	line-height: 12px;
}
div.aisle:empty::before{
	content:unset;
}

.listItem {
	position: relative;
	line-height: 1.1;
	display: grid;
	grid-template-columns: 1em auto;
	gap: 0.5em;
	/*text-align: center;*/
	font-size: 1.7em;
	max-height: 50px;
	transition: max-height 1s, margin 1s, padding 1s;
	cursor:pointer;
	border-radius: 0;
	padding: 5px 0.4em;
	transition: all .2s, max-height .75s;
}
.costtag{
	position: absolute;
    right: -10px;
    font-size: 12px;
    top: 20%;
    color: green;
    background: #dcffdc;
    padding: 2px 5px;
    border-radius: 10px;
    box-shadow: 1px 1px 2px #0aa900;
}
.costtag::before{
	content:"$";
}
.peroz::after{
	content:"/oz";
}

.listItem:has(input[type="checkbox"]:checked) {
	background: transparent;
}

#groceryList .listItem:has(input[type="checkbox"]:checked){
    transform: translate(100%,0) scale(0.5, 0.5);
    overflow: hidden;
    padding: 0;
}

#checkedItems .listItem:has(input[type="checkbox"]:not(:checked)){
	
    transform: translate(-100%,0) scale(0.5, 0.5);
    overflow: hidden;
    padding: 0;
    background: red;
}

.listItem:first-child {
	/*border-top-right-radius: 20px;*/
}
.listItem:last-child {
	/*border-bottom-left-radius: 20px;
	border-bottom-right-radius: 20px;*/
}

.hidden {
	max-height: 0;
	overflow: hidden;
	padding: 0;
	margin: 0;
}
.listItem + .listItem {}

.listItem--disabled {
	color: grey;
	cursor: not-allowed;
}

input[type="checkbox"] {
	/* Add if not using autoprefixer */
	-webkit-appearance: none;
	/* Remove most all native input styles */
	appearance: none;
	/* For iOS < 15 */

	/* Not removed via appearance */
	margin: 0;

	font: inherit;
	color: currentColor;
	width: 1.15em;
	height: 1.15em;
	border: 0.1em solid currentColor;
	border-radius: 0.15em;
	transform: translateY(-0.075em);

	display: grid;
	place-content: center;
}

input[type="checkbox"]::before {
	content: "";
	width: 1.1em;
	height: 2em;
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
	transform: scale(0);
	transform-origin: bottom left;
	transition: 120ms transform ease-in-out;
	box-shadow: inset 1em 1em #26f926;
	/* Windows High Contrast Mode */
	background-color: CanvasText;
}

input[type="checkbox"]:checked::before {
	transform: scale(1);
}

input[type="checkbox"]:focus {
	outline: max(2px, 0.15em) solid currentColor;
	outline-offset: max(2px, 0.15em);
}

input[type="checkbox"]:disabled {
	--listItem-color: grey;
	color: var(--listItem-disabled);
	cursor: not-allowed;
}

input[type="checkbox"]:checked + span {
	color: #999;
	box-shadow: 2px 2px 3px;
	text-decoration: line-through;
	background: #cecece;
}

#createItem, #checkout {
	width: 100%;
}
#showAll button:before{
	content: "Show All Items";
}
#showAll.selected{
	position: sticky;
	bottom:0;
}
#showAll.selected button:before{
	content: "Show Only Top 30 Items";
}
#showAll.selected button{
	display: sticky;
	box-shadow: inset 4px 4px 2px #0000005e, inset -4px -2px 2px #fdfdfd91, inset 0 50px 0 0 #0000002b;
	background: linear-gradient(#3bc3eb 0%, #4db7c9 10%, #5abdc7 75%, #13597b 100%);
}
.jbutton {
	margin: 20px auto;
	min-width: 300px;
	width: 40%;
	max-width: 500px;
	padding: .5em;
	font-size: 1.2em;
	display: block;
	cursor: pointer;
}
/*close button for modals*/
.closebutton{
	position: absolute;
    top: -25px;
    left: -25px;
    background: url(../icon/close_button.png) #9111dd;
    width: 50px;
    height: 50px;
    border-radius: 26px;
    cursor: pointer;
    margin: 5px;
}
#myDropdown .closebutton{
	/*top:5px;*/
	position: static;
	z-index:6;
	min-width: 50px;
}
/* The Modal (background) */
.modal {
	display: none;
	/* Hidden by default */
	position: fixed;
	/* Stay in place */
	z-index: 6;
	/* Sit on top */
	left: 0;
	top: 0;
	width: 100%;
	/* Full width */
	height: 100%;
	/* Full height */
	overflow: auto;
	/* Enable scroll if needed */
	background-color: rgb(0,0,0);
	/* Fallback color */
	background-color: rgba(0,0,0,0.9);
	/* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
	background-color: #fefefe;
	margin: 15% auto;
	/* 15% from the top and centered */
	padding: 20px;
	border: 1px solid #888;
	width: 80%;
	/* Could be more or less, depending on screen size */
	position: relative;
}

#checkoutForm div {
	position: sticky;
	top: 40%;
}
.modal-content input, .modal-content select {
	display: block;
	font-size: 1.6em;
	width: 100%;

	margin-bottom: .5em;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding: 5px;
}


.modal-content option:last-child {
	margin-bottom: 30px;
}
.modal-content label {
	font-size: 1.7em;
	font-weight: bold;
}
.jbutton:focus, button:hover {
    box-shadow: inset 2px 2px 2px #00d05e, inset -2px -2px 2px #039501fa, inset 0 50px 0 0 #14141436;
    outline: 2px solid green;
}

/*place a button in the header area to show club cards*/
.barcodeButton{
	position: absolute;
    display: inline-block;
    right: 5px;
    top: 3px;
}
.barcodeButton:after{
	content: " ";
    display: block;
    width: 80px;
    height: 50px;
    background: url(../icon/barcode-icon.png);
    background-size: cover;
}
/*styles to show club cards in the modal window*/
#barcode{
	background: black;
	z-index: 998;
}
#barcode .modal-content{
	margin:0;
	position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    left: 50%;
    border:none;
    border-radius: 2px;
}
.cardname{
  width:100%;
  margin: 5px;
  padding: 10px
}
.cardname.selected{
	box-shadow: inset 4px 4px 2px #0000005e, inset -4px -2px 2px #fdfdfd91, inset 0 50px 0 0 #0000002b;
}
.cardname.selected + .cardimg{
  max-height: 250px;
  transition: all .25s .15s;
}
.cardimg{
  max-height: 0;
  transition: all .5s;
  overflow: hidden;
  text-align:center
}
/*card images set inline*/
.cardimg:after{
	content:  var(--bg-image);
}

/* The Close Button? */
.close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
}


/*Footer statusbar content and styles*/
footer {
	width: 100%;
	position: fixed;
	bottom: 0;
	font-weight: bold;
	font-family: system-ui;
	font-size: 1.2em;
	line-height: 1.2em;
	-webkit-transition: max-height 1s;
	-moz-transition: max-height 1s;
	-ms-transition: max-height 1s;
	-o-transition: max-height 1s;
	transition: max-height 1s;
	overflow: hidden;
	max-height: 0;
	text-align: center;
	z-index: 10;
}

.updatewarn {
	color: #fff;
	background: #281654;
	background: linear-gradient(180deg, #281654, #472895);
	box-shadow: 0 -3px 12px #000;
	max-height: 50px;
	line-height: 50px;
	font-size: 2em;
}
.updatewarn:before {
	content: "Updating";
}
footer.offlinewarn {
	color: #141313;
	background: linear-gradient(180deg, #4e4e4e, grey);
	max-height: 50px;
	box-shadow: 0 -3px 12px #000;
	font-size: 2em;
}
footer.offlinewarn:before {
	content: "Offline";
}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {
  display: block;
}