* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    background: #0c0700;
    background: -webkit-radial-gradient(bottom, #242424, #0c0700);
    background: -moz-radial-gradient(bottom, #242424, #0c0700);
    background: radial-gradient(to top, #242424, #0c0700);

    display: flex;

    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #241300;
}

::-webkit-scrollbar-thumb {
    background: #995200;
}

::-webkit-scrollbar-thumb:hover {
    background: #cf6f00;
}

.donut-container {
    min-width: 50vw;
    min-height: 50vh;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    position: relative;
}

#donut {
    width: 70vw;
    height: 70vw;
    /* Bounce Animation */
    transition: all 0.5s ease-in-out;
    margin-top: 130px; /* add this line to move the donut 20px below */
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

#score {
    --shake-amount: 50px;

    position: absolute;
    top: 25px;
    margin-top: 40px; /* increased from 55px to 65px */
    color: white;
    font-size: 20px;
    font-weight: bolder;
    display: flex;
    align-items: center;
    gap: 8px;
}




#score img {
    height: 24px;
    width: 24px;
    margin-right: 8px;
}

#score.shake {
    animation: shake 0.05s;
}

@keyframes shake {
    0% {
        transform: rotate(5deg) scale(1.3);
        opacity: 0.6;
    }

    100% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

#dps {
    position: absolute;
    top: 135px;
    margin-top: -35px; /* increased from 25px to 65px */
    color: #b9b3ac; /* grey color instead of opacity */
    font-size: 18px;
    font-weight: bolder;
}

.bar-container {
    position: absolute;
    bottom: 100px;
    width: 50%;
    opacity: 1;
    transition: all 0.2s;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 20px;
}

.bar {
    bottom: 100px;
    width: 100%;
    height: 16px;
    border-radius: 8px;
    background-color: #fff3;
    overflow: hidden;
}

.bar .foreground {
    height: 100%;
    background-color: #fff;
    transition: all 0.1s;
}

.bar-container.hidden {
    opacity: 0;
}

.falling-donut {
    position: absolute;
    width: 35px;
    animation: fall 5s linear;
    z-index: -1;
    opacity: 0.2;
    bottom: -10vh;
}

@keyframes fall {
    0% {
        bottom: 100vh;
        transform: rotate(0deg);
    }

    100% {
        bottom: -10vh;
        transform: rotate(720deg);
    }
}


.shop {
    background-color: rgba(0, 0, 0, 0.2);
    min-width: 2px; /* reduced from 50px to 20px */
    min-height: 4px; /* reduced from 100px to 40px */

    display: flex;
    flex-direction: column;
    overflow-y: auto;
}


.shop.visible {
  opacity: 1;
}

.shop>div {
    padding: -1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.shop>div:hover {
    background-color: #fff1;
}

.shop>div .info {
    flex-grow: 1;
}

.shop>div .name {
    font-size: 7px;
    font-weight: bolder;
}

.shop>div .name span {
    font-size: 5px;
    opacity: 0.5;
}

.shop>div .desc {
    opacity: .9;
}

button {
    padding: 3px 5px;
    border: none;
    border-radius: 1px;
    background-color: #0b1048;
    color: #fbfbfb;
    font-weight: bolder;
    cursor: pointer;
}

button:hover {
    background-color: #3c3c3c;
    color: #f9ecdc;
}

.shop>div:hover button {
    background-color: #3c3c3c;
    color: #f9ecdc;
}

.shop .separator {
    height: 1px;
    background-color: #fff3 !important;
    padding: 0;
    margin: 1px 0;
}

.shop .multiplier .name {
    color: #3c3c3c;
}

#erase {
  position: absolute;
  left: 10px; /* changed from right to left */
  bottom: 10px; /* changed from top to bottom */
  margin-bottom: 3px; /* changed from margin-top to margin-bottom */
}

#next-skin {
  position: absolute;
  top: 10px;
  right: 10px; /* changed from left to right */
  background-color: rgba(0, 0, 0, 0.2);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  padding: 6px;
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  transition: all 0.2s;
}

#next-skin img {
    height: 30px;
    width: 30px;
}

#next-skin .name {
    font-size: 9px;
    font-weight: bolder;
    margin-bottom: 3px;
}

#next-skin.hidden {
    opacity: 0;
}

@media screen and (max-width: 600px) {
    body {
        flex-direction: column;
    }
}


.blood-effect {
  position: absolute;
  width: 30px;
  height: 30px;
  background-image: url('blood-splatter.png'); /* use a blood splatter image */
  background-size: cover;
  transform: scale(0.5);
  opacity: 0;
  z-index: 1; /* add z-index to ensure blood effect is on top of donut */
}


#message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}



/* Add this to your CSS file */
#modal {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

#modal-yes, #modal-no {
  background-color: #0f4274;
  color: #fff;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
}

#modal-yes:hover, #modal-no:hover {
  background-color: #3e8e41;
}



.energy-bar {
  position: absolute;
  left: 10px;
  bottom: 380px;
  font-size: 11px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-weight: 500;
  color: #FFFFFF;
  background-color: #090634; /* A soft green color */
  padding: 4px 8px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.energy-bar::before {
  content: "Energy";
  font-size: 12px;
  font-weight: 400;
  color: #FFFFFF;
  opacity: 0.5;
  margin-right: 4px;
}




.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #090634;
  z-index: 1000;
  display: none;
}

.loading-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 5px solid #ccc;
  border-top: 5px solid #333;
  animation: spin 1s linear infinite;
}

.loading-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: bold;
  color: #090634;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


#boost-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.2);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  padding: 6px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

#boost-button button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  color: white;
}

#boost-button button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}





.shop .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: white;
}

.shop .close-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}



#boost-button {
  position: absolute;
  top: 46%;
  right: -6px; /* changed from left to right */
  transform: translateY(-50%);
  background-color: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

#boost-button img {
  width: 80px; /* adjust the width and height to your needs */
  height: 80px;
  display: block;
  margin: 0 auto;
  background-color: transparent;
}

#boost-button button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  color: white;
  transition: transform 0.2s, box-shadow 0.2s;
}

#boost-button button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
