#cart {

}

#cartbutton, #cartclosebutton {
    font-family: Impact;
    font-size: 16px;
    position: fixed;
    top: 10px;
    cursor: pointer;
    left: 0px;
    padding: 10px;
    padding-left: 20px;
    color: white;
    z-index: 30;
    box-sizing: border-box;
    box-shadow: #444 2px 2px 4px;
    border-right: solid darkorange 8px;
    background-color: rgba(0, 159, 183, 0.8);
    min-width: 0px;
    max-width: 100px;
    overflow: hidden;
    transition: max-width 1s ease-in-out, padding 1s ease-in-out, border-width 1s ease-in-out 0.25s;
}

#cartbutton {
	padding: 12px;
	padding-left: 20px;
}

#cartbutton.active, #cartclosebutton.active {
    max-width: 0;
    border-width: 0;
    padding: 10px 0 10px 0;
    box-sizing: border-box;
}

#cart:before {
	content: "CART";
	position: absolute;
	font-family: 'Ceviche One', cursive;
	right: 0;
	top: 10px;
	margin-right: 30px;
	font-size: 50px;
	text-decoration: underline;
}

#cart {
    background-color: rgba(0, 159, 183, 0.7);
    color: white;
    width: 400px;
    box-sizing: border-box;
    height: 100%;
    padding: 5px;
    padding-top: 70px;
    position: fixed;
	font-size: 20px;
    top: 0;
    left: -425px;
    z-index: 20;
    box-shadow: #444 5px 5px 10px;
	transition: left 1s ease-in-out;
	overflow: auto;
	padding-bottom: 40px;
}
#cart.active {
    left: 0;
}

.cart-button {
	background-color: white;
	padding: 10px;
	font-family: Lato;
	border: none;
}

.cart-button:first-child {
	position: absolute;
	left: 0;
}
.cart-button:last-child {
	position: absolute;
	right: 0;
}

#cart .wrapper {
	position: relative;
	display: inline-block;
	width: 100%;
}

.cart-item {
	background-repeat: no-repeat;
	background-size: 60px 60px, contain;
	height: 60px;
	margin: 5px 0;
	position: relative;
	background-color: rgb(0, 134, 158);
    white-space: nowrap;
    overflow: hidden;
}

.cart-item:hover > .remove{
	visibility: visible;
}

.cart-item * {
	display: inline-block;
	vertical-align: middle;
}

.cart-item > img {
	height: 60px;
	margin-right: 10px;
}

.cost {
	position: absolute;
	right: 4px;
	bottom: 2px;
	float: right;
	font-size: 13px;
}

.cost:before {
	content: "$";
}

.remove {
	position: absolute;
	top: 2px;
	right: 2px;
	padding: 2px;
	border: 2px outset rgb(50, 209, 233);
	text-align: center;
	width: 10px;
	visibility: hidden;
	float: right;
	font-size: 8px;
	z-index: 4;
	background-color: rgb(0, 134, 158);
    cursor: pointer;
}

#cartbutton.bounce {
    animation: bounce 2s cubic-bezier(0.75,0.4,0.4,0.75);
}

.red {
    border: 2px solid red;
}




@keyframes bounce {
    0% {transform: translateX(0);}
    25% {transform: translateX(15px);}
    50% {transform: translateX(0);}
    75% {transform: translateX(15px);}
    100% {transform: translateX(0);}
}