<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Posible</title>
    <link rel="stylesheet" href="main.css">
		<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">



</head>
<body>
	
	
	</div>
    <div class="logobar"><span class="mlogo"><img src="img/Logo_.png" alt="Company"></span>
   	     
		 
	</div>
    <header>       
         <nav>
		                <!-- Hamburger Icon -->
            <a href="javascript:void(0);" class="icon" onclick="myFunction()">
                <i class="fa fa-bars"></i>
            </a>
            <div class="topnav" id="myTopnav">
              <a href="#home" class="active">Home</a>
			   <div class="dropdown">
                <button class="dropbtn">About 
                  <i class="fa fa-caret-down"></i>
                </button>
                <div class="dropdown-content">
                  <a href="#">Link 1</a>
                  <a href="#">Link 2</a>
                  <a href="#">Link 3</a>
              </div>
              </div>
              <a href="#product">Products</a>
              <div class="dropdown">
                <button class="dropbtn">Resources 
                  <i class="fa fa-caret-down"></i>
                </button>
                <div class="dropdown-content">
                  <a href="#">Link 1</a>
                  <a href="#">Link 2</a>
                  <a href="#">Link 3</a>
                </div>
              </div>
              <a href="#contact">Contact</a>		  
            </div>
           
			

         </nav>
    </header>
    <main>
        <section class="hero">

        </section>


	<script src="js/responsive.js"></script>
</body>
</html>
/* Reset styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set up a flexible layout */
body {
	font-family: "Arial", sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: #666;
	background-color: #fff;
}



header {
    background: #3f61a1;
    color: #fff;
	padding: 0px;
    text-align: left;
}

select {
    width: 120px;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 0; /* Removes rounded corners */
    background-color: #fff;
    font-size: 12px;
    cursor: pointer;
}



.tbar {
	background-color: #F2F2F5;
}

.topbar {
	display: flex;
    width: 1200px;
	height: 50px;
	margin: 0 auto;  
}

.topbar div.pcttag {	
    justify-content: left;
	padding-top: 10px;
}

.topbar div.pcttvs {
	margin-left: auto;
}


.logobar {
	width: 1200px;
	height: 70px;
	margin: 0 auto;
    display: flex; /* Align items in a row */
    align-items: center; /* Vertically align content */
    gap: 20px; /* Adds spacing between items */
}

.pngsvg {
    width: 21px;	
}

.mlogo {
    width: 320px; /* Adjust image size */
	padding-top: 10px;
	margin-right: auto;
    height: auto;
}

.logobar > div {
    display: flex;
    align-items: center; /* Image and text stay aligned */
    gap: 10px; /* Space between image and text */
}

.text-wrp {
	font-size: 12px;
    display: flex;
    flex-direction: column; /* Stack text vertically */
}

.toptext {
    font-weight: bold; /* Emphasize top text */
    font-size: 12px;
}

nav {
  display: flex;
  width: 1200px;
  margin: 0 auto;
}

.topnav {
  overflow: hidden;
  background-color: #3f61a1;
  font-weight: 600;
}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 15px;
}

.active {
  color: 44bef1;
}

.topnav .icon {
  display: none;
}

.dropdown {
  float: left;
  overflow: hidden;
  
}

/*.dropdown .dropbtn {*/
.dropdown .dropbtn {
  font-size: 15px; 
  font-weight: 600;  
  border: none;
  outline: none;
  color: white;
  padding: 17px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

.dropdown-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    transform: translateY(20px); /* Start lower */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}


.dropdown-content a {
  float: none;
  color: black;
  padding: 18px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.topnav a:hover, .dropdown:hover .dropbtn {
  color: #44BEF1;
}

.dropdown-content a:hover {
  background-color: #ddd;
  color: black;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Moves upward into place */
}


.dropbtn i {
    transition: transform 0.3s ease-in-out;
}

.dropdown:hover .dropbtn i {
    transform: rotate(180deg);
}

.srchpos {
    margin-left: auto;
	padding-top: 9px;
}

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

.search-container {
    display: flex;
    align-items: center;
    padding: 5px;
    width: 250px;
	margin-right: auto;
    transition: background-color 0.5s ease-in-out;
	align-items: center;
}

/* Initially hidden 
.srchhide {
    display: none;
}*/



.search-container.active {
    background-color: white;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2); /* Subtle glow effect */
}

.search-input {
    flex: 1; /* Makes it take up space */
    border: none;
    outline: none;
    padding: 5px;
    background: transparent;
    color: #3f61a1;
    caret-color: black; /* Keeps the cursor visible */
}


.search-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
	margin-left: 7px;
    /*position: absolute;
    right: 10px;*/
}

.search-container.active .search-icon {
    transform: translateX(5px);
}



/* Default: Hide the hamburger icon */
nav .icon i.fa-bars {
    display: none; /* Hide by default */
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 14px 16px;
}


@media screen and (max-width: 600px) {
  .topnav a:not(:first-child), .dropdown .dropbtn {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }



nav .icon i.fa-bars {
        display: block; /* Shows it on small screens */
}



/* Show the icon only in small screens */

  nav .icon i.fa-bars {
    display: block;
    cursor: pointer;
    font-size: 24px;
    padding: 14px 16px;
    color: white;
  }




  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  .topnav.responsive .dropdown {float: none;}
  .topnav.responsive .dropdown-content {position: relative;}
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }




  
.topnav .dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

.topnav .dropdown:hover .dropdown-content {
  display: block;
}

.topnav a, .topnav .dropdown {
    display: none;
}
  
.topnav .icon {
    display: block;
    float: right;
}



.topnav.responsive {position: relative;}
.topnav.responsive .icon {
  position: absolute;
  right: 0;
  top: 0;
}

.topnav.responsive a, .topnav.responsive .dropdown {
  display: block;
  text-align: left;
  float: none;
}

.topnav.responsive .dropdown-content {
  position: relative;
  display: block;
}
  
  .topnav .icon {
  display: none;
  cursor: pointer;
  font-size: 24px;
  padding: 14px 16px;
  color: white;
}


.topnav .icon {
    display: block;
    float: right;
}


.topnav.responsive .dropdown-content {
    position: absolute; /* Makes it overlay */
    top: 100%; /* Ensures it overlays right below */
    left: 0; /* Aligns with its button */
    width: 100%; /* Expands dropdown for visibility */
    background-color: white;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 10;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Show dropdown in mobile view */
.topnav.responsive .dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
}


  /* Make dropdown the reference for positioning */
  .dropdown {
    position: relative;
  }

  /* Dropdown menu should overlay directly beside the button */
  .dropdown-content {
    position: absolute;
    bottom: 100%; /* Aligns to the top of dropdown */
    right: 200px; /* Moves directly beside the button */
    width: max-content; /* Ensures content fits naturally */
    background-color: white;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.2);
    z-index: 9999;
    visibility: visible;
    opacity: 1;
    transform: translateX(-10px); /* Small tweak to slide into place */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  }

  /* Make dropdown appear neatly */
  .dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
  }



}

function myFunction() {
  var x = document.getElementById("myTopnav");
  if (x.classList.contains("responsive")) {
    x.classList.remove("responsive");
  } else {
    x.classList.add("responsive");
  }
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.