@import url('https://fonts.googleapis.com/css2?family=Playpen+Sans:wght@100..800&display=swap');
/* Full‑screen reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { 
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    font-family: "Playpen Sans", cursive;
    background-color: #000000;
    background-image: url(assets/background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
 }

 #scoreBar,
.screen,
.station-btn,
#cashierUI,
canvas {
  font-family: 'Playpen Sans', sans-serif;
}

 body {
  width: 100%;
  max-width: 1280px;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: auto;
  align-items: center;
  font-family: 'Playpen Sans', sans-serif;
 }

 .headermenu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  margin-bottom: 15px;
  width: 100%;
  color: #ffc503;
 }

 .headermenu h1 {
  font-size: 38px;
  font-weight: 400;
  margin: 0;
 }

#ca {
  color: #1479bd;
  cursor: pointer;
}

.logo {
  width: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  width: 600px;

}

 .bottommenu {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  gap: 10px;
  margin-top: 15px;
  width: 100%;
 }

 .social-button {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  padding: 10px 20px;
  width: 150px;
  border: none;
  border-radius: 2px;
  background-color: #e22d0d;
  color: #ffc503;
  font-weight: bold;
  font-family: "Playpen Sans", cursive;
 }

 .social-button:hover {
  cursor: pointer;
 }

.game {
    width: 1000px;
    height: 800px;
    box-shadow: #333 0px 0px 0px 5px;
    background-image: url(assets/stations.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
    font-family: 'Playpen Sans', sans-serif;
}

/* Menu styling */
#menu {
  width: 100%; height: 100%;
  background: url('assets/menu-bg.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: 'Playpen Sans', sans-serif;
}

#menu h1 {
  font-size: 3rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  margin-bottom: 1rem;
}

#menu button {
  font-size: 1.25rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Playpen Sans', sans-serif;
  background-color: #e22d0d;
  color: #ffc503;
}

/* Hide canvas until game starts */
#gameCanvas 
{ display: none; 
  background: #eee; 
  font-family: 'Playpen Sans', sans-serif;
}

.hidden { display: none; }
.station-ui {
  padding: 20px;
  font-family: sans-serif;
  /* and any other layout/styling you like */
}
.columns {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}
.column {
  flex: 1;
  background: #fafafa;
  padding: 10px;
  border-radius: 8px;
}
.header {
    position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: center;
  left: 10px;
  top: 50px;
}
.item-btn {
  display: flex;
  align-items: center;
  user-select: none;           /* Standard */
  -webkit-user-select: none;   /* Safari */
  -moz-user-select: none;      /* Firefox */
  -ms-user-select: none;       /* IE10+ */
  cursor: pointer;             /* still show pointer */
  margin: 8px 0;
  font-family: 'Playpen Sans', sans-serif;
}
.item-btn img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}
.ok-btn {
  padding: 10px 20px;
  font-size: 18px;
  background-color: #e22d0d;
  border-radius: 5px;
  border: 1px solid #000;
  color: #ffc503;
  font-weight: bold;
}

.ok-btn:hover {
    cursor: pointer;
    transform: scale(1.02);

}
#backButton       { font-size: 16px; }

#scoreDisplay     { font-size: 18px; }

/* screens */
.screen { padding: 20px; font-family: sans-serif; }
.hidden { display: none; }

/* score bar */

#scoreBar {
    width: 1000px;
    background: #333;
    color: #fff;
    padding: 8px 20px;
    font-size: 18px;
    z-index: 10;
    /* new: ensure children can be absolutely positioned */
    overflow: visible;
    display: flex;
    position: absolute;
  }
  
  /* Wrapper for popups inside the score bar */
  #scorePopups {
        width: 10%;
    height: 100%;
    pointer-events: none;
    position: absolute;
    left: 100px;
  }
  
  /* Each +1 */
  .scorePopup {
    color: #28a745;
    font-size: 18px;
    animation: popup 1s ease-out forwards;
  }

  .scorePopup.minus {
    color: #dc3545; /* Bootstrap “danger” red */
  }

/* station select */
.station-btn {
  display: flex;
  cursor: pointer;
  position: absolute;
  border: solid 1px #000;
  border-radius: 10px;
  background: #e22d0d;
  padding: 15px;
  font-weight: bold;
  font-size: 20px;
  color: #ffc503;
}

.station-btn:hover {
  cursor: pointer;
  transform: scale(1.01);
  filter: brightness(1.05);
}


.station-btn img {
  
}

#burgerbutton {
    right: 10%;
    bottom: 50%;
}

#cashbutton {
  left: 45%;
  bottom: 5%;
}

#friesbutton {
    left: 10%;
    bottom: 50%;
}

@keyframes popup {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-30px); }
}

/* Cashier columns */
.column {
  margin: 20px 0;
}
.item-btn {
  display: flex; align-items: center;
  cursor: pointer; margin: 8px 0;
}

.item-btn img { 
    width:50px; 
    height:50px; 
    margin-right:10px;
    pointer-events: auto;     /* still allow clicks */
    webkit-user-drag: none;  /* Safari/Chrome */
    user-drag: none;          /* (future spec) */
}

#stationSelectUI {
    padding-top: 50px;
    position: relative;
    width: 100%;
    height: 100%;
    background-image: url(assets/stations.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  #stationSelectUI h2 {
    background-color: #e22d0d;
    padding: 15px;
    color: #ffc503;
  }

.station-grid {    
   width: 100%;
   height: 100%;
}

#cashierUI {
    padding-top: 50px;
    display: flex;
    background-image: url(/assets/cashier.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

#selectItems {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
}

#selectItemsOuter h2 {
    color: #ffc503;
}

#selectItemsOuter {
    display: flex;
    flex-direction: column;
    background-color: #e22d0d;
    height: 31%;
}

#yourPicks {
    background-color: #e22d0d;
    gap: 5px;
    display: flex;
    flex-direction: column;
    height: 50%;
}

#computer {
    position: absolute;
    width: 80.1%;
    background-color: #f8e800;
    height: 66.5%;
    padding: 10px;
    top: 138px;
    border-radius: 5px;
}

.item-btn {
    display: flex;
    flex-direction: column;
    width: 130px;
    height: 100px;
    padding: 10px;
    margin: 5px;
    border: #000000 solid 2px;
    border-radius: 5px;
    background-color: #eee;
    gap: 5px;
    font-weight: bold;
}

.pick-line {
    background-color: #eee;
    padding: 5px 5px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    font-weight: bold;
}

#pick-fries, #pick-hamburger, #pick-soda, #pick-cheeseburger, #pick-bigmaccas {
    border: #000 1px solid;
    padding: 2px 10px;
    border-radius: 2px;
}

#yourPicks h2 {
    color: #ffc503;
}

.minus-btn {
    font-weight: bold;
    font-size: 16px;
    padding: 0px 5px;
    color: #e22d0d;
    border: #e22d0d solid 2px;
    border-radius: 5px;
    background-color: #ffc503;
}
