.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity 0.50s, visibility 0.50s, height 0.50s; -webkit-transition: opacity 0.50s, visibility 0.50s, height 0.50s; overflow: hidden; background: black; z-index: -1; } #hamburger-input { display: none; } #hamburger-menu { cursor: pointer; position: fixed; border-radius: 4px; border: 1px solid #777777; border-bottom-color: #000000; border-right-color: #000000; top: 10px; left: 10px; width: 46px; height: 46px; display: none; z-index: 999; padding: 5px 0; margin: 0px; font-family: 'Cabin', Sans-serif; background: linear-gradient(to top, #424343 0%, #505050 50%, #5E5D5D 100%); } #hamburger-menu > span { display: block; width: 30px; height: 4px; margin: 6px auto; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)); border-radius: 2px; box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.2); } #hamburger-menu:hover { background: linear-gradient(to top, #505050 0%, #5E5D5D 50%, #6A6969 100%); } #hamburger-menu:hover > span { background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)); box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3); } #hamburger-menu #mobile-menu { visibility: hidden; position: fixed; margin: 0px; top: 0; left: -100%; width: 100%; border: 1px solid #777777; border-bottom-color: #000000; border-right-color: #000000; overflow: auto; color: #6DCBFE; text-align: center; background: #4F4F4F; transition: 0.50s; -webkit-transition: 0.50s; padding: 0px 10px; box-sizing: border-box; } #mobile-menu-content { border: 1px solid #777777; border-top-color: #000000; border-left-color: #000000; margin-top: 4px; margin-left: -6px; margin-right: -5px; margin-bottom: 3px; color: #6DCBFE; text-align: center; font-size: 18px; font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif; font-weight: bold; text-shadow: 0px 0px 2px rgba(0,0,0,1); /*background: #000 url(../images/metal-plate.png);*/ } .mobile-menu-heading { height: 35px; font-size: 28px; background: rgb(10, 11, 11); border: 1px solid #777777; border-bottom-color: #000000; border-right-color: #000000; width: 100%; background-image: linear-gradient(180deg, #505050, #464646, #404040, #363636); } #hamburger-menu ul { margin-left: 0px; margin-top: 0px; margin-bottom: 0px; padding: 0px; width: 100%; } #hamburger-menu li { width: 100%; list-style-type: none; line-height: 2rem; display: flex; font-weight: normal; font-size: 10px; text-shadow: none; text-align: left; border: 1px solid #333333; border-bottom-color: #000000; border-right-color: #000000; } #hamburger-menu li:nth-child(even) { background-color: #191E21; } #hamburger-menu li:nth-child(odd) { background-color: #28292B; } #hamburger-menu a { padding-left: 5px; width: 100%; color: #6DCBFE; font-weight: normal; font-size: 18px; font-family: 'Arial'; text-decoration: none; display: inline-block; margin-left: 0.3em; } #hamburger-menu a:focus, #hamburger-menu a:active { color: #7CACF8; } #hamburger-menu a:hover { color: #FFFFFF; background: rgb(10, 11, 11); background-image: linear-gradient(180deg, #505050, #464646, #404040, #363636); } #hamburger-input:checked + #hamburger-menu { background: linear-gradient(to bottom, #424343 0%, #505050 50%, #5E5D5D 100%); border: 1px solid #777777; border-top: 1px solid #000000; border-left: 1px solid #000000; } #hamburger-input:checked + #hamburger-menu #mobile-menu { visibility: visible; left: 0; top: 71px; } #hamburger-input:checked + #hamburger-menu { z-index: 2; } #hamburger-input:checked ~ .overlay { visibility: visible; opacity: 0.5; z-index: 1; } .menubar { background: linear-gradient( to bottom, #505050 0%, #464646 35%, #404040 55%, #363636 100% ); padding: 0; position: fixed; top: 0px; left: 0px; max-height: 22px; width: 100%; z-index: 900; } .menubar ul { list-style-type: none; margin: 0; padding: 0; } .menubar > ul > li { display: inline-block; position: relative; } .menubar label, .menubar a { display: block; padding: 2px 10px; text-decoration: none; cursor: default; color: #6DCBFE; position: relative; user-select: none; border: 1px solid transparent; } .menubar > ul > li > label:hover, .menubar > ul > li > a:hover { background: linear-gradient( to bottom, #505050 0%, #464646 35%, #404040 55%, #363636 100% ); border-left: 1px solid #777777; border-right: 1px solid #000000; border-top: 1px solid #505050; border-bottom: 1px solid #222222; color: #FFFFFF; } .menubar input[type="radio"] { display: none; } .menubar ul ul { display: none; position: absolute; top: 100%; left: 0; min-width: 150px; background: #4F4F4F; border: 1px solid #777777; border-bottom-color: #000000; border-right-color: #000000; padding-top: 4px; padding-left: 4px; padding-bottom: 4px; padding-right: 4px; } .menubar ul ul li { background: #232323; border-left: 1px solid #000000; border-right: 1px solid #777777; position: relative; } .menubar ul ul li:first-child { border-top: 1px solid #000000; } .menubar ul ul li:last-child { border-bottom: 1px solid #777777; } .menubar ul ul li > label:hover, .menubar ul ul li > a:hover { background: linear-gradient( to bottom, #505050 0%, #464646 35%, #404040 55%, #363636 100% ); border: 1px solid #777777; border-right-color: #000000; border-bottom-color: #000000; color: #FFFFFF; } .menubar ul ul ul { left: 100%; top: 0; } .menubar li:focus-within > ul { display: block; outline: none; } .menubar > ul > li:focus-within > label, .menubar > ul > li:focus-within > a { background-color: #28292B; background: radial-gradient( 115% 115% at 68% 70%, #30303088 0%, #20202044 50%, #101010 100% ); border: 1px solid #777777; border-top: 1px solid #000000; border-left: 1px solid #000000; color: #FFFFFF; } .menubar .has-submenu > label::after, .menubar .has-submenu > a::after { content: " ▶"; font-size: 0.6em; position: absolute; right: 5px; top: 50%; transform: translateY(-50%); transition: transform 0.3s ease; } .menubar .has-submenu:focus-within > label, .menubar .has-submenu:focus-within > a { background: linear-gradient( to bottom, #505050 0%, #464646 35%, #404040 55%, #363636 100% ); border: 1px solid #777777; border-right-color: #000000; border-bottom-color: #000000; } .menubar .has-submenu:focus-within > label::after, .menubar .has-submenu:focus-within > a::after { content: " ▼"; color: #FF0000; transform: translateY(-50%) rotate(0deg); } .menubar .has-submenu:focus-within > label, .menubar .has-submenu:focus-within > a { color: #7CACF8; } /* For phones */ @media only screen and (max-width: 768px) { .menubar { visibility: hidden; } #hamburger-menu { display: block; } #mobile-menu { height: calc(100% - 70px); } } /* For desktop: */ @media only screen and (min-width: 768px) { .menubar { visibility: visible; } .overlay { visibility: hidden !important; } }