:root {
  --primary: #2d2f30;
}

body {
  background-color: black;
}

.container {
  width: 60%;
  height: 90vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.logo {
  max-width: 200px;
  margin-bottom: 2rem;
}

.logo > img {
  width: 100%;
}

.searchArea {
  max-width: 600px;
  width: 80%;
  border-radius: 20px;
  outline: 0;
  font-size: 16px;
  background: #2d2f30;
  color: #f2f2f2;
}

.searchBox {
  padding: 10px 15px;
  border-radius: 20px;
  border: 0;
  outline: 0;
  font-size: 16px;
  background: #2d2f30;
  color: #f2f2f2;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}

.searchBox > input {
  border: 0;
  padding: 0 15px;
  outline: 0;
  color: #f2f2f2;
  font-size: 16px;
  height: 30px;
  width: 80%;
  margin: 0;
  background-color: transparent;
}

.searchBox > * {
  background: #2d2f30;
}

#closeButton {
  display: none;
  padding: 10px;
  color: rgb(186, 188, 190);
  border-right: 2px solid gray;
  margin-right: 10px;
  cursor: pointer;
}

#hr {
  display: none;
}

#loader {
  width: 40px;
  display: none;
}

.yellowCircle {
  background-color: rgb(255, 235, 0);
  padding: 10px;
  border-radius: 50%;
  font-size: 1rem;
  color: black;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.searchArea > hr {
  margin: 0 auto;
  width: 94%;
  border: 1px solid grey;
  border-radius: 20px;
}

#searchResults {
  max-height: 300px;
  overflow-y: auto;
  border-radius: 20px;
  /* margin-bottom: 10px; */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.resultInfo {
  display: -webkit-flex;
  display: flex;
  cursor: pointer;
  /* height: 55px; */
  -webkit-align-items: center;
  align-items: center;
  -webkit-flex-direction: column;
  flex-direction: column;
  background: #2d2f30;
  border: 1px solid #2d2f30;
  margin-top: 15px;
  padding: 0 24px;
  transition: 0.1s;
}

.resultInfo:hover .characterName {
  color: rgb(255, 235, 0);
}

.characterInfo {
  display: -webkit-flex;
  display: flex;
  background: #2d2f30;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  width: 100%;
  padding: 2px 0;
}

.characterName {
  margin: 0;
}

.characterInfo > div > p:not(:nth-child(1)) {
  font-size: 12px;
  color: rgb(186, 188, 190);
}

.characterInfo > p {
  font-size: 12px;
  color: rgb(186, 188, 190);
}

::-webkit-scrollbar {
  width: 5px;
  margin-right: 10px;
}
::-webkit-scrollbar-thumb {
  background: grey;
  border-radius: 50px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius: 50px;
}

#noResult {
  display: none;
  font-size: 12px;
  color: rgb(186, 188, 190);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Single character */
#person {
  color: #ecd014;
  width: 80%;
  max-width: 500px;
  border: 0;
  border-radius: 15px;
  padding: 20px 15px;
  display: block;
  cursor: pointer;
  box-shadow: 0 0 0 #ecd014;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: center;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#person > div {
  width: 100%;
  display: flex;
  justify-content: space-around;
}

#person > div > div {
  border: 1px solid #ecd014;
  border-radius: 10px;
  text-align: center;
  margin: 5px;
  background: transparent;
  transition: 0.2s;
  width: 200px;
  text-transform: uppercase;
}

#backButton {
  height: 30px;
  margin: 50px 0;
  border: 1px solid #ecd014;
  border-radius: 10px;
  color: #ecd014;
  font-size: 20px;
  padding: 5%;
  display: -webkit-flex;
  display: flex;
  transition: 0.2s;
  background: transparent;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  cursor: pointer;
}

#person > div > div:hover,
#backButton:hover {
  background-color: #ecd014;
  color: black;
}
