@import 
url(
  "https://fonts.googleapis.com/css2?family=Poppins:wght@200;400&display=swap"
  );

:root {
  --primary-color: #9bcada;
  --secondary-color: #2b9cb0;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--primary-color);
  font-family: "Poppins", sans-serif;
  margin: 0;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000; 
  padding: 0rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--secondary-color);;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .logo {
  padding: 22px 20px;
  height: 80px;
  float: left;
  color: #1e5865;
  font-size: 24px;
  transition: .3s;
}

header a {
  color: #25758b;
  padding: 1cap;
  margin-bottom: 0cm;
  font-size: 1.1rem;
  text-decoration: double;
  line-height: 20px;
}
.search {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  color: #1d5865;
}

.search::placeholder {
  color: #143b44;
}

.search:focus {
  outline: none;
  background-color: var(--primary-color);
}

main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.About{
  display: flex;
  text-align: center;
  max-width: 500px;
  margin: 0 20px;
  text-decoration: solid;
  border-color: rgb(26, 104, 100);
}

.About p {
  margin: 0;
}

.p{
  display:grid;
  text-align: center;
  max-width: 500px;
  margin: 20px;
  align-self: center;
  text-decoration: solid;
  border-color: rgb(26, 104, 100);
}

.movie {
  width: 300px;
  margin: 1rem;
  background-color: var(--secondary-color);
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.235);
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}

.movie img {
  width: 100%;
}

.movie-info {
  color: #022632;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem 1rem;
  letter-spacing: 0.5px;
}

.movie-info h3 {
  margin-top: 0;
}

.movie-info span {
  background-color: var(--primary-color);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-weight: bold;
}

.movie-info span.green {
  color: lightgreen;
}

.movie-info span.orange {
  color: orange;
}

.movie-info span.red {
  color: red;
}

.overview {
  background-color: #86cbd7;
  padding: 2rem;
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  max-height: 100%;
  transform: translateY(101%);
  overflow-y: auto;
  transition: transform 0.3s ease-in;
}

.movie:hover .overview {
  transform: translateY(0);
}

.footer p {
  color: #1d5865;
  text-align: center;
}

@media (max-width: 580px) {
  header {
    flex-direction: column;
  }

  header h1 {
    padding: 0.5rem 1rem;
  }
}