/* Celestial Debris - style sheet */

html, body {
  height: 100%;
}

body {
  background-color: #0b1a2b;
  color: #ffffff;
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  overflow: hidden;          /* no page scrolling */
}

/* everything sits in one screen using a flex column */
.main {
  height: 100vh;
  box-sizing: border-box;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

h1 {
  color: #66ccff;
  margin: 0;
  font-size: 30px;
}

.tagline {
  color: #cccccc;
  margin: 0;
  font-size: 14px;
  max-width: 700px;
}

.score {
  font-size: 17px;
  font-weight: bold;
  margin: 0;
}

/* game area */
#gameArea {
  position: relative;
  display: inline-block;
  line-height: 0;            /* remove the little gap under the canvas */
  max-width: 100%;
}

#gameCanvas {
  border: 2px solid #66ccff;
  background-color: black;
  display: block;
  width: auto;
  height: auto;
  max-width: 96vw;
  max-height: 42vh;          /* shrink the game to fit the screen height */
}

/* the start / game over box */
#messageBox {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #12253a;
  border: 2px solid #66ccff;
  padding: 16px;
  width: 360px;
  max-width: 90%;
  line-height: 1.4;
}

#messageBox h2 {
  margin: 0 0 6px 0;
  color: #ffffff;
}

#messageText {
  color: #dddddd;
  margin: 0 0 12px 0;
  font-size: 14px;
}

#startBtn {
  background-color: #2a7de1;
  color: white;
  border: none;
  padding: 9px 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
}

#startBtn:hover {
  background-color: #1f66bd;
}

.fact {
  font-size: 12px;
  color: #a5d6a7;
  margin: 10px 0 0 0;
}

/* instructions box */
.instructions {
  width: 520px;
  max-width: 92%;
  text-align: left;
  background-color: #12253a;
  border: 1px solid #345166;
  padding: 8px 18px;
  border-radius: 4px;
}

.instructions h3 {
  color: #66ccff;
  margin: 0 0 4px 0;
  font-size: 16px;
}

.instructions ul {
  margin: 0;
  padding-left: 20px;
}

.instructions li {
  font-size: 13px;
  line-height: 1.4;
}

.about {
  max-width: 620px;
  margin: 0;
  color: #cccccc;
  font-size: 13px;
}
