@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Pacifico&display=swap'); *{ padding: 0; margin: 0; box-sizing: border-box; } nav{ font-family: "Montserrat", sans-serif; display: flex; justify-content: space-around; align-items: center; padding:20px ; position: fixed; top: 0; width: 100%; z-index: 99; transition: 0.35s; box-shadow: 0 1px 10px 0px rgba(0, 0, 0, .2); background-color:white; transition: 0.5s; } .logo{ display: flex; justify-content: center; align-items: center; } .logo img { max-width: 50px; } .logo-text{ font-weight: bold; font-size: 20px; margin-left: 20px; color: rgb(0, 0, 113); } .user-responsive{ display: none; } ul{ padding-left: 0; } nav ul{ list-style: none; margin-left: 0px; width: 60%; display: flex; justify-content:right; margin-bottom: 0; } nav ul li a{ color:black ; text-decoration: none; display: inline-block; position: relative; font-size: 1.1em; margin:0 16.5px; text-transform: uppercase; } nav ul li a:after{ background-color: black; } nav ul li a:after { content: ''; position: absolute; width: 100%; transform: scaleX(0); height: 2px; bottom: 0; left: 0; transform-origin: center; transition: transform 0.25s ease-out; } nav ul li a:hover{ color: black; } nav ul li a:hover:after{ transform: scaleX(1); transform-origin: center; } nav ul li a.active:after{ transform: scaleX(1); } .button-container{ display: flex; } nav .button-57{ font-size: 14px; padding: 15px 15px; margin-top: 0; } nav menuitem > menu{ min-width: fit-content; width: 100%; } nav menu a{ padding: 14px 0; } nav .button-57:hover span:last-child { transform: translateX(-50%) translateY(-50%); opacity: 1; transition: all 900ms cubic-bezier(0.48, 0, 0.12, 1); } nav .button-57.logout-btn:after { background-color: rgb(255, 38, 0); } nav .button-57.logout-btn i{ font-size: 16px; } .btn-pushable { position: relative; border: none; background: transparent; padding: 0; cursor: pointer; outline-offset: 4px; transition: filter 250ms; user-select: none; -webkit-user-select: none; touch-action: manipulation; } .btn-edge { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 6px; background: linear-gradient( to left, hsl(340deg 100% 16%) 0%, hsl(340deg 100% 32%) 8%, hsl(340deg 100% 32%) 92%, hsl(340deg 100% 16%) 100% ); } .btn-front { display: block; position: relative; padding: 8px 20px; border-radius: 6px; font-size: 15px; color: white; background: hsl(345deg 100% 47%); will-change: transform; transform: translateY(-3px); transition: transform 600ms cubic-bezier(.3, .7, .4, 1); } .get-started-btn-front{ background: hsl(136, 100%, 40%); } .get-started-btn-edge{ background: linear-gradient( to left, hsl(136, 100%, 16%) 0%, hsl(136, 100%, 32%) 8%, hsl(136, 100%, 32%) 92%, hsl(136, 100%, 16%) 100% ); } .btn-pushable:hover { filter: brightness(110%); -webkit-filter: brightness(110%); } .btn-pushable:hover .btn-front { transform: translateY(-6px); transition: transform 250ms cubic-bezier(.3, .7, .4, 1.5); } .btn-pushable:active .btn-front { transform: translateY(-2px); transition: transform 34ms; } .btn-pushable:hover .btn-shadow { transform: translateY(4px); transition: transform 250ms cubic-bezier(.3, .7, .4, 1.5); } .btn-pushable:active .btn-shadow { transform: translateY(1px); transition: transform 34ms; } .btn-pushable:focus:not(:focus-visible) { outline: none; } nav menuitem { position:relative; display:block; opacity:0; cursor:pointer; } nav menuitem > menu { position: absolute; pointer-events:none; } nav > menu { display:flex; } nav > menu > menuitem { pointer-events: all; opacity:1; } menu menuitem a { white-space:nowrap; display:block; } menuitem:hover > menu { pointer-events:initial; } menuitem:hover > menu > menuitem, menu:hover > menuitem{ opacity:1; } nav > menu > menuitem menuitem menu { transform:translateX(100%); top:0; right:0; } .user-details{ width: max-content; background-color: rgb(153, 4, 207); padding: 12px 22px; border-radius: 5px; color: white; transition: 0.5s; } .user-details:hover{ transform: scale(1.05); } .user-details .username{ margin-right: 5px; } nav menu a { text-align: center; background:white; color:#FFF; padding:15px 22px; box-sizing:border-box; border-radius:3px; position:relative; border: 1px solid rgba(0, 0, 0, 0.093); } nav > menu > menuitem > menu > menuitem{ transition: transform 0.6s, opacity 0.6s; transform:translateY(150%); opacity:0; } nav > menu > menuitem:hover > menu > menuitem, nav > menu > menuitem.hover > menu > menuitem{ transform:translateY(5%); opacity: 1; } menuitem > menu > menuitem > menu > menuitem{ transition: transform 0.6s, opacity 0.6s; transform:translateX(195px) translateY(0%); opacity: 0; } menuitem > menu > menuitem:hover > menu > menuitem, menuitem > menu > menuitem.hover > menu > menuitem{ transform:translateX(0) translateY(0%); opacity: 1; } .btn-responsive-container{ display: none; } .burger-container{ cursor: pointer; /*position: absolute; top: 5%; right: 5%;*/ width: 30px; height: 20px; display: none; } .bars{ width: 30px; height: 4px; background: #000; } .bars::before, .bars::after{ content: ''; position: absolute; width: 30px; height: 4px; background: #000; } .bars::before{ margin-top: 9px; } .bars::after{ margin-top: 18px; } @media screen and (max-width:1100px){ nav ul{ width: initial; } } @media screen and (max-width:800px){ nav{ justify-content: space-between; } nav ul li a:hover{ color: white; } .user-details{ display: none; } .user-responsive{ margin-top: 10px; display: initial; color: rgb(145, 222, 30); } .user-responsive i{ margin-right: 5px; font-size: 20px; } nav menu menuitem{ display: none; } .burger-container{ display: flex; } nav ul{ position: absolute; top: 0; width: 100%; background: #000; display: flex; justify-content: center; align-items: center; right: -200vw; flex-direction: column; z-index: 100; } nav ul li a { color: white; margin: 20px 0; } .close { overflow: hidden; position: absolute; top: 6%; right: 5%; border: none; padding: 0; width: 2em; height: 2em; border-radius: 50%; background: transparent; color: #1da1f2; font: inherit; text-indent: 100%; cursor: pointer; &:focus { outline: solid 0 transparent; box-shadow: 0 0 0 2px #8ed0f9 } &:hover { background: rgba(29, 161, 142, .1) } &:before, &:after { position: absolute; top: 15%; left: calc(50% - .0625em); width: .125em; height: 70%; border-radius: .125em; transform: rotate(45deg); background: currentcolor; content: '' } &:after { transform: rotate(-45deg); } } .btn-responsive-container{ display: flex; } .btn-responsive-container a{ margin: 10px; } nav ul li a:after{ background-color: white; } } @media only screen and (max-width:480px) { nav{ padding: 10px 25px; } .logo img { max-width: 35px; } .logo-text{ font-size: 15px; margin-left: 5px; } .burger-container{ cursor: pointer; /*position: absolute; top: 5%; right: 5%;*/ width: 30px; height: 20px; } .bars{ width: 25px; height: 3.5px; background: #000; } .bars::before, .bars::after{ content: ''; position: absolute; width: 25px; height: 3.5px; background: #000; } .bars::before{ margin-top: 7px; } .bars::after{ margin-top: 14px; } nav .button-57{ font-size: 12px; } }