:root {
  --light-grey: #f5f6f7;
  --dark-blue: #0a0a23;
  --fcc-blue: #1b1b32;
  --light-yellow: #fecc4c;
  --dark-yellow: #feac32;
  --light-pink: #ffadad;
  --dark-red: #850000;
  --light-green: #acd157;
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
h1 {
  background-color: var(--dark-yellow);
  color: var(--light-grey);
  text-align: center;
  padding: 15px;
  border-bottom: 4px solid var(--light-green);
  font-size: 2rem;
}
.search {
  margin: 15px auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
#searchButton {
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
#diver {
  margin: 0 18px 0 12px;
  width: 2px;
  height: 26px;
  background-color: var(--dark-blue);
  /* background-color: #0d6efd; */
}
button {
  padding: 1px 8px;
  margin-left: 8px;
}
#input {
  height: 36px;
  margin-right: 12px;
}
form {
  width: 60%;
  margin: 0 auto;
}
#radiobtn {
  display: flex;
  justify-content: center;
  font-weight: 700 !important;
  font-size: 1.2rem;
}

.description {
  margin: 15px auto;
  max-width: 60%;
  font-size: 8px;
  color: darkgray;
  padding: 0 3rem;
}
.description p {
  /* set margin-bottom to 0, and add important; */
  margin-bottom: 0 !important;
  padding-left: 2rem;
}
/* 创建一个媒体查询，当屏幕宽度小于600像素时，将.description的宽度设置为90%。 */
@media screen and (max-width: 600px) {
  .description {
    width: 90%;
  }
}
li {
  list-style: none;
  text-align: left;
}
#loading {
  display: none;
  margin: 40px auto;
  color: #feac32;
  text-align: center;
}
#noResults {
  display: none;
  margin: 40px auto;
  color: crimson;
  text-align: center;
}
/*  in #results,use grid, in 3 columns, 8px for cap, 1px dark border. minwidth for 300px, maxwidth for 600px */
#results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 15px;
  min-width: 300px;
  max-width: 800px;
  margin: 0 auto;
}
.result {
  border: 1px solid var(--dark-blue);
  padding: 8px 4px;
  font-weight: bold;
  border-radius: 4px;
}
