.mobile { width: 100%; position: fixed; top: 0; left: 0; z-index: 9999; } .mobile-inner { width: 100%; margin-right: auto; margin-left: auto; background-color: #fafafa; position: relative; } .mobile-inner img { width: 100%; margin-bottom: 30px; } .mobile-inner p { color: #676767; line-height: 25px; font-size: 16px; padding-bottom: 30px; padding-right: 30px; padding-left: 30px; margin: 0px; } .mobile-inner-header { background-color: rgba(0, 0, 0, 0.8); width: 100%; height: 60px; position: absolute; top: 0px; left: 0px; z-index: 998; } .mobile-inner-header-icon { color: #ffffff; height: 60px; font-size: 25px; text-align: center; float: right; width: 50px; position: relative; -webkit-transition: background 0.5s; -moz-transition: background 0.5s; -o-transition: background 0.5s; transition: background 0.5s; } .mobile-inner-header-icon:hover { background-color: rgba(255, 255, 255, 0.2); cursor: pointer; } .mobile-inner-header-icon span { position: absolute; left: calc((100% - 25px) / 2); top: calc((100% - 1px) / 2); width: 25px; height: 1px; background-color: rgba(255, 255, 255, 1); } .mobile-inner-header-icon span:nth-child(1) { transform: translateY(4px) rotate(0deg); } .mobile-inner-header-icon span:nth-child(2) { transform: translateY(-4px) rotate(0deg); } .mobile-inner-logo { float: left; padding-left: 20px; padding-top: 10px; } .mobile-inner-logo img { width: auto; height: 40px; } .mobile-inner-header-icon-click span:nth-child(1) { animation-duration: 0.5s; animation-fill-mode: both; animation-name: clickfirst; } .mobile-inner-header-icon-click span:nth-child(2) { animation-duration: 0.5s; animation-fill-mode: both; animation-name: clicksecond; } @keyframes clickfirst { 0% { transform: translateY(4px) rotate(0deg); } 100% { transform: translateY(0) rotate(45deg); } } @keyframes clicksecond { 0% { transform: translateY(-4px) rotate(0deg); } 100% { transform: translateY(0) rotate(-45deg); } } .mobile-inner-header-icon-out span:nth-child(1) { animation-duration: 0.5s; animation-fill-mode: both; animation-name: outfirst; } .mobile-inner-header-icon-out span:nth-child(2) { animation-duration: 0.5s; animation-fill-mode: both; animation-name: outsecond; } @keyframes outfirst { 0% { transform: translateY(0) rotate(-45deg); } 100% { transform: translateY(-4px) rotate(0deg); } } @keyframes outsecond { 0% { transform: translateY(0) rotate(45deg); } 100% { transform: translateY(4px) rotate(0deg); } } .mobile-inner-nav { background-color: rgba(0, 0, 0, 0.9); width: 100%; position: absolute; top: 60px; left: 0px; padding-top: 30px; padding-bottom: 80px; display: none; z-index: 999; } .mobile-inner-nav a { display: inline-block; line-height: 50px; text-decoration: none; width: 80%; margin-left: 10%; color: #FFFFFF; border-bottom: solid 1px rgba(255, 255, 255, 0.3); -webkit-transition: all 0.5s; -moz-transition: all 0.5s; -o-transition: all 0.5s; transition: all 0.5s; font-weight: 300; } .mobile-inner-nav a:hover { color: rgba(255, 255, 255, 0.4); border-bottom: solid 1px rgba(255, 255, 255, 0.2); } @media(max-width:350px) { .mobile-inner-logo img { width: auto; height: 28px; } .mobile-inner-header { height: 45px; } .mobile-inner-header-icon { height: 43px; } }