Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's 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 it's URL and the proper URL extention.

+ 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

Save Automatically?

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">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <title>Technical Documentation</title>
  <meta name="author" content="Charlotte">
  <meta name="description" content="Technical document page">
  <meta name="keywords" content="Technical,document,page,freecodecamp">
  <link rel="stylesheet" href="reset.css" type="text/css">
  <link rel="stylesheet" href="stylesheet.css" type="text/css">
  <link rel="preconnect" href="https://fonts.gstatic.com">
  <link href="https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap"
    rel="stylesheet">


</head>

<body class="landing-page" onresize="responsiveNav();">

  <header class="main-header">
    <nav class="nav-bar-top">

      <div class="nav-bar-top__inner-page-links">
        <a class="nav-bar-top__home-page-link" href="../Technical%20Documentation%20Page/index.html">

          <img class="logo-small" src="https://i.ibb.co/JsksRNy/cube-for-logo.png" alt="cube-for-logo">

        </a>

        <div class="flex-container">
          <div> <a class="flex-container__article-button" href="#article-href-section">

              JS article

            </a>
          </div>

          <div class="nav-bar-top__icons ">
            <a href="#"><i class="fab fa-instagram"> </i></a>
            <a href="#"><i class="fab fa-twitter"> </i></a>
            <a href="#"><i class="fab fa-facebook"> </i></a>
          </div>

        </div>


      </div>





    </nav>



  </header>
  <main>


    <section class="section__banner">


      <img class="logo-big" src="https://i.ibb.co/JsksRNy/cube-for-logo.png" alt="logo in banner">

      <h1 class="title__words">Providing MDN <br><span>JavaScript</span> <br>
        documentation</h1>


    </section>
    <div id="article-href-section"> </div>


    <div class="nav-article-container">


      <nav class="nav-bar-left">
        <div>


          <a class="nav-bar-left__title" href="#JS_documentation">
            JS documentation </a>
          <button class="button-main-control button-main-control--close" autofocus><i id="navbar__cross"
              class="fas fa-times"></i></button>
          <button class="button-main-control button-main-control--open"><i class="fas fa-bars"></i></button>



        </div>

        <a class="nav-bar-left__nav-link" href="#Introduction">
          Introduction
        </a>

        <a class="nav-bar-left__nav-link  " href="#JavaScript_and_Java">
          JavaScript and Java
        </a>

        <a class="nav-bar-left__nav-link " href="#Hello_world">
          Hello world
        </a>

        <a class="nav-bar-left__nav-link" href="#Variables">
          Variables
        </a>
        <a class="nav-bar-left__nav-link " href="#Declaring_variables">
          Declaring variables
        </a> <a class="nav-bar-left__nav-link " href="#Variable_scope">
          Variable scope
        </a>
        <a class="nav-bar-left__nav-link " href="#Global_variables">
          Global variables
        </a>
        <a class="nav-bar-left__nav-link " href="#Constants">
          Constants
        </a>
        <a class="nav-bar-left__nav-link " href="#If..else_statement">
          If..else statement
        </a>
        <a class="nav-bar-left__nav-link " href="#While_statement">
          While statement
        </a>
        <a class="nav-bar-left__nav-link " href="#Function_Declarations">
          Function Declarations
        </a>
        <a class="nav-bar-left__nav-link " href="#Reference">
          Reference
        </a>



      </nav>



        <article class="article">
        <header>
          <h2>The Documentation</h2>
        </header>


        <section id="Introduction">
          <header>
            <h2>Introduction</h2>
          </header>

          <p>JavaScript is a cross-platform, object-oriented scripting language. It is a small and lightweight language.
            Inside a host environment (for example, a web browser), JavaScript can be connected to the objects of its
            environment to provide programmatic control over them.</p>

          <p>JavaScript contains a standard library of objects, such as Array, Date, and Math, and a core set of
            language elements such as operators, control structures, and statements. Core JavaScript can be extended for
            a variety of purposes by supplementing it with additional objects; for example:</p>

          <p>Client-side JavaScript extends the core language by supplying objects to control a browser and its Document
            Object Model (DOM). For example, client-side extensions allow an application to place elements on an HTML
            form and respond to user events such as mouse clicks, form input, and page navigation.
            Server-side JavaScript extends the core language by supplying objects relevant to running JavaScript on a
            server. For example, server-side extensions allow an application to communicate with a database, provide
            continuity of information from one invocation to another of the application, or perform file manipulations
            on a server.</p>

        </section>

        <section id="JavaScript_and_Java">
          <header>
            <h2> JavaScript and Java</h2>
          </header>
          <p>JavaScript and Java are similar in some ways but fundamentally different in some others. The JavaScript
            language resembles Java but does not have Java's static typing and strong type checking. JavaScript follows
            most Java expression syntax, naming conventions and basic control-flow constructs which was the reason why
            it was renamed from LiveScript to JavaScript.</p>

          <p>In contrast to Java's compile-time system of classes built by declarations, JavaScript supports a runtime
            system based on a small number of data types representing numeric, Boolean, and string values. JavaScript
            has a prototype-based object model instead of the more common class-based object model. The prototype-based
            model provides dynamic inheritance; that is, what is inherited can vary for individual objects. JavaScript
            also supports functions without any special declarative requirements. Functions can be properties of
            objects, executing as loosely typed methods.</p>

          <p> JavaScript is a very free-form language compared to Java. You do not have to declare all variables,
            classes, and methods. You do not have to be concerned with whether methods are public, private, or
            protected, and you do not have to implement interfaces. Variables, parameters, and function return types are
            not explicitly typed</p>
        </section>
        <section id="Hello_world">
          <header>
            <h2>Hello world</h2>
          </header>
          <p>To get started with writing JavaScript, open the Scratchpad and write your first "Hello world" JavaScript
            code: </p>

          <code>function greetMe(yourName) { alert("Hello " + yourName); }   greetMe("World");</code>

          <p>Select the code in the pad and hit Ctrl+R to watch it unfold in your browser!
          </p>
        </section>
        <section id="Variables">
          <header>
            <h2>Variables</h2>
          </header>
          <p>
            Lorem ipsum dolor sit amet, consectetur adipiscing elit.Etiam rhoncus nisl pharetra tempus sollicitudin.
            Vestibulum ultrices
            imperdiet condimentum. Cras efficitur, nunc ut mattis lacinia, libero nulla venenatis justo,
            vel aliquet mi ligula vel ipsum. In facilisis nulla at ligula dignissim pretium. Phasellus lacinia semper
            justo, et varius justo interdum quis. Nam maximus dui ut fringilla volutpat. Donec ut ipsum diam. Proin
            condimentum
            ac lorem sed tincidunt.Cras id tempus eros. Suspendisse vestibulum id nisl sit amet congue. Nulla sed est
            vel felis rhoncus
            laoreet. Aliquam erat volutpat.Duis viverra malesuada elit lobortis egestas. Suspendisse potenti.
          </p>
          <p>
            Lorem ipsum dolor sit amet, consectetur adipiscing elit.Etiam rhoncus nisl pharetra tempus sollicitudin.
            Vestibulum ultrices
            imperdiet condimentum. Cras efficitur, nunc ut mattis lacinia, libero nulla venenatis justo,
            vel aliquet mi ligula vel ipsum. In facilisis nulla at ligula dignissim pretium. Phasellus lacinia semper
            justo, et varius justo interdum quis. Nam maximus dui ut fringilla volutpat. Donec ut ipsum diam. Proin
            condimentum
            ac lorem sed tincidunt.Cras id tempus eros. Suspendisse vestibulum id nisl sit amet congue. Nulla sed est
            vel felis rhoncus
            laoreet. Aliquam erat volutpat.Duis viverra malesuada elit lobortis egestas. Suspendisse potenti.</p>

          <code>function greetMe(yourName) { alert("Hello " + yourName); }  greetMe("World");</code>
        </section>

        <section id="Declaring_variables">
          <header>

            <h2>Declaring variables</h2>

          </header>

          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.Etiam rhoncus nisl pharetra tempus sollicitudin.
            Vestibulum ultrices
            imperdiet condimentum. Cras efficitur, nunc ut mattis lacinia, libero nulla venenatis justo,
            vel aliquet mi ligula vel ipsum. In facilisis nulla at ligula dignissim pretium. Phasellus lacinia semper
            justo, et varius justo interdum quis. Nam maximus dui ut fringilla volutpat. Donec ut ipsum diam. Proin
            condimentum
            ac lorem sed tincidunt.Cras id tempus eros. Suspendisse vestibulum id nisl sit amet congue. Nulla sed est
            vel felis rhoncus
            laoreet. Aliquam erat volutpat.Duis viverra malesuada elit lobortis egestas. Suspendisse potenti.</p>

          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.Etiam rhoncus nisl pharetra tempus sollicitudin.
            Vestibulum ultrices
            imperdiet condimentum. Cras efficitur, nunc ut mattis lacinia, libero nulla venenatis justo,
            vel aliquet mi ligula vel ipsum. In facilisis nulla at ligula dignissim pretium. Phasellus lacinia semper
            justo, et varius justo interdum quis. Nam maximus dui ut fringilla volutpat. Donec ut ipsum diam. Proin
            condimentum
            ac lorem sed tincidunt.Cras id tempus eros. Suspendisse vestibulum id nisl sit amet congue. Nulla sed est
            vel felis rhoncus
            laoreet. Aliquam erat volutpat.Duis viverra malesuada elit lobortis egestas. Suspendisse potenti.</p>
        </section>

        <section id="Variable_scope">
          <header>
            <h2>Variable scope</h2>
          </header>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.Etiam rhoncus nisl pharetra tempus sollicitudin.
            Vestibulum ultrices
            imperdiet condimentum. Cras efficitur, nunc ut mattis lacinia, libero nulla venenatis justo,
            vel aliquet mi ligula vel ipsum. In facilisis nulla at ligula dignissim pretium. Phasellus lacinia semper
            justo, et varius justo interdum quis. Nam maximus dui ut fringilla volutpat. Donec ut ipsum diam. Proin
            condimentum
            ac lorem sed tincidunt.Cras id tempus eros. Suspendisse vestibulum id nisl sit amet congue. Nulla sed est
            vel felis rhoncus
            laoreet. Aliquam erat volutpat.Duis viverra malesuada elit lobortis egestas. Suspendisse potenti.</p>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.Etiam rhoncus nisl pharetra tempus sollicitudin.
            Vestibulum ultrices
            imperdiet condimentum. Cras efficitur, nunc ut mattis lacinia, libero nulla venenatis justo,
            vel aliquet mi ligula vel ipsum. In facilisis nulla at ligula dignissim pretium. Phasellus lacinia semper
            justo, et varius justo interdum quis. Nam maximus dui ut fringilla volutpat. Donec ut ipsum diam. Proin
            condimentum
            ac lorem sed tincidunt.Cras id tempus eros. Suspendisse vestibulum id nisl sit amet congue. Nulla sed est
            vel felis rhoncus
            laoreet. Aliquam erat volutpat.Duis viverra malesuada elit lobortis egestas. Suspendisse potenti.</p>
        </section>


        <section id="Global_variables">
          <header>
            <h2>Global variables</h2>
          </header>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.Etiam rhoncus nisl pharetra tempus sollicitudin.
            Vestibulum ultrices
            imperdiet condimentum. Cras efficitur, nunc ut mattis lacinia, libero nulla venenatis justo,
            vel aliquet mi ligula vel ipsum. In facilisis nulla at ligula dignissim pretium. Phasellus lacinia semper
            justo, et varius justo interdum quis. Nam maximus dui ut fringilla volutpat. Donec ut ipsum diam. Proin
            condimentum
            ac lorem sed tincidunt.Cras id tempus eros. Suspendisse vestibulum id nisl sit amet congue. Nulla sed est
            vel felis rhoncus
            laoreet. Aliquam erat volutpat.Duis viverra malesuada elit lobortis egestas. Suspendisse potenti.</p>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.Etiam rhoncus nisl pharetra tempus sollicitudin.
            Vestibulum ultrices
            imperdiet condimentum. Cras efficitur, nunc ut mattis lacinia, libero nulla venenatis justo,
            vel aliquet mi ligula vel ipsum. In facilisis nulla at ligula dignissim pretium. Phasellus lacinia semper
            justo, et varius justo interdum quis. Nam maximus dui ut fringilla volutpat. Donec ut ipsum diam. Proin
            condimentum
            ac lorem sed tincidunt.Cras id tempus eros. Suspendisse vestibulum id nisl sit amet congue. Nulla sed est
            vel felis rhoncus
            laoreet. Aliquam erat volutpat.Duis viverra malesuada elit lobortis egestas. Suspendisse potenti.</p>

          <code>function greetMe(yourName) { alert("Hello " + yourName); }
              greetMe("World");</code>
        </section>
        <section id="Constants">
          <header>
            <h2>Constants</h2>
          </header>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.Etiam rhoncus nisl pharetra tempus sollicitudin.
            Vestibulum ultrices
            imperdiet condimentum. Cras efficitur, nunc ut mattis lacinia, libero nulla venenatis justo,
            vel aliquet mi ligula vel ipsum. In facilisis nulla at ligula dignissim pretium. Phasellus lacinia semper
            justo, et varius justo interdum quis. Nam maximus dui ut fringilla volutpat. Donec ut ipsum diam. Proin
            condimentum
            ac lorem sed tincidunt.Cras id tempus eros. Suspendisse vestibulum id nisl sit amet congue. Nulla sed est
            vel felis rhoncus
            laoreet. Aliquam erat volutpat.Duis viverra malesuada elit lobortis egestas. Suspendisse potenti.</p>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.Etiam rhoncus nisl pharetra tempus sollicitudin.
            Vestibulum ultrices
            imperdiet condimentum. Cras efficitur, nunc ut mattis lacinia, libero nulla venenatis justo,
            vel aliquet mi ligula vel ipsum. In facilisis nulla at ligula dignissim pretium. Phasellus lacinia semper
            justo, et varius justo interdum quis. Nam maximus dui ut fringilla volutpat. Donec ut ipsum diam. Proin
            condimentum
            ac lorem sed tincidunt.Cras id tempus eros. Suspendisse vestibulum id nisl sit amet congue. Nulla sed est
            vel felis rhoncus
            laoreet. Aliquam erat volutpat.Duis viverra malesuada elit lobortis egestas. Suspendisse potenti.</p>
        </section>

        <section id="If..else_statement">
          <header>
            <h2>If..else statement</h2>
          </header>

          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.Etiam rhoncus nisl pharetra tempus sollicitudin.
            Vestibulum ultrices
            imperdiet condimentum. Cras efficitur, nunc ut mattis lacinia, libero nulla venenatis justo,
            vel aliquet mi ligula vel ipsum. In facilisis nulla at ligula dignissim pretium. Phasellus lacinia semper
            justo, et varius justo interdum quis. Nam maximus dui ut fringilla volutpat. Donec ut ipsum diam. Proin
            condimentum
            ac lorem sed tincidunt.Cras id tempus eros. Suspendisse vestibulum id nisl sit amet congue. Nulla sed est
            vel felis rhoncus
            laoreet. Aliquam erat volutpat.Duis viverra malesuada elit lobortis egestas. Suspendisse potenti.</p>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.Etiam rhoncus nisl pharetra tempus sollicitudin.
            Vestibulum ultrices
            imperdiet condimentum. Cras efficitur, nunc ut mattis lacinia, libero nulla venenatis justo,
            vel aliquet mi ligula vel ipsum. In facilisis nulla at ligula dignissim pretium. Phasellus lacinia semper
            justo, et varius justo interdum quis. Nam maximus dui ut fringilla volutpat. Donec ut ipsum diam. Proin
            condimentum
            ac lorem sed tincidunt.Cras id tempus eros. Suspendisse vestibulum id nisl sit amet congue. Nulla sed est
            vel felis rhoncus
            laoreet. Aliquam erat volutpat.Duis viverra malesuada elit lobortis egestas. Suspendisse potenti.</p>
          <code> console.log("hello-world!!");</code>

          <ol class="list-style">
            <li>Point A</li>

            <li>Point B </li>

            <li>Point C </li>

          </ol>
        </section>

        <section id="While_statement">
          <header>
            <h2>While statement</h2>
          </header>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.Etiam rhoncus nisl pharetra tempus sollicitudin.
            Vestibulum ultrices
            imperdiet condimentum. Cras efficitur, nunc ut mattis lacinia, libero nulla venenatis justo,
            vel aliquet mi ligula vel ipsum. In facilisis nulla at ligula dignissim pretium. Phasellus lacinia semper
            justo, et varius justo interdum quis. Nam maximus dui ut fringilla volutpat. Donec ut ipsum diam. Proin
            condimentum
            ac lorem sed tincidunt.Cras id tempus eros. Suspendisse vestibulum id nisl sit amet congue. Nulla sed est
            vel felis rhoncus
            laoreet. Aliquam erat volutpat.Duis viverra malesuada elit lobortis egestas. Suspendisse potenti.</p>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.Etiam rhoncus nisl pharetra tempus sollicitudin.
            Vestibulum ultrices
            imperdiet condimentum. Cras efficitur, nunc ut mattis lacinia, libero nulla venenatis justo,
            vel aliquet mi ligula vel ipsum. In facilisis nulla at ligula dignissim pretium. Phasellus lacinia semper
            justo, et varius justo interdum quis. Nam maximus dui ut fringilla volutpat. Donec ut ipsum diam. Proin
            condimentum
            ac lorem sed tincidunt.Cras id tempus eros. Suspendisse vestibulum id nisl sit amet congue. Nulla sed est
            vel felis rhoncus
            laoreet. Aliquam erat volutpat.Duis viverra malesuada elit lobortis egestas. Suspendisse potenti.</p>
        </section>

        <section id="Function_Declarations">
          <header>
            <h2>Function Declarations</h2>
          </header>

          <ul>
            <li>Point A </li>

            <li>Point B </li>

            <li>Point C </li>

          </ul>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.Etiam rhoncus nisl pharetra tempus sollicitudin.
            Vestibulum ultrices
            imperdiet condimentum. Cras efficitur, nunc ut mattis lacinia, libero nulla venenatis justo,
            vel aliquet mi ligula vel ipsum. In facilisis nulla at ligula dignissim pretium. Phasellus lacinia semper
            justo, et varius justo interdum quis. Nam maximus dui ut fringilla volutpat. Donec ut ipsum diam. Proin
            condimentum
            ac lorem sed tincidunt.Cras id tempus eros. Suspendisse vestibulum id nisl sit amet congue. Nulla sed est
            vel felis rhoncus
            laoreet. Aliquam erat volutpat.Duis viverra malesuada elit lobortis egestas. Suspendisse potenti.</p>
          <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.Etiam rhoncus nisl pharetra tempus sollicitudin.
            Vestibulum ultrices
            imperdiet condimentum. Cras efficitur, nunc ut mattis lacinia, libero nulla venenatis justo,
            vel aliquet mi ligula vel ipsum. In facilisis nulla at ligula dignissim pretium. Phasellus lacinia semper
            justo, et varius justo interdum quis. Nam maximus dui ut fringilla volutpat. Donec ut ipsum diam. Proin
            condimentum
            ac lorem sed tincidunt.Cras id tempus eros. Suspendisse vestibulum id nisl sit amet congue. Nulla sed est
            vel felis rhoncus
            laoreet. Aliquam erat volutpat.Duis viverra malesuada elit lobortis egestas. Suspendisse potenti.</p>

        </section>
        
        <section id="Reference">
          <header>
            <h2>Reference</h2>
            <p>Documentation taken from <a class="reference"
                href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide" target="_blank">MDN</a> </p>
          </header>

        </section>
      </article>


    </div>

  </main>



  <footer>
    <br>
    Copywright, Charlotte Norford. The website developer / designer does not own MDN documentation information.

  </footer>

  <script async src="https://kit.fontawesome.com/77178d654c.js" crossorigin="anonymous"></script>
  <script src="script.js"></script>


</body>


</html>
              
            
!

CSS

              
                /*codepen doesn't accept doctype declarations*/
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}

blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}


/*my code*/
.landing-page {
    background-color: lightgray;
    font-family: 'PT Sans', sans-serif;
}

* {
    box-sizing: border-box;
}

.main-header {
    position: fixed;
    z-index: 2;

    top: 0;
}

.nav-bar-top {
    position: relative;
    flex-direction: row;
    align-items: flex-start;
    gap: 10%;
    top: 0;
    right: 0;
}

.nav-bar-top__inner-page-links {
    display: flex;
    flex-direction: row;
    gap: 8%;
    justify-content: flex-start;
    background-color: rgb(7, 80, 7);
    background-repeat: no-repeat;
    top: 0;
    background-position: top;
    background-size: 100%;
    border-radius: 0% 0% 50% 5%;
    margin: 0 0.5em;
    min-width: 50vw;
    z-index: 2;
}

.nav-bar-top__home-page-link {
    height: 8em;
}

.logo-small {
    display: block;
    max-width: 5em;
    height: auto;
    margin-top: 0.5em;
    margin-left: 0.5em;
}

a {
    text-decoration: none;
}

.flex-container {
    display: flex;
    flex-direction: row;
}

.flex-container__article-button {
    display: block;
    position: relative;
    border-style: hidden;
    padding: 0.25em;
    margin-top: 0.5em;
    background-color: yellow;
    color: black;
    border-style: none;
    font-size: 1.25em;
    text-align: center;
    font-weight: bold;
}



.nav-bar-top__icons {
    display: flex;
    flex-direction: row;
    margin-top: 0.5em;
    margin-left: 1em;
    width: 9em;
    justify-content: space-between;
}

.fab {
    color: white;
}

.section__banner {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-color: black;
    margin-top: 10em;
    margin-left: 0.5em;
    margin-right: 0.5em;
    margin-bottom: 0.5em;
}

.logo-big {
    display: inline-block;
    width: 18em;
    height: auto;
    padding: 0.75em 0.5em;
}

.title__block {
    position: relative;
    display: block;
    border-style: none;
    margin-top: 0em;
}

.title__words {
    font-size: 2em;
    line-height: 2.5;
    color: white;
    text-align: left;
}

.title__words>span {
    font-weight: 900;
    font-size: 2em;
}

.nav-article-container {
    display: flex;
    flex-direction: row;
    margin-left: 0.5em;
    margin-right: 0.5em;
    background-color: white;
}

.nav-bar-left {
    display: flex;
    position: absolute;
    flex-direction: column;
    overflow: scroll;
    height: 70vh;
    background-color: rgb(15, 10, 10);
    width: 32em;
    z-index: 1;


}

.nav-bar-left__title {
    color: white;
    font-size: 1.5em;
    padding: 1em;
}

.button-main-control {
    background-color: black;
    opacity: 1;
}

.button-main-control--open {
    position: fixed;
    top: 20em;
    left: 2em;
    opacity: 0;
}

.button-main-control--close {
    position: sticky;
    color: white;
    margin-top: 1em;
    max-width: 3em;
    margin-left: 1em;
}

.fa-times, .fa-bars {
    color: white;
    background: black;
}

.nav-bar-left__nav-link {
    display: inline-block;
    background-color: yellow;
    padding: 0.5em;
    font-weight: 800;
    font-size: 1.5em;
    color: black;
    margin: 0.5em 0em 0.5em 1em;
    max-width: 9em;
}

.article {
    position: relative;
    height: 70vh;
    overflow: scroll;
    scroll-behavior: smooth;
    width: calc(100% - 32em);
    z-index: 0;
}

h2 {
    font-size: 1.25em;
    padding: 0.5em
}

p {
    padding-left: 1em;
    padding-right: 1em;
}

li {
    margin: 3em 2em;
}

i {
    font-size: 2em;
}

footer {
    position: relative;
    display: block;
    background-color: black;
    color: white;
    height: 5em;
    margin-left: 0.5em;
    margin-right: 0.5em;
    text-align: center;
}

.reference {
    font-weight: bold;
}

code {
    display: inline-block;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 1em;
    font-weight: bold;
    background-color: lightyellow;
    font-family: "Arial", sans-serif;
}

@media only screen and (max-width: 987px) {
    .nav-bar-top__inner-page-links {
        position: relative;
        gap: 0%;
        min-width: 90vw;
    }
    .logo-small {
        margin: 0.7em 1em;
    }
    .flex-container {
        display: flex;
        flex-direction: column;
    }
    .flex-container__article-button {
        font-size: 1em;
    }
    .logo-big {
        display: block;
        width: 17em;
        height: auto;
    }
    .nav-bar-top__icons {
        margin-left: 0em;
    }
    .fab {
        font-size: 2em;
    }
    .nav-bar-left__nav-link {
        font-size: 1em;
    }
    
}

@media only screen and (max-width: 613px) {
    .logo-big {
        width: 8em;
        height: auto;
        padding-left: 1px;
    }
    .title__words {
        font-size: 1.25em;
    }
    .title__words>span {
        line-height: 0.5;
    }
    .nav-bar-left__title {
        font-size: 1.2em;
    }
}
              
            
!

JS

              
                /* initialise variables*/
var buttonOpen = document.getElementsByClassName("button-main-control--open")[0];
var buttonClose = document.getElementsByClassName("button-main-control--close")[0];
var article = document.getElementsByClassName("article")[0];
var navbar = document.getElementsByClassName("nav-bar-left")[0];
var isOpen = false; //is the menu open
var mediaBoundary = 800;
var theMatchMedia = window.matchMedia("(max-width:" + mediaBoundary + "px" + ")");
buttonOpen.addEventListener("click", openMenu);
buttonClose.addEventListener("click", closeMenu);
openMenu();
article.style.width = "100%";

/*resize the menu (has internal navigation) and article so it responsive to different screen sizes*/
function responsiveNav() {
    if (theMatchMedia.matches && isOpen) {
        navbar.style.width = "100%";
     }
    else if (theMatchMedia.matches && !isOpen) {
        navbar.style.width = "0%";
        

    }
    else if (!theMatchMedia.matches && isOpen) {
       
        navbar.style.width = "40%";

    }
    else if (!theMatchMedia.matches && !isOpen) {
        navbar.style.width = "0";


    }


}

/*hide menu from user and make the main article the full width of the browser window*/
function closeMenu() {

    buttonOpen.style.opacity = "1";
    buttonClose.style.opacity = "0";
    isOpen = false;
    responsiveNav();
}

/*Show menu to user and make part or all of main article hidden from the browser window*/

function openMenu() {
    buttonClose.style.opacity = "1";
    buttonOpen.style.opacity = "0";
    isOpen = true;
    responsiveNav();


}



              
            
!
999px

Console