* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 20px;
  display: flex;
  gap: 20px;
  min-height: 100vh;
}

.sponsors-container {
  width: calc(33% - 10px);
  background-color: #34495e;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.sponsors-title {
  font-size: 24px;
  color: #3498db;
  margin-bottom: 20px;
  text-align: center;
}

.sponsor-card {
  background-color: #2c3e50;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.2s;
}

.sponsor-card.gold {
  background-color: rgba(255, 215, 0, 0.2); /* Golden yellow with 0.5 opacity */
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.sponsor-card:hover {
  transform: translateY(-5px);
}

.sponsor-name {
  font-size: 18px;
  color: #e74c3c;
  margin-bottom: 10px;
}

.sponsor-text {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.sponsor-link {
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
}

.sponsor-link:hover {
  text-decoration: underline;
}

.game-container {
  width: calc(67% - 10px);
  background-color: #34495e;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.game-title {
  text-align: center;
  margin-bottom: 20px;
}

.game-title h1 {
  font-size: 32px;
  color: #ffffff;
  margin-bottom: 10px;
  font-family: monospace;
}

.game-title p {
  font-size: 18px;
  color: #3498db;
  font-style: italic;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.gorilla-stats,
.enemy-stats {
  background-color: #2c3e50;
  padding: 15px;
  border-radius: 5px;
  flex: 1;
  margin: 0 10px;
}

#game-canvas {
  width: 100%;
  height: 500px;
  background-color: #2c3e50;
  border-radius: 5px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.instructions {
  background-color: #2c3e50;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: center;
}

.instructions h3 {
  margin-bottom: 10px;
  color: #3498db;
}

#battle-log {
  background-color: #2c3e50;
  padding: 15px;
  border-radius: 5px;
  height: 150px;
  overflow-y: auto;
  font-size: 14px;
}

#battle-log p {
  margin: 5px 0;
}

/* Game elements */
.gorilla {
  position: absolute;
  width: 50px;
  height: 50px;
  background-color: #e74c3c;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  z-index: 10;
  transition: transform 0.1s;
}

.human {
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: #f39c12;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  z-index: 5;
}

.attack-animation {
  animation: attack 0.3s ease-in-out;
}

@keyframes attack {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}

.gorilla-attack-area {
  position: absolute;
  width: 200px;
  height: 200px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(231, 76, 60, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 8;
  animation: attack-fade 0.5s linear forwards;
}

.human-attack-area {
  position: absolute;
  width: 80px;
  height: 80px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(241, 196, 15, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 7;
  animation: attack-fade 0.5s linear forwards;
}

@keyframes attack-fade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.death-skull {
  position: absolute;
  font-size: 32px;
  pointer-events: none;
  z-index: 20;
  animation: skull-fade-shrink 0.5s linear forwards;
}

@keyframes skull-fade-shrink {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.1);
  }
}

.game-over-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.game-over-content {
  background-color: #34495e;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.game-over-content h2 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #e74c3c;
}

.game-over-content p {
  font-size: 24px;
  margin-bottom: 30px;
  color: #ecf0f1;
}

.restart-button {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.restart-button:hover {
  background-color: #27ae60;
  transform: scale(1.05);
}

.hidden {
  display: none;
}
