body {
  display: flex;
  margin: auto;
  width: 100%;
  padding: 0px;
  text-align: center;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  overflow: hidden; /* Hide scrollbars */
  font-family: "Super_Comic", serif;
}
html{
  cursor: none; /* Hides the default cursor */
}
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 24px;
  z-index: 1000;
}
@font-face {
  font-family: "Super_Comic";
  src: url("https://api.powersjo.com/fonts/Super_Comic.ttf") format("truetype");
}
div.outsideBorder {
  position: fixed;
  top: 65px;
  left: 0%;
  height: 80%;
  min-width: 358px;
  background-color: #5ad2fd;
  border: solid 2px #0EBA12;
  width: 99% !important;
  max-width: none; /* Remove restrictions that might be overriding */
  border-radius: 20px; /* Slightly smaller border radius for mobile */
}
.game-status {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 1100px;
  height: auto;
  max-height: 200px;
  overflow: hidden;
}

 div.score-container, div.score-result, div.time-container, div.time-result{
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   width: 100%;
   height: auto;
  min-height: 60px; /* Keeps it visible */
  max-height: 120px;
}
.status{
  font-size: 24px; /* Adjusted for better fit */
  height: auto; /* Removes fixed height */
  min-height: 30px; /* Ensures readability */
  text-align: center;
}
div.start-container, div.options-container{
  display: flex;
  height: 100%;
  width: 50%;
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Centers vertically */
  border: solid 1px green;
}
.start{
  height: 90%;
  width: 96%;
  min-width: 30%;
  cursor: none;
  display: flex;
  position: relative;
  font-size: 38px;
  margin: auto;
  font-family: "Super_Comic";
  justify-content: center; /* Centers content inside */
  left: 0%;
  border-radius: 15px;
}
body.mallet-cursor {
  cursor: url('media/images/mallet.png') 32 32, auto;
}
body.mallet-hit {
  cursor: url('media/images/mallet.png') 32 32, auto;
  transform: rotate(30deg);
}
.mallet {
  position: absolute;
  width: 26px; /* Adjust for proper sizing */
  height: auto;
  pointer-events: none; /* Ensures it doesn’t interfere with clicking */
  transform-origin: center bottom; /* Rotate from the handle */
  transition: transform 0.04s ease-in-out;
}
/* Options area */

div.game-options {
  width: 100%;
  height: 10%;
  display: flex;
}
.toggle-label {
  display: flex;
  padding-left: 10px;
    cursor: none;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

input[type="checkbox"] {
  display: none;
}

.slider {
  width: 50px;
  height: 25px;
  cursor: none;
  background-color: gray;
  border-radius: 25px;
  position: relative;
  transition: 0.3s;
}

.slider:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  top: 2.5px;
  left: 3px;
  transition: 0.3s;
}

input[type="checkbox"]:checked + .slider {
  background-color: green;
}

input[type="checkbox"]:checked + .slider:before {
  left: 27px;
}
/* Game area */

div.game-board {
  width: 100%;
  height: 70%;
  background: url("media/images/background2.png");
  background-size: cover;
  display: flex;
  flex-wrap: wrap;
  border-radius: 15px;
  filter: brightness(1.4); /* Increases brightness by 40% */
}
div.hole {
  flex: 1 0 33.33%;
  overflow: hidden;
  position: relative;
}
.hole:after {
  display: block;
  background-size: contain;
  content: '';
  width: 100%;
  height: 70px;
  position: absolute;
  z-index: 2;
  bottom: -30px;
}

.mole {
  background: url('media/images/moles/mole1.png') bottom center no-repeat;
  background-size: 25%;
  position: relative;
  background-size: contain; /* Ensures the mole scales while keeping proportions */
  top: 100%;
  width: 70%;
  height: 70%;
  opacity: 0; /* Ensures mole fades smoothly */
  transition: transform 0.4s ease-in-out, opacity 0.3s ease-in;
}

.hole.up .mole {
  transform: translateY(-95%);
  opacity: 1;
}

.hit-effect {
  position: absolute;
  width: 120px; /* Adjust size */
  height: auto;
  opacity: 1;
  transition: opacity 0.6s ease-out;
}
.hit-effect.fade-out {
  opacity: 0;
}

/* Other parts of the app */

#confetti-canvas {
 position: fixed;
 top: 0;
 left: 0;
 width: 100vw;
 height: 100vh;
 z-index: 9999; /* Set a high value to bring it in front of everything */
 pointer-events: none; /* Prevent interference with other elements */
}

h1{
  text-align: left;
  padding-left: 4px;
  font-size: 30px;
  display: flex;
}

/* Begin the top_banner stuff*/
#hamburger-box{
  display: flex;
  width: 60px;
  height: 60px;
  top: 0px;
  left: 0px;
}

.hamburger {
  position: absolute;
  top: 5em;
  right: 5%;
  margin-left: -2em;
  margin-top: -75px;
  width: 2em;
  height: 45px;
  z-index: 5;
}

.hamburger div {
  position: relative;
  width: 3em;
  height: 7px;
  border-radius: 3px;
  background-color: #5BA94A;
  margin-top: 8px;
  transition: all 0.5s ease-in-out;
}
.nav {
  position: fixed;
  width: 100%;
  height: 86%; /* Menu height*/
  opacity:0.9;
  background-color: #D4F1CA; /* Menu background color */
  top: -100%; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  transform: scale(0);
}
.nav-wrapper {
  position: relative;
  overflow: hidden;
  overflow-y: auto;
  height: 100%;
}

#toggle {
  display: none;
}
/**
Animations
**/
#toggle:checked + .hamburger .top-bun {
  transform: rotate(-45deg);
  margin-top: 25px;
}
#toggle:checked + .hamburger .bottom-bun {
  opacity: 0;
  transform: rotate(45deg);
}
#toggle:checked + .hamburger .meat {
  transform: rotate(45deg);
  margin-top: -7px;
}

#toggle:checked + .hamburger + .nav {
  top: 0;
  transform: scale(1);
}

div.top_banner{
  z-index: 1000;
 position: fixed;
 display: flex;
   cursor: auto;
 justify-content: space-between; /* Ensures space between the h1 and hamburger-box */
 align-items: center; /* Aligns items vertically in the center */
 width: 100%; /* Adjust the width as needed */
 top: 0;
 right: 0;
 left: 0;
 background: #D0DFD0;
 height: 4em;
}
/* End of the top banner stuff*/
footer{
   position: fixed;
   bottom: 0;
   left: 0;
   right: 0;
   background: #D0DFD0;
}
