.topnav a.wg {
  float: right;
  display: block;
  color: black;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}
.topnav {
  overflow: hidden;
  background-color: whitesmoke;
  border-bottom: 1px solid black;
  margin-bottom: 34px;
}



.topnav a.active {
  background-color: #ADD8E6;
  color: black;
}

.topnav .icon {
  transition:color  0.25s;
  display: none;
  background-color: #ADD8E6;
  color: white;
}

@media screen and (min-width: 600px) {
  .topnav a {
    float: left;
    display: block;
    color: black;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
  }
  .topnav a:hover {
    background-color: #ddd;
    transition: background-color 0.25s, color  0.25s;
    color: black;
  }
}
@media screen and (max-width: 600px) {

  .topnav a:not(:nth-child(4)) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
  }

  .topnav a {
    display: block;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    align-content: center;
    color: black;
  }

  .topnav a.active {
    position: relative;
    float: none;
    display: block;
    text-align: center;
  }

  .topnav.responsive {position: relative;}
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: center;
  }

  .topnav.responsive a.icon {
    background-color:  whitesmoke;
    color: black;
    transition:color  0.25s;
  }
}
#page-container {
  position: relative;
  min-height: 100vh;
}

#content-wrap {
  padding-bottom: 2.5rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.footer-content p {
  margin: 0;
}

#footer {
  background-color:#f5f5f5;
  border-top: 1px solid black;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 8%;  
  justify-content: center; 
}

.footer-content {
  align-content: center;
  height: 100%;
}

html, body {
    margin:0;
    padding:0;
    height:100%;
 }
  .beer {
    align-content: center;
    align-self: center;
    background-color: #f5f5f5;
    display: flex;
    width: 100%;
  }

  .beer p {
    margin: 0;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 20px;
    vertical-align: center;
    align-content: center;
    align-self: center;
  }

.donate {
  height: 100%;
  align-items: center;
}

.paypal {
  height: 100%;
  align-items: center;
  align-self: center;
}

.sales {
  display: flex;
  justify-content: center; 
  align-items: center; 
  flex-wrap: wrap;
}

.sale.clicked {
  color:#FFD700;
}

button.sale {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  width: fit-content;
}
.sale-item.clicked {
  background-color:#FFD700;
}

.sale-item {
  color:black;
  transition: background-color 0.3s;
  transition: width 0.3s, height 0.3s;
  margin: 10px;
  padding: 20px;
  text-align: center;
  border: 2px solid black;
  background-color: #ADD8E6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sale-item i {
  margin-bottom: 10px 0; 
}

.sale-item p {
  margin: 5px 0; 
}

.cart {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.shopping {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  font-size: 18px;
  color: #555;
}

.shopping i {
  margin-right: 5px;
}

.container {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.checkout {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 40px;
}

#checkoutButton {
  transition: background-color .3s;
  padding: 10px 20px;
  font-size: 18px;
  background-color: #4CAF50;
  color: white;
  border: 1px solid black;
  cursor: pointer;
  margin-bottom: 20px;
}

.dropdown {
  order: -1;
  display: none;
  top: 100%;
  right: 0;
  width: 300px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.dropdown ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.dropdown ul li {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 10px;
  border-bottom: 1px solid #f1f1f1;
  text-align: center;
}

.dropdown ul li:last-child {
  border-bottom: none;
}

.dropdown ul li .item,
.dropdown ul li .price,
.dropdown ul li .amount {
  font-weight: bold;
}

.dropdown .total {
  padding: 10px;
  text-align: right;
  font-weight: bold;
}

.dropdown .info {
  text-align: right;
}

.dropdown .total span {
  font-weight: bolder;
}

.dropdown ul li,
.dropdown .total {
  grid-column-gap: 10px;
}

.dropdown ul li .item {
  grid-column: 1;
}

.dropdown ul li .price {
  grid-column: 2;
}

.dropdown ul li .amount {
  grid-column: 3;
}


.dropdown ul li:hover {
  background-color: #f1f1f1;
  cursor: pointer;
}


.cart .fa-shopping-cart {
  transition: color 0.3s;
  cursor: pointer;
}

@media (min-width: 768px) {
  .sale-item {
    min-width: min-content;
    width: 150px;   
    aspect-ratio: 1/1;
  }
}

@media (max-width: 768px) {
  .sale-item {
    width: min-content;
    min-width: 30vw; 
    aspect-ratio: 1 / 1;
  }
}

@media (min-width: 1080p) {
  .cart .fa-shopping-cart:hover {
    color: #f5a623;
  }
  #checkoutButton:hover {
    background-color: #FFD700;
  }
  .sale-item:hover {
    background-color: #FFD700; 
    cursor: pointer; 
  }
}

#popupContainer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
}

#popupContent {
  align-self: center;
  text-align: center;
  background-color: #fff;
  max-width: 400px;
  margin: 100px auto;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#closePopup {
  display: block;
  margin: 0 auto; 
  padding: 5px 10px;
  background-color: #ccc;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  background-color: #4CAF50;
  color: black;
}

