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

body { 
  font-family: 'Poppins', sans-serif; 
  background: #111; 
  color: #fff; 
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

.navbar {
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  padding: 10px; 
  background: #222;
  z-index: 2;
}

.left-side-navbar {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar img { 
  height: 40px; 
}

.nav-links { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}

.nav-links a { 
  color: white; 
  text-decoration: none; 
  margin: 0 5px; 
}

.search-bar {
  padding: 5px; 
  border-radius: 5px; 
  border: none;
}

body, html {
  height: auto;
  overflow-y: auto;
  font-family: 'Poppins', sans-serif;
  background: #000;
  color: #fff;
  margin: 0;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

.intro {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: url('your-background-image.jpg') center center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
}

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-15vh); /* Slightly above center */
  z-index: 1;
  text-align: center;
  gap: 20px; /* Space between elements */
}


.overlay {
  position: absolute;
  transition: opacity 0.3s ease-out;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.intro h1 img {
  max-width: 300px;   /* limits width */
  height: auto;       /* keeps aspect ratio */
  display: block;     /* removes bottom whitespace */
  margin: 0 auto;     /* centers image */
  padding-top: 100px; /* adjust based on navbar height */
  border-radius: 20%;
  outline: none;
  user-select: none;      /* Prevents selection */
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE/Edge */
  -webkit-touch-callout: none; /* Disable callout on iOS */
  pointer-events: none;
}

.intro p {
  font-size: 1.5em;
  margin-bottom: 30px;
  opacity: 0.8;
  z-index: 1;
}

.search-container {
  width: 100%;
  max-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  z-index: 1;
}


.intro-search-bar {
  padding: 10px;
  font-size: 1rem;
  border-radius: 5px;
  width: 60%;
  max-width: 400px;
  margin-bottom: 0;
}

.enter-button {
  padding: 15px 30px;
  background-color: #e50914;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  cursor: pointer;
  transition: opacity 0.3s ease-out;
  text-decoration: none;
  z-index: 1;
}

.enter-button:hover {
  background-color: #b00610;
}

#search-results {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 25px;
  max-height: calc(100vh - 150px);  /* Ensure results fit within viewport */
  overflow-y: auto;  /* Allow scrolling only on the results container */
  margin-bottom: 20px;
}

#search-results img {
  width: 150px;
  height: 225px;
  object-fit: cover;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease-in-out;
}

#search-results img:hover {
  transform: scale(1.05);
}

/* Back button styles */
.back-button {
  padding: 15px 30px;
  background-color: #e50914;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  display: none; /* Initially hidden */
  margin-top: 30px;
  margin-left: 30px;
  z-index: 1;
}

.back-button:hover {
  background-color: #b00610;
}

.search-container.hidden,
.overlay.hidden {
  opacity: 0;
  visibility: hidden; /* Also hides the elements completely */
}

.intro.hidden {
  display: none;
}

/* Add smooth scrolling effect */
html {
  scroll-behavior: smooth;
}

a:link,
a:visited,
a:hover,
a:active {
  color: #fff;
  text-decoration: none; /* optional: removes underline */
}

a:hover {
  color: #e50914; /* Netflix red */
}

.left-side-navbar a:focus {
    outline: none;
}

.website-logo {
  user-select: none;      /* Prevents selection */
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE/Edge */
  -webkit-touch-callout: none; /* Disable callout on iOS */
}

.left-side-navbar a {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
}
