html {
  font-size: 16px;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  font-family: "Rum Raisin", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgb(0, 0, 0);
  background-color: rgb(255, 255, 255);
  text-align: center;
  margin: 8rem;
}

.regular-text {
  font-family: "Mountains of Christmas", serif;
  font-weight: 400;
  font-style: normal;
}

.title-text {
  font-family: "Mountains of Christmas", serif;
  font-weight: 700;
  font-style: normal;
  margin-bottom: 5px;
  margin: 0 auto;
  color: rgb(10, 55, 0);
}

.rum-raisin-font {
  font-family: "Rum Raisin", sans-serif;
}

.score-text {
  font-family: "Rum Raisin", sans-serif;
  font-weight: 400;
  font-style: normal;
}

h1.title-text {
  font-size: 5rem; 
}

#highScore {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

#score {
  font-size: 2.75rem;
  margin-bottom: 1px;
}

h1 {
  font-family: "Mountains of Christmas", serif;
  font-weight: 400;
  font-size: 6rem;
}

h2,
h3,
h4,
h5,
h6 {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
}

p {
  margin: 0 0 1.5em;
  font-size: 1rem;
}

/* Game Components */
#scoreResetContainer {
  display: flex;
  align-items: center;
  justify-content: center;
}

#resetHighScore {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

#gameArea {
  width: 375px;
  height: 375px;
  margin: 0 auto;
  /* border: 0.125rem solid rgb(0, 0, 0); */
  position: relative;
  overflow: hidden;
  background-image: url('images/meadow.png');
  background-size: cover;
  background-position: center;
}

#pregame-message {
  font-family: "Rum Raisin", sans-serif;
  text-align: center;
  font-size: 2.25rem;
  color: rgb(255, 255, 255);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 325px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
}

.vole {
  position: absolute;
  display: none;
  width: 6.25rem;
  height: 6.25rem;
}

#gameOverMessage {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1.25rem;
  border-radius: 0.625rem;
  text-align: center;
  color: white;
  font-size: 4rem;
  width: 75%;
}

#finalScore {
  display: none;
}

.game-over-container {
  display: flex;
  align-items: center;
}

#countdown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8rem;
  color: rgb(255, 255, 255);
  display: none;
}

#timer {
  font-size: 2rem;
  position: absolute;
  top: 1px;
  right: 10px;
  color: rgb(0, 0, 0);
  display: none;
}

#buttonContainer {
  margin-top: 1.25rem;
}

button {
  padding: 10px 20px;
  font-size: 2rem;
  margin: 5px;
  cursor: pointer;
}

.green-button {
  background-color: rgb(34, 139, 34);
  color: rgb(255, 255, 255);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.points-message {
  position: absolute;
  transform: translate(-50%, -100%); /*position slightly above the vole */
  font-size: 3rem;
  font-weight: 400; 
  color: rgb(0, 0, 0);
  pointer-events: none; /*prevent interference with gameplay */
  background-color: transparent;
  line-height: 1;
  z-index: 10; /*on top */
}



.miss-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgb(255, 255, 255);
  font-size: 96px;
  padding: 10px;
  border-radius: 10px;
}

#startGame, #stopGame {
  font-size: 1.5rem;
  padding: 15px 30px;
}

.credit-footer {
  font-family: Arial, sans-serif; 
  display: flex;
  justify-content: center; 
  align-items: center; 
  margin-top: 20px;
  font-size: 0.7rem; 
}

.credit-table {
  margin: 0 auto;
  border-collapse: collapse;
  width: 375px; 
}

.credit-table td {
  font-size: 0.7rem;
  padding: 2.5px;
}

.credit-table td:first-child {
  text-align: right; 
  width: 50%;
}

.credit-table td:nth-child(2) {
  text-align: left; 
  width: 50%; 
}
