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

              
                <div class="gb_body">
  <div class="screen">
    <div class="power">
      <p>POWER</p>
    </div>
    <div class="screen_main"></div>
  </div>
  <div class="btm">
    <div class="text">Nintendo</div>
    <div class="middle"></div>
    <div class="btns">
      <div class="button_dpad">
        <div class="inner">
          <div class="up_down">
            <div class="u">
              <i class="fas fa-caret-up"></i>
            </div>
            <div class="d">
              <i class="fas fa-caret-down"></i>
            </div>
          </div>
          <div class="left_right">
            <div class="r">
              <i class="fas fa-caret-right"></i>              
            </div>
            <div class="left">
              <i class="fas fa-caret-left"></i>
            </div>
          </div>
        </div>
  </div>    
      <div class="btns_circle">
        <div class="btns_circle_left">
          <h1>B</h1>
        </div>
        <div class="btns_circle_right">
          <h1>A</h1>
        </div>
      </div>
      <div class="btns_btm">
        <div class="btns_left"></div>
        <div class="btns_right"></div>
      </div>
    </div>
    <div class="speaker"></div>
  </div>
</div>
<div id="name">
  <a href="https://twitter.com/KassandraSanch" target="_blank">@KassandraSanch</a>
</div>
              
            
!

CSS

              
                $t: transparent;
$bk: #ff1654;
$p: #ff1654;
$w: #e9e9e7;

@mixin for-phone-only {
  @media (max-width: 599px) {
    @content;
  }
}
@mixin for-tablet-portrait-up {
  @media (max-width: 600px) {
    @content;
  }
}
@mixin for-tablet-landscape-up {
  @media (min-width: 900px) {
    @content;
  }
}

*{
  box-sizing: border-box;
}
body {
  // font-size: 1.6vmin;
  font-size:9px; 
  background: #ff1654;
  background-size: 320px;
  background-repeat: no-repeat;
  display: flex;
  justify-content:center;
  align-items: center;
  width: 100vw;
  height: 100vh;
   @include for-phone-only {
    font-size: 7px;
  }      
  #name{
  //  @include for-phone-only {
  //   left: 25%;
  //   font-size: 3em;
  // }    
   @include for-tablet-portrait-up {
    left: -5%;
    font-size: 3.3em;
  }      
    font-size: 2.8em;
    font-family: 'Pacifico', cursive;
    position: absolute;
    left: 25%;
    top:50%;
    transform: rotate(270deg);
    a{
      color: #44a5f7;
      text-decoration: none;
      text-shadow: 1px 1px #000;
    }
  }
  .btns_top {
    z-index: 5;
    position: absolute;
    left: 0%;
    top: 0%;
  }
}
.gb_body {
  width: 32em;
  height: 55.1em;
  // border: 2px solid green;
  position: relative;
  background: 
    //     TOP CORNERS
      // corner left
      radial-gradient(240% 240% at 100% 100%, $t 49%, $bk 50%) 0 0 / 2em 2em,
    // corner right
      radial-gradient(240% 240% at 0% 100%, $t 49%, $bk 50%) 100% 0 / 2em 2em,
    //     BTM CORNERS
    // sm
      radial-gradient(130% 150% at 0% 0%, rgba($t, 0) 75%, rgba($bk, 1) 76%)
      30em 51em / 2em 2em,      
      // corner left
      radial-gradient(283% 202% at 00% 0%, rgba($t, 0) 49%, rgba($bk, 1) 50%)
      100% 100% / 10em 10em,
  
    // corner right
    // sm
      radial-gradient(130% 150% at 100% 0%, rgba($t, 0) 75%, rgba($bk, 1) 76%)
      0em 51em / 2em 2em,      
      radial-gradient(283% 202% at 100% 0%, rgba($t, 0) 49%, rgba($bk, 1) 50%) 0
      100% / 10em 10em,
    //     END BTM CORNERS    
    linear-gradient(
      to left,
    rgba($w,1),
      rgba(#d1d1cf,.1)
    ) 0% 0% / 4.8em 100%,
    linear-gradient(
      to left,
    rgba($w,1),
      rgba(#d1d1cf,.1)
    ) 100% 0% / 4.8em 100%,    
    rgba($w, 1)
    ;
  background-repeat: no-repeat;
  .screen{
    z-index: 3;
    width: 28.3em; 
    height: 25.6em;
    position: absolute;
    // border: 5px solid black;
    top: 2em;
    left: 50%;
    transform: translate(-50%,0);
    background: 
//     // corners
//       //     TOP CORNERS
      // corner left
      radial-gradient(230% 230% at 100% 100%, $t 49%, $w 50%) 0 0 / 2em 2em,
//     // corner right
      radial-gradient(230% 230% at 0% 100%, $t 49%, $w 50%) 100% 0 / 2em 2em,    
//       //     BTM CORNERS
      // sm corner left
      radial-gradient(200% 200% at 100% 0%, rgba($t, 0) 49%, rgba($w, 1) 50%)
      0% 96.5% / 2em 2em,
//     // sm corner right
      radial-gradient(200% 200% at 0% 0%, $t 49%, $w 50%) 100% 96.5% / 2em 2em,       
//       // lg corner left
      radial-gradient(400% 204% at 00% 0%, rgba($t, 0) 49%, rgba($w, 1) 50%)
      100% 100% / 10em 10em,
//     // lg corner right 
      radial-gradient(400% 204% at 100% 0%, rgba($t, 0) 49%, rgba($w, 1) 50%) 0
      100% / 10em 10em,    
    // main back    
    linear-gradient(
      rgba(#272727, 1), 
      rgba(#141414, 1)) 
       50% 50% / 100%,
      
      ;
    background-repeat: no-repeat;
    .power{
      width:5em;
      height: 3em;
      position:absolute;
      left: 0%; 
      top: 7.5em;
      font-family: verdana;
      color: #fff;
      background: 
// red light        
      radial-gradient(100% 100% at 50% 50%, rgba(#fff, .3) 47%, rgba($t, 0) 50%) 1em
      .3em / .3em .3em,          
      radial-gradient(100% 100% at 50% 50%, rgba(#FF0D33, 1) 47%, rgba($t, 0) 50%) .7em
      .1em / .8em .8em,           
// end red light     
        
// WHITE HALF MOONS
      radial-gradient(
    circle at 0% 50%,
    $t .3em,
        #fff,
    $t .6em,
  ) 
  3.4em .1em / .8em .8em,          
      radial-gradient(
    circle at 0% 50%,
    $t .3em,
        #fff,
    $t .6em,
  ) 
  2.7em .1em / .8em .8em,             
      radial-gradient(
    circle at 0% 50%,
    $t .3em,
        #fff,
    $t .6em,
  ) 
  2em .1em / .8em .8em,          
// END WHITE HALF MOONS
  
        ;
      background-repeat: no-repeat;
      p{
        font-size: .8em;
        position: absolute;
        top: 2em;
        left: 50%;
        transform:translate(-50%,0);
      }
    }
    .screen_main{
      width: 19em;
      height: 17em;
      position: absolute;
       box-shadow: inset 2px 5px 3px 3px #000;
      left: 50%;
      top: 3em;
      transform: translate(-50%,0%);
      background: 
        linear-gradient(
        rgba(#272727, 1), 
        rgba(#141414, 1)) 
         50% 50% / 100%,
      ;
        
        ;
      background-repeat: no-repeat;
    }
  }
  .btm{
    .text{
      z-index:6;
        border: 2px solid rgba(#b9b9b8,.7);
         text-shadow: 1px 1px rgba(#b9b9b8,.7);
      // box-shadow: 1px 1px rgba(#b9b9b8,.0);
        font-weight: bold;
        font-family: verdana;
        color: #E8E8E6;  
        position: absolute;
        font-size: 1.4em;
        top:53.5%;
      left: 50%; 
      transform:translate(-50%,0);
        position: absolute;
        text-align:center; 
      padding: 3px;
      border-radius: 35%;
    }
    .middle{
      z-index: 4;
      width: 22em;
      height: 23em;
      // border: 2px solid $p;
      position: absolute;
      top: 48%;
      left: 50%;
      transform: translate(-50%, 0);
      background: 
      radial-gradient(100% 100% at 50% 0%, rgba(#141414, 1) 47%, rgba($t, 0) 50%)
      50% 0% / 27em 2.7em,   
//       // lg corner left
      radial-gradient(400% 202% at 00% 0%, rgba($t, 0) 49%, rgba($w, 1) 50%)
      100% 100% / 10em 10em,
//     // lg corner right
      radial-gradient(400% 202% at 100% 0%, rgba($t, 0) 49%, rgba($w, 1) 50%) 0
      100% / 10em 10em,           
        linear-gradient(
          rgba(#fff,.8),
          rgba(#fff,.8)
        )
        ;
      background-repeat: no-repeat;
    }
    .btns{
      .btns_circle{
        div{
          width: 4.3em;
          height: 4.3em;
          position: absolute;
          border: 2px solid #000;
          border-radius: 50%;
          color: #000;
          background: 
          radial-gradient(100% 100% at 50% 90%, rgba($t, .0) 46%, rgba($w, .4) 50%)
          50% -1.4em / 110% 4em,            
            linear-gradient(
            #3A3839, #191718
          );
          background-repeat: no-repeat;
          z-index: 5;
          h1{
            position: absolute;
            top: 18%;
            left: 18%;
            font-size: 2.5em;
            font-family: arial;
          }
        }
        .btns_circle_left{
          left: 61%;
          top: 64%;
          
        }
        .btns_circle_right{
          left: 79%;
          top: 60.5%;          
        }        
      }
      .btns_btm{
        z-index: 5;
        width: 9em;
        height: 1.6em;
        top: 44.4em;
        left: 50%;
        transform: translate(-50%, 0);
        position: absolute;
        display: flex;
        justify-content:space-between;
        div{
          border-radius: 10px;
          background: 
            linear-gradient(
              rgba($t,.2) 14%,
            rgba(#fff,.5) 15%,
              rgba($t,.2) 50%
            ),
            #302F33;
          border: 1.5px solid #000;
          width: 3.5em;
          background-repeat: no-repeat;
         text-shadow: 1px 1px rgba(#b9b9b8,.7);
          font-weight: bold;
            font-family: verdana;
            color: #E8E8E6;          
        }
        .btns_left{
          &:after{
            width: 50%;
            content: 'SELECT';
            position: absolute;
            top: 1.9em;
            left: -.5em;
            text-align:center;
          }
        }
        .btns_right{
          &:after{
            width: 50%;
            content: 'START';
            position: absolute;
            top: 1.9em;
            left: 5em;
            text-align:center;
          }
        }        
      }
    }
    .speaker{
      z-index: 6;
      transform:rotate(-5deg);
      width: 8em;
      height: 8em;
      position: absolute;
      top: 45em;
      left: 22.5em;
      background:
        // top row
        radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        5.2em 0 / .6em .6em,  
        radial-gradient(100% 100% at 50% 50%, rgba(#d0d0cf, 1) 49%, rgba($bk, 0) 50%)
        4.3em 0 / .6em .6em,           
        radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        3.5em 0 / .6em .6em,  
        radial-gradient(100% 100% at 50% 50%, rgba(#d0d0cf, 1) 49%, rgba($bk, 0) 50%)
        2.5em 0 / .6em .6em,          
        radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        1.5em 0 / .6em .6em,  
        // end top row  
        // 2nd row   
        radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        .5em 1em / .6em .6em,  
        radial-gradient(100% 100% at 50% 50%, rgba(#d0d0cf, 1) 49%, rgba($bk, 0) 50%)
        1.5em 1em / .6em .6em,                   radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        2.5em 1em / .6em .6em, 
        radial-gradient(100% 100% at 50% 50%, rgba(#d0d0cf, 1) 49%, rgba($bk, 0) 50%)
        3.5em 1em / .6em .6em,                    radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        4.5em 1em / .6em .6em,
        radial-gradient(100% 100% at 50% 50%, rgba(#d0d0cf, 1) 49%, rgba($bk, 0) 50%)
        5.5em 1em / .6em .6em,         
           radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        6.5em 1em / .6em .6em,        
        // end 2nd row   
        // 3rd row   
        radial-gradient(100% 100% at 50% 50%, rgba(#d0d0cf, 1) 49%, rgba($bk, 0) 50%)
        .5em 2em / .6em .6em,  
        radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        1.5em 2em / .6em .6em,                   radial-gradient(100% 100% at 50% 50%, rgba(#d0d0cf, 1) 49%, rgba($bk, 0) 50%)
        2.5em 2em / .6em .6em, 
        radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        3.5em 2em / .6em .6em,                    radial-gradient(100% 100% at 50% 50%, rgba(#d0d0cf, 1) 49%, rgba($bk, 0) 50%)
        4.5em 2em / .6em .6em,
        radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        5.5em 2em / .6em .6em,         
           radial-gradient(100% 100% at 50% 50%, rgba(#d0d0cf, 1) 49%, rgba($bk, 0) 50%)
        6.5em 2em / .6em .6em,        
        // end 3rd row       
        // 4th row   
        radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        .5em 3em / .6em .6em,  
        radial-gradient(100% 100% at 50% 50%, rgba(#d0d0cf, 1) 49%, rgba($bk, 0) 50%)
        1.5em 3em / .6em .6em,                   radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        2.5em 3em / .6em .6em, 
        radial-gradient(100% 100% at 50% 50%, rgba(#d0d0cf, 1) 49%, rgba($bk, 0) 50%)
        3.5em 3em / .6em .6em,                    radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        4.5em 3em / .6em .6em,
        radial-gradient(100% 100% at 50% 50%, rgba(#d0d0cf, 1) 49%, rgba($bk, 0) 50%)
        5.5em 3em / .6em .6em,         
           radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        6.5em 3em / .6em .6em,        
        // end 4th row  
        // 5th row   
        radial-gradient(100% 100% at 50% 50%, rgba(#d0d0cf, 1) 49%, rgba($bk, 0) 50%)
        .5em 4em / .6em .6em,  
        radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        1.5em 4em / .6em .6em,                   radial-gradient(100% 100% at 50% 50%, rgba(#d0d0cf, 1) 49%, rgba($bk, 0) 50%)
        2.5em 4em / .6em .6em, 
        radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        3.5em 4em / .6em .6em,                    radial-gradient(100% 100% at 50% 50%, rgba(#d0d0cf, 1) 49%, rgba($bk, 0) 50%)
        4.5em 4em / .6em .6em,
        radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        5.5em 4em / .6em .6em,         
           radial-gradient(100% 100% at 50% 50%, rgba(#d0d0cf, 1) 49%, rgba($bk, 0) 50%)
        6.5em 4em / .6em .6em,        
        // end 5th row  
        // 6th row   
        radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        .5em 5em / .6em .6em,  
        radial-gradient(100% 100% at 50% 50%, rgba(#d0d0cf, 1) 49%, rgba($bk, 0) 50%)
        1.5em 3em / .6em .6em,                   radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        2.5em 5em / .6em .6em, 
        radial-gradient(100% 100% at 50% 50%, rgba(#d0d0cf, 1) 49%, rgba($bk, 0) 50%)
        3.5em 5em / .6em .6em,                    radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        4.5em 5em / .6em .6em,
        radial-gradient(100% 100% at 50% 50%, rgba(#d0d0cf, 1) 49%, rgba($bk, 0) 50%)
        5.5em 5em / .6em .6em,         
           radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        6.5em 5em / .6em .6em,        
        // end 6th row   
        //  7th row 
        radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        5.2em 6em / .6em .6em,  
        radial-gradient(100% 100% at 50% 50%, rgba(#d0d0cf, 1) 49%, rgba($bk, 0) 50%)
        4.3em 0em / .6em .6em,           
        radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        3.5em 6em / .6em .6em,  
        radial-gradient(100% 100% at 50% 50%, rgba(#d0d0cf, 1) 49%, rgba($bk, 0) 50%)
        2.5em 6em / .6em .6em,          
        radial-gradient(100% 100% at 50% 50%, rgba(#232323, 1) 49%, rgba($bk, 0) 50%)
        1.5em 6em / .6em .6em,  
        // end 7th row         
        ;
      background-repeat: no-repeat;
    }
  }
}
.button_dpad{
  z-index: 5;
  width: 12em;
  height: 12em; 
  position: absolute;
  top: 69.2%;
  left: 25.5%;  
  transform:translate(-50%,-50%); 
  justify-content: center;
  align-items: center; 
  .inner{
    position: relative;
    width: 8.6em; 
    height: 8.6em;
    border-radius: 50%;
    // border:3px solid green;
    i{
      font-size: 3.2em;
      color: #000;   
      position: absolute;

    }    
    .left_right{
      position: absolute;
      top:50%;
      left: 50%;
      transform: translate(-50%,-50%);
      width: 100%;
      height:2.9em;
      background: 
// BTM            
          linear-gradient(
            to right,
          rgba($w,.2),
            rgba($w,.2)
          ) 100% 100% / .2em 100%, 
          linear-gradient(
            to right,
          rgba(#d1d1cf,.0),
            rgba($w,.2)
          ) 100% 100% / 2em 100%,         
          linear-gradient(
            to right,
          rgba($w,.2),
            rgba(#d1d1cf,.0)
          ) 0% 100% / 2em 100%,            
// END BTM              
        
        rgba(#282828,1);
      border-radius: 8px;
      border: 3px solid #000;
      background-repeat:no-repeat;
      .r{
         i{
           top: -.17em;
          left: 2.05em; 
        }
      }
      .left{      
        i{
          top: -.17em;
        }
      }
    }    
    .up_down{
      z-index: 5;
      position: absolute;
      top:50%;
      left: 50%;
      transform: translate(-50%,-50%);
      width: 2.9em;
      height:100%;
      background: rgba(#282828,1);
      border-radius: 8px;
      border: 3px solid #000;
      &:after{
        content: '';
        position:absolute; 
        width: 1.7em;
        height: 1.7em;
        background: 
          // radial-gradient(100% 100% at 50% 90%, rgba($t, .0) 46%, rgba($w, .4) 50%)
          // 50% -1.4em / 110% 4em, 
          radial-gradient(100% 100% at 50% 10%,rgba($t,.5) 55%, rgba($w, .4) 60%, rgba($t, .4) 63%)
          50% -1.2em / 140% 4em,             
          rgba(#000,1)
          ;        
        background-repeat: no-repeat; 
        top:50%;
        left: 50%;
        transform: translate(-50%,-50%);   
        border-radius: 50%;
      }
      &:before{
        content: '';
        border: 3px solid #282828;
        position:absolute;
        width: 100%;
        height: 2.5em;
        background: rgba(#282828,1);
        top:50%;
        left: 50%;
        transform: translate(-50%,-50%);         
      }     
      div{
        display: flex;
        justify-content: center;
        
      }
      .u{
        i{
          top: -.2em;
        }
      }
        .d{
          z-index: 6;
          width: 100%;
          height: 100%;
          background: 
// BTM            
          linear-gradient(
          rgba(#d1d1cf,.0),
            rgba($w,.2)
          ) 0% 100% / 100% .2em,             
          linear-gradient(
          rgba(#d1d1cf,.0),
            rgba($w,.1)
          ) 0% 100% / 100% 2em,            
// END BTM                
// TOP            
          linear-gradient(
          rgba($w,.5),
            rgba(#d1d1cf,.0)
          ) 0% 0% / 100% .2em,             
          linear-gradient(
          rgba($w,.3),
            rgba(#d1d1cf,.0)
          ) 0% 0% / 100% 2em,         
// END TOP     
            ;
          background-repeat: no-repeat;
          i{
            top: 1.5em;

          }
        }      
    }     
  }
  
}

              
            
!

JS

              
                
              
            
!
999px

Console