* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #004766;
  font-family: sans-serif;
}

header {
  background-color: #003247;
  padding: 1rem;
  display: flex;
  justify-content: flex-end;
}

.search {
  padding: 0.5rem 1rem;
  border-radius: 30px;
  height: 46px;
  border: none;
  color: rgba(0, 0, 0, 0.5);
  font-size: 1.1rem;
}

.search:focus {
  outline: none;
}

main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.movie {
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  width: 300px;
  background-color: #003366;
  margin: 1rem;
  overflow: hidden;
  position: relative;
}

.movie img {
  width: 100%;
}

.movie-info {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 1rem 1rem;
  color: #fcfcfc;
  letter-spacing: 0.5px;
  align-items: center;
}

.movie-info h3 {
  margin: 0;
}

.movie-info span {
  background-color: #22254b;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-weight: bold;
}

.movie-info span.green {
  color: #2ec22e;
}

.movie-info span.orange {
  color: #ffa500;
}

.movie-info span.red {
  color: #ff0000;
}

.overview {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #909ba0;
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 1s ease-in;
  max-width: 100%;
  overflow: auto;
}

.movie:hover .overview {
  transform: translateY(0);
}

.overview h4 {
  margin-top: 0;
}