@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
  --snegg-orange:  #ff5e00;
  --snegg-white:   #ffffff;
  --snegg-black:   #000000;
  --snegg-grey:    #888888;
  --snegg-red:     #ff0000;
}

.hidden {
  display: none;
}

#snake-container {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background-color: var(--snegg-white);
  border-radius: var(--radius-sm);
  color: var(--snegg-black);
}

/* q-and-a panel */

#q-and-a {
  flex: 1;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

#question {
  color: var(--snegg-black);
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 2em;
}

#answer {
  display: flex;
  flex-direction: row;
  align-items: center;
}

#answer p {
  color: var(--snegg-black);
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.5em;
}

#answer .systemp {
  margin-left: 0.2em;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.8em;
}

/* high score */

.score-container {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.score-title {
  color: var(--snegg-black);
  font-family: Georgia, 'Times New Roman', Times, serif;
  padding-right: 1rem;
}

.score {
  color: var(--snegg-red);
  font-family: 'Courier New', Courier, monospace;
}

/* grid */

#grid-container {
  position: relative;
  width: 100%;
  justify-content: center;
}

#grid {
  align-content: center;
  justify-content: center;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  background-color: var(--snegg-grey);
  outline: var(--snegg-grey) solid 0.2em;
}

#grid .tile {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#grid .floor-tile  { background-color: var(--snegg-black); }
#grid .snake-tile  { background-color: var(--snegg-white); }

#grid .egg {
  width: 50%;
  height: 50%;
  padding: 0;
  margin: 0;
  border-radius: 50%;
}

/* game over overlay */

#game-over-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#game-over {
  line-height: 100%;
  text-align: center;
  font-size: 5rem;
  font-family: 'Times New Roman', Times, serif;
  color: transparent;
}
