.nav { display: flex; justify-content: space-between; box-sizing: border-box; height: 80px; padding: 5px; background-color: #161D2740; opacity: 1; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); position: fixed; top: 0; z-index: 1; width: 100%; } .nav .links, .buttons { display: flex; align-items: center; } .logo { display: flex; align-items: center; color: white; letter-spacing: 1.7px; margin-left: 20px; } .image { height: 50px; width: 50px; } .logo h2 { padding: 10px; } .buttons li { margin: 15px 20px 15px 0; } .links li a:hover { color: #00b2fe; cursor: pointer; backface-visibility: hidden; display: flex; align-items: center; justify-content: center; } .navbar :link { color: white; } .nav :hover { transition: all 0.3s ease-in-out; } .nav h2:hover { color: #00b2fe; } .links li :visited { color: white; } .button_1:hover { background-position: 100%; background-color: white; } .button_1:hover :link { background-position: 100%; color: var(--grey) } .button_1 { color: white; border-radius: 10px; padding: 10px; height: 25%; font-size: 16px; font-weight: bold; cursor: pointer; backface-visibility: hidden; display: flex; align-items: center; justify-content: center; } .links li { margin: 15px 20px 15px 0; font-size: 16px; cursor: pointer; backface-visibility: hidden; display: flex; align-items: center; justify-content: center; } .button_1 { background-image: -webkit-linear-gradient(30deg, #3a3a3a 50%, transparent 50%); background-size: 500px; background-repeat: no-repeat; background-position: 0%; -webkit-transition: background 300ms ease-in-out; transition: background 300ms ease-in-out; font-weight: bold; } .burgermenulink { display: none; margin-top: 10px; opacity: .4; margin-right: 5px; transition: all .3s; } .burgermenulink:hover { opacity: 1; } @media (max-width: 500px) { .links { display: none !important; } .burgermenulink { display: block !important; } } @media (max-width: 450px) { .nav .buttons { display: none !important; } }