:root {
    --w: 20em; 
    --easing: cubic-bezier(0.165, 0.84, 0.44, 1);
  }
  
  @media screen and (max-height: 35em) {
    :root {
      --w: 50vh;  
    }  
  }
  
  html, body {
    height: 100%;
    min-height: 100%;
    margin: 0;
  }
  
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    font-family: "Nunito Sans", sans-serif;
  }
  
  [window] {
    width: var(--w);
    height: calc(var(--w) *1.6);
    min-width: 15em;
    min-height: 20em;
    position: relative;
  
    /* just for demo */
    background: #444;
    box-shadow: 0 0 20px rgba(125, 125, 125, .2);
    overflow: hidden;
  }
  
  @keyframes slide-in {
    0% { transform: translate3d(10%, 10%, 0); }
    100% { transform: translate3d(1em, 1em, 0); }
  }
  
  @keyframes clip-in {
    from {
      transform: translate3d(1em, 100%, 0);
      -webkit-clip-path: polygon(0 0, -10% 0, -10% 100%, 0 100%);
              clip-path: polygon(0 0, -10% 0, -10% 100%, 0 100%);
    }
    to {
      transform: translate3d(0, 0, 0);
      -webkit-clip-path: polygon(0 0, 100% 0, 98% 100%, 0 100%);
              clip-path: polygon(0 0, 100% 0, 98% 100%, 0 100%);
    }
  }
  
  .main {
    z-index: 9;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%; height: 100%;
    background: #fff;
    transition: .4s var(--easing);
  }
  
  .main h1 {
    margin: -2em 0 1em 0;
    min-width: 68%;
  }
  
  .main[open] {
    transform: scale(.9) translate3d(-.5em, -.5em, 0);
  }
  
  .main details {
    display: block;
    width: 68%;
  }
  
  .main details + details {
    margin-top: 5px;
  }
  
  .main details summary {
    padding: .5em 1em;
    background: #fafafa;
    color: #333;
    cursor: pointer;
    transition: .4s var(--easing); 
    outline: none;
  }
  
  .main details:not([open]) summary:focus {
    box-shadow: inset 0 0 0 1px #9bdeff;
    color: #000;
  }
  
  .main details summary::-webkit-details-marker {
    opacity: .5;
  }
  
  .main details:not([open]):hover summary::-webkit-details-marker,
  .main details:not([open]) summary:focus::-webkit-details-marker,
  .main details[open] summary::-webkit-details-marker {
    opacity: 1;
  }
  
  .main details:not([open]):hover summary {
    background: #E3F5FE;
    color: #000;
  }
  
  .main details[open] summary {
    background: #E3F5FE;
    animation: clip-in .3s;
    animation-fill-mode: both;
    min-width: 61.8%;
    will-change: transform;
  }
  
  .main details summary ~ .detail-body {
    display: flex;
    flex-direction: column;
    padding: 4em 2em 2em;
    background: #fff;
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    box-shadow: 0 0 20px rgba(125, 125, 125, .5);
    animation: slide-in .6s var(--easing); 
    animation-fill-mode: both;
    will-change: transform;
    z-index: 10;
    overflow: auto;
  }
  
  .main details summary ~ .detail-body p {
    line-height: 1.6;
    margin-top: 2em;
  }
  
  .main details[open] summary {
    position: absolute;
    z-index: 99;
    top: 1em;
    left: 1em;
  }
  .container {
    display: flex;
    justify-content: center;
    align-items: center;
    
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
  }
  
  .title {
    font-size: 10vw;
    color: white;
  }
  
  canvas {
    width: 100%;
  }
  .btn {
    top:20px;
    position: relative;
    display: inline-block;
    width: 277px;
    height: 50px;
    font-size: 1em;
    font-weight: bold;
    line-height: 60px;
    text-align: center;
    text-transform: uppercase;
    background-color: transparent;
    cursor: pointer;
    text-decoration:none;
    font-family: 'Roboto', sans-serif;
    font-weight:900;
    font-size:17px;
    letter-spacing: 0.045em;
}

.btn svg {
    position: absolute;
    top: 0;
    left: 0;
}

.btn svg rect {
    stroke: #EC0033;
    stroke-width: 4;
    stroke-dasharray: 353, 0;
    stroke-dashoffset: 0;
    -webkit-transition: all 600ms ease;
    transition: all 600ms ease;
}

.btn span{
  background: rgb(255,130,130);
  background: -moz-linear-gradient(left,  rgba(255,130,130,1) 0%, rgba(225,120,237,1) 100%);
  background: -webkit-linear-gradient(left,  rgba(255,130,130,1) 0%,rgba(225,120,237,1) 100%);
  background: linear-gradient(to right,  rgba(255,130,130,1) 0%,rgba(225,120,237,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff8282', endColorstr='#e178ed',GradientType=1 );
  
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn:hover svg rect {
    stroke-width: 4;
    stroke-dasharray: 196, 543;
    stroke-dashoffset: 437;
}