JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            background-color:slateblue;

        }
        #container{
            border: 1px solid black;
            background-color: aliceblue;
            width: 1000px;
            margin:0 auto;
        }
        #header{
           background-color: orangered;
           height: 100px;
          
        }
        #header h1{
            padding: 20px;
            margin: 0px;
        }
        #menu{
            background-color: bisque;
        }
        #menu li {
            display: inline-block;
          
        }
        #menu li a{
            display: block;
            padding: 10px 20px;
            text-decoration: none;
            color: black;
            font-weight: bold;
        }
        #menu li a:hover{
            background-color: chartreuse;
            color: rgb(255, 255, 255);
        }
        #content{
            width: 800px;
            float: left;
            min-height: 500px;
            background-color: lightslategray;
            padding: 10px;
            box-sizing: border-box;
        }
        #sidebar{
            background-color: lightblue;
            width: 200px;
            float: right;
            min-height: 500px;


        }
        #sidebar a{
            text-decoration: none;
            color: black;
            font-weight: bold;
        }
        #sidebar li a:hover{
            background-color: chartreuse;
            color: rgb(255, 255, 255);
        }
        #footer{
            background-color: royalblue;
            padding: 2px 10px;
            clear: both;
            text-align: end;
        }


        /* media query applying from here  */

        @media screen and(max-width:1020px) {
            #container{
               ...