canvas {
   border: #FFFF00 solid 5px;
  border-radius: 5px;
  margin: auto;
  display: block;
  width: 70%;
  background-color: black;
}

body {
  background-image: url("img/space.png");
  background-repeat: no-repeat;
  background-size: 1600px 860px;
  background-color: lightcyan;
  text-align: center;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 20px;
}

/*Color pallet for website
1.dim gray
2.dark gray
3.blue
4.yellow
5.white */

/* Header design */
.header {
  background-color: dimgray;
  border: solid 4px #FFEA00;  /* Light Yellow border effect */
  padding: 5px 0;            /* reduced header height */
}

.header-top {
    text-align: center;      /* centers both title and names */
    margin: 0;
    padding: 0;
}

.team-names {
    font-size: 12px;         /* smaller text */
    color: #FFFF00;
    margin: 0;
    padding: 0;
}

/* Header link colors */
.header a:link,
.header a:visited {
  color: #00ffdd;
  text-decoration: none;
}

.header a:hover,
.header a:focus {
  color: #00ffdd;
}

/* Navigation styling */
nav {
  text-align: center;
  background-color: #2c2c2c;
  border-top: 2px solid #444;
  border-bottom: 2px solid #444;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin: 0;
  width: 80%;
  margin-inline: auto;
}

nav li {
  flex: 1;
  text-align: center;
}

nav li a {
  display: block;
  text-decoration: none;
  color: #15F2FD;
  font-weight: bold;
  letter-spacing: 0.5px;  /* slightly reduced spacing */
  padding: 6px 0;         /* reduced vertical padding */
  transition: color 0.3s ease, text-shadow 0.3s ease;
  font-size: 12px;        /* slightly smaller */
}

/* Hover effects for a glowing look */
nav li a:hover {
  color: #15F2FD;
  text-shadow: 0 0 8px #15F2FD;
}

/*text css designs*/
h1 {
  color: #FFE81F;
  font-size: 2em;
}

h2 {
  color: #DFDFDF;
}

p {
  color: #DFDFDF;
}

/*header designs*/
.header h1 {
  font-size: 18px;   /* smaller title */
  margin: 2px 0;     /* reduced spacing */
  line-height: 1.1;  /* tighter layout */
}

.header nav {
  margin: 2px 0;   /* reduced spacing for nav */
  padding: 0;
}

/*design aspects for leaderboard and manual */
#leaderboard {
  border: solid 4px #FFFF00;
  background-color: #242424;
}

#manual {
  border: solid 4px #FFFF00;
  background-color: #242424;
}

#wrapper {
    margin-top: 10px;
}

/* ===========================
   Start Popup Styles
   =========================== */

#startPopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#gameOver {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); 
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popupBox {
  background: #242424;
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
}

/* control design aspect */ 
.controls-list {
    list-style: none;         
    padding: 0;
    margin: 20px auto;
    width: 70%;               
    text-align: left;         
}

.controls-list li {
    background: #2a2a2a;
    padding: 12px 15px;
    margin: 10px 0;
    border-left: 4px solid #FFE81F;
    border-radius: 4px;
    color: #DFDFDF;
    font-size: 18px;
    line-height: 1.4;
}
