body {
  background-color: #1e1e2f;
  color: white;
  font-family: 'Courier New', monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  text-align: center;
  position: relative;
  overflow: hidden; /* keeps button inside viewport */
}

h1 {
  margin-bottom: 30px;
  color: #ffcb6b;
}

#mysteryButton {
  padding: 20px 40px;
  font-size: 1.5em;
  background-color: #3a3a5e;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

#mysteryButton:hover {
  background-color: #4c4c7d;
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  20% { transform: translate(-2px, -3px) rotate(-1deg); }
  40% { transform: translate(-1px, 2px) rotate(1deg); }
  60% { transform: translate(3px, 1px) rotate(0deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  100% { transform: translate(1px, 2px) rotate(-1deg); }
}

.shake {
  animation: shake 0.5s;
}

#resultMessage {
  margin-top: 20px;
  font-size: 1.2em;
  color: #d6d6d6;
}
