/* General styles */
p {
  color: rgb(0, 0, 0);
  font-size: larger;
}

h1 {
  color: rgb(8, 11, 30);
}

body {
  background-color: rgba(0, 179, 255, 0.53);
  font-family: "Bebas Neue", serif;
}

hr {
  border: 10px solid rgb(0, 179, 255, 0.53);
}

#toyota_supra_mk4 {
  background-color: rgba(0, 0, 0, 0.18);
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: black;
}

li {
  float: left;
}

li:hover {
  background-color: rgb(188, 180, 180);
}

li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

#toyota_supra_mk4,
#toyota_supra_mk5 {
  background: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.18),
    rgba(0, 179, 255, 0.53)
  );
  animation: bgMove 5s infinite alternate;
}

@keyframes bgMove {
  from {
    background-position: left;
  }
  to {
    background-position: right;
  }
}

.hero-image {
  width: 100%;
  height: 100vh; /* Full screen height */
  background: url("https://fbi.cults3d.com/uploaders/27764749/illustration-file/f86e4f5a-e49b-42a7-8004-4842b90f31bc/supra.gif")
    no-repeat center center;
  background-size: cover;
}

#title {
  padding-top: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#title img {
  border-radius: 7rem;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  /* Adjust the navigation bar for tablets and mobile */
  ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  li {
    width: 100%;
    text-align: center;
  }

  .hero-image {
    height: 50vh; /* Smaller hero image for mobile */
  }

  #title {
    flex-direction: column;
    padding-top: 20px;
  }

  #title img {
    width: 50%; /* Make the image smaller on mobile */
    margin-top: 10px;
  }

  p {
    font-size: medium; /* Smaller font for better readability */
    padding: 0 10px; /* Add some padding on the sides */
  }

  iframe {
    width: 100%; /* Make video fit mobile screen */
    height: 200px; /* Adjust iframe size for smaller devices */
  }

  #toyota_supra_mk4,
  #toyota_supra_mk5 {
    padding: 20px; /* Add padding around the content */
  }
}

@media (max-width: 480px) {
  /* Further adjust styles for small mobile devices */
  h1 {
    font-size: 1.5rem; /* Smaller heading on small screens */
  }

  p {
    font-size: small;
  }

  .hero-image {
    background-size: cover;
    height: 40vh; /* Adjust hero image to fit better on very small screens */
  }

  #title img {
    width: 70%; /* Resize image for small mobile devices */
  }
}
