header { border-bottom: 1px solid rgb(200, 200, 200); height: 15vh; display: flex; flex-direction: column; align-items: center; justify-content: center; h1 { @include titleFont(); @include titleNormalize(); } h2 { @include titleFont(); @include titleNormalize(); color: #48a6fd; margin-top: 0.5vh; cursor: pointer; } .redirect-button { position: absolute; left: 5%; width: 10vw; } } @media (max-width: 991.98px) { header { h2 { color: #fff; background-color: #48a6fd; padding: 1vh 1vw; border-radius: 5px; transition: 0.2s ease-in-out; &:active { background-color: #1f476d; transition: 0.4s ease-in-out; } } } } @media (max-width: 576px) { header { .redirect-button { width: 20vw; position: initial; } } }