.menu { box-shadow: 2px 2px 10px rgba(0,0,0,0.2); background: #25262C; color: white; padding: 1em 2em; } .menu > div { display: flex; justify-content: space-between; } .menu .items { display: flex; } .menu a { display: flex; align-items: center; padding: 0.3em 1.3em; border-radius: 5px; transition-duration: 0.2s; } .menu .items a:hover { transition-duration: 0.2s; background-color: rgba(79,79,255,1); } .menu .title > img { height: 3em; animation-name: idle-img; animation-duration: 4s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; } .menu .title { margin: -20px 0; gap: 5px; font-size: 0.8em; } @keyframes idle-img { 0% { margin-top: -10px; } 50% { margin-top: 10px; } 100% { margin-top: -10px; } } .colorfulbar { box-shadow: -2px -2px 10px rgba(0,0,0,0.2); background: linear-gradient(to left, rgba(255,85,200,1) 0%, rgba(79,79,255,1) 100%, rgba(0,212,255,1) 100%); background-size: 200% 100%; height: 8px; animation-name: colorbar-anim; animation-duration: 5s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; } @keyframes colorbar-anim { 0% { background-position: 0%; } 50% { background-position: 100%; } 100% { background-position: 0; } } /* mobile */ @media(max-aspect-ratio: 4/3) { .menu > div { flex-direction: column; justify-content: center; align-items: center; } .menu { padding: 0.5em; } }