* {
  box-sizing: border-box;
}

body {
  line-height: 1.5rem;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  /*clamping the value to 5% of the viewport width*/
  font-size: clamp(1rem, 5vw, 1.5rem);
  background-color: #f3f3fb;
  height: auto;
  overflow: auto;
  margin: 0;
}

.header {
  display: flex;
  align-items: center;
  flex-flow: row nowrap;
  padding: 0.25em;
  margin-bottom: 0.5rem;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 0.25em;
}

form {
  display: grid;
  grid-template-columns: 0.5fr min-content;
  grid-template-rows: 1fr;
  grid-column-gap: 2px;
  grid-row-gap: 0px;
  justify-content: center;
}

form input {
  border: 1px solid lightgray;
}

form button,
input {
  cursor: pointer;
  display: inline-block;
  padding: 0.5rem 0.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 1rem;
}

section p,
h4 {
  margin-top: 0.55em;
  margin-bottom: 0.55em;
}

section small {
  display: block;
}

.index {
  display: inline-block;
}

h1 span {
  color: red;
}

.phonetics ul {
  padding: 0;
  margin-top: 0;
  margin-bottom: 0.15rem;
}

.phonetics li {
  padding: 0.1em 0.5rem;
  display: inline;
  border: 0.15rem solid #32557f;
  margin-right: 0.5rem;
  border-radius: 0.5rem;
  background-color: rgb(226, 199, 199);
}

.definition p {
  padding: 0.1rem;
}
