/*This code was genarated and upgraded with the help of chatgpt*/
/* Header and Nav Bar */
header {
  background-color: #333;
  color: white;
  padding: 1rem;
  text-align: center;
}

/* Heading styles */
h1, h2, h3 {
  color: #000000;
  margin-bottom: 0.5em;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column; /* mobile default */
  align-items: center;
}

nav ul li {
  margin: 0.5rem 0;
  padding: 0 0.5rem;
  border-right: 1px solid white;
}

nav ul li:last-child {
  border-right: none;
}

nav ul li a {
  color: white;
  text-decoration: none;
}

/* Desktop nav style */
@media (min-width: 768px) {
  nav ul {
      flex-direction: row;
      justify-content: center;
  }

  nav ul li {
      margin: 0 1rem;
  }
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Times New Roman', Times, serif;
  background-color: #f9f9f9;
}

main {
  max-width: 700px;
  margin: 60px auto;
  padding: 2rem;
  background-color: #E3BC9A;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

  .instruction {
    font-size: 60%;
    text-align: left;
  }
  
  /* I Googled 'letter inside a circle CSS'. Looked at the best answer, 'seems' to
     make sense so copy-n-paste. Added source reference within CSS (example below)
     and then modified rules to suite my needs.
  
     CSS styling for circle around a letter taken from answer to following question:
      https://stackoverflow.com/questions/29980387/how-to-make-a-circle-around-a-letter/29980453 */
  .circle {
    background: red;
    color: white;
    padding: 5px 20px;
    border-radius: 50%;
    font-size: 65px;
  }
  
  .circle:hover {
    background-color: gray;
  }
  
  #scoreboard {
    margin-top: 20px;
    font-size: 18px;
  }
  
  .score {
    margin: 5px 0;
  }
  
  .highlight {
    animation: flash 0.5s;
  }
  
  @keyframes flash {
    from {
      background-color: yellow;
    }
    to {
      background-color: transparent;
    }
  }
  
  #resetBtn {
    margin-top: 15px;
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
  }

  /* Footer */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1rem;
}
  