html,
body {
    user-select: none;
    overflow: hidden;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

#renderCanvas {
    user-select: none;
    width: 100%;
    height: 100%;
    touch-action: none;
}

#testColor {
    user-select: none;
    position: absolute;
    top: 70px;
    left: 2%;
    color: rgb(56, 199, 51);
    font-size: 20px;
}

#pointPopUp {
    user-select: none;
    position: absolute;
    top: 80%;
    font-family: 'Cooper Black', sans-serif;
    color: rgb(255, 0, 0);
    font-size: 54px;
    padding: 5px;
    border-radius: 5px;
    opacity: 0;
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
}
.reward {
    user-select: none;
    position: absolute;
    top: -500px;
    width: 220px;
    height: 180px;
    background-image: url('./assets/rewardButton.png');
    background-size: contain;
    cursor: pointer;
    transition: transform 0.5s ease-in-out;
    opacity: 0;
    pointer-events: none;
}

.custom-loading-screen {
    user-select: none;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #1c144c;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(255, 255, 255);
    font-size: 50px;
    text-align: center;
    z-index: 2;
}
.crazyGamesLogo {
    user-select: none;
    position: absolute;
    bottom: 0;
    right: 0;

}
.crazyGamesLogo img {
    max-width: 70%;
    user-select: none;
}

#logo {
    top: 1%;
    user-select: none;
    position: relative;
    
}

#logo img {
    top: 1%;
    user-select: none;
    max-width: 70%;
    /* Ensure the logo image does not exceed the container's width */
    width: 70%;
    height: 70%;
}

#startGameButton {
    user-select: none;
    position: absolute;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
}

@keyframes floatAndFade {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-550px);
        opacity: 0;
    }
}

/* Drop and Score */
#cookieCounter,
#levelCounter,
#wallCounter,
#wallTimer,
#scoreCounter {
    user-select: none;
    position: absolute;
    font-family: 'Cooper Black', sans-serif;
    font-size: 32px;
    color: white;
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
}

#sugarCounter {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 20px;
    user-select: none;
}

#levelCounter {
    top: 20%;
    left: 1%;
    font-size: 24px;
}

#scoreCounter {
    top: 24%;
    left: 1%;
    font-size: 24px;
}

#cookieCounter {
    top: -35%;
    right: 10%;
}

/* Drop and Make Cookie Buttons*/
#cookieControls {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    gap: 150px;
    user-select: none;
}

#buttonContainer {
    position: relative;
    z-index: 2;
    user-select: none;
}

#makeCookieButton,
#dropCookieButton {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    color: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    user-select: none;
}

#makeCookieButton {
    background-image: url('./assets/makeCookieButton.png');
    z-index: 3;
}

#dropCookieButton {
    background-image: url('./assets/cookieButton.png');
}

#colaCounter,
#pieCounter,
#cupcakeCounter,
#cakeCounter,
#chocolateCounter,
#donutCounter {
    user-select: none;
    position: absolute;
    font-family: 'Cooper Black', sans-serif;
    font-size: 28px;
    color: white;
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;

}

#dropColaButton,
#dropPieButton,
#dropCupcakeButton,
#dropCakeButton,
#dropChocolateBarButton,
#dropDonutButton {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    color: transparent;
    border: none;
    cursor: pointer;
    user-select: none;
}

#dropDonutButton {
    right: 1%;
    bottom: 30%;
    background-image: url('./assets/donutButton.png');
}

#donutCounter {
    right: 0%;
    bottom: 36%;
}

#dropChocolateBarButton {
    bottom: 20%;
    right: 1%;
    background-image: url('./assets/chocolateButton.png');
}

#chocolateCounter {
    bottom: 26%;
    right: 0%;
}

#dropCakeButton {
    bottom: 10%;
    right: 1%;
    background-image: url('./assets/cakeButton.png');
}

#cakeCounter {
    bottom: 16%;
    right: 0%;
}

#dropCupcakeButton {
    left: 1%;
    bottom: 30%;
    background-image: url('./assets/cupcakeButton.png');
}

#cupcakeCounter {
    left: 0%;
    bottom: 36%;
}

#dropPieButton {
    bottom: 20%;
    left: 1%;
    background-image: url('./assets/pieButton.png');
}

#pieCounter {
    bottom: 26%;
    left: 0%;
}

#dropColaButton {
    bottom: 10%;
    left: 1%;
    background-image: url('./assets/colaButton.png');
}

#colaCounter {
    bottom: 16%;
    left: 0%;
}


/* #specialButtonContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    row-gap: 55px;
    user-select: none;
} */
#bigPushButton,
#sugarRushButton,
#wallButton {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    color: transparent;
    border: none;
    cursor: pointer;
    user-select: none;
}

#wallButton {
    top: 3%;
    right: 1%;
    background-image: url('./assets/wall.png');
}

#wallCounter {
    top: 0%;
    right: 0%;
}

#wallTimer {
    top: 3%;
    right: 2%;
    align-items: center;
    /* color: rgb(0, 255, 25); */
    font-size: 64px;
}

#bigPushButton {
    top: 14.7%;
    right: 1%;
    background-image: url('./assets/bigPush.png');
}

#sugarRushCounter,
#pushCounter {
    position: absolute;
    user-select: none;
    font-family: 'Cooper Black', sans-serif;
    font-size: 32px;
    color: white;
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
}

#pushCounter {
    top: 12%;
    right: 0%;
}

#sugarRushButton {
    top: 25.5%;
    right: 1%;
    background-image: url('./assets/sugarRush.png');
}

#sugarRushCounter {
    top: 22.5%;
    right: 0%;
}

/* Debug buttons */
#toggleCameraLockButton {
    position: absolute;
    top: 10%;
    left: 18%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: red;
    color: rgb(0, 0, 0);
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}