@import url('https://fonts.googleapis.com/css?family=Cormorant+Infant:400,600|Cormorant+SC|Cormorant+Upright:300'); @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css'); .container { width: 100%; height: 100px; position: relative; box-sizing: content-box; background: white; } .container::after { display: block; content: ' '; position: absolute; height: 15px; top: 100%; left: 0; right: 0; background: #9C27B0; box-shadow: inset 0 5px 2.5px -2.5px rgba(0,0,0,0.2); z-index: 1; } .container.adminShadow::after { box-shadow: 0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12); } .container + div { margin-top: 15px; } .logo { height: 100px; position: relative; overflow-y: hidden; user-select: none; pointer-events: none; } .logo img { position: absolute; top: -70px; height: 180%; padding: 20px; opacity: .47; } h1.title { display: block; width: 100%; text-align: center; position: absolute; top: -20px; font-size: 46px; } h1.title a { font-family: 'Cormorant Infant',serif; font-weight: 600; text-transform: uppercase; text-decoration: none !important; text-align: center; color: inherit; height: 1.02em; display: inline-block; width: auto; } h1.title span { font-family: 'Cormorant Upright',serif; font-weight: 300; text-transform: lowercase; font-style: italic; margin-left: -0.2em; margin-right: .2em; position: relative; top: -0.2em; left: .05em; font-size: 73.91304348%; } h1.title a:hover { border-bottom: solid 1px black; } .primaryNav { position: absolute; top: 60px; width: 100%; text-align: center; color: black; opacity: .87; padding: 0; } .primaryNav li { font-family: 'Cormorant SC',serif; text-transform: uppercase; font-weight: 400; font-size: 14px; display: inline-block; padding: 0; } .primaryNav li a { text-decoration: none; color: black; } .primaryNav li:not(:first-child){ padding-left: 40px; } .accountNav { position: absolute; top: -5px; right: 20px; } .accountNav li { font-family: 'Cormorant Infant',serif; font-weight: 400; display: inline-block; padding: 0; color: black; opacity: .87; font-weight: 500; } .accountNav li a { text-decoration: none; color: black; } .accountNav li:not(:first-child){ padding-left: 40px; } .container ul li a:hover { border-bottom: solid 1px black; } @media (max-width: 900px) { .logo { display: none; } h1.title { margin-top: 0; text-align: left; position: initial; padding-top: 10px; margin-bottom: 0; margin-left: 20px; width: auto; } ul.primaryNav { position: initial; float: none; width: 383px; margin-left: 20px; margin-top: 0; } } @media (max-width: 650px) { .container { height: 75px; } h1.title { font-size: 20px; position: relative; top: 0; left: 0; right: 0; bottom: 0; height: auto; } ul.primaryNav { width: auto; margin-left: 0; padding-bottom: 10px; margin-top: 16px; } } @media (max-width: 500px) { .container { height: auto; } h1.title { font-size: 20px; position: relative; top: 0; left: 0; right: 0; bottom: 0; height: auto; width: 100%; text-align: center; margin: 0; } ul.accountNav { float: none; width: 100%; text-align: center; position: relative; top: -10px; right: 0; padding-left: 0; } }