@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@700&family=Source+Sans+Pro:wght@900&display=swap&effect=font-effect-fire-animation|anaglyph");

* {
  margin: 0;
  padding: 0;
  text-decoration: none;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: black;
  overflow-x: hidden;
  overflow-y: auto;
}

.content-wrapper {
  text-align: center;
}

h1 {
  color: white;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 5em;
  letter-spacing: -0.04em;
}

p {
  color: rgb(98, 0, 255);
  font-family: "Comfortaa", cursive;
  font-size: 1.5em;
  margin: 15px 0;
}

.divider {
  color: white;
}

.icon {
  color: white;
  padding: 15px;
  border-radius: 50%;
}

.icon:hover {
  cursor: pointer;
  background-color: rgb(22, 22, 22);
}


/*css for dropdown menu*/

/* Dropdown menu container */
.dropdown-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  font-family: monospace;
}

/* Menu toggle button */
.menu-toggle {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1001;
  background: darkviolet;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.menu-toggle:hover {
  background: red;
}

a {
  text-decoration: none;
}

nav {
  font-family: monospace;
  display: none; /* Hide by default */
}

nav.active {
  display: block; /* Show when active */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Main menu styling */
.main-menu {
  background: darkviolet;
  list-style: none;
  margin: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

li {
  color: #fff;
  background: darkviolet;
  display: block;
  padding: 1rem;
  position: relative;
  text-decoration: none;
  transition-duration: 0.5s;
}
  
li a {
  color: #fff;
  display: block;
}

li:hover,
li:focus-within {
  background: red;
  cursor: pointer;
}

li:focus-within a {
  outline: none;
}

/* First level dropdown */
ul li ul.dropdown {
  background: violet;
  visibility: hidden;
  opacity: 0;
  min-width: 200px;
  position: absolute;
  left: 100%;
  top: 0;
  display: none;
  transition: all 0.3s ease;
  margin-top: 0;
  list-style: none;
  padding-left: 0;
  pointer-events: none; /* Prevent interaction when hidden */
}

/* Show dropdown on hover */
ul li:hover > ul.dropdown,
ul li:focus-within > ul.dropdown {
  visibility: visible;
  opacity: 1;
  display: block;
  pointer-events: auto; /* Allow interaction when visible */
}

/* Third level dropdown */
ul li ul.dropdown li ul.third-level {
  background: #8a0303;
  visibility: hidden;
  opacity: 0;
  min-width: 200px;
  position: absolute;
  left: 100%;
  top: 0;
  display: none;
  transition: all 0.3s ease;
  margin-top: 0;
  list-style: none;
  padding-left: 0;
  pointer-events: none; /* Prevent interaction when hidden */
}

/* Show third level dropdown on hover */
ul li ul.dropdown li:hover > ul.third-level,
ul li ul.dropdown li:focus-within > ul.third-level {
  visibility: visible;
  opacity: 1;
  display: block;
  pointer-events: auto; /* Allow interaction when visible */
}

/* Right-aligned section inside the top navigation */
.topnav-right {
  float: right;
}

/* Responsive styles */
@media (max-width: 768px) {
  h1 {
    font-size: 3em;
  }
  
  p {
    font-size: 1.2em;
  }
  
  .content-wrapper {
    padding: 20px;
    width: 90%;
  }
  
  /* Dropdown menu adjustments for mobile */
  ul li ul.dropdown {
    position: relative;
    left: 0;
    width: 100%;
  }
  
  ul li ul.dropdown li ul.third-level {
    position: relative;
    left: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.5em;
  }
  
  .icon {
    padding: 10px;
  }
}
