/* Basic styles for the body */
body {
  padding: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: black;
}

/* Styles for main and controls screen */
#mainScreen, #controlsScreen {
  text-align: center;
  color: white;
  font-family: "Press Start 2P", system-ui;
}

#mainScreen {
  display: hidden;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 80vh;
}

#controlsScreen {
  display: hidden;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Button styles */
button {
  background: yellow;
  border: none;
  padding: 10px 20px;
  margin: 10px;
  font-family: "Press Start 2P", system-ui;
  font-size: 18px;
  cursor: pointer;
}

button:hover {
  background: orange;
}

/* Class to hide elements */
.hidden {
  display: none;
}

/* Chat bubble styles */
.chatBubble {
  position: absolute;
  display: none;
  background: black;
  border: 1px solid white;
  padding: 20px;
  border-radius: 10px;
  font-family: "Press Start 2P", system-ui;
  color: white;
  font-size: 14px;
  font-weight: 400;
  max-width: 200px;
  word-wrap: break-word;
}

/* Prompt E styles */
.promptE {
  position: absolute;
  display: none;
  background: black;
  border: 1px solid white;
  padding: 20px;
  border-radius: 5px;
  font-family: "Press Start 2P", system-ui;
  color: white;
  font-size: 14px;
}

/* Shake animation for modal */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  50% { transform: translateX(10px); }
  75% { transform: translateX(-10px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.5s;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  background-color: #000000;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 10px;
  width: 80%;
  max-width: 400px;
  color: white;
  text-align: center;
}

/* Close button styles for modal */
.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #ffcc00;
  text-decoration: none;
  cursor: pointer;
}

/* Puzzle instructions styles */
#puzzleInstructions {
  font-size: 24px;
  color: #ffcc00;
  margin-bottom: 20px;
}

/* Puzzle input styles */
#puzzleInput {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  box-sizing: border-box;
  font-size: 18px;
  background-color: white;
  color: black;
  border: none;
  border-radius: 5px;
  text-align: center;
}

/* Submit puzzle button styles */
#submitPuzzle {
  background-color: #ffcc00;
  color: black;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
}

#submitPuzzle:hover {
  background-color: #ff9900;
}

/* Mission tracker styles */
#missionTracker {
  position: absolute;
  top: 10px;
  right: 10px;
  background: black;
  border: 1px solid white;
  padding: 10px;
  border-radius: 5px;
  font-family: "Press Start 2P", system-ui;
  color: white;
  font-size: 14px;
  width: 200px;
  text-align: center;
}

/* Transition screen styles */
#transitionScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.transitionContent {
  background: black;
  border: 1px solid white;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  color: white;
  font-family: "Press Start 2P", system-ui;
  position: relative;
}

.transitionContent .close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 24px;
}

.transitionContent button {
  display: block;
  width: 100%;
  margin: 20px 0;
  padding: 10px;
  font-size: 18px;
  background: yellow;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Press Start 2P", system-ui;
}

.transitionContent button:hover {
  background: orange;
}

/* End game screen styles */
#endGameScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.endGameContent {
  background: black;
  border: 1px solid white;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  color: white;
  font-family: "Press Start 2P", system-ui;
  position: relative;
}

.endGameContent .close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 24px;
}

.endGameContent button {
  display: block;
  width: 100%;
  margin: 20px 0;
  padding: 10px;
  font-size: 18px;
  background: yellow;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Press Start 2P", system-ui;
}

.endGameContent button:hover {
  background: orange;
}

/* Back to GameZone button styles */
.backToGameZone {
  display: block;
  width: 100%;
  margin: 20px 0;
  padding: 10px;
  font-size: 18px;
  background: yellow;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Press Start 2P", system-ui;
}

.backToGameZone a {
  color: black;
  text-decoration: none;
}
