* {
  box-sizing: border-box;
}

body {
  width: 300px;
  margin-inline: auto;
}

p {
  line-height: 1.2;
  margin-block: 0;
}

header {
  position: relative;
  top: 15px;
  left: 0px;
  min-width: 300px;
  padding: 0px 0px 0px 0px;
  margin: 0px 0px 0px 0px;
  text-align: left;
  /* border-bottom: 2px solid black; */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    "Open Sans", "Helvetica Neue", sans-serif;
  font-weight: bold;
  font-size: 32px;
}

header h3 {
  margin: 0;
  line-height: 1.1;
}

header .styled-text {
  position: relative;
  top: -59px;
  left: 40px;
  font-size: 15px;
  font-family: cursive;
  transform: rotate(-30deg);
}

.hidden {
  /* visibility: hidden; */
  display: none !important;
}

img.detective {
  position: relative;
  top: 3px;
  width: 80px;
}

.info-bar {
  position: relative;
  display: flex;
  justify-content: left;
  padding-left: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    "Open Sans", "Helvetica Neue", sans-serif;
  font-family: cursive;
  font-size: 16px;
  font-weight: bold;
}

.how-to-play {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;

  padding-block: 1rem;
  padding-inline: 0.5rem;
  text-align: justify;
  font-size: 16px;
  font-weight: normal;
}

.square {
  width: 16px;
  height: 16px;
}

.green {
  background-color: green;
}

.outline-red {
  border: 2px solid red; /* Red outline */
}

.yellow {
  background-color: yellow;
}

.grey {
  background-color: grey;
}

.legend-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-block: 0.5rem;
}

.flex-container {
  margin-top: 0px;
  padding-top: 10px;
}

.header-flex-container {
  display: flex;
}

.flex-item {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  list-style: none; /* remove list bullet points */
  padding-left: 0;
  width: 300px;
  height: auto;
}

.letter-input {
  /* background-color: green; */
  border: 2px solid rgb(184, 183, 183);
  font-size: 30px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    "Open Sans", "Helvetica Neue", sans-serif;
  font-weight: bold;
  text-align: center;
  width: 45px;
  height: 45px;
}

.invalid {
  animation: flash 1s;
}

.correct {
  background-color: green;
}

.non-exact-match {
  background-color: yellow;
}

.no-match {
  background-color: grey;
}

.RightToLeft {
  animation: RightToLeft 10s infinite linear;
}

@keyframes RightToLeft {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes flash {
  5% {
    border-color: rgb(255, 0, 0);
  }

  100% {
    border-color: rgb(184, 183, 183);
  }
}
