html{
    cursor: none;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;

}

.hand {
    position: absolute;
    z-index: 999;
    top: 0;
    left: 0;
    pointer-events: none;
}

#customer-container {
    position: relative;
    margin-top: -500px;
    left: 725px;
    top: -45px;
}

#tv {
    z-index: 10;
    width: 720px;
    height: 500px;
    position: relative;
}

#tv-background {
    position: absolute;
    z-index: 1;
    top: 140px;
    left: 170px;
    width: 300px;
    height: 260px;
}   

#order-text {
    left: 5%;
    transform: translateX(0);
    font-size: 24px;
    font-weight: bold;
    color: black;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.9);
}

#customer-img {
    z-index: 2;
    height: 250px;
    width: 320px;
    opacity: 0.9;
}

#customer{
    position: absolute;
    bottom: 0;
    left: 23%;
    top: 30%;
    z-index: 5;
}

#speech-bubble {
    position: absolute;
    top: 166px;
    right: 205%;
    transform: translateX(-50%);
    width: 320px;
    height: auto;
    z-index: 15;
}

#controls {
    position: absolute;
    bottom: 86%;
    left: 47%;
    z-index: 100;
    display: flex;
}

#serve-btn {
    background-color: green;
    width:150px;
    height: 55px;
    font-size: 20px;
    border-style: groove;
    border-color: yellow;
    border-width: 5px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 100;
    position: relative;
    cursor: none;
}

#serve-btn:disabled {
    background-color: red;
    color: black;
    transform: none;
    box-shadow: 0 2px 4px rgb(0, 0, 0);
}


#game-ui {
    position: absolute;
    width: 250px;
    top: 170px;
    right: 16%;
    z-index: 20;
    color: black;
    padding: 15px;
    border-radius: 10px;
}

#timer-display {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

#timer-text {
    color: green;
    font-size: 24px;
}

#timer-text.warning {
    color: orange;
}

#timer-text.danger {
    color: red;
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

#game-status {
    font-size: 16px;
    font-weight: bold;
}

#angry-count {
    color: red;
    font-weight: bold;
}

#game-over-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-over-content {
    cursor: default;
    color: rgb(0, 0, 0);
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#game-over-content h1 {
    color: red;
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.9);
}

#game-over-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

#restart-btn {
    background-color: #4CAF50;
    color: white;
    border-style: groove;
    border-color: yellow;
    border-width: 5px;
    padding: 15px 30px;
    font-size: 18px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    cursor: pointer;
}

#quit-btn {
    background-color: #f44336;
    color: white;
    border-style: groove;
    border-color: yellow;
    border-width: 5px;
    padding: 15px 30px;
    font-size: 18px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    margin-left: 20px;
    cursor: pointer;
}   

/* Base styling for all ingredient items */
.ingredient {
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#eyeballs,
#tomato-sauce,
#webs,
#toes,
#toenails,
#intestines,
#flies,
#brains {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background-color: transparent;
    border: none;
}

/* Individual positioning for each ingredient to align with bowls */
/* Left column */
#tomato-sauce {
    bottom: 400px;
    right: 300px;
}

#toes {
    bottom: 280px;
    right: 300px;
}

#eyeballs {
    bottom: 160px;
    right: 300px;
}

#flies {
    bottom: 40px;
    right: 300px;
}

/* Right column */
#webs {
    bottom: 400px;
    right: 130px;
}

#toenails {
    bottom: 280px;
    right: 130px;
}

#intestines {
    bottom: 160px;
    right: 130px;
}

#brains {
    bottom: 40px;
    right: 130px;
}

/* Pizza building area */
#pizza-area {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    position: absolute;
    bottom: 15%;
    left: 35%;
    z-index: 15;
}

#tomato-layer, #web-layer, #toes-layer, #toenails-layer, 
#eyeballs-layer, #intestines-layer, #flies-layer, #brains-layer {
    position: absolute;
    width: 40%;
    height: 90%;
    border-radius: 50%;
}

#tomato-layer{
    z-index: 16;
    width: 120%;
    height: 120%;
    left: -10%;
    top: -10%;
}
#web-layer{
    z-index: 17;
}
#toes-layer{
    z-index: 18;
}
#toenails-layer{
    z-index: 19;
}
#eyeballs-layer{
    z-index: 20;
}
#intestines-layer{
    z-index: 21;
}
#flies-layer{
    z-index: 22;
}
#brains-layer{
    z-index: 23;
}

#pizza-toppings {
    width: 100%;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px dashed #FFD700;
    border-radius: 5px;
    margin-bottom: 10px;
    min-height: 120px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    gap: 5px;
    padding: 5px;
}

#trash{
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    position: absolute;
    border-radius: 50%;
    width: 490px;
    height: 350px;
    left: 30px;
    bottom: 45px;
}

#trash-text {
    font-size: 60px;
    color: yellow;
    font-weight: bold;
}

.pizza-topping {
    background-color: rgba(76, 175, 80, 0.8);
    color: white;
    padding: 3px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #45a049;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}