/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #141414;
  color: white;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  background: radial-gradient(ellipse 100% 70% at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0.8) 100%), linear-gradient(to bottom, rgba(0, 0, 0, 0) 85vh, rgba(0, 0, 0, 0.8) 100vh, rgba(0, 0, 0, 1) 120vh), url('Images/assortment-film-elements-red-background-with-copy-space.jpg');
  background-size: cover;
  background-position: center;
}

/* Header Styles */
header svg {
  width: 12rem;
  margin: 2.5rem 0 0 8rem;
  cursor: pointer;
  fill: rgb(218, 0, 0);
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
}

header a {
  float: right;
  margin: 2.5rem 8rem 0 0;
  padding: 0.5rem 1rem;
  background-color: rgb(190, 0, 0);
  text-decoration: none;
  color: white;
  border-radius: 0.2rem;
  font-weight: 350;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

header a:hover {
  border: 1px solid gray;
}

/* Hero Section */
.heroes-section {
  text-align: center;
  min-height: 31rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.heroes-section h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
  max-width: 40%;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.heroes-section p {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.heroes-section h3 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

/* Search Area */
.search-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.search-area input {
  padding: 1rem;
  width: 25rem;
  font-size: 1rem;
  border: 0.5px solid gray;
  border-radius: 0.2rem 0 0 0.2rem;
  outline: none;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
}

.search-area button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  border: 0.5px solid gray;
  border-radius: 0 0.2rem 0.2rem 0;
  background-color: rgb(229, 0, 0);
  color: white;
  cursor: pointer;
}

.search-area button:hover {
  background-color: rgb(255, 0, 0);
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .search-area input {
    width: 100%;
    max-width: 80vw;
  }

  .search-area button {
    padding: 0.45rem 1rem;
  }
}

@media screen and (max-width: 740px) {
  .heroes-section h1 {
    font-size: 3rem;
    max-width: 90%;
  }

  .heroes-section p {
    font-size: 1rem;
  }

  .heroes-section h3 {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 630px) {
  .heroes-section h1 {
    font-size: 2.5rem;
  }

  header svg {
    width: 10rem;
    margin: 2.5rem 0 0 4rem;
  }

  header a {
    margin: 2.5rem 4rem 0 0;
  }
}

@media screen and (max-width: 480px) {
  header svg {
    width: 8rem;
    margin: 2.5rem 0 0 2rem;
  }

  header a {
    margin: 2.5rem 2rem 0 0;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    font-weight: 300;
  }

  .search-area input {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .search-area button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.5px;
  }

  .search-area button svg {
    width: 16px;
    height: 16px;
  }
}

@media screen and (max-width: 360px) {
  .search-area {
    flex-direction: column;
  }
}
