.background2 { color: #ddd; width: 100%; padding: 2% 0; background-color: rgba(0,0,0, 0.4); box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); } .page2 { width: 100%; min-height: 100vh; color: white; display: flex; align-items: center; background-image: url(image/restaurant.png); } .page2 > div { text-align: center; bottom: 0; margin-top: 50vh; } .menu-page { width: 100%; color: white; display: flex; background-image: url(image/restaurant.png); } body, html { height: 100%; margin: 0; } /* Style tab links */ .tablink { background-color: white; color: black; font-weight: bold; float: left; border: none; outline: none; cursor: pointer; padding: 14px 16px; font-size: 17px; width: 16.66%; } .tablink:hover { background-color: #777; } /* Style the tab content (and add height:100% for full page content) */ .menu-page { height: 100vh; -webkit-animation: fadeEffect 1s !important; animation: fadeEffect 1s; } .tabcontent { display: none; margin-top: 100px; -webkit-animation: fadeEffect 1s !important; animation: fadeEffect 1s; overflow: auto; } .nav-button { position: relative; } @media screen and (max-width: 800px) { .nav-button button { float: none; display: block; text-align: center; width: 100%; margin: 0 auto; background-color: #f6f1e9; padding: 10px; } } @-webkit-keyframes fadeEffect { from {opacity: 0;} to {opacity: 1;} } @keyframes fadeEffect { from {opacity: 0;} to {opacity: 1;} } section { padding: 25px; overflow: auto; position: relative; } .design-text { text-align: left; padding: 0 2rem ; } .menu-box { display: flex; overflow: auto; position: relative; justify-content: center; padding-bottom: 10px; } .menu-picture { height: 200px; width: 200px; object-fit: cover; } @media screen and (max-width: 570px) { .menu-box { display: block; gap: 10px; } .img-menu { margin: 0 auto; text-align: center; justify-content: center; align-items: center; } .info-menu { justify-content: center; align-items: center; margin: 0 auto; } .menu-picture { margin: 0 auto; } } .menu-display { height: 100%; position: relative; border-bottom: 1px thin #C8A97E; } .food-name { text-align: left; width: 65%; font-size: 30px; font-family: Lobster; } .classify { font-weight: bold; } .price-food { color: #C8A97E !important; font-weight: bold; text-align: right; width: 35%; } .info-menu { max-width: 600px; width: 100%; }