Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <html lang="en">
<head>
    <meta charset="UTF-8">
    <link href="https://fonts.googleapis.com/css2?family=Arima&family=Cookie&family=Dancing+Script&family=EB+Garamond:ital,wght@1,500&family=Open+Sans:wght@300&display=swap" rel="stylesheet"><link href="https://fonts.googleapis.com/css2?family=Arima&family=Cookie&family=Dancing+Script&family=EB+Garamond:ital,wght@1,500&family=Open+Sans:wght@300&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
    <link rel="stylesheet" href="index.css">
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Restaurant Website</title>
</head>
<body>
   <header>
    <h3>Mira's Cuisine</h3>
    <nav>
        <ul>
            <li><a href="#menu">Menu</a></li>
            <li><a href="#about">About Us</a></li>
            <li><a href="#orders">Online Orders</a></li>
            <li><a href="#contact">Contact</a></li>
        </ul>
    </nav>
    <div class="header-icons">
       <a href="www.google.com"> 
           <i class="fas fa-search"></i>
       </a>
       <a href="#cart">
            <i class="fas fa-shopping-cart"></i>
       </a>
    </div>
          <ul class="menu">
            <li><a class="menuItem" href="#menu">Menu</a></li>
            <li><a class="menuItem" href="#about">About Us</a></li>
            <li><a class="menuItem" href="#orders">Online Orders</a></li>
            <li><a class="menuItem" href="#contact">Contact</a></li>
            <li><a href="www.google.com"> 
           <i class="fas fa-search"></i>
       </a></li>
       <li><a href="#cart">
            <i class="fas fa-shopping-cart"></i>
       </a></li>
        </ul>
     <button class="hamburger">
       <i class="menuIcon material-icons">menu</i>
       <i class="closeIcon material-icons">close</i>
       </button>
     </header>
   <main>
    <section id="menu">
        <h2>
            Count the Memories, not the <span>Calories</span>
        </h2>
        <p>Healthy, Balanced and Natural Food</p>
        <button>See Full Menu</button>
        </section>
        <section id="home">
        <p class="welcome">
            Welcome to
        </p>
        <h3>Mira's Cuisine</h3>
        <div id="texts">
        <div class="text-one">
            <p>
            Lorem ipsum, dolor sit amet consectetur adipisicing elit. Dolorem voluptatum rem neque eveniet cumque nobis nostrum ullam explicabo totam dicta quisquam, fugit itaque iste aut magnam.
                </p>
        </div>
        <div class="text-two">
            <p>
                Lorem ipsum dolor sit amet consectetur adipisicing elit. Eligendi error dignissimos eos dolor minus perspiciatis mollitia ipsa architecto eveniet excepturi atque officiis itaque labore.
            </p>
        </div>
        </div>
        <button>Find Out More</button>
    </section>
    <section id="food">
        <h3>Our Dishes</h3>
        <div id="dishes">
        <div class="dish-one">
            <img src="https://media.istockphoto.com/photos/salmon-seared-spaghetti-pasta-on-white-plate-high-resolution-picture-id1351855291?k=20&m=1351855291&s=612x612&w=0&h=ZGP1eHJeqvpjkoDU4mKvt03pzkpZQjPrEJ47Lpde18U="/>
            <div class="price">
                <p class="dish">
                    DISH 1
                </p>
                <p class="cost">
                    $29.99
                </p>
            </div>
            <p class="text">
                Lorem ipsum dolor sit amet consectetur adipisicing elit. Mollitia atque excepturi, qui cumque error sequi!
            </p>
            <div class="icons">
                <div class="clock">
                    <i class="fa fa-clock"></i><span>30 mins</span>
                </div>
                <div class="scale">
                 <i class="fa fa-balance-scale"></i><span>250g</span>
               </div>
               <div class="ban">
                    <i class="fa fa-ban"></i><span>Gluten Free</span>
                </div>
            </div>
            <button>Order Now</button>
        </div>
        <div class="dish-two">
            <img src="https://media.istockphoto.com/photos/sweet-and-sour-pork-picture-id1292147849?k=20&m=1292147849&s=612x612&w=0&h=RXChXbvuCfzuagFq1204OuJuNLzwSiJLXJxd0d6NiCg="/>
            <div class="price">
                <p class="dish">
                    DISH 2
                </p>
                <p class="cost">
                    $30.00
                </p>
            </div>
            <p class="text">
                Lorem ipsum dolor sit amet consectetur adipisicing elit. Nulla voluptas recusandae, iusto fuga est delectus.
            </p>
            <div class="icons">
                <div class="clock">
                    <i class="fa fa-clock"></i><span>30 mins</span>
                </div>
                <div class="scale">
                 <i class="fa fa-balance-scale"></i><span>250g</span>
               </div>
               <div class="ban">
                    <i class="fa fa-ban"></i><span>Gluten Free</span>
                </div>
            </div>
            <button>Order Now</button>
        </div>
        <div class="dish-three">
            <img src="https://media.istockphoto.com/photos/gobi-aloo-with-cauliflower-and-vegetables-horizontal-top-view-picture-id621934038?k=20&m=621934038&s=612x612&w=0&h=2CQ60nNvRVCdlW-aZYBeb-aIIDte1ec1rIouIk3S4Ug="/>
            <div class="price">
                <p class="dish">
                    DISH 3
                </p>
                <p class="cost">
                    $25.87
                </p>
            </div>
            <p class="text">
                Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque unde quasi culpa quae in vero?
            </p>
            <div class="icons">
                <div class="clock">
                    <i class="fa fa-clock"></i><span>30 mins</span>
                </div>
                <div class="scale">
                 <i class="fa fa-balance-scale"></i><span>250g</span>
               </div>
               <div class="ban">
                    <i class="fa fa-ban"></i><span>Gluten Free</span>
                </div>
            </div>
            <button>Order Now</button>
        </div>
        <div class="dish-four">
            <img src="https://media.istockphoto.com/photos/korean-food-stir-fried-kimchi-with-pork-and-rice-picture-id1264957398?k=20&m=1264957398&s=612x612&w=0&h=pbfCSynTTf_zrlpryE4lRYRPH_dX-8C1v830vPkbEcA="/>
            <div class="price">
                <p class="dish">
                    DISH 4
                </p>
                <p class="cost">
                    $27.87
                </p>
            </div>
            <p class="text">
                Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque unde quasi culpa quae in vero?
            </p>
            <div class="icons">
                <div class="clock">
                    <i class="fa fa-clock"></i><span>30 mins</span>
                </div>
                <div class="scale">
                 <i class="fa fa-balance-scale"></i><span>250g</span>
               </div>
               <div class="ban">
                    <i class="fa fa-ban"></i><span>Gluten Free</span>
                </div>
            </div>
            <button>Order Now</button>
        </div>
        <div class="dish-five">
            <img src="https://media.istockphoto.com/photos/vegan-red-lentils-curry-with-basmati-rice-all-plant-based-recipe-picture-id1363634479?k=20&m=1363634479&s=612x612&w=0&h=LMyQerlT-qulFLm7dHjJPfqN_yxgDwUeHoG1t727e7k="/>
            <div class="price">
                <p class="dish">
                    DISH 5
                </p>
                <p class="cost">
                    $27.00
                </p>
            </div>
            <p class="text">
                Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque unde quasi culpa quae in vero?
            </p>
            <div class="icons">
                <div class="clock">
                    <i class="fa fa-clock"></i><span>30 mins</span>
                </div>
                <div class="scale">
                 <i class="fa fa-balance-scale"></i><span>250g</span>
               </div>
               <div class="ban">
                    <i class="fa fa-ban"></i><span>Gluten Free</span>
                </div>
            </div>
            <button>Order Now</button>
        </div>
        <div class="dish-six">
            <img src="https://media.istockphoto.com/photos/duck-leg-confit-picture-id1150368715?k=20&m=1150368715&s=612x612&w=0&h=AV18NeU-yxD9U4z6mR0IN-lq2SQtmmIEoN048qNfse0="/>
            <div class="price">
                <p class="dish">
                    DISH 6
                </p>
                <p class="cost">
                    $30.99
                </p>
            </div>
            <p class="text">
                Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque unde quasi culpa quae in vero?
            </p>
            <div class="icons">
                <div class="clock">
                    <i class="fa fa-clock"></i><span>30 mins</span>
                </div>
                <div class="scale">
                 <i class="fa fa-balance-scale"></i><span>250g</span>
               </div>
               <div class="ban">
                    <i class="fa fa-ban"></i><span>Gluten Free</span>
                </div>
            </div>
            <button>Order Now</button>
        </div>
        </div>
    </section>
    <section id="orders">
        <h3>How To Order</h3>
        <div id="steps">
            <div class="step-one">
                <i class="fa fa-utensils"></i>
                <h4>You Order from The menu</h4>
                <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Omnis aut placeat adipisci minima pariatur soluta, recusandae sapiente itaque velit porro.</p>
            </div>
            <div class="step-two">
                <i class="fas fa-mug-hot"></i>
                <h4>We prepare Your Meal</h4>
                <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Omnis aut placeat adipisci minima pariatur soluta, recusandae sapiente itaque velit porro.</p>
            </div>
            <div class="step-three">
                <i class="fa fa-truck"></i>
                <h4>We Deliver</h4>
                <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Omnis aut placeat adipisci minima pariatur soluta, recusandae sapiente itaque velit porro.</p>
            </div>
        </div>
    </section>
<!--     <section id="offer">
        <h3>Our Special Offer</h3>
        <div id="combo">
        <div class="combo-one">
            <h4>Combo Meal 1</h4>
            <ul>
                <li>1 Chicken Burger</li>
                <li>1 Regular French Fries</li>
                <li>1 Hard Drink</li>
            </ul>
            <button>Order Now</button>
        </div>
        <div class="combo-two">
            <div class="slate">
            <p>Total Costs</p>
            <h5>$29.99</h5>
            <hr>
            <p>Preparation</p>
            <h5>15 <span>mins</span></h5>
            </div>
            <div class="img-div">
                <img src="https://media.istockphoto.com/photos/hamburger-with-french-fries-and-a-cola-drink-picture-id500736179?b=1&k=20&m=500736179&s=170667a&w=0&h=SC8GdEkXYVEq6MwhdGDURI-bhM76PSVkjbGw-Lyzkgc="/>
            </div>
        </div>
        </div>
    </section> -->
    <section id="contact">
        <p>Please Contact Us On Our Socials</p>
        <div class="socials">
            <i class="fab fa-facebook-f"></i>
            <i class="fab fa-twitter"></i>
            <i class="fab fa-instagram"></i>
            <i class="fab fa-youtube"></i>
        </div>
    </section>
   </main>
   <script src="index.js"></script>
</body>
</html>
              
            
!

CSS

              
                * {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
body {
    width: 100%;
    background-color: #000;
}
header {
    background-color:hsl(230, 17%, 14%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    height: 50px;
}
header > h3 {
    width: 20%;
    color: #fff;
    font-family: 'Cookie', cursive;
    font-style: italic;
    font-size: 2em;
}
nav {
    width: 40%;
}
nav > ul {
    display: flex;
    justify-content: space-between;
    position: relative;
    top: 20%;
}
nav > ul > li > a, div > a {
    text-decoration: none;
    color: #fff;
    font-family: 'Arima', cursive;
    font-size: 0.9em;
}
li {
    list-style: none;
}
header > div {
    width: 5%;
    position: relative;
    top: 20%;
    display: flex;
    justify-content: space-around;
}
#menu {
    width: 100%;
    background-image: url(https://images.unsplash.com/photo-1611280422374-fa3c1110c16e?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MTh8fGZvb2QlMjBiYWNrZ3JvdW5kfGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=500&q=60);
    background-size: cover;
    padding: 100px 0px 10px;
    text-align: center;
    height: 400px;
}
#menu > p, #menu > h2, h2 > span {
    animation-name: scale-up-center;
    animation-duration: 1.7s;
}
@keyframes scale-up-center {
    0% {transform:scale(.5)}
    100% {transform:scale(1)}
}
#menu > h2 {
    font-family: 'Cookie', cursive;
    font-weight: bolder;
    font-size: 3.5em;
    color: #fff;
    padding: 50px auto 10px;
}
span {
    color: red;
    text-decoration: line-through;
    text-decoration-color: red;
}
#menu > p {
    font-family: 'Arima', cursive;
    color: rgb(245, 245, 10);
    padding-bottom: 30px;
}
#menu > button, #home > button {
    width: 150px;
    height: 35px;
    background-color:rgb(245, 245, 10);
    color: #000;
    font-weight: bolder;
    font-family: 'Arima', cursive;
    font-size: 0.9em;
  animation: slide-rotate-horizontal-top 1.2s linear both;
}
@keyframes slide-rotate-horizontal-top {
  0% {transform: translateY(-150px)rotateX(-90deg)}
  100% {transform: translateY(0)rotateX(0deg)}
}
#home {
    padding-left: 50px;
    padding-top: 10px;
    background-color:hsl(230, 17%, 14%);
    background-size: cover;
    color: #fff;
    padding-bottom: 15px;
}
.welcome {
    font-family: 'Arima', cursive;
}
#home > h3 {
    color:rgb(245, 245, 10);
    font-style: normal;
    font-size: 3em;
    font-family: 'Cookie', cursive;
}
#texts {
    display: flex;
    padding: 40px;
    justify-content: space-between;
    width: 900px;
    font-family: 'Arima', cursive;
}
.text-one, .text-two {
    width: 400px;
    line-height: 2;
}
#food {
    background-image: url(https://media.istockphoto.com/photos/culinary-background-with-traditional-ingredients-of-italian-cuisine-picture-id1278745986?k=20&m=1278745986&s=612x612&w=0&h=a0rvabf6vBWLwxYbBDSp2-nGrpp_jO96VHK9cd1GcTc=);
    background-size: contain;
    background-position: center;
    color: #fff;
}
#food > h3, #orders > h3, #offer > h3 {
    font-family: 'Cookie', cursive;
    font-size: 2.5em;
    text-align: center;
    padding-top: 20px;
    text-decoration: underline;
    text-decoration-color: rgb(245, 245, 10);
}
#dishes {
    display: grid;
    grid-template-columns: 320px 320px 320px;
    grid-template-rows: 500px 500px;
    justify-content: center;
}
.dish-one, .dish-two, .dish-three, .dish-four, .dish-five, .dish-six {
    width: 300px;
    padding: 20px;
}
img {
    width: 280px;
}
.price {
    display: flex;
    font-family: 'Cookie', cursive;
    font-size: 1.8em;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
}
.cost {
    color:rgb(245, 245, 10);
}
.text {
    font-family: 'Arima', cursive;
}
.icons {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
}
.clock > i, .scale > i, .ban > i {
    color:rgb(245, 245, 10);
}
.clock > span, .scale > span, .ban > span {
    color: #fff;
    text-decoration: none;
    font-family: 'Arima', cursive;
    padding: 2px;
}
.dish-one > button, .combo-one > button, .dish-two > button, .dish-three > button, .dish-four > button, .dish-five > button, .dish-six > button {
    background-color:rgb(245, 245, 10);
    margin: 20px;
    width: 150px;
    box-shadow: 10px 10px 10px #000;
    border: none;
    height: 30px;
    font-size: 0.9em;
    color: #000;
}
#orders {
    background-color:hsl(230, 17%, 14%);
    color: #f9f9f4;
    padding-top: 40px;
}
#steps {
    display: grid;
    grid-template-columns: 300px 300px 300px;
    justify-content: center;
    grid-gap: 20px;
    padding-top: 45px;
}
.step-one > i, .step-two > i, .step-three > i {
    font-size: 2.5em;
    color:rgb(245, 245, 10);
    padding-top: 20px;
    padding-bottom: 20px;
} 
.step-one > h4, .step-two > h4, .step-three > h4 {
    font-size: 1.3em;
    font-family: helvetica;
    padding-bottom: 10px;
}
.step-one > p, .step-two > p, .step-three > p {
    font-family: 'Arima', cursive;
    line-height: 1.8;
    width: 280px;
}
#offer {
    background-image: url(https://media.istockphoto.com/photos/bunch-of-baby-carrots-picture-id619230746?k=20&m=619230746&s=612x612&w=0&h=RAdB8WELpUqGuCTgErf2VdV0MMQz0mHKQZBO8VSqykk=);
    color: #fff;
}
#combo {
    display: flex;
    justify-content: space-evenly;
    padding-top: 30px;
}
.combo-one > h4 {
    font-family: helvetica;
    font-size: 1.5em;
    padding: 20px;
}
.combo-one > ul {
    font-family: 'Arima', cursive;
    padding: 10px 20px;
}
.combo-one > ul > li {
    list-style-type: circle;
    list-style-position: inside;
}
.combo-two {
    display: flex;
}
hr {
    width: 100px;
    margin: 10px auto;
}
.slate {
    width: 280px;
    border: 2px solid rgb(245, 245, 10);
    background-image: url(https://media.istockphoto.com/photos/isolated-lined-notepaper-picture-id494705382?k=20&m=494705382&s=612x612&w=0&h=yRH3T7J7SpfJa0tMAJAVCp7VhGCzq7K8786-4dd-WJY=);
    background-size: cover;
    color: #000;
    text-align: center;
    padding-left: 140px;
    padding-top: 60px;
    height: 300px;
    margin-right: 20px;
}
.slate > p {
    font-size: 0.9em;
    font-family: helvetica;
}
.slate > h5 {
    color: rgb(245, 245, 10);
    font-family: 'Cookie', cursive;
    font-size: 2.5em;
}
h5 > span {
    font-size: 0.5em;
    text-decoration: none;
    color:rgb(245, 245, 10);
}
.img-div > img {
    height: 300px;
    width: 280px;
}
#contact {
    color: #fff;
    padding: 30px;
    background-color:hsl(230, 17%, 14%);
}
#contact > p {
    font-family: 'Cookie', cursive;
    font-size: 1.5em;
    text-align: center;
    text-decoration: underline;
    text-decoration-color: rgb(245, 245, 10);
}
.socials {
    width: 50%;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    padding-top: 40px;
}
@media screen and (min-width: 967px) and (max-width: 2030px) {
  .hamburger, .menu {
    display: none;
  }
}
@media screen and (min-width: 600px) and (max-width: 966px) {
   header {
    height: 50px;
}
  .hamburger, .menu {
display: none;
  }
header > h3 {
    width: 25%;
    font-size: 1.6em;
}
nav {
    width: 50%;
}
nav > ul {
    top: 20%;
}
nav > ul > li > a, div > a {
    font-size: 0.8em;
}
header > div {
    width: 10%;
}
#menu {
    padding: 100px 0px 10px;
    height: 400px;
}
#menu > h2 {
    font-size: 2.5em;
    padding: 70px auto 10px;
}
#menu > p {
    padding-bottom: 60px;
}
#home {
    padding: 5px;
}
#home > h3 {
    font-size: 2.5em;
}
#texts {
    display: flex;
    padding: 40px;
    justify-content: space-evenly;
    width: 600px;
}
.text-one, .text-two {
    width: 260px;
    line-height: 2;
}
#food > h3, #orders > h3, #offer > h3 {
    font-size: 2.3em;
}
#dishes {
    display: grid;
    grid-template-columns: 300px 300px;
    grid-template-rows: 470px 470px 470px;
    text-align: center;
}
.dish-one, .dish-two, .dish-three, .dish-four, .dish-five, .dish-six {
    width: 280px;
    padding: 10px;
}
img {
    width: 270px;
}
#steps {
    display: grid;
    grid-template-columns: 300px 300px;
    grid-template-rows: 300px 300px;
    text-align: center;
    grid-gap: 10px;
    padding-top: 45px;
}
#combo {
    display: flex;
    flex-direction: column;
    padding-top: 30px;
    padding-left: 20px; 
}
.combo-two {
    display: flex;
    padding-left: 20px;
}
.img-div > img {
    height: 200px;
    width: 200px;
}
}
@media screen and (min-width: 315px) and (max-width: 599px) {
     header {
    height: 60px;
}
  .hamburger {
    position: fixed;
    z-index: 100;
    top: 1rem;
    right: 1rem;
    padding: 4px;
    border: 1px solid black;
    background: white;
    cursor: pointer;
  }
  .closeIcon {
    display: none;
  }
  .menu {
    width: 100%;
    position: fixed;
    transform: translateY(-100%);
    transition: transform 0.2s;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: black;
    color: white;
    list-style: none;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .menu > li > a {
    text-decoration: none;
    color: #fff;
    margin: 0px auto 16px;
    padding: 5px 16px;
    width: fit-content;
    width: 100%;
    max-width: 200px;
    background-color: gray;
    font-family: 'Arima', cursive;
    text-align: center;
    font-size: 1.0em;
    display: block;
    
  }
  .showMenu {
    transform: translateY(0);
  }
  header > nav, header > .header-icons {
    display: none;
  }
  header > h3 {
    font-size: 1.5em;
    width: 30%;
    padding-top: 5px;
  }
  #menu {
    padding: 100px 0px 10px;
    height: 400px;
}
#menu > h2 {
    font-size: 2.3em;
    padding: 70px auto 10px;
}
#menu > p {
    padding-bottom: 60px;
}
#home {
    padding: 5px;
}
#home > h3 {
    font-size: 2.5em;
}
#texts {
    display: flex;
    padding: 40px;
    justify-content: space-evenly;
    width: 600px;
}
.text-one, .text-two {
    width: 260px;
    line-height: 2;
}
#food > h3, #orders > h3, #offer > h3 {
    font-size: 2.3em;
}
#dishes {
    display: flex;
    flex-direction: column;
    justify-content: center;
  align-items: center;
  text-align: center;
}
.dish-one, .dish-two, .dish-three, .dish-four, .dish-five, .dish-six {
    padding: unset;
    margin-bottom: 30px;
}
#steps {
    display: flex;
    flex-direction: column;
    padding-top: 45px;
    justify-content: center;
  text-align: center;
  align-items: center;
}
#combo {
    display: flex;
    flex-direction: column;
    padding-top: 30px;
    justify-content: center;
    text-align: center;
    padding-left: unset; 
}
.combo-two {
    display: flex;
    flex-direction: column;
    padding-left: unset;
    justify-content: center;
    text-align: center;
}
  .img-div {
    margin: 10px auto;
  }
.img-div > img {
    height: 300px;
    width: 300px;
}
  #texts {
    display: flex;
    flex-direction: column;
  }
  .slate > p {
    font-size: 0.7em;
}
  .slate > h5 {
    font-size: 0.7em;
  }
  .slate {
    width: 200px;
  }
}
              
            
!

JS

              
                const menu = document.querySelector(".menu");
const menuItems = document.querySelectorAll(".menuItem");
const hamburger = document.querySelector(".hamburger");
const closeIcon = document.querySelector(".closeIcon");
const menuIcon = document.querySelector(".menuIcon");

function toggleMenu() {
  if (menu.classList.contains("showMenu")) {
    menu.classList.remove("showMenu");
    closeIcon.style.display = "none";
    menuIcon.style.display = "block";
  } else {
    menu.classList.add("showMenu");
    closeIcon.style.display = "block";
    menuIcon.style.display = "none";
  }
}

hamburger.addEventListener("click", toggleMenu);

menuItems.forEach(
function(menuItem) {
  menuItem.addEventListener("click", toggleMenu);
})
              
            
!
999px

Console