/* Hide desktop divs */ #nav_desktop { visibility: hidden; display: none; } #nav_desktop_spacer { visibility: hidden; display: none; } #navlogo { visibility: hidden; display: none; } #nav_bottom_div { visibility: hidden; display: none; } .mobilecenteredtext { text-align: center; width: 100%; position: relative; } .flexparent_row { width: 100vw; } /* page layout */ .halfpage { width: 96%; margin:0 2%; } .fourhundred { width: 96%; margin:0 2%; } .eighthundred { width: 96%; margin:0 2%;; } /* Mobile navigation */ #nav_mobile { padding-left: 0; } #mobilenavbar_spacer { height: 85px; width: 100%; position: relative; z-index: 0; } #mobilenavbar { height: 85px; width: 100%; position: fixed; background-color: #111111; z-index: 1; } #mobilenavlogo { height: 65px; left: 50%; top: 10px; width: auto; position: absolute; margin: 0 auto; } #mobilenavbtn{ position: fixed; cursor:pointer; color: white; top: 20px; right: 20px; display: inline; z-index: 1; } .overlay { height: 100%; width: 100%; display: none; position: fixed; z-index: 2; top: 0; left: 0; background-color: rgb(0, 0, 0); background-color: rgba(0,0,0, 0.8); font-family: 'Montserrat', 'sans-serif'; } .overlay-content { position: relative; width: 100%; text-align: center; } .overlay a { padding: 8px; text-decoration: none; font-size: 5vh; color: white; display: block; transition: 0.3s; } .overlay a:hover, .overlay a:focus { color: #0074D9; } .overlay .closebtn { position: fixed; cursor:pointer; top: 20px; right: 20px; display: block; padding: 0; } /* Mobile Contact Form */ #contact_form { padding: 20px; color: white; position: relative; width: 100%; height: 100%; } input[type=submit].contact { width: 80%; } #contactinput { order: 1; } #contacttextbox { order: 2; } #contactinfo { order: 4; } #contactbtn { order: 3; } /* portfolio & projects */ .portentity { width: 90vw; max-width: 320px; }