body {
  font-size: 16px;
  font-family: 'Times New Roman', Times, serif;
}

h1 {
  font-weight: normal;
  color: teal;
}

.message {
  color: steelblue;
}

.page {
  max-width: 1400px;
}

.items {
  list-style-type: none;
  padding: 0;
  width: 65%;
  margin-top: 4rem;
}
.items li {
  display: flex;
  align-items: stretch;
}
.items li:hover {
  background-color: #efefef;
  border-radius: 2px;
}
.items .common {
  color: black;
  cursor: pointer;
  flex: auto;
  padding: 0.5rem 0.3rem;
}
.items .studied {
  color: green;
  cursor: pointer;
  flex: auto;
  padding: 0.5rem 0.3rem;
}
.items button {
  margin: 0;
  padding: 0;
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 0 0.5rem;
  color: teal;
}
.items button :focus {
  outline: none;
}
.items .modify:hover {
  background-color: #778899;
  color: white;
}
.items .remove:hover {
  background-color: tomato;
  color: white;
}

.add {
  display: block;
  text-decoration: none;
  background-color: #778899;
  position: absolute;
  top: 0;
  right: 0;
  width: 7rem;
  height: 7rem;
  text-align: center;
  font-size: 7rem;
  color: white;
  line-height: 7rem;
  opacity: 0.7;
}
.add:hover {
  opacity: 1;
}

#mainform .buttons {
  margin-bottom: 2rem;
}
#mainform .buttons button {
  margin: 0;
  padding: 0;
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  background-color: #a9a9a9;
  padding: 1.3rem;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-right: 1px solid grey;
}
#mainform .buttons button:last-child {
  border-right: 1px solid transparent;
}
#mainform .buttons button:hover {
  background-color: #778899;
  color: white;
}
#mainform .buttons button:focus {
  outline: none;
}
#mainform .datain {
  max-width: 675px;
  margin-right: 25px;
  margin-bottom: 1.5rem;
}
#mainform .datain input {
  border: 1px solid #a9a9a9;
  padding: 0.5rem;
  width: 75%;
  margin-bottom: 0.5rem;
}
#mainform .datain input:focus {
  outline: none;
}

.card {
  margin-bottom: 1rem;
}
.card .term {
  border: none;
  border-bottom: 1px solid #a9a9a9;
  padding: 0.5rem;
  width: 38%;
  margin-right: 2%;
}
.card .term:focus {
  outline: none;
}
.card .definition {
  border: none;
  border-bottom: 1px solid #a9a9a9;
  padding: 0.5rem;
  width: 38%;
  margin-right: 1%;
}
.card .definition:focus {
  outline: none;
}
.card .delterm {
  margin: 0;
  padding: 0;
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  background-color: white;
  padding: 0.2rem 0.4rem;
  color: grey;
}
.card .delterm:hover {
  background-color: #778899;
  color: white;
}
.card .delterm:focus {
  outline: none;
}
