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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <input id="trigger" class="toggle-checkbox" type="checkbox"><label for="trigger">Fly!</label>

<div class="z">
  <svg fill-rule="evenodd" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 210 393"><path fill="#394c69" fill-rule="nonzero" d="M203.1 337.2H3v-54h9.6v-33h8.9v-33.6h10.4v-32.3h9.7V151h123v33.2h9.7v32.3h10.4v33.6h8.8v33h9.6v54z"/><path fill="#3d5070" fill-rule="nonzero" d="M96.2 392H33.6v-38h24.2v-7.4h38.4V392zM105.6 346.6H144v7.4h24.2v38h-62.6v-45.4z"/><path fill="#91c1a3" fill-rule="nonzero" d="M208 36h-38.7v100.7H208V36z"/><path fill="#9cd3b3" fill-rule="nonzero" d="M179.6 50h19.9V40h10V10.3h-10V0h-29.8v10.2h-10v20.4h10V40h10v10z"/><path fill="#70503d" fill-rule="nonzero" d="M58 298.8v-34.2h86.2v82.2H106v-47h-9.6v47H58v-48zM0 192.7V183h8.9v-9.8h10.3v-9.5H29V154h116l-.7 48.6v59.2H58v-59.4H38.6v9.7h-9.7l-28.6-.6-.3-18.8z"/><path fill="#70503d" fill-rule="nonzero" d="M127.9 204.4h41.5v-9.7h9.6v-9.6h9.7v-9.7h9.6v-9.7h9.6v-29.6h-38.5v10.1h-9.7v9.7h-31.8v48.5z"/><path fill="#3d5070" fill-rule="nonzero" d="M73.8 170.3h-8.9v6.4H54.5v-6.4h-9.7V154h29v16.3zM159.3 170.3h-8.8v6.4H140v-6.4h-9.7V154h29v16.3z"/><path fill="#91c1a3" fill-rule="nonzero" d="M77.1 132.6h49.1v31.1h-49z"/><path fill="#3d5070" fill-rule="nonzero" d="M58 261.8h86.6v9.6H58.1z"/><path fill="#fff" fill-rule="nonzero" d="M101.2 210.5h-3.7v7.5h11.2v-3.8h3.8v-3.7h3.7v11.2h-30V218H90v-7.5h3.7v-3.8h3.8v-7.5h3.7v-3.7h3.8V188H93.7v3.7H90v3.8h-3.8v-11.3h30v3.8h-3.7v7.5h-3.8v3.7H105v7.5h-3.8v3.8z"/><path fill="#91c1a3" fill-rule="nonzero" d="M9.7 250.3v-38.6h41.5l19.5 19v19.6h-61z"/><path fill="#9cd3b3" fill-rule="nonzero" d="M41 208.7v19.9h9.8v10h29.8v-9.9H91V199H80.8v-10H60.4v9.9H51v9.9h-10z"/><path fill="#70503d" fill-rule="nonzero" d="M32.6 228.3v12.8H.4v-38.4l32 .5.2 25.1z"/><path fill="#292929" d="M112.3 54.5h7.3v-6.6h5.6V13.2h-5.6V6.6h-7.5V0H77.3v6.6h-7.6v6.6h-5.6v7h-7.7v6.5h-5.6V39H43v6.5h-5.6v13.2H30v6.6h-7.6v6.5H17v21.8h5v5.6H27v7.7h7v5.6h6.1v9.8h5.6v6.6h7.6v6.6H88V129h7.6v-6.6h5.6v-7h7.4v-6.5h5.6V74.1h-5.6v-6.6h-2v-6h5.6v-7z"/><path fill="#70503d" d="M126.2 21h-5.6v-6.6h-7.5V7.8H78.3v6.6h-7.6v6.5h-5.6v34.8h5.6v6.5h7.6V69H113v-6.7h7.5v-6.5h5.6V20.9z"/><path fill="#292929" fill-rule="nonzero" d="M134.5 28.2h9.7v23.5H57.8V28.2h9.7v-9.6h67v9.6z"/><path fill="#9cd3b3" fill-rule="nonzero" d="M135 47.4h9.6v19.1h19.3v28.7h-9.7v28.6h-9.6v9.7H135v9h-19.2v9.8h-29v-9.9H67.5v-8.9h-9.7v-9.7h-9.6V95.2h-9.6V66.5h19.2v19-38h9.7v-9.6H135v9.5z"/><path fill="#292929" fill-rule="nonzero" d="M48.2 47.6h9.9v38.8h-9.9zM144.2 46.1h10v40.3h-10z"/><path fill="#758b7c" fill-rule="nonzero" d="M86.8 115.3h29v9.7h-29z"/><path fill="#3d5070" d="M115 50v1.5l12.8.3v1.5l10.8.1v2l8 .1v1.3l8 .1v1l3.7.1v9h-4l.4 4.7h-5.3V77l-4.7.3-.3 6-5.7.1v5.9l-35.9-19.8h-3.2L63.8 89.2v-5.9h-5.7l-.3-6.1-4.7-.3v-5.2h-5.3l.4-4.7h-4v-9h3.7v-1l8-.2v-1.3h8v-2l10.8-.2v-1.5l12.8-.3V50H115z"/><path fill="#fbeb8e" fill-rule="nonzero" stroke="#3d5070" stroke-width="2.2" d="M99 36h9v9h-9z" transform="matrix(3.22303 0 0 3.23467 -213 -59.2)"/><path fill="#fbeb8e" fill-rule="nonzero" stroke="#3d5070" stroke-width="2.2" d="M63 36h9v9h-9z" transform="matrix(3.22303 0 0 3.23467 -135.6 -59.2)"/><path fill="#444445" fill-rule="nonzero" d="M77.9 74.6H86v8.2h-8.2zM117.5 60.8h8.3v8h-8.3z"/><path fill="#91c1a3" fill-rule="nonzero" d="M96.4 76.6h9.6v29.1h-9.6z"/></svg>
</div>
<div class="trex">
<svg xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 960 760"><g id="bulge"><path fill="#345a2f" d="M1291.99 661.059h20.24v14.021h25.29v11.309h25.3v13.717h-25.3v11.308h-25.29v14.021h-20.24v17.556h-65.56v-99.488h65.56v17.556z" transform="rotate(-1.531033 -12739.005207 17938.395981)"/><path fill="#345a2f" d="M1291.99 661.059h20.24v14.021h25.29v11.309h25.3v13.717h-25.3v11.308h-25.29v14.021h-20.24v17.556h-65.56v-99.488h65.56v17.556z" transform="rotate(-1.65272 -7790.372708 16411.746733)"/><path fill="#345a2f" d="M1291.99 661.059h20.24v14.021h25.29v11.309h25.3v13.717h-25.3v11.308h-25.29v14.021h-20.24v17.556h-65.56v-99.488h65.56v17.556z" transform="rotate(-2.283372 -2494.842465 11384.197286)"/><path fill="#3c6335" d="M765.031 274.464h37.298v113.225h12.039v94.107h19.354v148.967H628.559V237.275h136.472v37.189z"/></g><g id="bottom" transform="translate(-453.944 -481.766)"><path fill="#345a2f" d="M1291.99 661.059h20.24v14.021h25.29v11.309h25.3v13.717h-25.3v11.308h-25.29v14.021h-20.24v17.556h-65.56v-99.488h65.56v17.556z" transform="rotate(-2.140872 13358.04383 -533.296542)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 -.89797 10 1814.4)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 -.89797 29.3814 1813.12)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 -.89797 48.7627 1811.85)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 -.89797 68.1441 1810.58)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 -.89797 87.5254 1809.31)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 -.89797 106.907 1808.03)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 -.89797 126.288 1806.76)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 -.89797 145.669 1805.49)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 -.89797 165.051 1804.22)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 -.89797 184.432 1802.95)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 -.89797 203.814 1802.67)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 -.89797 223.195 1802.4)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 -.89797 242.576 1802.13)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 -.89797 261.958 1800.86)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 -.89797 281.339 1799.58)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 -.89797 300.72 1799.31)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 -.89797 320.102 1799.04)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 -.89797 339.483 1798.77)"/><path id="body" fill="#3c6335" d="M1251.76 827.986l11.74.072v69.7l16.58.103v68.589h14.22v69.8h16.58v206.59l-493.724.53v-140.03H778.52v-8.91h-38.755v-6.77l-37.43-.34v-6.81h-35.776v-5.95h-31.394v-6.81h-35.777v-5.95h-29.687v-6.8h-27.975v-8.62H518.54v-8.39h-22.773v-11.15h-17.985l-.011-12.12h-8.458l.173-11.67h5.962v-8.913h8.755v-8.903l23.318-.04v-2.95h62.215v-3.719h63.317v-3.257h62.215v-3.719h63.316v-3.191H820.8l.092-3.719h33.224v-11.273h79.828V893.86l79.536-.413-3.07-56.544 241.35-8.917z"/></g>
  <g id="topjaw"><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 .89797 0 93.9638)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 .89797 19.3814 95.236)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 .89797 38.7627 96.5082)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 .89797 58.1441 97.7803)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 .89797 77.5254 99.0525)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 .89797 96.9068 100.325)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 .89797 116.288 101.597)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 .89797 135.669 102.869)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 .89797 155.051 104.141)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 .89797 174.432 105.413)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 .89797 193.814 105.686)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 .89797 213.195 105.958)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 .89797 232.576 106.23)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 .89797 251.958 107.502)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 .89797 271.339 108.774)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 .89797 290.72 109.047)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 .89797 310.102 109.319)"/><path fill="#d5d2d1" d="M493.406 934.084h-2.92V920.96h18.443v13.124h-2.92v4.701h-3.493v5.244h-1.86v4.562h-1.896v-4.562h-1.86v-5.244h-3.494v-4.701z" transform="matrix(1 0 0 .89797 329.483 109.591)"/><path id="body1" fill="#3c6335" d="M474.589 50.298L678.452 50l.012 8.44 37.444-.055.012 8.297 12.109-.018.01 7.265 10.626-.016.012 8.297 12.108-.018.011 7.264 10.048-.014.012 8.296 9.468-.014.015 10.505 7.847-.011.015 10.24 7.708-.011.02 13.598 6.087-.009.025 14.777 4.502-.006-.03 11.016.835.415-.336.586.802-.006V346.22l4.875 259.119-95.879 2.001-1.076-53.43H551.778l-2.029-75.957-149.577-.353-.588-9.433-32.649.047-.098-3.719-62.216.091-.004-3.191-63.316.092-.006-3.719-62.215.091-.005-3.257-63.316.093-.005-3.72-62.216.091-.004-2.924-11.079.101v-.04l-8.755.013-.023-15.515-8.755.013-.021-14.328-8.755.013-.021-14.327-8.808.013-.021-14.327-5.556.008L1 246.16l4.738-.007-.025-19.481 6.405-.009-.026-17.927 8.11-.012-.019-13.5 8.257-.013-.02-13.848 9.962-.015-.016-10.937 10.573-.016-.014-9.577 12.741-.018-.016-10.938 11.181-.016-.014-9.577 12.741-.019-.016-10.937 39.4-.058-.016-11.127 244.905-.327-.003-3.958 8.258-.012-.017-9.77 9.962-.015-.013-9.296 10.572-.015-.011-8.139 12.741-.019-.014-9.296 11.18-.016-.011-8.139 12.741-.019-.014-9.295 37.74-.056 1.647-9.458z" transform="matrix(1 .00146 -.00146 1 454.641 481.183)"/>
  <path fill="#fff" d="M1930.64 627.66h23.3v.189h.19v23.305h23.31V774.78h-23.01v23.006h-.3v.299h-23.01v23.006H1807.5v-22.64h-22.64v-.665h-.67v-22.64h-22.64V651.52h22.16v-23.86h23.3v-23.305h123.63v23.305z" transform="translate(259.747 410.202) scale(.33427)"/><path fill="#172815" d="M175.604 41.799h4.57v30.183h-4.57v3.677h-9.141v-3.677h-4.571V41.799h4.571v-3.677h9.141v3.677z" transform="matrix(1 .00146 -.00146 1 331.782 647.63)"/><path fill="#172815" d="M1930.64 627.66h23.3v.189h.19v23.305h23.31V774.78h-23.01v23.006h-.3v.299h-23.01v23.006H1807.5v-22.64h-22.64v-.665h-.67v-22.64h-22.64V651.52h22.16v-23.86h23.3v-23.305h123.63v23.305z" transform="matrix(.21066 .0003 -.0003 .21066 477.352 501.275)"/></g></svg>
</div>


<div class="logo"><a href="https://undead.institute" target="_blank"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1804713/UndeadInsti-LogoOnWhite.png" alt="Getting Braaains should be fun"></a></div>
              
            
!

CSS

              
                :root {
  --animtime: 4s;
}
.toggle-checkbox:checked ~ .trex #topjaw { 
  animation: var(--animtime) linear 0s openmaw forwards;
}
@keyframes openmaw {
  0% {
    transform: translate(-450px, -485px) rotate(0);
  }
  20%, 89.5% {
  transform: translate(-450px, -510px) rotate(20deg);
  }
  90% {
    transform: translate(-450px, -485px) rotate(-5deg);
  }
}
.toggle-checkbox:checked ~ .z { 
  animation: var(--animtime) linear 0s fly forwards;
}
@keyframes fly {
  0% {
    transform: translateX(-15000px);
  }
  90%, 100% {
    transform: translateX(0);
  }
}
.z {
  width: 200px;
  margin: auto;
    position: absolute;
    bottom: 130px;
    right: 250px;
    transform: translateX(-5000px);
}
.toggle-checkbox:checked ~ .trex #bulge{ 
  animation: var(--animtime) linear 0s crash forwards;
}
@keyframes crash {
  0%, 89%, 95%, 100% {
    transform: translateX(0);
  }
  91% {
    transform: translateX(50px);
  }
}


.trex {
    width: 800px;
    position: absolute;
    bottom: -10px;
    right: 50px;
}
.z svg {
    transform: rotate(90deg);
}
body {
  background-color: papayawhip;
  overflow: hidden;
}
#topjaw {
    transform-origin: 80% 105%;
    transform: translate(-450px, -485px) rotate(0);
}

.logo {
  width: 100%;
  max-width: 400px;
  position: absolute;
  top: 0;
  right: 0;
}
.logo img {
  width: 100%;
}
input{
  display: none;
}
input:checked + label {
  box-shadow: inset 3px 3px 2px #660000;
  transform: translate(3px, 3px);
}
label {
  font-size: 1.5em;
  color: #FFF;
  background-color: #960B0B;
  width: 140px;
  height: 30px;
  text-align: center;
  font-weight: bold;
  display: block;
  border-radius: 7px;
  box-shadow: 3px 3px 0 #660000;
  cursor: pointer;
}
              
            
!

JS

              
                
              
            
!
999px

Console