@import url('https://fonts.googleapis.com/css2?family=Poetsen+One&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #141414;
  color: white;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
}

nav ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #e50914;
}

header {
  display: flex;
  justify-content: 0;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(10px);
  padding: 20px;
  z-index: 1000;
  transition: background-color 0.3s, backdrop-filter 0.3s;
}

.navbar {
  flex-grow: 1;
  display: flex;
  align-items: center;
  padding-left: 30px;
  
}

.profile-icon {
  justify-content: space-between;
  margin-left: auto;
  padding-left: 20px;
  padding-top: 8px;
}

.search-container {
  margin-left: 800px;
  display: flex;
  align-items: center;
}

.search-container form {
  display: flex;
  align-items: center;
}

.search-container input[type="text"] {
  padding: 5px 10px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  outline: none;
}

.search-container button {
  padding: 5px 10px;
  font-size: 16px;
  border: none;
  background-color: #555;
  color: white;
  cursor: pointer;
  border-radius: 4px;
  margin-left: 5px;
}

.search-container button:hover {
  background-color: #777;
}

header.scrolled {
  background-color: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(15px);
}

.logo {
  font-size: 35px;
  font-weight: bold;
  color: #e50914;
  animation: logo-fade-in 1s ease-in-out;
  margin-right: 20px;
}

@keyframes logo-fade-in {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav ul li {
  cursor: pointer;
  transition: color 0.3s;
  position: relative;
  animation: nav-slide-in 1s ease-in-out forwards;
  opacity: 0;
}

nav ul li:nth-child(1) {
  animation-delay: 0.2s;
}

nav ul li:nth-child(2) {
  animation-delay: 0.4s;
}

nav ul li:nth-child(3) {
  animation-delay: 0.6s;
}

nav ul li:nth-child(4) {
  animation-delay: 0.8s;
}

nav ul li:nth-child(5) {
  animation-delay: 1s;
}

nav ul li:nth-child(6) {
  animation-delay: 1.2s;
}

@keyframes nav-slide-in {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav ul li:hover {
  color: #e50914;
}

.profile-icon {
  font-size: 24px;
  margin-right: 40px;
  animation: icon-fade-in 1s ease-in-out;
  cursor: pointer;
}

@keyframes icon-fade-in  {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  padding: 100px 20px 20px;
}

h2 {
  margin-bottom: 20px;
  animation: title-fade-in 1s ease-in-out;
}

@keyframes title-fade-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.movie-list,
.tv-show-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  cursor: pointer;
}

.movie-list::-webkit-scrollbar,
.tv-show-list::-webkit-scrollbar {
  display: none;
}

.movie-item,
.tv-show-item {
  position: relative;
  width: 230px;
  flex-shrink: 0;
  transform: scale(1);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: card-fade-in 1s ease-in-out;
}

.movie-item:hover,
.tv-show-item:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

@keyframes card-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.movie-item img,
.tv-show-item img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s;
}

.movie-item img:hover,
.tv-show-item img:hover {
  transform: scale(1.05);
}

.movie-rank,
.tv-show-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 5px 10px;
  border-radius: 5px;
}

.movie-title,
.tv-show-title {
  text-align: center;
  margin-top: 10px;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  .profile-icon {
    margin-right: 0;
    margin-top: 10px;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
  }

  nav ul li {
    margin-bottom: 10px;
  }

  .movie-item,
  .tv-show-item {
    width: 150px;
  }

  .movie-item img,
  .tv-show-item img {
    height: 220px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 10px;
  }

  .logo {
    font-size: 18px;
  }

  .profile-icon {
    font-size: 20px;
  }

  .movie-item,
  .tv-show-item {
    width: 120px;
  }

  .movie-item img,
  .tv-show-item img {
    height: 180px;
  }
}

#myVideo {
  width: 800px; /* Adjust the width */
  height: 450px; /* Adjust the height */
  display: block; /* Ensure the video is displayed as a block element */
  margin: 0 auto; /* Center the video horizontally */
  border-radius: 10px; /* Add border radius if desired */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Add shadow effect */
  margin-top: 150px; /* Adjust the top margin as needed */
}

.video-text, .audio-text {
  text-align: center;
  padding: 20px;
}


