/* *{
  border: 1px red solid;
} */

:root {
  /* colors */
  --red: #F3403B;
  --yellow: #FFC548;
  --green: #00B588;
  --blue: #6b81ef;
  --black: #151515;
  --white: #FBFBFB;
}


/*font-family: "louvette-pixel", sans-serif;
font-weight: 400;
font-style: normal;

font-family: "archivo", sans-serif;
font-weight: 400;
font-style: normal;

font-family: "dark-london", sans-serif;
font-weight: 400;
font-style: normal;
*/

html, body {
  /* height: 100%; */
  /* width: 100%; */
  margin: 0;
  padding: 0;
  background-color: var(--yellow);
  background-image: url("assets/background.png");
}

.title{
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 25px;
  justify-content: center;
  gap: 20px;
}

.title h1{
  font-family: "dark-london", sans-serif;
  font-size: 75px;
  font-weight: 400;
  color: var(--black);
  text-align: center;
  letter-spacing: 1px;
  margin: 0px;
  padding: 0px;
}

.context{
  font-family: "RL Horizon", sans-serif;
  /* color: var(--black); */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10%;
  padding: 10px 15px;
  text-align: center;
  border: 2px solid var(--black);
  font-size: 14px;
  background-color: var(--black);
  color: #fac146;
  /* font-weight: 700; */
  /* transition: background-color 0.2s, color 0.2s; */
}

.context:hover {
  background-color: #fac146;
  color: var(--black);
  /* font-weight: 700; */
}

#please-change-font{
  font-family: "dark-london", sans-serif;
  text-align: center;
  font-size: 30px;
  font-weight: 400;
  color: var(--black);
  letter-spacing: 1px;
  margin: 25px auto;

  padding: 0px;
}

hr{
  color: var(--black);
  border: 1px solid var(--black);
  width: 80%;
  margin: auto;
}

.main{
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.shopping{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  margin: auto;
}

#instructions{
  font-family: "RL Horizon", sans-serif;
  font-size: 21px;
  letter-spacing: 1px;
  margin: 0px;
  padding: 0px
}

.product-card {
  max-width: 12em;
  background-color: #FBFBFB;
  padding: 1em;
  border: 2px solid var(--black);
  border-radius: 1px;
  /* box-shadow: 0 1px 5px #151515; */
  font-family: Arial, Helvetica, sans-serif;
  transition: .2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between
}

.product-card img {
  max-width: 100%;
}

.product-card p {
  font-family: "archivo", sans-serif;
  max-width: 100%;
  font-size: 50px;
  text-align: center;
}
.product-card h4 {
  font-family: "RL Horizon", sans-serif;
  font-size: 21px;
  line-height: 21px;
  letter-spacing: 1px;
  margin: 5px 0;
}
.product-card div {
  font-family: "archivo", sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* .add-button {
  background-color: #F3403B;
  color: #FBFBFB;
  font-family: "archivo", sans-serif;
  font-size: 16px;
  font-weight: 400;
  border: none;
  border-radius: 5%;

  width: 50px;
  height: 25px;
  transition: .2s;
  margin-left: 40px;

}

.product-card.active .add-button{
  background-color: #F3403B;
  transition: .2s;
}


.product-card.active {
  background-color: #E8E8E8;
  color: #151515;
  transition: .2s;

}
.add-button:hover {
  color: #FBFBFB;
  background-color: #00B588;
}

.product-card.active .add-button {
  color: #FBFBFB;
  background-color: #00B588;
  transform: rotate(0deg);
  transition: .2s;
} */

.add-button {
  background-color: green;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  font-size: 1em;
  transition: .2s;
  cursor: pointer;

}

.spent-shake {
  color: #F3403B !important;
  animation: shake 0.5s ease 1;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.cart-empty{
  font-family: "receipt-narrow", sans-serif;
  font-size: 12px;
  letter-spacing: 1px
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5em 0;
  font-family: "receipt-narrow", sans-serif;
  font-size: 14px;
  color: #FBFBFB;
}

.cart-item + .cart-item {
  border-top: 1px solid rgba(255,255,255,0.2);
}

.cart-item-name {
  flex: 1;
}

.cart-item-price {
  margin: 0 1em;
  white-space: nowrap;
}

.cart-remove {
  background: none;
  border: none;
  color: #F3403B;
  font-size: 1.2em;
  cursor: pointer;
  padding: 0 0.3em;
  line-height: 1;
  font-family: "receipt-narrow", sans-serif;
}

.cart-remove:hover {
  color: #ff6b6b;
}

.checkout-btn {
  display: block;
  width: 100%;
  padding: 0.75em;
  margin-top: 20px;
  background-color: var(--black);
  color: #FBFBFB;
  border: white 1px solid;
  /* border-radius: 0 0 10px 10px; */
  font-family: "receipt-narrow", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.checkout-btn:hover:not(.disabled) {
  background-color: #d63631;
}

.checkout-btn.disabled {
  background-color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

.sources-link {
  cursor: pointer;
}

.sources-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.sources-overlay.visible {
  display: flex;
}

.sources-popup {
  position: relative;
  background: #FBFBFB;
  color: #151515;
  width: 500px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 10px;
  padding: 2em;
}

.sources-close,
.actions-close {
  position: absolute;
  top: 0.75em;
  right: 0.75em;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #555;
}

.sources-close:hover,
.actions-close:hover {
  color: #151515;
}

.sources-title {
  font-family: "dark-london", sans-serif;
  font-size: 28px;
  margin: 0 0 0.25em;
}

.sources-description {
  font-family: "archivo", sans-serif;
  font-size: 13px;
  color: #555;
  margin: 0 0 1.5em;
}

.sources-item {
  border-bottom: 1px solid #ddd;
  padding: 0.75em 0;
}

.sources-item:last-child {
  border-bottom: none;
}

.sources-product-name {
  font-family: "archivo", sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 0.25em;
}

.sources-link-text {
  font-family: "archivo", sans-serif;
  font-size: 12px;
  margin: 0.15em 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.sources-link-text a {
  color: #F3403B;
  text-decoration: none;
}

.sources-link-text a:hover {
  text-decoration: underline;
}

.receipt-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.receipt-overlay.visible {
  display: flex;
  flex-direction: column;
}

.receipt {
  position: relative;
  background: url('assets/receipt-paper.png') center/cover;
  color: #151515;
  width: 350px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 4px;
  padding: 2em 1.5em;
  font-family: "receipt-narrow", sans-serif;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.receipt-header {
  text-align: center;
  /* border-bottom: 2px dashed #999; */
  padding-bottom: 1em;
  margin-bottom: 1em;
}

.receipt-header h2 {
  font-family: "dark-london", sans-serif;
  font-size: 32px;
  margin: 0;
}

.receipt-subtitle {
  font-family: "receipt-narrow", sans-serif;
  font-size: 12px;
  color: #555;
  margin: 0.25em 0 0;
}

.receipt-info {
  border-bottom: 2px dashed #999;
  padding-bottom: 0.75em;
  margin-bottom: 0.75em;
}

.receipt-info p {
  font-family: "receipt-narrow", sans-serif;
  font-size: 13px;
  margin: 0.2em 0;
}

.receipt-stamps {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  pointer-events: none;
}

.receipt-stamps img {
  position: absolute;
  width: 120px;
  height: 120px;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0.85;
}

.receipt-item {
  display: flex;
  justify-content: space-between;
  padding: 0.4em 0;
  font-family: "receipt-narrow", sans-serif;
  font-size: 14px;
  border-bottom: 1px dotted #999;
  gap: 5px;
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  padding: 0.25em 0 0.25em;
  margin-top: 0.2em;
  font-family: "receipt-narrow", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.receipt-remaining {
  display: flex;
  justify-content: space-between;
  padding: 0.25em 0;
  font-family: "receipt-narrow", sans-serif;
  font-size: 14px;
  color: #555;
}

.receipt-item-count {
  display: flex;
  justify-content: space-between;
  padding: 0.75em 0 0.25em;
  margin-top: 0.5em;
   border-top: 2px dashed #151515;
  font-family: "receipt-narrow", sans-serif;
  font-size: 14px;
}

.receipt-footer-info {
  border-top: 2px dashed #999;
  padding-top: 0.75em;
  margin-top: 0.75em;
}

.receipt-footer-info p {
  font-family: "receipt-narrow", sans-serif;
  font-size: 13px;
  margin: 0.2em 0;
}

.receipt-tagline {
  text-align: center;
  font-family: "receipt-narrow", sans-serif;
  font-size: 11px;
  color: #333;
  margin: 1em 0 0.5em;
  font-style: italic;
}

.receipt-barcode {
  display: flex;
  justify-content: center;
  margin: 0.5em 0;
}

.receipt-barcode img {
  width: 60%;
  height: auto;
}

.share-receipt-btn {
  display: block;
  margin: 0.75em auto 0;
  padding: 0.6em 1.5em;
  background-color: #F3403B;
  color: #FBFBFB;
  border: none;
  border-radius: 6px;
  font-family: "archivo", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.share-receipt-btn:hover {
  background-color: #d63631;
}

.receipt-thanks {
  text-align: center;
  font-family: "receipt-narrow", sans-serif;
  font-size: 12px;
  color: #555;
  margin-top: 1.5em;
  margin-bottom: 0;
  /* border-top: 2px dashed #999; */
  padding-top: 1em;
}

.receipt-url {
  text-align: center;
  font-family: "receipt-narrow", sans-serif;
  font-size: 11px;
  color: #777;
  margin-top: 0.5em;
  margin-bottom: 0;
}

.cart-list {
  list-style: none;
  padding: 0;
  margin: 0.5em 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 0.75em 0 0.25em;
  margin-top: 0.5em;
  border-top: 2px solid rgba(255,255,255,0.4);
  font-family: "receipt-narrow", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #FBFBFB;
  letter-spacing: 1px;
}

.product-card.active .add-button{
  background-color: red;
  transform: rotate(45deg);
  transition: .2s;
}


.product-card.active {
  opacity: .75;
  background-color: #fbfbfb;
  color: #000;
  transition: .2s;

}
.add-button:hover {
  color: #000;
  background-color: green;
}

.product-card.active .add-button {
  color: #000;
  background-color: red;
  transform: rotate(45deg);
  transition: .2s;
}


.products-container{
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
  padding: 1em;
}

#billionaire-container{
  display:flex;
  flex-direction: row;
  align-items: center;
  margin: 0;
  justify-content: center;
}

#billionaire-selector {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.billionaire-card {
  left: 0;
  top: 0;
  text-align: center;
  transition: transform 0.35s ease;
  text-decoration: none;
  list-style-type: none;
}

.billionaire-card::marker{
  text-decoration: none;
  color: var(--black);
  display: none;
  list-style-type: none;
  opacity: 0;
}

li{
  text-decoration: none;
  list-style-type: none;
}

.billionaire-card img {
  height: 80px;
  width: auto;
  transition: transform 0.35s ease;
}

.billionaire-card span {
  display: block;
  font-family: "RL Horizon", sans-serif;
  font-size: 14px;
}



/*#billionaire-selector:hover .billionaire-card {
  transform: scale(1.25);*/
/* } */

#selected-info{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:200px;
  text-decoration: none;
}

#selected-head{
  list-style-type: none;
}

#selected-head img{
  height: 75px;
  border-radius:50%;
  margin-left: 18px;
  /* filter: drop-shadow(0 0 10px gold); */
}

.counter {
  min-width: 60%;
  position: sticky;
  bottom: 0;
  background-color: #151515;
  color: #FBFBFB;
  padding: 1em;
  border-radius: 10px 10px 0 0;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

.counter.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#billionaire-name{
  font-family: louvette-pixel, sans-serif;
  font-size: 46px;
  letter-spacing: 1px;
  font-weight: 400
}

#billionaire-name .billionaire-title {
  display: block;
  font-family: "receipt-narrow", sans-serif;
  font-size: 14px !important;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.7;
}

#billionaire-money{
  font-family: louvette-pixel, sans-serif;
  font-size: 46px;
  letter-spacing: 1px;
  font-weight: 400
}

.counter p{
  font-family: "receipt-narrow", sans-serif;
  font-size: 16px;
  letter-spacing: 1px
}

#warning{
  font-family: "archivo", sans-serif;
  font-size: 26px;
  letter-spacing: 1px
}

.collapsible {
  background-color: #FBFBFB;
  color: #151515;
  cursor: pointer;
  padding: 21px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-family: "archivo", sans-serif;
  font-size: 16px;
}

.collapsible.cart{
  background-color: #151515;
  color: #FBFBFB;
  width: auto;
  padding: 10px;
  margin-left: auto;
}

/* .active, .collapsible:hover {
  background-color: #FBFBFB;
} */

.content {
  padding: 0 18px;
  display: none;
  overflow: visible;
  /* background-color: #FBFBFB; */
  font-family: "archivo", sans-serif;
}

#cart{
  height: 30px;
  text-align: right;
}

@keyframes cart-fade-yellow {
  0% { filter: none; }
  16% { filter: brightness(0) saturate(100%) invert(85%) sepia(60%) saturate(500%) hue-rotate(0deg); }
  33% { filter: none; }
  50% { filter: brightness(0) saturate(100%) invert(85%) sepia(60%) saturate(500%) hue-rotate(0deg); }
  66% { filter: none; }
  83% { filter: brightness(0) saturate(100%) invert(85%) sepia(60%) saturate(500%) hue-rotate(0deg); }
  100% { filter: none; }
}

.cart-blink {
  animation: cart-fade-yellow 3s ease-in-out;
}

#cart-container{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

#cart-stats{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-left: 20px;
  font-family: "receipt-narrow", sans-serif;

}

#cart-stats span{
  font-family: "receipt-narrow", sans-serif;
  font-size: 21px;
  letter-spacing: 1px;
}

#selected-head li span{
  opacity: 0;
  display: none;
}

footer{
  align-items: center;
  padding: 25px 0px;
  background-color: var(--black);
  margin: 0;
}

footer p{
  font-family: "RL Horizon", sans-serif;
  font-size: 13px;
  color: var(--white);
  letter-spacing: 1px;
  text-align: center;
}

footer a{
  color: var(--white);
  text-decoration: none;
}

.footer-sources-link {
  display: none;
  cursor: pointer;
  text-decoration: underline;
}

.mobile-take-action {
  display: none;
}

@media screen and (max-width: 1240px) {
  #billionaire-container {
    flex-direction: column;
  }

  .title h1{
    font-size: 45px;
    margin: 0px;
    padding: 0px;
  }
}

@media screen and (max-width: 550px) {

.product-card{
  width: 90%;
  max-width: 90%;
}

.title{
  flex-direction: column;
  margin: 10px;
  gap: 0px;
}

  hr{
    display: none;
  }

.title h1{
  font-size: 45px;
  margin: 0px;
  padding: 0px;
}

.context{
  width: 100%;
  padding: 2.5px 5px;
  text-align: center;
  border: 2px solid var(--black);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#please-change-font{
   font-size: 21px;
   margin: 10px auto;
   padding: 0px;
  max-width:90%;
  text-align: center;

}

  .desktop-only {
    display: none;
  }

  #view-sources,
  #take-action {
    display: none !important;
  }

  #instructions{
    font-size: 16px;
  }

  .mobile-take-action {
    width: 90%;
    display: flex !important;
    font-family: "RL Horizon", sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    margin: 0.5em auto;
    padding: 10px 5px;
    border: 2px solid var(--black);
    color: var(--white);
    /* transition: background-color 0.2s, color 0.2s;
    */
    background-color: var(--black);
  }

  .mobile-take-action:hover {
    background-color: var(--black);
    color: #FBFBFB;
    font-weight: 700;
  }

  .footer-sources-link {
    display: block !important;
  }

  #billionaire-container {
    flex-direction: column;
  }

  #billionaire-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0;
    list-style: none;
  }
  
}