@font-face {
    font-family: 'Dax Bold';
    src: url('fonts/DaxBold.otf') format('opentype');
    font-weight: 700;
}

.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
}

.info-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: white;
  border: 1px solid #cccccc;
  width: 250px;
}

.product-top {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; 
    padding-bottom: 10px;
}

.product-bottom {
    width: 100%; 
}

.img-container {
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none; /* Prevent text selection */
  cursor:none;

}

.img-product {
  height: 125px;
  width: 125px;
  border-radius: 10px;
  user-select: none; /* Prevent text selection */
  cursor:default;
}

.product-info {
  color: #2b2b2b;
  font-family: 'Dax Bold', 'Nunito', system-ui, sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-align: left; 
  padding-bottom: 10px;
  user-select: none; /* Prevent text selection */
}

.how-to {
    font-family: 'Dax Bold', 'Nunito', system-ui, sans-serif;
    color: rgb(102, 102, 102);
    font-size: 8px;
    margin-bottom: 20px;
    user-select: none; /* Prevent text selection */
}

.hidden-price {
    font-family: 'Dax Bold', 'Nunito', system-ui, sans-serif;
    font-weight: 600;
    color: black;
    margin-bottom: 5px;
}

.enter-price {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 10px;
    margin-bottom: 15px;
    margin-right:10px;
}

.price-form {
    border: 1px solid rgba(102, 102, 102, 0.8);
    padding-left: 5px;
}

.add-button {
    font-family: 'Dax Bold', 'Nunito', system-ui, sans-serif;
    font-weight: 600;
    font-size: 12px;
    background: #d11c2e;
    border-radius: 20px;
    height: 25px;
    color:white; 
    display:flex;
    text-align:center;
    justify-content:center;
    align-items:center;
    border: none;
    cursor: pointer;
}

.error-message {
    color: red;
    font-size: 0.8em;
    margin-top: 5px;
    animation: fadeOut 3s ease-in-out;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.bar-chart-container {
    width: 100%;
}

.bar-container {
    background-color: #eee; /* Light grey background */
    margin-bottom: 5px;
}

.bar {
    background-color: #d11c2e; /* Use your primary color here */
    color: white;
    text-align: center;
    padding: 5px;
    box-sizing: border-box;
}

.score-bar {
    background-color: #4caf50; /* Example color */
    color: white;
    padding: 10px;
    margin: 2px 0;
}

/* Remove the arrows on Chrome, Safari, Edge, Opera */
.price-form::-webkit-outer-spin-button,
.price-form::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove the arrows on Firefox */
.price-form[type=number] {
    -moz-appearance: textfield;
}

.share-button {
    font-family: 'Dax Bold', 'Nunito', system-ui, sans-serif;
    font-weight: 600;
    font-size: 12px;
    background: #d11c2e;
    border-radius: 20px;
    height: 25px;
    color: white; 
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    width: 100%; 
}


/* ---- Product-page style card (modelled on iceland.co.uk product pages) ---- */
.info-card{width:min(92vw,380px);padding:16px;border-radius:12px;border:1px solid #e6e6e6}
.product-top{padding-bottom:12px}
.product-info{font-family:'Nunito',system-ui,sans-serif;font-weight:400;font-size:22px;line-height:1.25;color:#555;margin-bottom:12px}
.offer-banner{border-radius:8px;overflow:hidden;margin-bottom:10px}
.offer-top{background:#ffe900;padding:10px 12px;color:#222;font-size:15px;line-height:1.35}
.offer-top b,.offer-bottom b{font-size:inherit;font-family:inherit;line-height:inherit}
.offer-sub{font-size:13px;margin-top:2px}
.guess-count{font-weight:700}
.offer-bottom{background:#fff9c4;padding:8px 12px;font-size:12px;color:#222}
.how-to{font-family:'Nunito',system-ui,sans-serif;font-weight:400;font-size:14px;color:#6b6b6b;margin-bottom:14px;user-select:none}
.price-block{display:flex;flex-direction:column;align-items:flex-end;margin-bottom:14px}
.hidden-price{font-size:30px;font-weight:700;color:#222;line-height:1.1;margin:0}
.per-kg{font-family:'Nunito',system-ui,sans-serif;font-size:15px;color:#555;margin-bottom:12px;min-height:1.2em}
.new-badge{background:#0060c7;color:#fff;font-family:'Nunito',system-ui,sans-serif;font-weight:700;font-size:14px;padding:4px 0;border-radius:6px;width:62%;text-align:center}
.enter-price{grid-template-columns:1fr 1fr;gap:10px;margin:0 0 14px 0;align-items:stretch}
.price-form{height:44px;font-size:16px;border:1px solid #bdbdbd;border-radius:6px;padding:0 12px;background:#fff;color:#222;font-family:'Nunito',system-ui,sans-serif;font-weight:600}
.add-button,.share-button{height:44px;border-radius:6px;background:#1fa27e;color:#fff;font-family:'Nunito',system-ui,sans-serif;font-weight:600;font-size:15px;border:none;cursor:pointer}
.add-button:disabled{color:#fff}
.error-message{grid-column:1/-1;margin-top:0}
