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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

              
                 <h1>Guess the movie</h1>
 <a href="#next-movie1">Start Playing</a>

 <div id="next-movie1">
   <p>πŸ‘¦πŸ»πŸ‘“βš‘οΈ</p>
   <div class="container">
     <input type="text" required maxlength="1" pattern="^[Hh]{1}$" class="letter movie1">
     <input type="text" required maxlength="1" pattern="^[Aa]{1}$" class="letter movie1">
     <input type="text" required maxlength="1" pattern="^[Rr]{1}$" class="letter movie1">
     <input type="text" required maxlength="1" pattern="^[Rr]{1}$" class="letter movie1">
     <input type="text" required maxlength="1" pattern="^[Yy]{1}$" class="letter movie1">
     <div class="space"></div>
     <input type="text" required maxlength="1" pattern="^[Pp]{1}$" class="letter movie1">
     <input type="text" required maxlength="1" pattern="^[Oo]{1}$" class="letter movie1">
     <input type="text" required maxlength="1" pattern="^[Tt]{1}$" class="letter movie1">
     <input type="text" required maxlength="1" pattern="^[Tt]{1}$" class="letter movie1">
     <input type="text" required maxlength="1" pattern="^[Ee]{1}$" class="letter movie1">
     <input type="text" required maxlength="1" pattern="^[Rr]{1}$" class="letter movie1">
     <a href="#next-movie2" id="next">next</a>
   </div>

   <!-- movie 2 -->
   <div id="next-movie2">
     <p>β­πŸ’£βš”οΈ</p>
     <div class="container">
       <input type="text" required maxlength="1" pattern="^[Ss]{1}$" class="letter movie2">
       <input type="text" required maxlength="1" pattern="^[Tt]{1}$" class="letter movie2">
       <input type="text" required maxlength="1" pattern="^[Aa]{1}$" class="letter movie2">
       <input type="text" required maxlength="1" pattern="^[Rr]{1}$" class="letter movie2">
       <div class="space_movie2 space "></div>
       <input type="text" required maxlength="1" pattern="^[Ww]{1}$" class="letter movie2">
       <input type="text" required maxlength="1" pattern="^[Aa]{1}$" class="letter movie2">
       <input type="text" required maxlength="1" pattern="^[Rr]{1}$" class="letter movie2">
       <input type="text" required maxlength="1" pattern="^[Ss]{1}$" class="letter movie2">
       <a href="#next-movie3" id="next">next</a>
     </div>
     <!--Movie 3-->
     <div id="next-movie3">
       <p>πŸŒƒπŸ›οΈπŸ‘¨πŸ”¦πŸ—ΏπŸ™‰</p>
       <div class="container">
         <input type="text" required maxlength="1" pattern="^[Nn]{1}$" class="letter movie3">
         <input type="text" required maxlength="1" pattern="^[Ii]{1}$" class="letter movie3">
         <input type="text" required maxlength="1" pattern="^[Gg]{1}$" class="letter movie3">
         <input type="text" required maxlength="1" pattern="^[Hh]{1}$" class="letter movie3">
         <input type="text" required maxlength="1" pattern="^[Tt]{1}$" class="letter movie3">
         <div class="space_movie2 space "></div>
         <input type="text" required maxlength="1" pattern="^[Aa]{1}$" class="letter movie3">
         <input type="text" required maxlength="1" pattern="^[Tt]{1}$" class="letter movie3">
         <div class="space_movie2 space "></div>
         <input type="text" required maxlength="1" pattern="^[Tt]{1}$" class="letter movie3">
         <input type="text" required maxlength="1" pattern="^[Hh]{1}$" class="letter movie3">
         <input type="text" required maxlength="1" pattern="^[Ee]{1}$" class="letter movie3">
         <div class="space_movie2 space "></div>
         <input type="text" required maxlength="1" pattern="^[Mm]{1}$" class="letter movie3">
         <input type="text" required maxlength="1" pattern="^[Uu]{1}$" class="letter movie3">
         <input type="text" required maxlength="1" pattern="^[Ss]{1}$" class="letter movie3">
         <input type="text" required maxlength="1" pattern="^[Ee]{1}$" class="letter movie3">
         <input type="text" required maxlength="1" pattern="^[Uu]{1}$" class="letter movie3">
         <input type="text" required maxlength="1" pattern="^[Mm]{1}$" class="letter movie3">

         <a href="#next-movie4" id="next">next</a>
       </div>
       <!-- movie 4 -->
       <div id="next-movie4">
         <p>πŸ‘΄βž‘οΈπŸ‘¨βž‘οΈπŸ‘¦βž‘οΈπŸ‘Ά</p>
         <div class="container">
           <input type="text" required maxlength="1" pattern="^[Tt]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Hh]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Ee]{1}$" class="letter movie4">
           <div class="space_movie2 space "></div>
           <input type="text" required maxlength="1" pattern="^[Cc]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Uu]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Rr]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Ii]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Oo]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Uu]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Ss]{1}$" class="letter movie4">
           <div class="space_movie2 space "></div>
           <input type="text" required maxlength="1" pattern="^[Cc]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Aa]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Ss]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Ee]{1}$" class="letter movie4">
           <div class="space_movie2 space "></div>
           <input type="text" required maxlength="1" pattern="^[Oo]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Ff]{1}$" class="letter movie4">
           <div class="space_movie2 space "></div>
           <input type="text" required maxlength="1" pattern="^[Bb]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Ee]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Nn]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Jj]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Aa]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Mm]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Ii]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Nn]{1}$" class="letter movie4">
           <div class="space_movie2 space "></div>
           <input type="text" required maxlength="1" pattern="^[Bb]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Uu]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Tt]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Tt]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Oo]{1}$" class="letter movie4">
           <input type="text" required maxlength="1" pattern="^[Nn]{1}$" class="letter movie4">

           <a href="#next-movie5" id="next">next</a>
         </div>
         <!--movie 5 -->
         <div id="next-movie5">
           <p>πŸ‘ΈπŸΏπŸΈπŸ’‹</p>
           <div class="container">
             <input type="text" required maxlength="1" pattern="^[Tt]{1}$" class="letter movie5">
             <input type="text" required maxlength="1" pattern="^[Hh]{1}$" class="letter movie5">
             <input type="text" required maxlength="1" pattern="^[Ee]{1}$" class="letter movie5">
             <div class="space_movie2 space "></div>
             <input type="text" required maxlength="1" pattern="^[Pp]{1}$" class="letter movie5">
             <input type="text" required maxlength="1" pattern="^[Rr]{1}$" class="letter movie5">
             <input type="text" required maxlength="1" pattern="^[Ii]{1}$" class="letter movie5">
             <input type="text" required maxlength="1" pattern="^[Nn]{1}$" class="letter movie5">
             <input type="text" required maxlength="1" pattern="^[Cc]{1}$" class="letter movie5">
             <input type="text" required maxlength="1" pattern="^[Ee]{1}$" class="letter movie5">
             <input type="text" required maxlength="1" pattern="^[Ss]{1}$" class="letter movie5">
             <input type="text" required maxlength="1" pattern="^[Ss]{1}$" class="letter movie5">
             <div class="space_movie2 space "></div>
             <input type="text" required maxlength="1" pattern="^[Aa]{1}$" class="letter movie5">
             <input type="text" required maxlength="1" pattern="^[Nn]{1}$" class="letter movie5">
             <input type="text" required maxlength="1" pattern="^[Dd]{1}$" class="letter movie5">
             <div class="space_movie2 space "></div>
             <input type="text" required maxlength="1" pattern="^[Tt]{1}$" class="letter movie5">
             <input type="text" required maxlength="1" pattern="^[Hh]{1}$" class="letter movie5">
             <input type="text" required maxlength="1" pattern="^[Ee]{1}$" class="letter movie5">
             <div class="space_movie2 space "></div>
             <input type="text" required maxlength="1" pattern="^[Ff]{1}$" class="letter movie5">
             <input type="text" required maxlength="1" pattern="^[Rr]{1}$" class="letter movie5">
             <input type="text" required maxlength="1" pattern="^[Oo]{1}$" class="letter movie5">
             <input type="text" required maxlength="1" pattern="^[Gg]{1}$" class="letter movie5">

             <a href="#next-movie6" id="next">next</a>
           </div>
           <!--movie 6 -->
           <div id="next-movie6">
             <p>πŸ€πŸ³πŸ½οΈπŸ—Ό</p>
             <div class="container">
               <input type="text" required maxlength="1" pattern="^[Rr]{1}$" class="letter movie6">
               <input type="text" required maxlength="1" pattern="^[Aa]{1}$" class="letter movie6">
               <input type="text" required maxlength="1" pattern="^[Tt]{1}$" class="letter movie6">
               <input type="text" required maxlength="1" pattern="^[Aa]{1}$" class="letter movie6">
               <input type="text" required maxlength="1" pattern="^[Tt]{1}$" class="letter movie6">
               <input type="text" required maxlength="1" pattern="^[Oo]{1}$" class="letter movie6">
               <input type="text" required maxlength="1" pattern="^[Uu]{1}$" class="letter movie6">
               <input type="text" required maxlength="1" pattern="^[Ii]{1}$" class="letter movie6">
               <input type="text" required maxlength="1" pattern="^[Ll]{1}$" class="letter movie6">
               <input type="text" required maxlength="1" pattern="^[Ll]{1}$" class="letter movie6">
               <input type="text" required maxlength="1" pattern="^[Ee]{1}$" class="letter movie6">

               <a href="#next-movie7" id="next">next</a>
             </div>
             <!-- movie 7 -->
             <div id="next-movie7">
               <p>🐼πŸ₯‹πŸ‘Š</p>
               <div class="container">
                 <input type="text" required maxlength="1" pattern="^[Kk]{1}$" class="letter movie7">
                 <input type="text" required maxlength="1" pattern="^[Uu]{1}$" class="letter movie7">
                 <input type="text" required maxlength="1" pattern="^[Nn]{1}$" class="letter movie7">
                 <input type="text" required maxlength="1" pattern="^[Gg]{1}$" class="letter movie7">
                 <div class="space_movie2 space "></div>
                 <input type="text" required maxlength="1" pattern="^[Ff]{1}$" class="letter movie7">
                 <input type="text" required maxlength="1" pattern="^[Uu]{1}$" class="letter movie7">
                 <div class="space_movie2 space "></div>
                 <input type="text" required maxlength="1" pattern="^[Pp]{1}$" class="letter movie7">
                 <input type="text" required maxlength="1" pattern="^[Aa]{1}$" class="letter movie7">
                 <input type="text" required maxlength="1" pattern="^[Nn]{1}$" class="letter movie7">
                 <input type="text" required maxlength="1" pattern="^[Dd]{1}$" class="letter movie7">
                 <input type="text" required maxlength="1" pattern="^[Aa]{1}$" class="letter movie7">

                 <a href="#next-movie8" id="next">next</a>
               </div>
               <!-- movie 8 -->
               <div id="next-movie8">
                 <p>πŸ˜ˆπŸ‘—πŸ‘ </p>
                 <div class="container">
                   <input type="text" required maxlength="1" pattern="^[Tt]{1}$" class="letter movie8">
                   <input type="text" required maxlength="1" pattern="^[Hh]{1}$" class="letter movie8">
                   <input type="text" required maxlength="1" pattern="^[Ee]{1}$" class="letter movie8">
                   <div class="space_movie2 space "></div>
                   <input type="text" required maxlength="1" pattern="^[Dd]{1}$" class="letter movie8">
                   <input type="text" required maxlength="1" pattern="^[Ee]{1}$" class="letter movie8">
                   <input type="text" required maxlength="1" pattern="^[Vv]{1}$" class="letter movie8">
                   <input type="text" required maxlength="1" pattern="^[Ii]{1}$" class="letter movie8">
                   <input type="text" required maxlength="1" pattern="^[Ll]{1}$" class="letter movie8">
                   <div class="space_movie2 space "></div>
                   <input type="text" required maxlength="1" pattern="^[Ww]{1}$" class="letter movie8">
                   <input type="text" required maxlength="1" pattern="^[Ee]{1}$" class="letter movie8">
                   <input type="text" required maxlength="1" pattern="^[Aa]{1}$" class="letter movie8">
                   <input type="text" required maxlength="1" pattern="^[Rr]{1}$" class="letter movie8">
                   <input type="text" required maxlength="1" pattern="^[Ss]{1}$" class="letter movie8">
                   <div class="space_movie2 space "></div>
                   <input type="text" required maxlength="1" pattern="^[Pp]{1}$" class="letter movie8">
                   <input type="text" required maxlength="1" pattern="^[Rr]{1}$" class="letter movie8">
                   <input type="text" required maxlength="1" pattern="^[Aa]{1}$" class="letter movie8">
                   <input type="text" required maxlength="1" pattern="^[Dd]{1}$" class="letter movie8">
                   <input type="text" required maxlength="1" pattern="^[Aa]{1}$" class="letter movie8">

                   <a href="#next-movie9" id="next">next</a>
                 </div>
                 <!--movie 9-->
                 <div id="next-movie9">
                   <p>2️⃣7οΈβƒ£πŸ‘—</p>
                   <div class="container">
                     <input type="text" required maxlength="1" pattern="^[2]{1}$" class="letter movie9">
                     <input type="text" required maxlength="1" pattern="^[7]{1}$" class="letter movie9">
                     <div class="space_movie2 space "></div>
                     <input type="text" required maxlength="1" pattern="^[Dd]{1}$" class="letter movie9">
                     <input type="text" required maxlength="1" pattern="^[Rr]{1}$" class="letter movie9">
                     <input type="text" required maxlength="1" pattern="^[Ee]{1}$" class="letter movie9">
                     <input type="text" required maxlength="1" pattern="^[Ss]{1}$" class="letter movie9">
                     <input type="text" required maxlength="1" pattern="^[Ss]{1}$" class="letter movie9">
                     <input type="text" required maxlength="1" pattern="^[Ee]{1}$" class="letter movie9">
                     <input type="text" required maxlength="1" pattern="^[Ss]{1}$" class="letter movie9">

                     <a href="#next-movie10" id="next">next</a>
                   </div>
                   <!--movie 10-->
                   <div id="next-movie10">
                     <p>πŸ‘¦βœ‚οΈπŸ‘</p>
                     <div class="container">
                       <input type="text" required maxlength="1" pattern="^[Ee]{1}$" class="letter movie10">
                       <input type="text" required maxlength="1" pattern="^[Dd]{1}$" class="letter movie10">
                       <input type="text" required maxlength="1" pattern="^[Ww]{1}$" class="letter movie10">
                       <input type="text" required maxlength="1" pattern="^[Aa]{1}$" class="letter movie10">
                       <input type="text" required maxlength="1" pattern="^[Rr]{1}$" class="letter movie10">
                       <input type="text" required maxlength="1" pattern="^[Dd]{1}$" class="letter movie10">
                       <div class="space_movie2 space "></div>
                       <input type="text" required maxlength="1" pattern="^[Ss]{1}$" class="letter movie10">
                       <input type="text" required maxlength="1" pattern="^[Cc]{1}$" class="letter movie10">
                       <input type="text" required maxlength="1" pattern="^[Ii]{1}$" class="letter movie10">
                       <input type="text" required maxlength="1" pattern="^[Ss]{1}$" class="letter movie10">
                       <input type="text" required maxlength="1" pattern="^[Ss]{1}$" class="letter movie10">
                       <input type="text" required maxlength="1" pattern="^[Oo]{1}$" class="letter movie10">
                       <input type="text" required maxlength="1" pattern="^[Rr]{1}$" class="letter movie10">
                       <input type="text" required maxlength="1" pattern="^[Hh]{1}$" class="letter movie10">
                       <input type="text" required maxlength="1" pattern="^[Aa]{1}$" class="letter movie10">
                       <input type="text" required maxlength="1" pattern="^[Nn]{1}$" class="letter movie10">
                       <input type="text" required maxlength="1" pattern="^[Dd]{1}$" class="letter movie10">
                       <input type="text" required maxlength="1" pattern="^[Ss]{1}$" class="letter movie10">

                       <a href="#next-movie11" id="next">next</a>
                     </div>
                     <!--movie 11-->
                     <div id="next-movie11">
                       <p>πŸˆπŸ‘’</p>
                       <div class="container">
                         <input type="text" required maxlength="1" pattern="^[Pp]{1}$" class="letter movie11">
                         <input type="text" required maxlength="1" pattern="^[Uu]{1}$" class="letter movie11">
                         <input type="text" required maxlength="1" pattern="^[Ss]{1}$" class="letter movie11">
                         <input type="text" required maxlength="1" pattern="^[Ss]{1}$" class="letter movie11">
                         <div class="space_movie2 space "></div>
                         <input type="text" required maxlength="1" pattern="^[Ii]{1}$" class="letter movie11">
                         <input type="text" required maxlength="1" pattern="^[Nn]{1}$" class="letter movie11">
                         <div class="space_movie2 space "></div>
                         <input type="text" required maxlength="1" pattern="^[Bb]{1}$" class="letter movie11">
                         <input type="text" required maxlength="1" pattern="^[Oo]{1}$" class="letter movie11">
                         <input type="text" required maxlength="1" pattern="^[Oo]{1}$" class="letter movie11">
                         <input type="text" required maxlength="1" pattern="^[Tt]{1}$" class="letter movie11">
                         <input type="text" required maxlength="1" pattern="^[Ss]{1}$" class="letter movie11">
                         <div class="space_movie2 space "></div>

                         <a href="#next-movie12" id="next">next</a>
                       </div>
                       <!-- movie 12 -->
                       <div id="next-movie12">
                         <p>🀫🐐</p>
                         <div class="container">
                           <input type="text" required maxlength="1" pattern="^[Tt]{1}$" class="letter movie12">
                           <input type="text" required maxlength="1" pattern="^[Hh]{1}$" class="letter movie12">
                           <input type="text" required maxlength="1" pattern="^[Ee]{1}$" class="letter movie12">
                           <div class="space_movie2 space "></div>
                           <input type="text" required maxlength="1" pattern="^[Ss]{1}$" class="letter movie12">
                           <input type="text" required maxlength="1" pattern="^[Ii]{1}$" class="letter movie12">
                           <input type="text" required maxlength="1" pattern="^[Ll]{1}$" class="letter movie12">
                           <input type="text" required maxlength="1" pattern="^[Ee]{1}$" class="letter movie12">
                           <input type="text" required maxlength="1" pattern="^[Nn]{1}$" class="letter movie12">
                           <input type="text" required maxlength="1" pattern="^[Cc]{1}$" class="letter movie12">
                           <input type="text" required maxlength="1" pattern="^[Ee]{1}$" class="letter movie12">
                           <div class="space_movie2 space "></div>
                           <input type="text" required maxlength="1" pattern="^[Oo]{1}$" class="letter movie12">
                           <input type="text" required maxlength="1" pattern="^[Ff]{1}$" class="letter movie12">
                           <div class="space_movie2 space "></div>
                           <input type="text" required maxlength="1" pattern="^[Tt]{1}$" class="letter movie12">
                           <input type="text" required maxlength="1" pattern="^[Hh]{1}$" class="letter movie12">
                           <input type="text" required maxlength="1" pattern="^[Ee]{1}$" class="letter movie12">
                           <div class="space_movie2 space "></div>
                           <input type="text" required maxlength="1" pattern="^[Ll]{1}$" class="letter movie12">
                           <input type="text" required maxlength="1" pattern="^[Aa]{1}$" class="letter movie12">
                           <input type="text" required maxlength="1" pattern="^[Mm]{1}$" class="letter movie12">
                           <input type="text" required maxlength="1" pattern="^[Bb]{1}$" class="letter movie12">
                           <input type="text" required maxlength="1" pattern="^[Ss]{1}$" class="letter movie12">
                           <div class="space_movie2 space "></div>

                           <a href="#next-movie13" id="next">next</a>
                         </div>
                         <!-- movie 13 -->
                         <div id="next-movie13">
                           <p>πŸŒ—πŸ§›β€β™‚οΈπŸ’‘πŸΊ</p>
                           <div class="container">
                             <input type="text" required maxlength="1" pattern="^[Tt]{1}$" class="letter movie13">
                             <input type="text" required maxlength="1" pattern="^[Ww]{1}$" class="letter movie13">
                             <input type="text" required maxlength="1" pattern="^[Ii]{1}$" class="letter movie13">
                             <input type="text" required maxlength="1" pattern="^[Ll]{1}$" class="letter movie13">
                             <input type="text" required maxlength="1" pattern="^[Ii]{1}$" class="letter movie13">
                             <input type="text" required maxlength="1" pattern="^[Gg]{1}$" class="letter movie13">
                             <input type="text" required maxlength="1" pattern="^[Hh]{1}$" class="letter movie13">
                             <input type="text" required maxlength="1" pattern="^[Tt]{1}$" class="letter movie13">

                             <a href="#congrats" id="next">next</a>
                           </div>
                           <!--End of Game-->
                           <div id="congrats">
                             <h1>Congratulations!!</h1>
                             <p>You did amazing!</p>
                           </div>
                         </div>
                       </div>
                     </div>
                   </div>
                 </div>
               </div>
             </div>
           </div>
         </div>
       </div>
     </div>
   </div>
 </div>
              
            
!

CSS

              
                h1,
a[href="#next-movie1"] {
  display: block;
  width: fit-content;
  width: -moz-fit-content;
  margin: 100px auto;
  text-transform: uppercase;
}

body {
  overflow: hidden;
  font-family: Helvetica, Arial, sans-serif;
  background-color: aliceblue;
  height: 100vh;
  display: grid;
  justify-content: center;
  align-content: center;
}

.container,
p {
  width: -moz-fit-content;
  width: fit-content;
  margin: 50px auto;
}

h1 {
  font-size: 50px;
}

div[id^="next-movie"] p {
  font-size: 50px;
}

.space {
  display: block;
  width: 30px;
  height: 30px;
}

input[type="text"] {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 0 auto;
  padding: 0;
  font-size: 20px;
  text-align: center;
  text-transform: uppercase;
  outline: none;
  line-height: 1px;
}

.letter:valid {
  border: 2px solid rgb(14, 219, 14);
}

div[id^="next-movie"],
#congrats {
  position: absolute;
  min-width: 100vw;
  min-height: 100vh;
  visibility: hidden;
  top: 0;
  left: 0;
  background: aliceblue;
}

[id^="next-movie"]:target,
#congrats:target {
  visibility: visible;
  top: 0;
}

a[href^="#next-movie"],
a[href^="#congrats"] {
  position: absolute;
  right: 100vw;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 25px;
  width: fit-content;
  width: -moz-fit-content;
  color: darkblue;
  border: 2px solid darkblue;
  padding: 15px;
}

.movie1:valid ~ a[href="#next-movie2"],
.movie2:valid ~ a[href="#next-movie3"],
.movie3:valid ~ a[href="#next-movie4"],
.movie4:valid ~ a[href="#next-movie5"],
.movie5:valid ~ a[href="#next-movie6"],
.movie6:valid ~ a[href="#next-movie7"],
.movie7:valid ~ a[href="#next-movie8"],
.movie8:valid ~ a[href="#next-movie9"],
.movie9:valid ~ a[href="#next-movie10"],
.movie10:valid ~ a[href="#next-movie11"],
.movie11:valid ~ a[href="#next-movie12"],
.movie12:valid ~ a[href="#next-movie13"],
.movie13:valid ~ a[href="#congrats"] {
  width: fit-content;
  width: -moz-fit-content;
  right: 5%;
  bottom: 10%;
}

.movie1:invalid ~ a[href="#next-movie2"],
.movie2:invalid ~ a[href="#next-movie3"],
.movie3:invalid ~ a[href="#next-movie4"],
.movie4:invalid ~ a[href="#next-movie5"],
.movie5:invalid ~ a[href="#next-movie6"],
.movie6:invalid ~ a[href="#next-movie7"],
.movie7:invalid ~ a[href="#next-movie8"],
.movie8:invalid ~ a[href="#next-movie9"],
.movie9:invalid ~ a[href="#next-movie10"],
.movie10:invalid ~ a[href="#next-movie11"],
.movie11:invalid ~ a[href="#next-movie12"],
.movie12:invalid ~ a[href="#next-movie13"],
.movie13:invalid ~ a[href="#congrats"]
{
  display: none;
}

a[href="#next-movie1"] {
  position: static;
}

              
            
!

JS

              
                /* if you want to see the answers, scroll down here */












/* 
   1. Harry Potter
        2. Star Wars
        3. Night at the museum
        4. Curious Case of Benjamin Button
        5. The princess and the frog
        6. Ratatouille
        7. Kung Fu Panda
        8. The Devil Wears Prada
        9. 27 Dresses
        10. Edward Scissor Hands
        11. Puss in Boots
        12. silence of the Lambs
        13. Twilight
   */

              
            
!
999px

Console