* {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #2c2e40;
}

main {
  display: flex;
  flex-direction: column;
  border: 5px solid #cac9e8;
  border-radius: 5px;
}

img {
  height: 300px;
  width: auto;
  border-radius: 3px 3px 0px 0px;
}

h1 {
  font-size: 1.5em;
  text-align: center;
  color: #2c2e40;
  background-color: #fffef9;
  padding: 20px 10px;
  border-bottom: 5px solid #cac9e8;
  margin: 0;
}

#scoreboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fffef9;
  padding: 0 10px 20px;
  border-bottom: 5px solid #cac9e8;
}

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

.score p {
  font-size: 4em;
  font-weight: 600;
  color: #2c2e40;
  text-align: center;
  margin: 0;
}

.score .digit {
  width: 150px;
  transition: all 1s;
}

#divider {
  font-weight: 400;
  font-size: 2.5em;
  margin: 0 20px;
}

#desc {
  font-size: 1em;
  color: #545765;
  margin-top: 0;
}

.goal {
  display: flex;
  align-items: center;
  color: #2c2e40;
}

.goal p {
  font-size: 1.25em;
  font-weight: 700;
  padding-right: 10px;
  margin: 0;
}

#goal-select {
  font-size: 1.25em;
  color: #2c2e40;
  padding: 5px 5px;
  border-radius: 10px;
}

.buttons {
  display: flex;
  justify-content: center;
  background-color: #fffef9;
}

button {
  width: 40%;
  color: white;
  font-size: 1.1em;
  padding: 10px;
  border: none;
  border-radius: 5px;
  margin: 5px 5px 5px 0;
  transition: all 1s;
}

button:first-of-type {
  margin-left: 5px;
}

button:hover {
  cursor: pointer;
}

#p1-btn {
  background-color: #3F8EF0;
}

#p2-btn {
  background-color: #D84246;
}

#reset-btn {
  background-color: #38ae38;
  width: 20%;
}