 body{
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 10px;
   background-image: url('bg.jpg');  /* your image name */
  background-size: cover;           /* full screen */
  background-position: center;      /* center image */
  background-repeat: no-repeat;     /* no repeat */
  }
  h1{
    color: antiquewhite;
  }

  .button-logo:active {
  transform: scale(0.9);
}
.button-logo:hover {
  box-shadow: 0 0 15px rgba(255,255,255,0.8);
}
  .button-logo{
 height: 90px;
 width: 90px;
 border: 2px solid bisque;
 border-radius: 50%;
background-color: rgb(255, 255, 255);
margin:30px;
cursor:pointer ;
 display: flex;
  justify-content: center;
  align-items: center;
  }
  .button-image{
 width: 60%;
  height: auto;
  object-fit: contain;
  }
  .reset-logo:active {
  transform: scale(0.9);
}
  .reset-logo{
    margin-top: 20px;
  width: 200px;
  border: none;
  background: transparent;
  cursor: pointer;
    
  }
  .popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: hsl(204, 52%, 89%);
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  text-align: center ;
}

.popup-content button {
 border: 2px solid black;
  margin-top: 15px;
  padding: 8px 15px;
  cursor: pointer;
  background-color: hsl(0, 0%, 100%);
}
  .game-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
/* Mobile optimization */
@media (max-width: 600px) {
  h1 {
    font-size: 20px;
  }

  .button-logo {
    width: 28%;
    padding: 8px;
  }

  h3 {
    font-size: 14px;
  }
}
@media (max-width: 600px) {
  .button-logo {
    width: 70px;
    height: 70px;
  }

  .button-image {
    width: 65%;
  }
}
/* Ball rotate animation */
.rotate {
  animation: spin 0.6s linear;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(720deg); } /* 2 spins */
}
.rotate {
  animation: spin 0.6s linear, bounce 0.6s ease;
}

@keyframes bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

  /* Bat swing animation */
.swing {
  animation: batSwing 0.5s ease;
  transform-origin: bottom center;
}

@keyframes batSwing {
  0% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(-40deg);
  }
  100% {
    transform: rotate(60deg);
  }
}

.swing {
  animation: batSwing 0.5s ease, hitZoom 0.3s ease;
}

@keyframes hitZoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Stump break animation */
.break {
  animation: stumpBreak 0.6s ease forwards;
}

@keyframes stumpBreak {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
  40% {
    transform: rotate(-15deg) scale(1.1);
  }
  100% {
    transform: rotate(40deg) translateY(20px) scale(0.9);
    opacity: 0.7;
  }
}
@keyframes stumpBreak {
  0% { transform: rotate(0deg); }
  30% { transform: rotate(-20deg) scale(1.1); }
  60% { transform: rotate(25deg) translateX(10px); }
  100% { transform: rotate(60deg) translateY(30px); opacity: 0.6; }
}
.break {
  animation: stumpBreak 0.6s ease;
}

