body {
  margin: 0;
  overflow: hidden;
  background-color: #87CEEB;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  font-family: Arial, sans-serif;
}

#game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: #282837;
  overflow: hidden;
}

#ground {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background-color: black;
}

#player {
  position: absolute;
  width: 40px;
  height: 40px;
  bottom: 0;
  left: calc(50% - 20px);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  animation: spin 1s linear infinite;
  animation-direction: reverse;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fallAndSpin {
  from {
    top: 0;
    transform: rotate(0deg);
  }
  to {
    top: 100vh;
    transform: rotate(360deg);
  }
}

@keyframes wavy-screen {
  0%, 100% { 
    transform: translateY(0) rotate(0deg);
    filter: hue-rotate(0deg);
  }
  25% { 
    transform: translateY(-10px) rotate(-2deg);
    filter: hue-rotate(45deg);
  }
  50% { 
    transform: translateY(10px) rotate(2deg);
    filter: hue-rotate(90deg);
  }
  75% { 
    transform: translateY(-5px) rotate(-1deg);
    filter: hue-rotate(135deg);
  }
}

.platform {
  position: absolute;
  display: flex;
  flex-direction: column;
}

.platform-row {
  display: flex;
  width: 100%;
}

#score-container {
  position: absolute;
  top: 10px;
  left: 10px;
}

#score {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 10px;
  border-radius: 5px;
  display: inline-block;
  font-size: 18px;
  color: black;
}

#coordinates {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 14px;
  color: black;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 5px;
  border-radius: 5px;
}

#game-over-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#game-over-screen.hidden {
  display: none;
}

.game-over-content {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.game-over-content h1 {
  margin-top: 0;
  color: #333;
}

.game-over-content p {
  font-size: 18px;
  margin-bottom: 20px;
}

#restart-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#restart-button:hover {
  background-color: #45a049;
}

.milkleg {
  display: none;
}

.milkleg-text {
  display: none;
  position: absolute;
  color: red;
  font-weight: bold;
  font-size: 24px;
  z-index: 100;
  animation: flash 0.5s ease-in-out;
}

@keyframes flash {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.leg-drop {
  position: absolute;
  font-size: 40px;
  z-index: 10;
  pointer-events: none;
}

.bat-warning {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: red;
  color: white;
  padding: 10px;
  font-size: 24px;
  display: none;
  z-index: 1000;
  animation: flash 0.5s ease-in-out infinite;
}

.bat {
  position: absolute;
  font-size: 40px;
  right: -50px;
  top: 50px;
  z-index: 100;
  transition: all 6s linear;
}

@keyframes batSwoop {
  0% { 
    right: -50px; 
    top: 50px; 
  }
  50% { 
    right: 50%; 
    top: 30%; 
  }
  100% { 
    right: -50px; 
    top: 80%; 
  }
}

.drunk-effect {
  animation: wavy-screen 0.1s infinite;
}

.malort-warning {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: red;
  color: white;
  padding: 10px;
  font-size: 24px;
  display: none;
  z-index: 1000;
  animation: flash 0.5s ease-in-out infinite;
}

.malort-effect {
  animation: wavy-screen 0.1s infinite;
}

.champagne-emoji.collected {
  opacity: 0;
}

.champagne-emoji.hidden {
  display: none;
}

.paul-mattingly-text {
  font-weight: bold;
  color: black;
  text-align: center;
  animation: flash 0.5s ease-in-out infinite;
}

.ufo {
  transition: left 0.1s linear;
}

/* Alert stacking styles */
#alert-container {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
}

.game-alert {
  background-color: red;
  color: white;
  padding: 10px;
  font-size: 24px;
  margin-bottom: 10px;
  animation: flash 0.5s ease-in-out infinite;
  text-align: center;
}

.whisky-emoji.collected {
  opacity: 0;
}

.whisky-emoji.hidden {
  display: none;
}

.cat-emoji.hidden {
  display: none;
}

body:not(.ufo-active)::before,
body:not(.ufo-active)::after {
  opacity: 0 !important;
}
