<div id="cookie-settings">
       <strong><span style="font-size: 20px;font-weight: bold;">Cookie Settings</span> </strong> <br><br>
        When you visit any of our websites, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. 
     <div>
         <br><br>
        <form id="cookieconsent"  method="POST" action="#" > 
            <label class="switch">
            <input type="checkbox" id="cookie1" name="techcookies"checked>
            <span class="slider round"></span>
            </label> 
            <span  style="float:right;margin-right:320px;font-size:16px;">Just necessary</span> <br>   <bR>             
            <label class="switch">
            <input type="checkbox"id="cookie2" name="analyticscookies"checked>
            <span class="slider round"></span>
            </label> <span style="float:right;margin-right:278px;font-size:16px;">Performance cookies</span> <br><br>
             <label class="switch">
            <input type="checkbox" id="cookie3" name="3rdcookies"checked>
            <span class="slider round"></span>
            </label> <span style="float:right;margin-right:303px;font-size:16px;" > Targeting cookies</span> <br><br><br>
            <input type="button"value="Confirm my choise" onclick="acceptChecked()" style="border: 1px solid rgb(40, 94, 131);background-color:rgb(23, 133, 207);color:white;padding:10px;width:auto;">
            </span> 
            <input type="button"value="Accept all cookies" onclick="acceptAllCookies();" style="margin-left:5px;border: 1px solid rgb(40, 94, 131);background-color:rgb(236, 239, 241);color:rgb(40, 94, 131);padding:10px;width:auto;">   
        </div></form>
     </div>
    
    </div>

<div class="container" id="container1">
    <div class="container2">
        <img src="https://img.icons8.com/offices/100/000000/cookies.png"/><br>
        <p><span id="title">Your privacy</span><br><br>

            We use cookies to improve your experienceon our site and to show you relevant advertising. To find out more, read our updated privacy policy and cookie policy.</p>
    </div>
    
    <button class="btn-1" onclick="acceptAllCookies()">Accept all cookies</button>
    <button class="btn-2" onclick="openSettingsBox()">Customize settings</button>
    

</div>

        body{
            font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;

        }
       .container{
           background-color:#2F3337;
           width: 350px;
           height: 340px;
           border-radius: 8px;
           padding: 30px;
           top: 80px;
           z-index: 0;
           position:fixed;
         
       }
  
       .container2{
           font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
           color: whitesmoke;
       }
       #title{
           font-size: 20px;
           font-weight: bold;
       }
       .btn-1{
           width: 100%;
           padding: 10px;
           background-color: rgb(23, 133, 207);
           color: white;
           border: none;
           cursor: pointer;

       }
       .btn-2{
        width: 100%;
        margin-top: 10px;
        border: none;
cursor: pointer;
        padding: 10px;

       }
       .btn-3{
        width: 100%;
        margin-top: 10px;
        border: none;
        cursor: pointer;

        padding: 10px;
       }
       #cookie-settings{
           position: relative;
           top: 1%;
           left: 35%;
           width: 500px;
           height: 440px;
           border: 1px solid gray;
           border-radius: 8px;
           padding: 20px;
           z-index: 1;
           background-color: white;
           display: none;
           -webkit-box-shadow: 0px 0px 6px 1px #444343; 
           box-shadow: 0px 0px 6px 1px #626262;


       }

       .special-page .relative  {text-align:center !important; }

.special-page .footer {margin-top: 90px;}
.switch {
     position: relative;
     display: inline-block;
     width: 40px;
     height: 22px;
   }
   
   .switch input { 
     opacity: 0;
     width: 0;
     height: 0;
   }
   
   .slider {
       float: right;
     position: absolute;
     cursor: pointer;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background-color: #ccc;
     -webkit-transition: .4s;
     transition: .4s;
   }
   
   .slider:before {
     position: absolute;
     content: "";
     height: 19px;
     width: 19px;
     left: 0px;
     bottom: 2px;
     background-color: white;
     -webkit-transition: .4s;
     transition: .4s;
   }
   
   input:checked + .slider {
     background-color:  rgb(23, 133, 207);
   }
   
   input:focus + .slider {
     box-shadow: 0 0 1px  rgb(23, 133, 207);
   }
   
   input:checked + .slider:before {
     -webkit-transform: translateX(20px);
     -ms-transform: translateX(20px);
     transform: translateX(20px);
   }
   
   /* Rounded sliders */
   .slider.round {
     border-radius: 34px;
   }
   
   .slider.round:before {
     border-radius: 50%;
   }
   input[type="button"]{
       cursor: pointer;
    
   }
   #img-cookie-start{
       background-color: #2F3337;
       border-radius: 8px;
       width: 40px;padding: 10px;
       cursor: pointer;
       position: fixed;
       position: fixed;
       top: 800px;
       display: none;

   }
const openSettingsBox = () =>{
    document.getElementById("cookie-settings").style.display="block";
  
}
const acceptAllCookies = () =>{
    document.getElementById("cookie-settings").style.display="none";
  
}
const acceptChecked  = () =>{
  document.getElementById("cookie-settings").style.display="none";
  
}
function CookieDisplay(){
  
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.