body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
   
}

.game-container {
   width: 100vw;
   height: 100vh;
   background: linear-gradient(to bottom, #85c9f0, #007bb5);
   overflow: hidden;
}

/* Header Styling */
/* Header Styling */
.header {
    background-color:#fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
 
    width: 100%;
    height: 70px;
    z-index: 9999;
    position: absolute;
    top: 0;
    left: 0;
}

/* Logo Styling */
.header-logo {
    height: 70px; /* Adjust size */
    object-fit: contain;
    user-select: none;
    margin-left: 4%;
   
}

/* Container for Score & Time */
.header-info {
    display: flex;
    align-items: center;
    gap: 20px; /* Keep gap small */
    position: absolute;
    left: 65%;
}

/* Score and Time Box Styling */
.score-box, .time-box {
    background-color: #ff1400;
    color: #fff;
    font-weight: bold;
    text-align: center;
  
    border-radius: 5px;
    font-size: 18px;
    min-width: 50px; /* Prevent overflow issues */
    height: 40px; /* Keep consistent height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Labels for Score & Time */
.label {
    font-size: 14px;
    display: block;
    font-weight: normal;
}

/* Values inside Score & Time */
.score-value, .time-value {
    font-size: 22px;
    font-weight: bold;
    line-height: 1; /* Remove extra space inside */
}

/* Move Time Box Slightly Left */
.time-box {
    margin-left: -5px; /* Shift left without affecting alignment */
}

/* Time styling to match the image */
.time-value span {
    font-weight: bold;
    color:#fff;
}


.start-sec{
    width: 250px;
    height: 250px;
   align-items: center;
    z-index: 100;
    justify-content: center;
    display: flex;
    left: 17%;
    top: 20%;
    position: absolute;
    background-color: white;
}
.start-sec img{
    width: 85%;
    position: absolute;
    top: 13%;
    height: 70%;
    user-select: none;
}
#play-button {
    position: absolute;
    bottom: 20px; /* Adjust if needed */
    left: 50%;
    transform: translateX(-50%);
    background-color:#f7d006;
    color: white;
    font-size: 24px;
    font-weight: bold;
    border: none;
    padding: 5px 40px;
    border-radius: 50px;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease-in-out;
    animation: pulse 1.5s infinite ease-in-out;
    z-index: 10000; /* Ensure it is above everything */
}

/* Scale up and shrink effect */
@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.4);
    }
    100% {
        transform: translateX(-50%) scale(1);
    }
}

/* Hover effect for better user experience */
#play-button:hover {
    background-color:#d8b905;
}
.start-sec {
    transition: opacity 0.2s ease-out;
}

.shelf {
    position: absolute;
    width: 100%;
    height: 80%;
    top: -13%;
    overflow: hidden;
}
.shelf img {
    width: 100%; /* Ensure the image fills the parent container horizontally */
    height: 95%; /* Maintain the height proportion */
    transform: scale(1.1); /* Scale only the width by 1.15 times */
    transform-origin: center;
    z-index: 5; /* Set the scaling point to the center of the image */
    object-fit:contain;
    user-select: none; /* Prevent distortion and ensure the image scales properly */
}
#cart {
    width: 35%;
    height: auto;
    position: absolute;
    z-index: 5;
    bottom: -4%;
    transform: translateX(-50%) scale(0.9) ; 
    
    user-select: none;
    left: 50%; /* Set an initial position */
    cursor: grab; /* Indicate that the element is draggable */
    touch-action: none; /* Prevent default touch behaviors */
}
.row1 {
    position: absolute; /* Position it over the shelf */
    top: 37%; /* Adjust as needed to position it vertically on the shelf */
    width: 100%;
    display: flex;
    justify-content: space-around; /* Add space between the items */
    align-items: center;
    z-index: 10; /* Ensure this is above the shelf image */
}
.row1 .items
{
    width: 23%;
    height: auto;
    z-index: 10;
    user-select: none;
    position: relative;
    transform: scale(0.5);
    transform-origin: center
    
}
.row2 {
    position: absolute; /* Position it over the shelf */
    top: 54%; /* Adjust as needed to position it vertically on the shelf */
    width: 100%;
    display: flex;
    justify-content: space-around; /* Add space between the items */
    align-items: center;
    z-index: 10; /* Ensure this is above the shelf image */
}
.row2 .items1
{
    width: 23%;
    height: auto;
    z-index: 10;
    user-select: none;
    transform: scale(0.5);
    transform-origin: center;
    position: relative;
    
}

.row3 {
    position: absolute; /* Position it over the shelf */
    top: 56%; /* Adjust as needed to position it vertically on the shelf */
    width: 100%;
    display: flex;
    justify-content: space-around; /* Add space between the items */
    align-items: center;
    z-index: 10; /* Ensure this is above the shelf image */
}
.row3 .items2
{
    width: 20%;
    height: auto;
    position: relative;
    z-index: 10;
    transform: scale(0.6);
    transform-origin: center;
    user-select: none;
    
}
.row4 {
    position: absolute; /* Position it over the shelf */
    top: 74%; /* Adjust as needed to position it vertically on the shelf */
    width: 100%;
    display: flex;
    justify-content: space-around; /* Add space between the items */
    align-items: center;
    z-index: 10; /* Ensure this is above the shelf image */
}
.row4 .items3
{
    width: 20%;
    height: auto;
    position: relative;
    z-index: 10;
    transform: scale(0.6);
    transform-origin: center;
    user-select: none;
    
}
.game-over-style {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 360px;
    padding: 20px;
    background: white; /* Matching green gradient */
    color:black;
    display: none;
    font-size: 22px;
    text-align: center;
    z-index: 10000;
  }
  
  /* Game-Over Image */
  #bag {
    width: 41%; /* Adjust for better alignment */
    height: auto; /* Maintain aspect ratio */
    position: absolute;
    user-select: none;
    display: block;
    top: 64.5%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .close-btn {
    position: absolute;
    top: 4px;
    right: 2px;
    background: none;
    border: none;
    font-size: 15px;
    color: white;
    background-color: grey;
    border-radius: 100%;
    cursor: pointer;
    z-index: 20000;
}