body {
    background: #bfcdda;
    font-family: "Comfortaa", sans-serif;
    font-weight: 700;
}

h1 {
    font-family: "Pacifico", cursive;
    font-weight: 400;
    font-size: 100px;
    color: #5e3d2f;
    margin: 10px;
}

.screen {
   background-color: #4a1727;
   background-image: url('images/backgrd.jpg');
    background-size: cover;
    width: 92%;
   height: 800px;
   position: relative;
   margin: 0 auto;
}

/*timer*/
.score{
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
    width: 300px;
}
.Start{
    display: flex;
    align-items:center;
    justify-content:center;
    flex-direction: column;
    height: 350px;
    width: 350px;
    background-color: #e0bba7;
    position:fixed;
    width:100%;
    height:100%;
    z-index: 20;
}

.title-img {
    height: 320px;
    margin-bottom: 20px;
}

.button-style {
    border: #5e3d2f;
    border-style: solid;
    border-width: 3.5px;
    border-radius: 50px;
    width: 100px;
    height: 25px;
    font-family: "Comfortaa", sans-serif;
    font-weight: 900;
}

.button-style2 {
    border: black;
    border-style: solid;
    border-radius: 50px;
    width: 70px;
    height: 25px;
    font-family: "Comfortaa", sans-serif;
    font-weight: 700;
}

.music-controls {
    display: flex;
    gap: 8px;
    margin-left: 10px;
}

.base-button {
    border: 2px solid #5e3d2f;
    border-radius: 50px;
    font-family: "Comfortaa", sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    padding: 5px;
    
}

.base-button:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Start button specific */
.button-style {
    background-color: #f4e3b2;
    color: #5e3d2f;
    width: 100px;
    padding: 4px 0;
}

/* Music specific */
.music-toggle {
    background-color: #e0bba7;
    color: #5e3d2f;
    padding: 4px 20px;
    min-width: 120px;
}

.Start .buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.Start .buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/*
game visuals
*/

#topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e0bba7;
    /* position: absolute; */
    padding: 1%;
    align-items: center;
    gap: 10px;
}

.timer {
    font-size: larger;
    color: #ffffff;
    display: flex;
    justify-content: space-around;
    background-color: #874f6e; 
    width: 50%;
    border-radius: 10px;
    padding: 0 6px;
}


.restart-btn {
    background: #be6076;
    color: #ffffff;
    border-radius: 20px;
    border: #ffffff;
    border-style: solid;
    padding: 5px;
    margin: 10px;
    font-family: "Comfortaa", sans-serif;
}

.timer #clock {
    display: inline; 
}


@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}


.score {
    align-content: end;

}

.score_container {
    color: #ffffff;
    background-color: #be6076;
    margin: 5px;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}



#bar {
    background-color: #be6076;
    display: flex;
    justify-content: space-around;
    position: absolute;
    bottom: 0;
    width: 100%;
    min-height: 150px;
    max-height: 200px;
}

/* food and drinks */
.foods, .drinks {
    padding:0;
    margin:0;
    display:flex;
    flex-wrap:wrap;
    justify-content: space-evenly;
}

.foods li, .drinks li {
    width: 45%; 
    min-width: 40px;
}

.foods li img, .drinks li img {
    width:100%;
    height: 100%;
    object-fit: contain; 
} 

li {
    display: inline-block;
    text-align: center;
}

.bar-left, .bar-right  {
    background-color:#f4e3b2;
    padding: 5px;
    margin: 8px;
    border-radius: 10px;
    width: 200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    align-content: flex-start; 
}

/* middle serving station */
.serving_station .buttons {
    position: relative; 
    display: flex;
    flex-direction: column;
    gap: 10px; 
    z-index: 1;
}

.serving_station {
    display: flex;
    background-color: #e0bba7;
    border-radius: 10px;
    margin: 8px;
    width: 40%;
    align-items: center; 
    justify-content: center; 
    padding: 10px; 
}

.tray {
    background-image: url('images/platter.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    min-width: 60px;
    width: 150px; 
    height: 150px; 
     
}

.serving_station .buttons {
    display: flex;
    flex-direction: column;
    gap: 10px; 
}

#customer {
    display: flex;
    justify-content: space-evenly;
    padding: 20px; 
    transition: 1.5s;
}

/* animationn*/
#customer.move-right {
    animation: moveright 1.5s forwards;
}

#customer.move-left {
    animation: moveright 1.5s reverse;
}

#customer.rage {
    animation: shake 1.5s forwards;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); left: calc(50% - 183px); opacity: 1;}
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); left: calc(50% - 183px); opacity: 1;}
}

@keyframes moveright {
    from {
        left: -100vw;
        opacity: 0;
    }
    to {
        left: calc(50% - 183px);
        opacity: 1;
    }
}

@keyframes scoreJump {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  
  .jumping-score {
    animation: scoreJump 0.5s ease;
    display: inline-block; 
    color: #f4e3b2;
}

#customer .slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* customer image */
#customer .customer { 
    height: 500px;
    transform: translateY(-80px);  
}

/* request text style */
#customer .slot div {
    font-size: 18px;
    font-weight: bold;
}

#request {
    position: relative; 
    min-height: 100px; 
    flex-direction: column;
    align-items: center;
}

#request div {
    background-image: url('images/bubble.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    padding: 5px;
    text-align: center;
    min-width: 200px; 
    min-height: 100px; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px; 
    /* specifically for overflow */
    max-width: 200px;
    word-wrap: break-word;
    padding: 15px; 
    line-height: 1.4; 
}
