

body {
  display: grid;
  place-items: center;
  min-height: 80vh;
  margin: 0;
  background-color: #27ff00;
  font-family: "Press Start 2P", system-ui;
}
  html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}


.outlined-button {
  display: inline-block;
  font-family: "Press Start 2P", system-ui;
  font-size: 10px;
  padding: 6px 6px;
  color: black;
  border: 2px solid black;
  background-color: transparent;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 4px;
}

.outlined-button:hover,
.outlined-button:focus {
  background-color: black;
  color: white;
  -webkit-text-stroke: 0;
  outline: none;
}


.main-container {
  max-width: 1200px;
  width: 96%;
  padding: 1rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.press-start-2p-regular {
  font-family: "Press Start 2P", system-ui;
  font-weight: 400;
  font-style: normal;
}

h2 {
  font-size: 32px;
  text-align: center;
  margin: 20px;
  padding: 0 10px;
  line-height: 1.2;
}

h3 {
  font-size: 10px;
  text-align: center;
  margin: 20px;
  padding: 0 10px;
  line-height: 1.2;
}

.play-area {
  position: relative;
  width: 90vw;
  max-width: 560px;
  height: 360px;
  margin: 0 auto; /* center horizontally */
  overflow: hidden; /* optional: contain animations */
  box-sizing: border-box;
}

  .cup, .spanner {
    position: absolute;
    touch-action: none; /* Important for mobile! */
    cursor: grab;
  }

.cup, .microwave {
  position: absolute;
  touch-action: none;
}

.cup {
  position: relative;
  width: 120px;
  height: 120px;
  left: 16%; /* instead of fixed px */
  top: 20%;
  transform: translate(-50%, -50%);
  cursor: grab;
  background-image: url('../images/coffee_images/front-view-of-coffee-cup-and-saucer-hd-transparent-png-701751711469033srcwqfizdc.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
   z-index: 10;
}

@media (max-width: 480px) {
  .cup {
    width: 120px;
    height: 120px;
    left: 16%; /* adjust if needed */
    top: 20%;
  }
}

  .spanner {
    width: 120px;
    height: 120px;
    top: 180px;
    left: 1px;
    background-image: url('../images/coffee_images/spannar.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 9;
  }

#microwave {
  width: 150px;  /* or desired size */
  height: 112.5px; /* 150 * (150/200) to maintain SVG ratio */
  position: absolute;
  z-index: 1;
  left: 60%;
  top: 36%;
  transform: translate(-50%, -50%);
  transition: filter 0.3s ease;
}



#microwave.cooking {
  filter: drop-shadow(0 0 15px rgba(255, 80, 0, 0.8));
  animation: microwaveGlow 0.6s infinite alternate;
}

/* Glow on the door inside the SVG */
#door.glow {
  filter: drop-shadow(0 0 12px rgba(255, 100, 0, 0.9)) brightness(1.3);
  transition: filter 0.3s ease;
  /* Optional: brighten door fill */
  fill: #a33;
}

@keyframes microwaveGlow {
  0% {
    filter: drop-shadow(0 0 12px rgba(255, 100, 0, 0.6));
  }
  100% {
    filter: drop-shadow(0 0 22px rgba(255, 180, 0, 1));
  }
}


  /* Cup heat animation */
  .cup.heating {
    animation: shake 0.2s infinite alternate;
  }

  @keyframes shake {
    0% { transform: translate(1px, 0); }
    100% { transform: translate(-1px, 0); }
  }

  /* Steam styling */
.steam {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 40px;
  background: radial-gradient(white, transparent);
  opacity: 0;
  pointer-events: none;
  border-radius: 50%;
}

.steam.rising {
  animation: rise 2s ease-out forwards;
}

@keyframes rise {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(-60px); opacity: 0; }
}



.cup-piece {
  position: absolute;
  width: 24px;
  height: 28px;
  background: #f2f2f2; /* brown glass */
  transform: rotate(0deg) skewY(20deg);
  opacity: 0.9;
  border-radius: 3px;
  pointer-events: none;
  animation: explode 1.6s ease-out forwards;
  z-index: 1000;
}



  /* Explosion pieces */
  .explosion-piece {
    position: absolute;
    width: 25px;
    height: 25px;
    background: orange;
    border-radius: 50%;
    pointer-events: none;
    opacity: 1;
  }

 @keyframes explode {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  to {
    transform: translate(var(--x), var(--y)) scale(0.3);
    opacity: 0;
  }
}


  #message {
    font-family: "Press Start 2P", system-ui;
    text-align: center;
    font-size: 18px;
    margin-top: 10px;
    color: green;
  }

@keyframes skullGrow {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}


.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}


.skull {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;  /* adjust size */
  height: 120px;
  background-image: url('..images/coffee_images/skull.png'); /* or SVG, or style it */
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1000;
}
.skully {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;  /* adjust size */
  height: 120px;
  background-image: url('..images/coffee_images/skull.png'); /* or SVG, or style it */
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1000;
}
@keyframes skullyClick {
  0%   { transform: scale(1) rotate(0deg); }
  25%  { transform: scale(1.2) rotate(10deg); }
  50%  { transform: scale(1) rotate(-10deg); }
  75%  { transform: scale(1.2) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.skully-animate {
  animation: skullyClick 0.8s ease;
}

@media (max-width: 400px) {
  .cup, .microwave {
    width: 60px;
    height: 60px;
  }
}



@media (max-width: 480px) {
  #microwave {
    width: 160px;
    height: 120px; /* maintain SVG aspect ratio */
    left: 68%; /* adjust if needed */
    top: 36%;
  }

  #microwave svg {
    width: 160px;
    height: 120px;
  }
}