@import url("https://fonts.googleapis.com/css2?family=Russo+One&display=swap");

@font-face {
  font-family: "Debug";
  src: url(fonts/SpaceMission-rgyw9.otf);
}

@font-face {
  font-family: "VW";
  src: url(fonts/Vampire\ Wars.otf);
}
@font-face {
  font-family: "VW";
  src: url(fonts/Vampire\ Wars\ Italic.otf);
  font-style: italic;
}

body {
  background-color: #212121;
  margin: 0;
  font-family: "Russo One", sans-serif;
}

/* General Header Styles */
header {
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10%;
  z-index: 10; /* Ensure the header is always on top */
}

header .logo img {
  height: 50px; /* Adjust logo size */
}

/* Navigation Styles */
nav ul {
  list-style: none;
  display: flex; /* Using flexbox for cleaner layout */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: flex-end; /* Align navigation items to the right */
  margin: 0;
}

nav ul li {
  margin-right: 20px; /* Space between items */
}

nav ul li a {
  font-family: "VW";
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  padding: 12px 30px;
  text-decoration: none;
  text-transform: uppercase;
}

/* Hover Effect */
nav ul li a:hover {
  color: #C0C0C0;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
  header {
      padding: 10px 5%; /* Reduce padding on mobile */
  }

  header .logo img {
      height: 40px; /* Scale down logo on mobile */
  }

  nav ul {
      flex-direction: row; /* Stack navigation items vertically */
      align-items: center; /* Center align items */
  }

  nav ul li {
      margin: 5px 0; /* Space between stacked items */
  }

  nav ul li a {
      font-size: 16px; /* Increase font size on mobile for better readability */
      padding: 8px 20px; /* Adjust padding for mobile */
  }
}

.sbar {
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.sbar button {
  background-color: rgba(0, 0, 0, 0);
  border-color: rgba(0, 0, 0, 0);
}

#search {
  border-radius: 25px;
  border-color: rgba(0, 0, 0, 0);
  background-color: rgba(0, 0, 0, 0);
  padding-left: 5px;
}

.user-cnt {
  position: relative;
  display: inline-block;
}

.user {
  padding-top: 5px;
  opacity: 0.5;
  background-color: #C0C0C0
}

.user2 {
  padding-top: 5px;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 99;
}

.user-cnt:hover .user2 {
  display: inline;
  background-color: #d9dbd9
}

/* Media Queries for Mobile */
@media (max-width: 768px) {

  .user-cnt {
    display: block;
    text-align: center;
    width: 100%;
  }

  .sbar {
    width: 100%;
    margin-top: 10px;
  }

  #search {
    width: 100%;
    padding: 8px;
  }

  .user2 {
    position: static;
    display: block;
    opacity: 1;
  }
}

/* Additional Media Query for Smaller Screens (Phones) */
@media (max-width: 480px) {
  nav ul li a {
    font-size: 10px;
    padding: 8px 15px;
  }

  .sbar {
    width: 90%;
    margin-top: 10px;
  }

  header {
    padding: 10px 3%;
  }

  .user-cnt {
    width: 100%;
  }
}