.menu-container { font-family: 'Mona-Sans'; padding: 25px 10vmin; width: calc(100% - 20vmin); display: flex; align-items: center; justify-content: space-between; position: fixed; z-index: 8; top: -140px; transition: top 0.3s; } .menu-container-white { color:#222; background-color: #F8FAFC; } .menu-container-black { color: #F8FAFC; background-color: #222; } .menu-items { display: flex; } .menu-items >a, .menu-items >div>button { color: #F8FAFC; padding-left: 50px; font-weight: 700; font-size: 15px; text-decoration: none; text-transform: uppercase; transition: text-decoration 2s; border: none; outline: none; background-color: inherit; font-family: inherit; margin: 0; } .menu-items >a:hover, .menu-items >div>button:hover { text-decoration: underline; text-decoration-color: #222; } .menu-subitem:hover .menu-subitem-items { display: block; } .menu-subitem-items { display: none; position: absolute; left: 0; top: 135px; width: calc(100% - (20vmin + 120px)); margin: 5px 10vmin; z-index: 15; border-radius: 15px; background-color: #F8FAFC; padding: 30px 60px; } .menu-subitem-items::before { content: ''; position: absolute; top: -65px; bottom: 0; width: 100%; z-index: -1; } .menu-subitem-items a { display: flex; align-items: baseline; border-bottom: 1px solid #d4d6d8; text-decoration: none; } .menu-subitem-items a:hover { text-decoration: underline; text-decoration-color: #222; text-decoration-thickness: 2px; } .menu-subitem-items h1 { color: #222; font-weight: 700; font-size: 35px; text-transform: uppercase; } .menu-subitem-items h2 { color: #222; font-weight: 200; font-size: 35px; text-transform: uppercase; } @media only screen and (max-width: 1200px) { .menu-container { display: none; } }