@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400&display=swap');
:root {
  --primary-color: #610606;
  --secondary-color: #1c0202;
}

* {
  box-sizing: border-box;
  user-select: none;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--primary-color);
  font-family: 'Poppins', sans-serif;
  margin: 0;
}

header {
  background-color: var(--secondary-color);
  color: #FFF;
  padding: 1rem;
  display: flex;
  justify-content: flex-end;
}

.heading {
  padding-right: .4em;
}

h2 {
  margin-bottom: .4em;
}

h3 {
  font-size: 1rem;
  margin-top: .3em;
}

.content {
  /* font-size: 1em; */
  font-weight: normal;
}

.search {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  padding: .5rem 1rem;
  margin: .5rem 0 0 1rem;
  color: #fff;
  width: fit-content;
  width: 20em;
}

.search::placeholder {
  color: #7378c5
}

.search:focus {
  outline: none;
  background-color: var(--primary-color);
}

#submit {
  margin-left: 2em;
}

main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  /* not in original */
}

.show {
  width: 300px;
  /* height: 421px;
  /* new */
  margin: 1rem;
  background-color: var(--secondary-color);
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}

.show img {
  width: 100%;
}

.missing-image {
  position: absolute;
  top: 0px;
  left: 0px;
  height: 100%;
  width: 100%;
  color: white;
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
  justify-content: space-around;
}

.missing-image-name {
  /* width: fit-content; */
  text-align: center;
  font-size: 1.2em;
}

.missing-image-chan {
  text-align: center;
  font-size: .9em;
}

.show-info {
  background-color: #fff;
  padding: 2rem;
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  max-height: 100%;
  /* covers all of image */
  max-height: 75%;
  /* Only covers most of image */
  transform: translateY(101%);
  transition: transform .5s ease-in;
  overflow-y: auto;
}

.show:hover .show-info {
  transform: translateY(0%);
  opacity: 0.96;
}