/* Charity: water Brand Colors & Fonts

Primary Colors:
- Yellow:     #FFC907
- Blue:       #2E9DF7

Secondary Colors:
- Light Blue: #8BD1CB
- Green:      #4FCB53
- Orange:     #FF902A
- Red:        #F5402C
- Dark Green: #159A48
- Pink:       #F16061

Fonts:
- Proxima Nova
- Avenir

*/

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 30px;
  background-color: #f0f0f0;
  color: #333;
}

.container {
  max-width: 750px;
  width: 90%;
  margin: 50px auto;
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

h1 img {
  height: 50px;
  margin-right: 15px;
  display: block;
}

.game-instructions {
  font-size: 18px;
  margin-bottom: 30px;
  text-align: center;
}

.stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 30px;
  background-color: #f5f5f5;
  padding: 15px 0;
  border-radius: 8px;
}

.stats p {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 0 auto;
  max-width: 500px;
  width: 100%;
}

.grid-cell {
  background-color: #e8e8e8;
  border-radius: 8px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
  position: relative;
  overflow: hidden;
}

.water-can-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  /* Ensure the wrapper is properly centered */
}

.water-can {
  width: 100%;
  height: 100%;
  background-image: url('img/water-can.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  border-radius: 50%;
  animation: popUp 0.5s cubic-bezier(0.17, 0.67, 0.34, 2);
  transform-origin: center; /* Ensure scaling happens from the center */
}

@keyframes popUp {
  0% {
    transform: scale(0.5); /* Start scaling from the center */
  }
  100% {
    transform: scale(1); /* End scaling at full size */
  }
}


button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  margin: 30px auto 0;
  transition: background-color 0.2s;
}
@media (max-width: 600px) {
  .stats {
    flex-direction: column;
    align-items: center;
  }
  .stats p {
    margin-bottom: 10px;
  }
}